|
1 | 1 |
|
2 | 2 | {} (:package |app) |
3 | | - :configs $ {} (:init-fn |app.server/main!) (:reload-fn |app.server/reload!) (:version |0.1.16) |
| 3 | + :configs $ {} (:init-fn |app.server/main!) (:reload-fn |app.server/reload!) (:version |0.1.17) |
4 | 4 | :modules $ [] |lilac/ |recollect/ |memof/ |ws-edn.calcit/ |cumulo-util.calcit/ |cumulo-reel.calcit/ |fuzzy-filter/ |
5 | 5 | :entries $ {} |
6 | 6 | :page $ {} (:init-fn |app.client/main!) (:reload-fn |app.client/reload!) |
|
696 | 696 | div |
697 | 697 | {} $ :class-name css/row-middle |
698 | 698 | button $ {} (:class-name css/button) |
| 699 | + :style $ {} |
| 700 | + :background $ hsl 0 0 0 0.1 |
| 701 | + :color :white |
699 | 702 | :on-click $ fn (e d!) |
700 | 703 | d! $ :: :session/enlarge (:pid process) |
701 | 704 | :inner-text "\"Enlarge" |
702 | | - =< 8 nil |
703 | | - a $ {} (:class-name css/link) |
| 705 | + ; =< 8 nil |
| 706 | + ; a $ {} (:class-name css/link) |
704 | 707 | :on-click $ fn (e d!) |
705 | 708 | d! :router/change $ {} (:name :process) |
706 | 709 | :params $ {} |
|
869 | 872 | :class-name css/font-fancy |
870 | 873 | :style $ merge style/text |
871 | 874 | {} $ :padding "\"0 8px" |
| 875 | + if (:alive? process) |
| 876 | + {} (:color :black) (:border-radius "\"4px") |
| 877 | + :background-color $ hsl 60 100 60 |
872 | 878 | ; =< 16 nil |
873 | | - <> (:command process) style/text |
| 879 | + ; <> (:command process) style/text |
874 | 880 | ; =< 16 nil |
875 | 881 | ; <> (:cwd process) |
876 | 882 | merge style/text $ {} (:font-size 12) |
|
892 | 898 | :cwd $ :cwd process |
893 | 899 | :command $ :command process |
894 | 900 | :title $ :title process |
895 | | - :jump? true |
| 901 | + :enlarge? true |
896 | 902 | d! :process/remove-dead $ :pid process |
897 | 903 | =< 8 nil |
898 | 904 | a $ {} (:class-name css/link) (:inner-text "\"Drop") |
|
1299 | 1305 | command $ :command op-data |
1300 | 1306 | cwd $ :cwd op-data |
1301 | 1307 | jump? $ :jump? op-data |
| 1308 | + enlarge? $ :enlarge? op-data |
1302 | 1309 | proc $ cp/exec command |
1303 | 1310 | js-object $ :cwd cwd |
1304 | 1311 | pid $ .-pid proc |
|
1311 | 1318 | :: :router/change $ {} (:name :process) |
1312 | 1319 | :params $ {} (:id pid) |
1313 | 1320 | , sid |
| 1321 | + if (w-js-log enlarge?) |
| 1322 | + dispatch! (:: :session/enlarge pid) sid |
1314 | 1323 | .!on proc "\"exit" $ fn (event _) |
1315 | 1324 | dispatch! |
1316 | 1325 | :: :process/error $ [] pid (str &newline "\"exit " event) |
|
0 commit comments