@jxsuite/studio 4.1.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/data/elements-meta.json +5 -15
- package/data/html-meta.json +51 -6
- package/dist/chunks/{2020-n6tfwnda.js → 2020-g79n01v9.js} +14 -14
- package/dist/chunks/action-group-sp6tna8v.js +118 -0
- package/dist/chunks/adapter-nj7tnjfn.js +13 -0
- package/dist/chunks/cf-account-picker-qwkm9zrf.js +495 -0
- package/dist/chunks/cf-settings-71bv5zn9.js +20 -0
- package/dist/chunks/color-area-v17df7b8.js +154 -0
- package/dist/chunks/color-field-anwybnkn.js +208 -0
- package/dist/chunks/color-slider-44ez96fc.js +79 -0
- package/dist/chunks/color-xgg3kfw7.js +35 -0
- package/dist/chunks/combobox-5e7jev23.js +236 -0
- package/dist/chunks/components-vj72gqtq.js +20 -0
- package/dist/chunks/content-source-5mex4x1h.js +46 -0
- package/dist/chunks/convert-to-repeater-n64h8znc.js +639 -0
- package/dist/chunks/dialog-s890b918.js +85 -0
- package/dist/chunks/editor-3qhbg51x.js +35 -0
- package/dist/chunks/entry-commands-234hjnqw.js +42 -0
- package/dist/chunks/extension-sections-3hpcambp.js +651 -0
- package/dist/chunks/file-ops-8yhd83xr.js +47 -0
- package/dist/chunks/files-hnxqxtsg.js +72 -0
- package/dist/chunks/format-host-779sfp2n.js +40 -0
- package/dist/chunks/fs-events-b88z7g4h.js +18 -0
- package/dist/chunks/git-panel-xwj8fpab.js +49 -0
- package/dist/chunks/icons-yy10wk9r.js +402 -0
- package/dist/chunks/iframe-entry-15g3n6xv.js +114 -0
- package/dist/chunks/iframe-entry-b27vq81n.js +203 -0
- package/dist/chunks/iframe-entry-nbyxee1y.js +154 -0
- package/dist/chunks/iframe-host-syr0f9sb.js +115 -0
- package/dist/chunks/{index-wcnt3r9g.js → index-mdmyx6s2.js} +11 -11
- package/dist/chunks/index-n4j7qxyr.js +109 -0
- package/dist/chunks/{javascript-q8kpmfah.js → javascript-xvrfrpkb.js} +8 -9
- package/dist/chunks/{jsonMode-dkr040ga.js → jsonMode-tyx2kj6p.js} +526 -527
- package/dist/chunks/jx-validate-j0wxk72w.js +15 -0
- package/dist/chunks/layers-ff81wthn.js +30 -0
- package/dist/chunks/layers-panel-pnnghw12.js +40 -0
- package/dist/chunks/listbox-6v2ac08j.js +44 -0
- package/dist/chunks/lit-html-m244w9nh.js +17 -0
- package/dist/chunks/media-picker-cqhhxhhe.js +33 -0
- package/dist/chunks/menu-9p2w46gj.js +15 -0
- package/dist/chunks/menu-q99sy9rf.js +285 -0
- package/dist/chunks/{monaco-binding-rj6xpx9y.js → monaco-binding-sw6en4dw.js} +12 -15
- package/dist/chunks/monaco-buffer-bhy3hb6m.js +24 -0
- package/dist/chunks/{monaco-setup-vx9bhp1d.js → monaco-setup-8r62fj6y.js} +27 -37
- package/dist/chunks/notify-628t0anh.js +21 -0
- package/dist/chunks/number-field-5cndyft8.js +72 -0
- package/dist/chunks/parse-0zx14y15.js +10 -0
- package/dist/chunks/platform-ts9cg1a4.js +15 -0
- package/dist/chunks/popover-47z3ytva.js +25 -0
- package/dist/chunks/publish-panel-5zt840sy.js +27 -0
- package/dist/chunks/quick-search-3748564r.js +45 -0
- package/dist/chunks/references-qvvxej7h.js +26 -0
- package/dist/chunks/right-panel-eccz92qt.js +45 -0
- package/dist/chunks/section-registry-5pq32t0q.js +25 -0
- package/dist/chunks/select-2r16ez41.js +49 -0
- package/dist/chunks/split-g7nm1rgb.js +191 -0
- package/dist/chunks/studio-0hqbpbd0.js +62 -0
- package/dist/chunks/{studio-kryvsw6j.js → studio-1k325pwf.js} +48 -48
- package/dist/chunks/{studio-b55y6ewx.js → studio-1knfqgy7.js} +58 -58
- package/dist/chunks/{studio-2b946z26.js → studio-1z1kcjv4.js} +3628 -6095
- package/dist/chunks/studio-3773086z.js +111 -0
- package/dist/chunks/{studio-4r1pv6zf.js → studio-38emantv.js} +22 -5
- package/dist/chunks/{studio-x813zp48.js → studio-3rz5md06.js} +30 -30
- package/dist/chunks/{studio-ynxwkrzd.js → studio-4wbb9ct0.js} +1953 -1785
- package/dist/chunks/studio-5te5tqng.js +81 -0
- package/dist/chunks/studio-5wt9nvhd.js +4763 -0
- package/dist/chunks/{studio-p4ngc046.js → studio-6ewqv390.js} +9 -9
- package/dist/chunks/{studio-9ab8gqsm.js → studio-6nzaktvy.js} +7 -7
- package/dist/chunks/studio-6xa21ej9.js +28 -0
- package/dist/chunks/{studio-5ehhackm.js → studio-727xh0e3.js} +19 -19
- package/dist/chunks/{studio-gcye7qka.js → studio-7e11jpa9.js} +21 -21
- package/dist/chunks/{studio-q7v10cg2.js → studio-7r42c6ca.js} +17 -7
- package/dist/chunks/studio-7xnmgv66.js +13615 -0
- package/dist/chunks/studio-8scdew0e.js +258 -0
- package/dist/chunks/{studio-fbf92ckf.js → studio-93zafjcm.js} +275 -163
- package/dist/chunks/{studio-dg7zyt5x.js → studio-98b3z07n.js} +1 -1
- package/dist/chunks/studio-a79k90n9.js +1162 -0
- package/dist/chunks/studio-aj37eer3.js +422 -0
- package/dist/chunks/studio-b0k5tqgp.js +2432 -0
- package/dist/chunks/studio-b4s9eykd.js +2811 -0
- package/dist/chunks/{studio-f3wqjtk5.js → studio-d0300636.js} +5076 -18
- package/dist/chunks/{studio-b9b6t1dg.js → studio-e1f24eff.js} +5664 -5666
- package/dist/chunks/studio-e1pgga3k.js +839 -0
- package/dist/chunks/{studio-g1wdche0.js → studio-esrxgwh6.js} +80 -80
- package/dist/chunks/{studio-q43a5y9h.js → studio-g3jevyjt.js} +16 -16
- package/dist/chunks/studio-gb13095a.js +2806 -0
- package/dist/chunks/{studio-3n4ndrzh.js → studio-h4nvnjvz.js} +303 -303
- package/dist/chunks/{studio-dm19q43r.js → studio-hhvs4sdg.js} +10 -10
- package/dist/chunks/{studio-x4qkdat5.js → studio-js8nv53n.js} +1749 -2481
- package/dist/chunks/{studio-qjy2z9bv.js → studio-jxp12rnj.js} +32 -137
- package/dist/chunks/{studio-trxrabqf.js → studio-k75n7vhp.js} +527 -283
- package/dist/chunks/{studio-q9jd1a60.js → studio-kcgff4r0.js} +15 -18
- package/dist/chunks/studio-kkqkcp3d.js +17668 -0
- package/dist/chunks/studio-mhhyamxf.js +763 -0
- package/dist/chunks/{studio-cft9r4r7.js → studio-nq5yf5mp.js} +22 -22
- package/dist/chunks/{studio-685s0ytq.js → studio-nqgawfks.js} +572 -572
- package/dist/chunks/studio-nzzpvzx9.js +185 -0
- package/dist/chunks/{studio-xrapxwwc.js → studio-p1dw8wfw.js} +55 -29
- package/dist/chunks/{studio-3bqpr0zh.js → studio-pxbgypmg.js} +299 -110
- package/dist/chunks/studio-q0a3yk4n.js +33 -0
- package/dist/chunks/{studio-wcy8trfx.js → studio-q3x06vmj.js} +23 -22
- package/dist/chunks/{studio-6yw4y3my.js → studio-qhhm6hbt.js} +8 -8
- package/dist/chunks/studio-qk4bfsq2.js +362 -0
- package/dist/chunks/{studio-msd847zn.js → studio-qk90fgqm.js} +361 -90
- package/dist/chunks/{studio-jkftxyvz.js → studio-r6nvacqs.js} +5861 -2154
- package/dist/chunks/{studio-53n8bp04.js → studio-r6xmmtfh.js} +1 -1
- package/dist/chunks/{studio-tvgyw9xw.js → studio-rnyf3f8e.js} +83 -250
- package/dist/chunks/studio-rs76k67r.js +12 -0
- package/dist/chunks/studio-sbjyc8bt.js +954 -0
- package/dist/chunks/{studio-1wagb550.js → studio-syg2tadj.js} +11 -11
- package/dist/chunks/{studio-t5wqwzdh.js → studio-tjjk7jvk.js} +1 -1
- package/dist/chunks/studio-tqgryxwg.js +1171 -0
- package/dist/chunks/studio-try13h8c.js +8448 -0
- package/dist/chunks/studio-vfq8qpjt.js +1219 -0
- package/dist/chunks/studio-vhv5tgxm.js +51 -0
- package/dist/chunks/{studio-ahn3pdgx.js → studio-vw7mzp6z.js} +52 -38
- package/dist/chunks/studio-wqpngpsk.js +174 -0
- package/dist/chunks/studio-wqz6dggm.js +1356 -0
- package/dist/chunks/{studio-92ab2jqe.js → studio-y9zedyjn.js} +14 -14
- package/dist/chunks/studio-yxa81f45.js +12 -0
- package/dist/chunks/studio-zdn2g6dt.js +148 -0
- package/dist/chunks/swatch-group-t0n6h2rn.js +139 -0
- package/dist/chunks/tabs-wbp1cdws.js +156 -0
- package/dist/chunks/textfield-abk6qyee.js +73 -0
- package/dist/chunks/toast-780pvfbv.js +27 -0
- package/dist/chunks/toast-host-3sqv46sn.js +116 -0
- package/dist/chunks/toolbar-xbh5bhtr.js +194 -0
- package/dist/chunks/tooltip-eptb614w.js +369 -0
- package/dist/chunks/tree-a73p0pqm.js +367 -0
- package/dist/chunks/{tsMode-76kr53q0.js → tsMode-jy4m86rv.js} +83 -85
- package/dist/chunks/workspace-t55jdjbx.js +69 -0
- package/dist/chunks/{ws-client-6shc5rze.js → ws-client-ny4zc51r.js} +20 -22
- package/dist/iframe-entry.js +1873 -673
- package/dist/studio.js +52757 -36535
- package/dist/workers/editor.worker.js +1040 -1085
- package/dist/workers/json.worker.js +1946 -1991
- package/dist/workers/ts.worker.js +4960 -5005
- package/index.html +1 -0
- package/package.json +18 -52
- package/src/about/about-modal.ts +72 -123
- package/src/browse/library-commands.ts +20 -49
- package/src/browse/library-layouts.ts +87 -218
- package/src/browse/library-pane.ts +406 -438
- package/src/canvas/canvas-helpers.ts +0 -49
- package/src/canvas/canvas-live-render.ts +25 -2
- package/src/canvas/canvas-render.ts +666 -231
- package/src/canvas/canvas-surface.ts +0 -1
- package/src/canvas/canvas-utils.ts +333 -113
- package/src/canvas/dialog-path.ts +76 -0
- package/src/canvas/dialog-state.ts +67 -0
- package/src/canvas/diff-marks.ts +252 -0
- package/src/canvas/diff-toolbar.ts +349 -0
- package/src/canvas/diff-view.ts +123 -0
- package/src/canvas/edit-width-drag.ts +187 -0
- package/src/canvas/edit-width.ts +150 -0
- package/src/canvas/iframe-entry.ts +125 -8
- package/src/canvas/iframe-host.ts +271 -15
- package/src/canvas/iframe-interaction.ts +133 -13
- package/src/canvas/iframe-patch.ts +7 -1
- package/src/canvas/iframe-position.ts +5 -6
- package/src/canvas/iframe-protocol.ts +106 -5
- package/src/canvas/iframe-render.ts +373 -5
- package/src/canvas/iframe-slash.ts +2 -2
- package/src/canvas/iframe-subtree.ts +5 -8
- package/src/canvas/path-mapping.ts +25 -3
- package/src/canvas/popover-path.ts +106 -0
- package/src/canvas/popover-state.ts +155 -0
- package/src/canvas/surface-registry.ts +21 -10
- package/src/collab/presence-chips.ts +51 -73
- package/src/commands/app-commands.ts +10 -0
- package/src/commands/budget.ts +12 -0
- package/src/commands/command-args.ts +404 -6
- package/src/commands/defaults.ts +44 -14
- package/src/commands/live-context.ts +11 -5
- package/src/commands/reference.ts +12 -2
- package/src/commands/registry.ts +177 -10
- package/src/commands/run-reported.ts +120 -0
- package/src/content/entry-commands.ts +16 -23
- package/src/content/entry-editor.ts +144 -101
- package/src/editor/canvas-slash-bridge.ts +2 -2
- package/src/editor/context-menu.ts +49 -200
- package/src/editor/convert-to-component.ts +42 -82
- package/src/editor/convert-to-repeater.ts +132 -173
- package/src/editor/inline-edit.ts +11 -0
- package/src/editor/shortcuts.ts +76 -49
- package/src/editor/slash-menu.ts +150 -157
- package/src/files/components.ts +39 -0
- package/src/files/file-ops.ts +117 -11
- package/src/files/files.ts +944 -660
- package/src/files/json-layout.ts +474 -0
- package/src/files/serialize-document.ts +8 -1
- package/src/format/convert-file.ts +16 -10
- package/src/format/format-host.ts +50 -1
- package/src/github/github-auth.ts +71 -29
- package/src/github/github-publish.ts +57 -65
- package/src/grid/cell-editors.ts +46 -4
- package/src/grid/cell-popovers.ts +65 -62
- package/src/grid/grid-open.ts +86 -64
- package/src/grid/grid-panel.ts +390 -469
- package/src/grid/redirects-grid.ts +40 -44
- package/src/hosting/layout.ts +2 -0
- package/src/i18n/i18n-commands.ts +137 -62
- package/src/media/media-pane.ts +83 -133
- package/src/new-project/add-repo-modal.ts +125 -176
- package/src/new-project/import-tab.ts +181 -252
- package/src/new-project/location-fields.ts +93 -160
- package/src/new-project/new-project-modal.ts +376 -367
- package/src/packages/jxsuite-update.ts +76 -18
- package/src/packages/pull-package-sync.ts +5 -1
- package/src/panels/activity-panel.ts +137 -104
- package/src/panels/ai-chat/chat-markdown.ts +15 -13
- package/src/panels/ai-chat/chat-view.ts +307 -472
- package/src/panels/ai-chat/composer.ts +175 -163
- package/src/panels/ai-chat/sessions-view.ts +31 -62
- package/src/panels/ai-panel.ts +213 -185
- package/src/panels/block-action-bar.ts +444 -645
- package/src/panels/bottom-dock.ts +112 -47
- package/src/panels/chat-panel.ts +19 -14
- package/src/panels/data-explorer.ts +141 -102
- package/src/panels/data-grid.ts +183 -150
- package/src/panels/dnd.ts +75 -20
- package/src/panels/editors.ts +26 -19
- package/src/panels/elements-panel.ts +243 -186
- package/src/panels/empty-state.ts +26 -42
- package/src/panels/events-panel.ts +950 -729
- package/src/panels/formula-workspace.ts +434 -207
- package/src/panels/frontmatter-fields.ts +185 -153
- package/src/panels/frontmatter-panel.ts +411 -187
- package/src/panels/git-diff-open.ts +148 -0
- package/src/panels/git-panel.ts +679 -605
- package/src/panels/head-panel.ts +617 -435
- package/src/panels/i18n-panel.ts +148 -135
- package/src/panels/imports-panel.ts +388 -414
- package/src/panels/jump-bar.ts +175 -147
- package/src/panels/layers-panel.ts +785 -671
- package/src/panels/left-panel.ts +166 -94
- package/src/panels/navigator-panels.ts +1 -1
- package/src/panels/pane-context.ts +529 -677
- package/src/panels/pane-grid.ts +265 -241
- package/src/panels/panel-registry.ts +15 -4
- package/src/panels/problems-panel.ts +181 -99
- package/src/panels/properties-panel.ts +1525 -966
- package/src/panels/provenance.ts +31 -113
- package/src/panels/quick-search.ts +223 -184
- package/src/panels/right-panel.ts +135 -169
- package/src/panels/seo-modal.ts +346 -167
- package/src/panels/settings-menu.ts +114 -661
- package/src/panels/settings-pane.ts +102 -86
- package/src/panels/signals-panel.ts +1318 -1172
- package/src/panels/statement-editor.ts +556 -428
- package/src/panels/style-panel.ts +1367 -630
- package/src/panels/style-utils.ts +36 -32
- package/src/panels/stylebook-doc.ts +30 -73
- package/src/panels/stylebook-layers-panel.ts +202 -109
- package/src/panels/stylebook-panel.ts +124 -88
- package/src/panels/tab-strip.ts +386 -288
- package/src/platforms/cloud.ts +106 -16
- package/src/platforms/devserver.ts +13 -0
- package/src/publish/deploy-checklist.ts +124 -78
- package/src/publish/publish-commands.ts +4 -12
- package/src/publish/publish-panel.ts +134 -328
- package/src/services/a11y-report.ts +100 -43
- package/src/services/ai-command-tools.ts +538 -0
- package/src/services/ai-project-tools.ts +8 -2
- package/src/services/ai-session-store.ts +6 -0
- package/src/services/ai-system-prompt.ts +112 -24
- package/src/services/ai-tools.ts +36 -212
- package/src/services/ai-write-report.ts +174 -0
- package/src/services/document-assistant.ts +59 -8
- package/src/services/idle.ts +16 -14
- package/src/services/live-surfaces.ts +237 -0
- package/src/services/model-uri.ts +75 -0
- package/src/services/notify.ts +63 -6
- package/src/services/popover-report.ts +325 -0
- package/src/services/surface-registry.ts +56 -0
- package/src/services/tool-executor.ts +6 -0
- package/src/settings/contexts-section.ts +301 -299
- package/src/settings/contributed-section.ts +361 -222
- package/src/settings/css-vars-editor.ts +320 -325
- package/src/settings/defs-editor.ts +572 -535
- package/src/settings/dependencies-editor.ts +79 -107
- package/src/settings/extension-commands.ts +379 -0
- package/src/settings/extension-rows.ts +113 -0
- package/src/settings/extensions-section.ts +287 -0
- package/src/settings/general-settings.ts +130 -181
- package/src/settings/head-editor.ts +10 -305
- package/src/settings/locales-section.ts +146 -196
- package/src/settings/preferences-accounts.ts +1 -1
- package/src/settings/preferences-dialog.ts +350 -330
- package/src/settings/project-sections.ts +108 -181
- package/src/settings/schema-field-ui.ts +11 -399
- package/src/settings/section-registry.ts +8 -1
- package/src/settings/settings-document.ts +31 -29
- package/src/shell/tree.ts +42 -87
- package/src/shell.ts +48 -36
- package/src/studio.ts +104 -69
- package/src/style/token-ref.ts +0 -39
- package/src/surfaces/about.json +263 -0
- package/src/surfaces/about.ts +163 -0
- package/src/surfaces/add-repo.json +486 -0
- package/src/surfaces/add-repo.ts +236 -0
- package/src/surfaces/ai-chat.json +2185 -0
- package/src/surfaces/ai-chat.ts +549 -0
- package/src/surfaces/ai-credentials-form.json +332 -0
- package/src/surfaces/ai-credentials-form.ts +151 -0
- package/src/surfaces/ai-managed-connect.json +108 -0
- package/src/surfaces/ai-managed-connect.ts +123 -0
- package/src/surfaces/ai-model-picker.json +114 -0
- package/src/surfaces/ai-model-picker.ts +139 -0
- package/src/surfaces/block-action-bar.json +640 -0
- package/src/surfaces/block-action-bar.ts +368 -0
- package/src/surfaces/bottom-dock.json +154 -0
- package/src/surfaces/bottom-dock.ts +125 -0
- package/src/surfaces/canvas-stage.json +444 -0
- package/src/surfaces/canvas-stage.ts +253 -0
- package/src/surfaces/cf-account-picker.json +300 -0
- package/src/surfaces/cf-account-picker.ts +214 -0
- package/src/surfaces/commandbar.json +985 -0
- package/src/{panels/toolbar.ts → surfaces/commandbar.ts} +417 -391
- package/src/surfaces/convert-repeater.json +309 -0
- package/src/surfaces/convert-repeater.ts +276 -0
- package/src/surfaces/data-actions.json +157 -0
- package/src/surfaces/data-actions.ts +115 -0
- package/src/surfaces/dialog.json +289 -0
- package/src/surfaces/dialog.ts +343 -0
- package/src/surfaces/diff-toolbar.json +266 -0
- package/src/surfaces/diff-toolbar.ts +139 -0
- package/src/surfaces/doc-header.json +739 -0
- package/src/surfaces/doc-header.ts +223 -0
- package/src/surfaces/empty-state.json +152 -0
- package/src/surfaces/empty-state.ts +173 -0
- package/src/surfaces/entry-editor.json +281 -0
- package/src/surfaces/entry-editor.ts +191 -0
- package/src/surfaces/expression-editor.json +977 -0
- package/src/surfaces/expression-editor.ts +266 -0
- package/src/surfaces/files-panel.json +592 -0
- package/src/surfaces/files-panel.ts +301 -0
- package/src/surfaces/formula-palette.json +364 -0
- package/src/surfaces/formula-palette.ts +340 -0
- package/src/surfaces/git-panel.json +1822 -0
- package/src/surfaces/git-panel.ts +272 -0
- package/src/surfaces/github-auth.json +112 -0
- package/src/surfaces/github-auth.ts +139 -0
- package/src/surfaces/github-publish.json +206 -0
- package/src/surfaces/github-publish.ts +169 -0
- package/src/surfaces/grid-cell.json +218 -0
- package/src/surfaces/grid-cell.ts +120 -0
- package/src/surfaces/grid-open.json +147 -0
- package/src/surfaces/grid-open.ts +87 -0
- package/src/surfaces/grid-panel.json +706 -0
- package/src/surfaces/grid-panel.ts +206 -0
- package/src/surfaces/grid-replace.json +179 -0
- package/src/surfaces/grid-replace.ts +89 -0
- package/src/surfaces/grid-views.json +446 -0
- package/src/surfaces/grid-views.ts +172 -0
- package/src/surfaces/inspector-dock.json +187 -0
- package/src/surfaces/inspector-dock.ts +161 -0
- package/src/surfaces/jump-bar.json +243 -0
- package/src/surfaces/jump-bar.ts +129 -0
- package/src/surfaces/jxsuite-update.json +146 -0
- package/src/surfaces/jxsuite-update.ts +149 -0
- package/src/surfaces/library-pane.json +1509 -0
- package/src/surfaces/library-pane.ts +363 -0
- package/src/surfaces/logic-panel.json +1949 -0
- package/src/surfaces/logic-panel.ts +369 -0
- package/src/surfaces/logic-workspace.json +685 -0
- package/src/surfaces/logic-workspace.ts +238 -0
- package/src/surfaces/media-browser.json +303 -0
- package/src/surfaces/media-browser.ts +145 -0
- package/src/surfaces/media-field.json +163 -0
- package/src/surfaces/media-field.ts +116 -0
- package/src/surfaces/media-pane.json +513 -0
- package/src/surfaces/media-pane.ts +197 -0
- package/src/surfaces/menu.json +232 -0
- package/src/surfaces/menu.ts +375 -0
- package/src/surfaces/navigator-dock.json +113 -0
- package/src/surfaces/navigator-dock.ts +130 -0
- package/src/surfaces/new-project.json +1654 -0
- package/src/surfaces/new-project.ts +411 -0
- package/src/surfaces/palette.json +535 -0
- package/src/surfaces/pane-context.json +1497 -0
- package/src/surfaces/pane-context.ts +513 -0
- package/src/surfaces/pane-grid.json +188 -0
- package/src/surfaces/pane-grid.ts +250 -0
- package/src/surfaces/panel-activity.json +563 -0
- package/src/surfaces/panel-activity.ts +187 -0
- package/src/surfaces/panel-data.json +141 -0
- package/src/surfaces/panel-data.ts +156 -0
- package/src/surfaces/panel-deploy-checklist.json +283 -0
- package/src/surfaces/panel-deploy-checklist.ts +175 -0
- package/src/surfaces/panel-elements.json +367 -0
- package/src/surfaces/panel-elements.ts +175 -0
- package/src/surfaces/panel-i18n.json +569 -0
- package/src/surfaces/panel-i18n.ts +212 -0
- package/src/surfaces/panel-imports.json +780 -0
- package/src/surfaces/panel-imports.ts +209 -0
- package/src/surfaces/panel-outline.json +734 -0
- package/src/surfaces/panel-outline.ts +326 -0
- package/src/surfaces/panel-page.json +1017 -0
- package/src/surfaces/panel-page.ts +240 -0
- package/src/surfaces/panel-problems.json +497 -0
- package/src/surfaces/panel-problems.ts +157 -0
- package/src/surfaces/panel-signals.json +1973 -0
- package/src/surfaces/panel-signals.ts +436 -0
- package/src/surfaces/panel-stylebook-layers.json +317 -0
- package/src/surfaces/panel-stylebook-layers.ts +155 -0
- package/src/surfaces/preferences.json +850 -0
- package/src/surfaces/preferences.ts +332 -0
- package/src/surfaces/progress-modal.json +110 -0
- package/src/surfaces/progress-modal.ts +150 -0
- package/src/surfaces/properties-panel.json +1578 -0
- package/src/surfaces/properties-panel.ts +337 -0
- package/src/surfaces/publish.json +945 -0
- package/src/surfaces/publish.ts +392 -0
- package/src/surfaces/push-plan.json +110 -0
- package/src/surfaces/push-plan.ts +87 -0
- package/src/surfaces/rail.json +255 -0
- package/src/surfaces/rail.ts +206 -0
- package/src/surfaces/reference-field.json +191 -0
- package/src/surfaces/reference-field.ts +168 -0
- package/src/surfaces/schema-builder.json +1011 -0
- package/src/surfaces/schema-builder.ts +181 -0
- package/src/surfaces/schema-form.json +1013 -0
- package/src/surfaces/schema-form.ts +287 -0
- package/src/surfaces/secret-field.json +60 -0
- package/src/surfaces/secret-field.ts +146 -0
- package/src/surfaces/seo.json +932 -0
- package/src/surfaces/seo.ts +334 -0
- package/src/surfaces/settings-contexts.json +538 -0
- package/src/surfaces/settings-contexts.ts +196 -0
- package/src/surfaces/settings-contributed.json +489 -0
- package/src/surfaces/settings-contributed.ts +199 -0
- package/src/surfaces/settings-css-vars.json +820 -0
- package/src/surfaces/settings-css-vars.ts +199 -0
- package/src/surfaces/settings-defs.json +1363 -0
- package/src/surfaces/settings-defs.ts +232 -0
- package/src/surfaces/settings-deploy.json +108 -0
- package/src/surfaces/settings-deploy.ts +135 -0
- package/src/surfaces/settings-extensions.json +486 -0
- package/src/surfaces/settings-extensions.ts +201 -0
- package/src/surfaces/settings-head.json +779 -0
- package/src/surfaces/settings-head.ts +397 -0
- package/src/surfaces/settings-locales.json +420 -0
- package/src/surfaces/settings-locales.ts +137 -0
- package/src/surfaces/settings-overview.json +423 -0
- package/src/surfaces/settings-overview.ts +218 -0
- package/src/surfaces/settings-packages.json +549 -0
- package/src/surfaces/settings-packages.ts +158 -0
- package/src/surfaces/settings-pane.json +147 -0
- package/src/surfaces/settings-pane.ts +150 -0
- package/src/surfaces/settings-rawjson.json +104 -0
- package/src/surfaces/settings-rawjson.ts +107 -0
- package/src/surfaces/shell.json +99 -0
- package/src/surfaces/shell.ts +30 -0
- package/src/surfaces/slash-menu.json +180 -0
- package/src/surfaces/slash-menu.ts +272 -0
- package/src/surfaces/statements.json +607 -0
- package/src/surfaces/statements.ts +238 -0
- package/src/surfaces/statusbar.json +94 -0
- package/src/{panels → surfaces}/statusbar.ts +164 -90
- package/src/surfaces/style-panel.json +1643 -0
- package/src/surfaces/style-panel.ts +338 -0
- package/src/surfaces/stylebook-chrome.json +122 -0
- package/src/surfaces/stylebook-chrome.ts +122 -0
- package/src/surfaces/tab-strip.json +448 -0
- package/src/surfaces/tab-strip.ts +200 -0
- package/src/surfaces/target-line.json +419 -0
- package/src/surfaces/target-line.ts +349 -0
- package/src/surfaces/toasts.json +189 -0
- package/src/surfaces/welcome.json +571 -0
- package/src/surfaces/welcome.ts +338 -0
- package/src/tabs/project-config.ts +111 -21
- package/src/tabs/tab.ts +52 -1
- package/src/types.ts +22 -0
- package/src/ui/ai-credentials-form.ts +104 -100
- package/src/ui/ai-managed-connect.ts +54 -36
- package/src/ui/ai-model-picker.ts +75 -47
- package/src/ui/cf-account-picker.ts +76 -141
- package/src/ui/color-selector.ts +80 -301
- package/src/ui/dynamic-slot.ts +43 -283
- package/src/ui/expression-editor.ts +797 -576
- package/src/ui/field-input.ts +8 -181
- package/src/ui/form-controls.ts +838 -366
- package/src/ui/formula-chips.ts +80 -85
- package/src/ui/kit.ts +33 -0
- package/src/ui/layers.ts +296 -593
- package/src/ui/media-picker.ts +203 -284
- package/src/ui/panel-resize.ts +251 -64
- package/src/ui/popover-surface.ts +153 -0
- package/src/ui/progress-modal.ts +22 -60
- package/src/ui/regions.ts +13 -7
- package/src/ui/schema-form.ts +906 -440
- package/src/ui/surface.ts +122 -0
- package/src/ui/unit-selector.ts +15 -131
- package/src/ui/value-source.ts +14 -0
- package/src/ui/virtual-window.ts +88 -9
- package/src/utils/canvas-media.ts +72 -0
- package/src/utils/edit-display.ts +7 -2
- package/src/utils/element-selectors.ts +69 -0
- package/src/utils/link-target.ts +2 -2
- package/src/utils/studio-utils.ts +0 -10
- package/src/view.ts +15 -0
- package/src/workspace/pane-derive.ts +36 -14
- package/src/workspace/workspace.ts +75 -6
- package/styles/canvas.css +72 -467
- package/styles/forced-colors.css +48 -82
- package/styles/forced-colors.json +41 -0
- package/styles/inspector.css +2 -1301
- package/styles/overlays.css +96 -2823
- package/styles/panels.css +6 -1423
- package/styles/shell-frame.css +272 -0
- package/styles/shell-frame.json +227 -0
- package/styles/shell.css +0 -1568
- package/styles/tokens.css +65 -136
- package/styles/tokens.json +84 -0
- package/dist/chunks/Overlay.dev-etqjwyf9.js +0 -23
- package/dist/chunks/adapter-jkcyhgtr.js +0 -14
- package/dist/chunks/cf-account-picker-en86v7x7.js +0 -163
- package/dist/chunks/cf-settings-45fgyx8y.js +0 -21
- package/dist/chunks/components-zmx10t62.js +0 -21
- package/dist/chunks/content-source-48xg86wj.js +0 -49
- package/dist/chunks/convert-to-repeater-43tfn7cs.js +0 -268
- package/dist/chunks/editor-cptq5jp1.js +0 -37
- package/dist/chunks/entry-commands-e63f1xc0.js +0 -46
- package/dist/chunks/extension-sections-txv08xxg.js +0 -311
- package/dist/chunks/file-ops-wbh4hhsx.js +0 -48
- package/dist/chunks/files-3kfkwhk4.js +0 -93
- package/dist/chunks/flow-qbfgrpeh.js +0 -634
- package/dist/chunks/focus-trap.esm-9t2drp0g.js +0 -1025
- package/dist/chunks/focus-visible-6eg70z18.js +0 -167
- package/dist/chunks/format-host-w16q81tf.js +0 -43
- package/dist/chunks/fs-events-hrrg328g.js +0 -21
- package/dist/chunks/git-panel-532whr1y.js +0 -59
- package/dist/chunks/index-zqxmqxmh.js +0 -109
- package/dist/chunks/jx-validate-8er6gbxy.js +0 -19
- package/dist/chunks/layers-panel-07hm7g5j.js +0 -67
- package/dist/chunks/layers-q75tj2mf.js +0 -45
- package/dist/chunks/lit-html-j055mkh8.js +0 -22
- package/dist/chunks/monaco-buffer-dqw0xxpx.js +0 -25
- package/dist/chunks/notify-yjm79n4s.js +0 -30
- package/dist/chunks/parse-24d0gay3.js +0 -19
- package/dist/chunks/platform-ba1j1gbh.js +0 -16
- package/dist/chunks/publish-panel-v9st96ja.js +0 -29
- package/dist/chunks/quick-search-zccjp6gv.js +0 -66
- package/dist/chunks/references-3qx8fkyp.js +0 -29
- package/dist/chunks/right-panel-vm3b6kwy.js +0 -46
- package/dist/chunks/section-registry-sx1ykvkw.js +0 -30
- package/dist/chunks/sp-overlay.dev-qgvhnxf4.js +0 -18
- package/dist/chunks/sp-popover.dev-n2etmqdp.js +0 -9
- package/dist/chunks/sp-progress-circle.dev-hryhj0es.js +0 -15
- package/dist/chunks/sp-tooltip.dev-4sastdnw.js +0 -15
- package/dist/chunks/sp-tray.dev-tkbscm06.js +0 -199
- package/dist/chunks/studio-0a5qrh01.js +0 -3
- package/dist/chunks/studio-0bq6eh7v.js +0 -12
- package/dist/chunks/studio-18j3bmcz.js +0 -14
- package/dist/chunks/studio-1ngbejft.js +0 -181
- package/dist/chunks/studio-4b5z1x43.js +0 -424
- package/dist/chunks/studio-4n2b5gzb.js +0 -357
- package/dist/chunks/studio-4rzyrtjz.js +0 -426
- package/dist/chunks/studio-5fx3g9jg.js +0 -4325
- package/dist/chunks/studio-5myknm0a.js +0 -1903
- package/dist/chunks/studio-7afd21nw.js +0 -67
- package/dist/chunks/studio-7nte2hj4.js +0 -613
- package/dist/chunks/studio-8jpzqk5s.js +0 -128
- package/dist/chunks/studio-8q517dfr.js +0 -24
- package/dist/chunks/studio-950k0dx6.js +0 -6939
- package/dist/chunks/studio-9n4mrmnb.js +0 -184
- package/dist/chunks/studio-a0tswy0w.js +0 -58
- package/dist/chunks/studio-ahnzd9rg.js +0 -23
- package/dist/chunks/studio-bgxt93ga.js +0 -62
- package/dist/chunks/studio-cmb03bg5.js +0 -13890
- package/dist/chunks/studio-d1ks410h.js +0 -175
- package/dist/chunks/studio-ef49pnzx.js +0 -387
- package/dist/chunks/studio-eqq1w638.js +0 -113
- package/dist/chunks/studio-ew0djmhg.js +0 -341
- package/dist/chunks/studio-gfgb8pe6.js +0 -1652
- package/dist/chunks/studio-h4rxscfc.js +0 -10
- package/dist/chunks/studio-jc994dnr.js +0 -1066
- package/dist/chunks/studio-kyh9avvv.js +0 -28
- package/dist/chunks/studio-m3hwn7y1.js +0 -120
- package/dist/chunks/studio-mtfnaqs9.js +0 -659
- package/dist/chunks/studio-n6j9t10q.js +0 -318
- package/dist/chunks/studio-n8b9wqwy.js +0 -291
- package/dist/chunks/studio-qcy05dp8.js +0 -1743
- package/dist/chunks/studio-qq6jym04.js +0 -53
- package/dist/chunks/studio-rdx8jcxy.js +0 -83
- package/dist/chunks/studio-rn9ta2mz.js +0 -111
- package/dist/chunks/studio-t7qb9db8.js +0 -665
- package/dist/chunks/studio-tmc5emrw.js +0 -8
- package/dist/chunks/studio-z6nw2ek2.js +0 -18
- package/dist/chunks/studio-zczps70q.js +0 -378
- package/dist/chunks/studio-zqazsct2.js +0 -1823
- package/dist/chunks/workspace-fjx52ryv.js +0 -89
- package/src/panels/activity-bar.ts +0 -251
- package/src/panels/panel-scheduler.ts +0 -219
- package/src/panels/style-inputs.ts +0 -237
- package/src/panels/target-line.ts +0 -274
- package/src/panels/welcome-screen.ts +0 -346
- package/src/ui/button-group.ts +0 -102
- package/src/ui/choice-field.ts +0 -72
- package/src/ui/field-row.ts +0 -249
- package/src/ui/formula-palette.ts +0 -213
- package/src/ui/icons.ts +0 -52
- package/src/ui/jx-theme.ts +0 -130
- package/src/ui/spectrum.ts +0 -340
- package/src/ui/value-selector.ts +0 -174
- package/src/ui/widgets.ts +0 -172
- /package/dist/chunks/{javascript-s56a8dpk.css → javascript-4abzjcy9.css} +0 -0
- /package/dist/chunks/{jsonMode-zr9sw0c7.css → jsonMode-vvmpmk34.css} +0 -0
- /package/dist/chunks/{monaco-setup-pav68602.css → monaco-setup-8vbyqnhr.css} +0 -0
- /package/dist/chunks/{tsMode-ef187txx.css → tsMode-hnxxb73h.css} +0 -0
|
@@ -0,0 +1,1822 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://jxsuite.com/schema/v1",
|
|
3
|
+
"$id": "StudioPanelGit",
|
|
4
|
+
"$description": "The Navigator's Source Control panel: what git says about this project, and every verb that answers. It has four moods and the adapter names which one — no project, a first read still in flight, a project git is not tracking yet, and a repository — so nothing here asks whether `status` is null or what `isRepo` means. Under the fourth mood it draws the sync bar (with or without a remote), the branch row, the two sub-tabs, and then either the commit form over the changed files or the log. `panels/git-panel.ts` keeps every decision: what a comparison is, which files group under which component, what a status letter reads aloud, what a commit does before it runs, and which of the four verbs a row's buttons are. Rows arrive as strings and booleans, keyed by path.",
|
|
5
|
+
"tagName": "div",
|
|
6
|
+
"attributes": {
|
|
7
|
+
"part": "git-panel"
|
|
8
|
+
},
|
|
9
|
+
"style": {
|
|
10
|
+
"$description": "The sixty-odd `.git-*` rules in `styles/overlays.css`, keyed on `part` and carried here. Four token repairs travel with them, all of the shape `surfaces/panel-imports.json` describes: `--spectrum-font-size-75` and `--spectrum-font-size-50` resolved only inside `<sp-theme>` and a document is mounted outside it, so every rule that read one would silently have taken its px fallback — they are `--jx-text-md` (12px) and `--jx-text-sm` (11px) here, at the same values, and the bare `10px` literals are `--jx-text-xs`. The one deliberate move is the two headline values, the sync label and the branch name: they were 13px, which is not a step on the scale, and they take `--jx-text-lg` (14px). Three rules are DELETED rather than moved, because the kit already draws them: the sub-tab strip's own fill, hover and selected underline are `jx-tabs`/`jx-tab`, the branch picker's box is `jx-select`, and `.git-split-btn`'s hand-built dropdown is the kit menu (see `openCommitMenu`). And one is repaired: a row's action buttons were `opacity: 0` until the ROW was hovered, so tabbing to Stage moved the keyboard onto an invisible control — the reveal is `:focus-within` as well as `:hover`.",
|
|
11
|
+
"display": "flex",
|
|
12
|
+
"flexDirection": "column",
|
|
13
|
+
"height": "100%",
|
|
14
|
+
"fontFamily": "var(--jx-font-sans)",
|
|
15
|
+
"fontSize": "var(--jx-text-md)",
|
|
16
|
+
"color": "var(--fg)",
|
|
17
|
+
"& [part=\"empty\"]": {
|
|
18
|
+
"$description": "Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (§11): one sentence saying what the region is for, then the action that fills it.",
|
|
19
|
+
"display": "flex",
|
|
20
|
+
"flex": "1",
|
|
21
|
+
"flexDirection": "column",
|
|
22
|
+
"alignItems": "center",
|
|
23
|
+
"justifyContent": "center",
|
|
24
|
+
"gap": "var(--jx-space-3)",
|
|
25
|
+
"padding": "var(--jx-space-5)",
|
|
26
|
+
"textAlign": "center",
|
|
27
|
+
"color": "var(--fg-dim)"
|
|
28
|
+
},
|
|
29
|
+
"& [part=\"empty-message\"]": {
|
|
30
|
+
"margin": "0",
|
|
31
|
+
"maxWidth": "34ch",
|
|
32
|
+
"lineHeight": "1.5"
|
|
33
|
+
},
|
|
34
|
+
"& [part=\"empty-actions\"]": {
|
|
35
|
+
"display": "flex",
|
|
36
|
+
"flexDirection": "column",
|
|
37
|
+
"gap": "var(--jx-space-2)"
|
|
38
|
+
},
|
|
39
|
+
"& [part=\"sync-bar\"]": {
|
|
40
|
+
"display": "flex",
|
|
41
|
+
"alignItems": "center",
|
|
42
|
+
"gap": "var(--jx-space-4)",
|
|
43
|
+
"padding": "var(--jx-space-4)",
|
|
44
|
+
"borderBottom": "1px solid var(--border)"
|
|
45
|
+
},
|
|
46
|
+
"& [part=\"sync-bar\"][data-remote=\"none\"]": {
|
|
47
|
+
"gap": "var(--jx-space-3)"
|
|
48
|
+
},
|
|
49
|
+
"& [part=\"sync-text\"]": {
|
|
50
|
+
"display": "flex",
|
|
51
|
+
"flex": "1",
|
|
52
|
+
"flexDirection": "column",
|
|
53
|
+
"gap": "1px",
|
|
54
|
+
"minWidth": "0"
|
|
55
|
+
},
|
|
56
|
+
"& [part=\"sync-label\"]": {
|
|
57
|
+
"fontSize": "var(--jx-text-lg)",
|
|
58
|
+
"fontWeight": "600",
|
|
59
|
+
"color": "var(--fg)"
|
|
60
|
+
},
|
|
61
|
+
"& [part=\"sync-time\"]": {
|
|
62
|
+
"fontSize": "var(--jx-text-sm)",
|
|
63
|
+
"color": "var(--fg-dim)"
|
|
64
|
+
},
|
|
65
|
+
"& [part=\"sync-actions\"]": {
|
|
66
|
+
"display": "flex",
|
|
67
|
+
"flex": "none",
|
|
68
|
+
"marginLeft": "auto"
|
|
69
|
+
},
|
|
70
|
+
"& [part=\"branch-row\"]": {
|
|
71
|
+
"display": "flex",
|
|
72
|
+
"alignItems": "center",
|
|
73
|
+
"gap": "var(--jx-space-4)",
|
|
74
|
+
"padding": "10px var(--jx-space-4)",
|
|
75
|
+
"borderBottom": "1px solid var(--border)"
|
|
76
|
+
},
|
|
77
|
+
"& [part=\"branch-icon\"]": {
|
|
78
|
+
"$description": "The hand-drawn 18px branch SVG this panel carried is the kit's `git-branch` glyph — the same key `PanelRecord.icon` already names for this panel's rail button, so the two drawings cannot drift.",
|
|
79
|
+
"flex": "none",
|
|
80
|
+
"--jx-icon-size": "18px",
|
|
81
|
+
"color": "var(--fg-dim)"
|
|
82
|
+
},
|
|
83
|
+
"& [part=\"branch-text\"]": {
|
|
84
|
+
"display": "flex",
|
|
85
|
+
"flex": "1",
|
|
86
|
+
"flexDirection": "column",
|
|
87
|
+
"gap": "1px",
|
|
88
|
+
"minWidth": "0"
|
|
89
|
+
},
|
|
90
|
+
"& [part=\"branch-label\"]": {
|
|
91
|
+
"fontSize": "var(--jx-text-sm)",
|
|
92
|
+
"color": "var(--fg-dim)"
|
|
93
|
+
},
|
|
94
|
+
"& [part=\"branch-name\"]": {
|
|
95
|
+
"overflow": "hidden",
|
|
96
|
+
"fontSize": "var(--jx-text-lg)",
|
|
97
|
+
"fontWeight": "600",
|
|
98
|
+
"color": "var(--fg)",
|
|
99
|
+
"textOverflow": "ellipsis",
|
|
100
|
+
"whiteSpace": "nowrap"
|
|
101
|
+
},
|
|
102
|
+
"& [part=\"branch-picker\"]": {
|
|
103
|
+
"flex": "none",
|
|
104
|
+
"maxWidth": "40%"
|
|
105
|
+
},
|
|
106
|
+
"& [part=\"commit\"]": {
|
|
107
|
+
"display": "flex",
|
|
108
|
+
"flexDirection": "column",
|
|
109
|
+
"gap": "var(--jx-space-3)",
|
|
110
|
+
"padding": "var(--jx-space-4)",
|
|
111
|
+
"borderBottom": "1px solid var(--border)"
|
|
112
|
+
},
|
|
113
|
+
"& [part=\"commit-label\"]": {
|
|
114
|
+
"fontWeight": "500",
|
|
115
|
+
"color": "var(--fg-dim)"
|
|
116
|
+
},
|
|
117
|
+
"& [part=\"commit-actions\"]": {
|
|
118
|
+
"display": "flex",
|
|
119
|
+
"gap": "var(--jx-space-2)"
|
|
120
|
+
},
|
|
121
|
+
"& [part=\"commit-button\"]": {
|
|
122
|
+
"flex": "1"
|
|
123
|
+
},
|
|
124
|
+
"& [part=\"section\"]": {
|
|
125
|
+
"borderBottom": "1px solid var(--border)"
|
|
126
|
+
},
|
|
127
|
+
"& [part=\"section-header\"]": {
|
|
128
|
+
"display": "flex",
|
|
129
|
+
"alignItems": "center",
|
|
130
|
+
"gap": "var(--jx-space-3)",
|
|
131
|
+
"padding": "var(--jx-space-3) var(--jx-space-4) 6px",
|
|
132
|
+
"fontWeight": "700",
|
|
133
|
+
"color": "var(--fg)"
|
|
134
|
+
},
|
|
135
|
+
"& [part=\"count\"]": {
|
|
136
|
+
"$description": "The pill beside a section title. `margin-inline-end: auto` is what pushes the section's own button to the right edge — it was a second rule (`.git-section-header .git-count`) over the same element, and there is only one place a count is drawn.",
|
|
137
|
+
"display": "inline-flex",
|
|
138
|
+
"alignItems": "center",
|
|
139
|
+
"justifyContent": "center",
|
|
140
|
+
"minWidth": "18px",
|
|
141
|
+
"height": "18px",
|
|
142
|
+
"marginInlineEnd": "auto",
|
|
143
|
+
"padding": "0 5px",
|
|
144
|
+
"borderRadius": "9px",
|
|
145
|
+
"background": "var(--accent-15)",
|
|
146
|
+
"color": "var(--accent)",
|
|
147
|
+
"fontSize": "var(--jx-text-xs)",
|
|
148
|
+
"fontWeight": "600"
|
|
149
|
+
},
|
|
150
|
+
"& [part=\"group\"]": {
|
|
151
|
+
"marginBottom": "var(--jx-space-1)"
|
|
152
|
+
},
|
|
153
|
+
"& [part=\"group-header\"]": {
|
|
154
|
+
"display": "flex",
|
|
155
|
+
"alignItems": "center",
|
|
156
|
+
"gap": "6px",
|
|
157
|
+
"padding": "var(--jx-space-2) var(--jx-space-3)"
|
|
158
|
+
},
|
|
159
|
+
"& [part=\"group-name\"]": {
|
|
160
|
+
"fontWeight": "500",
|
|
161
|
+
"color": "var(--fg)"
|
|
162
|
+
},
|
|
163
|
+
"& [part=\"file-row\"]": {
|
|
164
|
+
"display": "flex",
|
|
165
|
+
"alignItems": "center",
|
|
166
|
+
"gap": "var(--jx-space-2)",
|
|
167
|
+
"padding": "var(--jx-space-1) var(--jx-space-3) var(--jx-space-1) var(--jx-space-5)"
|
|
168
|
+
},
|
|
169
|
+
"& [part=\"file-row\"]:hover": {
|
|
170
|
+
"background": "var(--hover-bg)"
|
|
171
|
+
},
|
|
172
|
+
"& [part=\"file-open\"]": {
|
|
173
|
+
"$description": "A REAL button, because it does something. It was a bare span with a cursor and a `title`: not focusable, no role, and Enter did nothing — so the panel's primary verb was mouse-only. A `<button>` needs no role, no tabindex and no key handler of its own, which is three lines of the old row that simply go.",
|
|
174
|
+
"display": "flex",
|
|
175
|
+
"flex": "1",
|
|
176
|
+
"alignItems": "baseline",
|
|
177
|
+
"gap": "6px",
|
|
178
|
+
"minWidth": "0",
|
|
179
|
+
"margin": "0",
|
|
180
|
+
"padding": "0",
|
|
181
|
+
"overflow": "hidden",
|
|
182
|
+
"border": "none",
|
|
183
|
+
"borderRadius": "var(--radius)",
|
|
184
|
+
"background": "none",
|
|
185
|
+
"color": "inherit",
|
|
186
|
+
"font": "inherit",
|
|
187
|
+
"textAlign": "left",
|
|
188
|
+
"cursor": "pointer",
|
|
189
|
+
":focus-visible": {
|
|
190
|
+
"outline": "var(--jx-focus-ring)",
|
|
191
|
+
"outlineOffset": "-2px"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"& [part=\"file-name\"]": {
|
|
195
|
+
"overflow": "hidden",
|
|
196
|
+
"textOverflow": "ellipsis",
|
|
197
|
+
"whiteSpace": "nowrap"
|
|
198
|
+
},
|
|
199
|
+
"& [part=\"file-dir\"]": {
|
|
200
|
+
"overflow": "hidden",
|
|
201
|
+
"color": "var(--fg-dim)",
|
|
202
|
+
"fontSize": "var(--jx-text-xs)",
|
|
203
|
+
"textOverflow": "ellipsis",
|
|
204
|
+
"whiteSpace": "nowrap"
|
|
205
|
+
},
|
|
206
|
+
"& [part=\"file-actions\"]": {
|
|
207
|
+
"$description": "Revealed on `:focus-within` as well as on the row's hover. Opacity alone hid a control the keyboard could still reach: tabbing through a changed file landed on an invisible Stage button.",
|
|
208
|
+
"display": "flex",
|
|
209
|
+
"flex": "none",
|
|
210
|
+
"opacity": "0"
|
|
211
|
+
},
|
|
212
|
+
"& [part=\"file-row\"]:hover [part=\"file-actions\"], & [part=\"file-actions\"]:focus-within": {
|
|
213
|
+
"opacity": "1"
|
|
214
|
+
},
|
|
215
|
+
"& [part=\"badge\"]": {
|
|
216
|
+
"$description": "One letter and a colour, which is why every row's open button carries the status in words as well.",
|
|
217
|
+
"flex": "none",
|
|
218
|
+
"width": "16px",
|
|
219
|
+
"color": "var(--signal)",
|
|
220
|
+
"fontFamily": "var(--font-mono)",
|
|
221
|
+
"fontSize": "var(--jx-text-xs)",
|
|
222
|
+
"fontWeight": "700",
|
|
223
|
+
"textAlign": "center"
|
|
224
|
+
},
|
|
225
|
+
"& [part=\"badge\"][data-status=\"A\"], & [part=\"badge\"][data-status=\"U\"]": {
|
|
226
|
+
"color": "var(--success)"
|
|
227
|
+
},
|
|
228
|
+
"& [part=\"badge\"][data-status=\"D\"]": {
|
|
229
|
+
"color": "var(--danger)"
|
|
230
|
+
},
|
|
231
|
+
"& [part=\"badge\"][data-status=\"R\"], & [part=\"badge\"][data-status=\"C\"]": {
|
|
232
|
+
"color": "var(--tag)"
|
|
233
|
+
},
|
|
234
|
+
"& [part=\"history\"]": {
|
|
235
|
+
"flex": "1",
|
|
236
|
+
"overflowY": "auto",
|
|
237
|
+
"padding": "var(--jx-space-2) 0"
|
|
238
|
+
},
|
|
239
|
+
"& [part=\"history-list\"]": {
|
|
240
|
+
"margin": "0",
|
|
241
|
+
"padding": "0",
|
|
242
|
+
"listStyle": "none"
|
|
243
|
+
},
|
|
244
|
+
"& [part=\"history-entry\"]": {
|
|
245
|
+
"display": "flex",
|
|
246
|
+
"flexDirection": "column",
|
|
247
|
+
"gap": "var(--jx-space-1)",
|
|
248
|
+
"padding": "6px var(--jx-space-4)",
|
|
249
|
+
"borderBottom": "1px solid var(--border)"
|
|
250
|
+
},
|
|
251
|
+
"& [part=\"history-entry\"]:hover": {
|
|
252
|
+
"background": "var(--hover-bg)"
|
|
253
|
+
},
|
|
254
|
+
"& [part=\"history-hash\"]": {
|
|
255
|
+
"color": "var(--accent)",
|
|
256
|
+
"fontFamily": "var(--font-mono)",
|
|
257
|
+
"fontSize": "var(--jx-text-xs)"
|
|
258
|
+
},
|
|
259
|
+
"& [part=\"history-message\"]": {
|
|
260
|
+
"color": "var(--fg)"
|
|
261
|
+
},
|
|
262
|
+
"& [part=\"history-meta\"]": {
|
|
263
|
+
"color": "var(--fg-dim)",
|
|
264
|
+
"fontSize": "var(--jx-text-xs)"
|
|
265
|
+
},
|
|
266
|
+
"& [part=\"status\"]": {
|
|
267
|
+
"margin": "0",
|
|
268
|
+
"padding": "var(--jx-space-3)",
|
|
269
|
+
"color": "var(--fg-dim)",
|
|
270
|
+
"fontSize": "var(--jx-text-sm)",
|
|
271
|
+
"textAlign": "center"
|
|
272
|
+
},
|
|
273
|
+
"& [part=\"error\"]": {
|
|
274
|
+
"margin": "0",
|
|
275
|
+
"padding": "6px var(--jx-space-3)",
|
|
276
|
+
"borderBottom": "1px solid var(--border)",
|
|
277
|
+
"background": "color-mix(in srgb, var(--danger) 8%, transparent)",
|
|
278
|
+
"color": "var(--danger)",
|
|
279
|
+
"fontSize": "var(--jx-text-sm)"
|
|
280
|
+
},
|
|
281
|
+
"@(forced-colors: active)": {
|
|
282
|
+
"& [part=\"error\"]": {
|
|
283
|
+
"$description": "The wash behind the banner collapses into the page when every author colour is replaced, so the border is what is left to mark it.",
|
|
284
|
+
"border": "1px solid CanvasText",
|
|
285
|
+
"color": "CanvasText"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"children": [
|
|
290
|
+
{
|
|
291
|
+
"tagName": "div",
|
|
292
|
+
"attributes": {
|
|
293
|
+
"part": "view-slot",
|
|
294
|
+
"role": "none"
|
|
295
|
+
},
|
|
296
|
+
"style": {
|
|
297
|
+
"display": "contents"
|
|
298
|
+
},
|
|
299
|
+
"$switch": {
|
|
300
|
+
"$ref": "#/state/view"
|
|
301
|
+
},
|
|
302
|
+
"cases": {
|
|
303
|
+
"no-project": {
|
|
304
|
+
"tagName": "div",
|
|
305
|
+
"attributes": {
|
|
306
|
+
"part": "empty",
|
|
307
|
+
"data-view": "no-project"
|
|
308
|
+
},
|
|
309
|
+
"children": [
|
|
310
|
+
{
|
|
311
|
+
"tagName": "p",
|
|
312
|
+
"attributes": {
|
|
313
|
+
"part": "empty-message"
|
|
314
|
+
},
|
|
315
|
+
"textContent": "Source control keeps every version of a project, so any change can be undone. Open a project to see its history."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"tagName": "div",
|
|
319
|
+
"attributes": {
|
|
320
|
+
"part": "clone-slot",
|
|
321
|
+
"role": "none"
|
|
322
|
+
},
|
|
323
|
+
"style": {
|
|
324
|
+
"display": "contents"
|
|
325
|
+
},
|
|
326
|
+
"$switch": {
|
|
327
|
+
"$ref": "#/state/canClone"
|
|
328
|
+
},
|
|
329
|
+
"cases": {
|
|
330
|
+
"true": {
|
|
331
|
+
"tagName": "div",
|
|
332
|
+
"attributes": {
|
|
333
|
+
"part": "empty-actions"
|
|
334
|
+
},
|
|
335
|
+
"children": [
|
|
336
|
+
{
|
|
337
|
+
"tagName": "jx-button",
|
|
338
|
+
"attributes": {
|
|
339
|
+
"part": "clone",
|
|
340
|
+
"data-action": "clone"
|
|
341
|
+
},
|
|
342
|
+
"$props": {
|
|
343
|
+
"size": "sm"
|
|
344
|
+
},
|
|
345
|
+
"onclick": {
|
|
346
|
+
"$prototype": "Function",
|
|
347
|
+
"body": [
|
|
348
|
+
{
|
|
349
|
+
"operator": "call",
|
|
350
|
+
"target": {
|
|
351
|
+
"$ref": "#/state/clone"
|
|
352
|
+
},
|
|
353
|
+
"value": []
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
"children": [
|
|
358
|
+
{
|
|
359
|
+
"tagName": "jx-icon",
|
|
360
|
+
"$props": {
|
|
361
|
+
"name": "download-simple"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"tagName": "span",
|
|
366
|
+
"textContent": "Clone Git Repository"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"loading": {
|
|
377
|
+
"tagName": "p",
|
|
378
|
+
"attributes": {
|
|
379
|
+
"part": "status",
|
|
380
|
+
"data-view": "loading"
|
|
381
|
+
},
|
|
382
|
+
"textContent": "Loading…"
|
|
383
|
+
},
|
|
384
|
+
"no-repo": {
|
|
385
|
+
"tagName": "div",
|
|
386
|
+
"attributes": {
|
|
387
|
+
"part": "empty",
|
|
388
|
+
"data-view": "no-repo"
|
|
389
|
+
},
|
|
390
|
+
"children": [
|
|
391
|
+
{
|
|
392
|
+
"tagName": "p",
|
|
393
|
+
"attributes": {
|
|
394
|
+
"part": "empty-message"
|
|
395
|
+
},
|
|
396
|
+
"textContent": "This project is not tracked by git yet. Start tracking it to keep a history of every change and to publish it anywhere."
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"tagName": "div",
|
|
400
|
+
"attributes": {
|
|
401
|
+
"part": "empty-actions"
|
|
402
|
+
},
|
|
403
|
+
"children": [
|
|
404
|
+
{
|
|
405
|
+
"tagName": "jx-button",
|
|
406
|
+
"attributes": {
|
|
407
|
+
"part": "init",
|
|
408
|
+
"data-action": "init"
|
|
409
|
+
},
|
|
410
|
+
"$props": {
|
|
411
|
+
"size": "sm",
|
|
412
|
+
"variant": "accent",
|
|
413
|
+
"disabled": {
|
|
414
|
+
"$ref": "#/state/busy"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"onclick": {
|
|
418
|
+
"$prototype": "Function",
|
|
419
|
+
"body": [
|
|
420
|
+
{
|
|
421
|
+
"operator": "call",
|
|
422
|
+
"target": {
|
|
423
|
+
"$ref": "#/state/initRepository"
|
|
424
|
+
},
|
|
425
|
+
"value": []
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
"children": [
|
|
430
|
+
{
|
|
431
|
+
"tagName": "jx-icon",
|
|
432
|
+
"$props": {
|
|
433
|
+
"name": "plus"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"tagName": "span",
|
|
438
|
+
"textContent": "Initialize Repository"
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"tagName": "jx-button",
|
|
444
|
+
"attributes": {
|
|
445
|
+
"part": "create-repository",
|
|
446
|
+
"data-action": "create-repository"
|
|
447
|
+
},
|
|
448
|
+
"$props": {
|
|
449
|
+
"size": "sm",
|
|
450
|
+
"disabled": {
|
|
451
|
+
"$ref": "#/state/busy"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"onclick": {
|
|
455
|
+
"$prototype": "Function",
|
|
456
|
+
"body": [
|
|
457
|
+
{
|
|
458
|
+
"operator": "call",
|
|
459
|
+
"target": {
|
|
460
|
+
"$ref": "#/state/createRepository"
|
|
461
|
+
},
|
|
462
|
+
"value": []
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
"children": [
|
|
467
|
+
{
|
|
468
|
+
"tagName": "jx-icon",
|
|
469
|
+
"$props": {
|
|
470
|
+
"name": "share-network"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"tagName": "span",
|
|
475
|
+
"textContent": "Create GitHub repository"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"repo": {
|
|
484
|
+
"tagName": "div",
|
|
485
|
+
"attributes": {
|
|
486
|
+
"part": "repo",
|
|
487
|
+
"role": "none"
|
|
488
|
+
},
|
|
489
|
+
"style": {
|
|
490
|
+
"display": "contents"
|
|
491
|
+
},
|
|
492
|
+
"children": [
|
|
493
|
+
{
|
|
494
|
+
"tagName": "div",
|
|
495
|
+
"attributes": {
|
|
496
|
+
"part": "remote-slot",
|
|
497
|
+
"role": "none"
|
|
498
|
+
},
|
|
499
|
+
"style": {
|
|
500
|
+
"display": "contents"
|
|
501
|
+
},
|
|
502
|
+
"$switch": {
|
|
503
|
+
"$ref": "#/state/remoteState"
|
|
504
|
+
},
|
|
505
|
+
"cases": {
|
|
506
|
+
"remote": {
|
|
507
|
+
"tagName": "div",
|
|
508
|
+
"attributes": {
|
|
509
|
+
"part": "sync-bar",
|
|
510
|
+
"data-remote": "yes"
|
|
511
|
+
},
|
|
512
|
+
"children": [
|
|
513
|
+
{
|
|
514
|
+
"tagName": "jx-action-button",
|
|
515
|
+
"attributes": {
|
|
516
|
+
"part": "refresh",
|
|
517
|
+
"data-action": "refresh"
|
|
518
|
+
},
|
|
519
|
+
"$props": {
|
|
520
|
+
"icon": "arrows-clockwise",
|
|
521
|
+
"size": "sm",
|
|
522
|
+
"quiet": true,
|
|
523
|
+
"label": "Refresh",
|
|
524
|
+
"hint": "Refresh",
|
|
525
|
+
"disabled": {
|
|
526
|
+
"$ref": "#/state/busy"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"onclick": {
|
|
530
|
+
"$prototype": "Function",
|
|
531
|
+
"body": [
|
|
532
|
+
{
|
|
533
|
+
"operator": "call",
|
|
534
|
+
"target": {
|
|
535
|
+
"$ref": "#/state/refresh"
|
|
536
|
+
},
|
|
537
|
+
"value": []
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"tagName": "div",
|
|
544
|
+
"attributes": {
|
|
545
|
+
"part": "sync-text"
|
|
546
|
+
},
|
|
547
|
+
"children": [
|
|
548
|
+
{
|
|
549
|
+
"tagName": "span",
|
|
550
|
+
"attributes": {
|
|
551
|
+
"part": "sync-label"
|
|
552
|
+
},
|
|
553
|
+
"textContent": "${state.syncLabel}"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"tagName": "span",
|
|
557
|
+
"attributes": {
|
|
558
|
+
"part": "updated-slot",
|
|
559
|
+
"role": "none"
|
|
560
|
+
},
|
|
561
|
+
"style": {
|
|
562
|
+
"display": "contents"
|
|
563
|
+
},
|
|
564
|
+
"$switch": {
|
|
565
|
+
"$ref": "#/state/hasLastUpdated"
|
|
566
|
+
},
|
|
567
|
+
"cases": {
|
|
568
|
+
"true": {
|
|
569
|
+
"tagName": "span",
|
|
570
|
+
"attributes": {
|
|
571
|
+
"part": "sync-time"
|
|
572
|
+
},
|
|
573
|
+
"textContent": "${state.lastUpdated}"
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"tagName": "jx-action-group",
|
|
581
|
+
"attributes": {
|
|
582
|
+
"part": "sync-actions"
|
|
583
|
+
},
|
|
584
|
+
"$props": {
|
|
585
|
+
"label": "Remote actions",
|
|
586
|
+
"compact": true
|
|
587
|
+
},
|
|
588
|
+
"children": [
|
|
589
|
+
{
|
|
590
|
+
"tagName": "jx-action-button",
|
|
591
|
+
"attributes": {
|
|
592
|
+
"part": "fetch",
|
|
593
|
+
"data-action": "fetch"
|
|
594
|
+
},
|
|
595
|
+
"$props": {
|
|
596
|
+
"icon": "download-simple",
|
|
597
|
+
"size": "sm",
|
|
598
|
+
"quiet": true,
|
|
599
|
+
"label": "Fetch",
|
|
600
|
+
"hint": "Fetch",
|
|
601
|
+
"disabled": {
|
|
602
|
+
"$ref": "#/state/busy"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"onclick": {
|
|
606
|
+
"$prototype": "Function",
|
|
607
|
+
"body": [
|
|
608
|
+
{
|
|
609
|
+
"operator": "call",
|
|
610
|
+
"target": {
|
|
611
|
+
"$ref": "#/state/fetch"
|
|
612
|
+
},
|
|
613
|
+
"value": []
|
|
614
|
+
}
|
|
615
|
+
]
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"tagName": "jx-action-button",
|
|
620
|
+
"attributes": {
|
|
621
|
+
"part": "pull",
|
|
622
|
+
"data-action": "pull"
|
|
623
|
+
},
|
|
624
|
+
"$props": {
|
|
625
|
+
"icon": "arrow-down",
|
|
626
|
+
"size": "sm",
|
|
627
|
+
"quiet": true,
|
|
628
|
+
"label": {
|
|
629
|
+
"$ref": "#/state/pullLabel"
|
|
630
|
+
},
|
|
631
|
+
"hint": {
|
|
632
|
+
"$ref": "#/state/pullLabel"
|
|
633
|
+
},
|
|
634
|
+
"disabled": {
|
|
635
|
+
"$ref": "#/state/busy"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"onclick": {
|
|
639
|
+
"$prototype": "Function",
|
|
640
|
+
"body": [
|
|
641
|
+
{
|
|
642
|
+
"operator": "call",
|
|
643
|
+
"target": {
|
|
644
|
+
"$ref": "#/state/pull"
|
|
645
|
+
},
|
|
646
|
+
"value": []
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"tagName": "jx-action-button",
|
|
653
|
+
"attributes": {
|
|
654
|
+
"part": "push",
|
|
655
|
+
"data-action": "push"
|
|
656
|
+
},
|
|
657
|
+
"$props": {
|
|
658
|
+
"icon": "arrow-up",
|
|
659
|
+
"size": "sm",
|
|
660
|
+
"quiet": true,
|
|
661
|
+
"label": {
|
|
662
|
+
"$ref": "#/state/pushLabel"
|
|
663
|
+
},
|
|
664
|
+
"hint": {
|
|
665
|
+
"$ref": "#/state/pushLabel"
|
|
666
|
+
},
|
|
667
|
+
"disabled": {
|
|
668
|
+
"$ref": "#/state/busy"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
"onclick": {
|
|
672
|
+
"$prototype": "Function",
|
|
673
|
+
"body": [
|
|
674
|
+
{
|
|
675
|
+
"operator": "call",
|
|
676
|
+
"target": {
|
|
677
|
+
"$ref": "#/state/push"
|
|
678
|
+
},
|
|
679
|
+
"value": []
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"local": {
|
|
689
|
+
"tagName": "div",
|
|
690
|
+
"attributes": {
|
|
691
|
+
"part": "sync-bar",
|
|
692
|
+
"data-remote": "none"
|
|
693
|
+
},
|
|
694
|
+
"children": [
|
|
695
|
+
{
|
|
696
|
+
"tagName": "jx-action-button",
|
|
697
|
+
"attributes": {
|
|
698
|
+
"part": "refresh",
|
|
699
|
+
"data-action": "refresh"
|
|
700
|
+
},
|
|
701
|
+
"$props": {
|
|
702
|
+
"icon": "arrows-clockwise",
|
|
703
|
+
"size": "sm",
|
|
704
|
+
"quiet": true,
|
|
705
|
+
"label": "Refresh",
|
|
706
|
+
"hint": "Refresh",
|
|
707
|
+
"disabled": {
|
|
708
|
+
"$ref": "#/state/busy"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"onclick": {
|
|
712
|
+
"$prototype": "Function",
|
|
713
|
+
"body": [
|
|
714
|
+
{
|
|
715
|
+
"operator": "call",
|
|
716
|
+
"target": {
|
|
717
|
+
"$ref": "#/state/refresh"
|
|
718
|
+
},
|
|
719
|
+
"value": []
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"tagName": "div",
|
|
726
|
+
"attributes": {
|
|
727
|
+
"part": "sync-text"
|
|
728
|
+
},
|
|
729
|
+
"children": [
|
|
730
|
+
{
|
|
731
|
+
"tagName": "span",
|
|
732
|
+
"attributes": {
|
|
733
|
+
"part": "sync-label"
|
|
734
|
+
},
|
|
735
|
+
"textContent": "Local only (no remote)"
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"tagName": "jx-button",
|
|
741
|
+
"attributes": {
|
|
742
|
+
"part": "create-repository",
|
|
743
|
+
"data-action": "create-repository"
|
|
744
|
+
},
|
|
745
|
+
"$props": {
|
|
746
|
+
"size": "sm",
|
|
747
|
+
"disabled": {
|
|
748
|
+
"$ref": "#/state/busy"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"onclick": {
|
|
752
|
+
"$prototype": "Function",
|
|
753
|
+
"body": [
|
|
754
|
+
{
|
|
755
|
+
"operator": "call",
|
|
756
|
+
"target": {
|
|
757
|
+
"$ref": "#/state/createRepository"
|
|
758
|
+
},
|
|
759
|
+
"value": []
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
"children": [
|
|
764
|
+
{
|
|
765
|
+
"tagName": "jx-icon",
|
|
766
|
+
"$props": {
|
|
767
|
+
"name": "share-network"
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"tagName": "span",
|
|
772
|
+
"textContent": "Create GitHub repository"
|
|
773
|
+
}
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"tagName": "div",
|
|
782
|
+
"attributes": {
|
|
783
|
+
"part": "branch-row"
|
|
784
|
+
},
|
|
785
|
+
"children": [
|
|
786
|
+
{
|
|
787
|
+
"tagName": "jx-icon",
|
|
788
|
+
"attributes": {
|
|
789
|
+
"part": "branch-icon"
|
|
790
|
+
},
|
|
791
|
+
"$props": {
|
|
792
|
+
"name": "git-branch"
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"tagName": "div",
|
|
797
|
+
"attributes": {
|
|
798
|
+
"part": "branch-text"
|
|
799
|
+
},
|
|
800
|
+
"children": [
|
|
801
|
+
{
|
|
802
|
+
"tagName": "span",
|
|
803
|
+
"attributes": {
|
|
804
|
+
"part": "branch-label"
|
|
805
|
+
},
|
|
806
|
+
"textContent": "Active branch"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"tagName": "span",
|
|
810
|
+
"attributes": {
|
|
811
|
+
"part": "branch-name"
|
|
812
|
+
},
|
|
813
|
+
"textContent": "${state.branchName}"
|
|
814
|
+
}
|
|
815
|
+
]
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"tagName": "jx-select",
|
|
819
|
+
"attributes": {
|
|
820
|
+
"part": "branch-picker"
|
|
821
|
+
},
|
|
822
|
+
"$props": {
|
|
823
|
+
"label": "Switch branch",
|
|
824
|
+
"size": "sm",
|
|
825
|
+
"options": {
|
|
826
|
+
"$ref": "#/state/branchOptions"
|
|
827
|
+
},
|
|
828
|
+
"value": {
|
|
829
|
+
"$ref": "#/state/branchValue"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"onchange": {
|
|
833
|
+
"$prototype": "Function",
|
|
834
|
+
"body": [
|
|
835
|
+
{
|
|
836
|
+
"operator": "call",
|
|
837
|
+
"target": {
|
|
838
|
+
"$ref": "#/state/chooseBranch"
|
|
839
|
+
},
|
|
840
|
+
"value": [
|
|
841
|
+
{
|
|
842
|
+
"$ref": "event#/target/value"
|
|
843
|
+
}
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
]
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"tagName": "jx-tabs",
|
|
853
|
+
"attributes": {
|
|
854
|
+
"part": "tabs",
|
|
855
|
+
"selected": "${state.subTab}"
|
|
856
|
+
},
|
|
857
|
+
"$props": {
|
|
858
|
+
"label": "Source control views"
|
|
859
|
+
},
|
|
860
|
+
"onchange": {
|
|
861
|
+
"$prototype": "Function",
|
|
862
|
+
"body": [
|
|
863
|
+
{
|
|
864
|
+
"operator": "call",
|
|
865
|
+
"target": {
|
|
866
|
+
"$ref": "#/state/selectTab"
|
|
867
|
+
},
|
|
868
|
+
"value": [
|
|
869
|
+
{
|
|
870
|
+
"$ref": "event#/detail"
|
|
871
|
+
}
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
]
|
|
875
|
+
},
|
|
876
|
+
"children": [
|
|
877
|
+
{
|
|
878
|
+
"tagName": "jx-tab",
|
|
879
|
+
"attributes": {
|
|
880
|
+
"part": "tab",
|
|
881
|
+
"data-tab": "changes",
|
|
882
|
+
"value": "changes",
|
|
883
|
+
"label": "${state.changesLabel}",
|
|
884
|
+
"panel": "git-panel-body"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"tagName": "jx-tab",
|
|
889
|
+
"attributes": {
|
|
890
|
+
"part": "tab",
|
|
891
|
+
"data-tab": "history",
|
|
892
|
+
"value": "history",
|
|
893
|
+
"label": "History",
|
|
894
|
+
"panel": "git-panel-body"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"tagName": "div",
|
|
901
|
+
"attributes": {
|
|
902
|
+
"part": "body",
|
|
903
|
+
"id": "git-panel-body",
|
|
904
|
+
"role": "tabpanel",
|
|
905
|
+
"data-tab": "${state.subTab}"
|
|
906
|
+
},
|
|
907
|
+
"style": {
|
|
908
|
+
"display": "contents"
|
|
909
|
+
},
|
|
910
|
+
"$switch": {
|
|
911
|
+
"$ref": "#/state/subTab"
|
|
912
|
+
},
|
|
913
|
+
"cases": {
|
|
914
|
+
"changes": {
|
|
915
|
+
"tagName": "div",
|
|
916
|
+
"attributes": {
|
|
917
|
+
"part": "changes",
|
|
918
|
+
"role": "none"
|
|
919
|
+
},
|
|
920
|
+
"style": {
|
|
921
|
+
"display": "contents"
|
|
922
|
+
},
|
|
923
|
+
"children": [
|
|
924
|
+
{
|
|
925
|
+
"tagName": "div",
|
|
926
|
+
"attributes": {
|
|
927
|
+
"part": "commit",
|
|
928
|
+
"data-jx-region": "navigator/panel:git/commit"
|
|
929
|
+
},
|
|
930
|
+
"children": [
|
|
931
|
+
{
|
|
932
|
+
"tagName": "span",
|
|
933
|
+
"attributes": {
|
|
934
|
+
"part": "commit-label",
|
|
935
|
+
"id": "git-commit-label"
|
|
936
|
+
},
|
|
937
|
+
"textContent": "Please write a commit message"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"tagName": "jx-textfield",
|
|
941
|
+
"attributes": {
|
|
942
|
+
"part": "commit-input",
|
|
943
|
+
"data-field": "commit-message"
|
|
944
|
+
},
|
|
945
|
+
"$props": {
|
|
946
|
+
"labelledby": "git-commit-label",
|
|
947
|
+
"multiline": true,
|
|
948
|
+
"size": "sm",
|
|
949
|
+
"placeholder": "Describe your changes",
|
|
950
|
+
"value": {
|
|
951
|
+
"$ref": "#/state/commitMessage"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"oninput": {
|
|
955
|
+
"$prototype": "Function",
|
|
956
|
+
"body": [
|
|
957
|
+
{
|
|
958
|
+
"operator": "call",
|
|
959
|
+
"target": {
|
|
960
|
+
"$ref": "#/state/editMessage"
|
|
961
|
+
},
|
|
962
|
+
"value": [
|
|
963
|
+
{
|
|
964
|
+
"$ref": "event#/target/value"
|
|
965
|
+
}
|
|
966
|
+
]
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
"onkeydown": {
|
|
971
|
+
"$prototype": "Function",
|
|
972
|
+
"body": [
|
|
973
|
+
{
|
|
974
|
+
"$switch": {
|
|
975
|
+
"$ref": "event#/key"
|
|
976
|
+
},
|
|
977
|
+
"cases": {
|
|
978
|
+
"Enter": [
|
|
979
|
+
{
|
|
980
|
+
"if": {
|
|
981
|
+
"operator": "||",
|
|
982
|
+
"target": {
|
|
983
|
+
"$ref": "event#/ctrlKey"
|
|
984
|
+
},
|
|
985
|
+
"value": {
|
|
986
|
+
"$ref": "event#/metaKey"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"then": [
|
|
990
|
+
{
|
|
991
|
+
"preventDefault": true
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"operator": "call",
|
|
995
|
+
"target": {
|
|
996
|
+
"$ref": "#/state/commit"
|
|
997
|
+
},
|
|
998
|
+
"value": []
|
|
999
|
+
}
|
|
1000
|
+
]
|
|
1001
|
+
}
|
|
1002
|
+
]
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"tagName": "div",
|
|
1010
|
+
"attributes": {
|
|
1011
|
+
"part": "commit-actions"
|
|
1012
|
+
},
|
|
1013
|
+
"children": [
|
|
1014
|
+
{
|
|
1015
|
+
"tagName": "jx-button",
|
|
1016
|
+
"attributes": {
|
|
1017
|
+
"part": "commit-button",
|
|
1018
|
+
"data-action": "commit-and-sync"
|
|
1019
|
+
},
|
|
1020
|
+
"$props": {
|
|
1021
|
+
"size": "sm",
|
|
1022
|
+
"variant": "accent",
|
|
1023
|
+
"disabled": {
|
|
1024
|
+
"$ref": "#/state/busy"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
"onclick": {
|
|
1028
|
+
"$prototype": "Function",
|
|
1029
|
+
"body": [
|
|
1030
|
+
{
|
|
1031
|
+
"operator": "call",
|
|
1032
|
+
"target": {
|
|
1033
|
+
"$ref": "#/state/commitAndSync"
|
|
1034
|
+
},
|
|
1035
|
+
"value": []
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"children": [
|
|
1040
|
+
{
|
|
1041
|
+
"tagName": "span",
|
|
1042
|
+
"textContent": "Commit and sync"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"tagName": "jx-action-button",
|
|
1048
|
+
"attributes": {
|
|
1049
|
+
"part": "commit-menu",
|
|
1050
|
+
"data-action": "commit-menu"
|
|
1051
|
+
},
|
|
1052
|
+
"$props": {
|
|
1053
|
+
"icon": "caret-down",
|
|
1054
|
+
"size": "sm",
|
|
1055
|
+
"label": "More commit options",
|
|
1056
|
+
"hint": "More commit options",
|
|
1057
|
+
"haspopup": "menu"
|
|
1058
|
+
},
|
|
1059
|
+
"onclick": {
|
|
1060
|
+
"$prototype": "Function",
|
|
1061
|
+
"body": [
|
|
1062
|
+
{
|
|
1063
|
+
"operator": "call",
|
|
1064
|
+
"target": {
|
|
1065
|
+
"$ref": "#/state/openCommitMenu"
|
|
1066
|
+
},
|
|
1067
|
+
"value": [
|
|
1068
|
+
{
|
|
1069
|
+
"$ref": "event#/currentTarget"
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
]
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"tagName": "div",
|
|
1082
|
+
"attributes": {
|
|
1083
|
+
"part": "staged-slot",
|
|
1084
|
+
"role": "none"
|
|
1085
|
+
},
|
|
1086
|
+
"style": {
|
|
1087
|
+
"display": "contents"
|
|
1088
|
+
},
|
|
1089
|
+
"$switch": {
|
|
1090
|
+
"$ref": "#/state/hasStaged"
|
|
1091
|
+
},
|
|
1092
|
+
"cases": {
|
|
1093
|
+
"true": {
|
|
1094
|
+
"tagName": "section",
|
|
1095
|
+
"attributes": {
|
|
1096
|
+
"part": "section",
|
|
1097
|
+
"data-section": "staged",
|
|
1098
|
+
"aria-label": "Staged Changes"
|
|
1099
|
+
},
|
|
1100
|
+
"children": [
|
|
1101
|
+
{
|
|
1102
|
+
"tagName": "div",
|
|
1103
|
+
"attributes": {
|
|
1104
|
+
"part": "section-header"
|
|
1105
|
+
},
|
|
1106
|
+
"children": [
|
|
1107
|
+
{
|
|
1108
|
+
"tagName": "span",
|
|
1109
|
+
"attributes": {
|
|
1110
|
+
"part": "section-title"
|
|
1111
|
+
},
|
|
1112
|
+
"textContent": "Staged Changes"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"tagName": "span",
|
|
1116
|
+
"attributes": {
|
|
1117
|
+
"part": "count"
|
|
1118
|
+
},
|
|
1119
|
+
"textContent": "${state.stagedCount}"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"tagName": "jx-action-button",
|
|
1123
|
+
"attributes": {
|
|
1124
|
+
"part": "unstage-all",
|
|
1125
|
+
"data-action": "unstage-all"
|
|
1126
|
+
},
|
|
1127
|
+
"$props": {
|
|
1128
|
+
"icon": "minus",
|
|
1129
|
+
"size": "sm",
|
|
1130
|
+
"quiet": true,
|
|
1131
|
+
"label": "Unstage all",
|
|
1132
|
+
"hint": "Unstage all"
|
|
1133
|
+
},
|
|
1134
|
+
"onclick": {
|
|
1135
|
+
"$prototype": "Function",
|
|
1136
|
+
"body": [
|
|
1137
|
+
{
|
|
1138
|
+
"operator": "call",
|
|
1139
|
+
"target": {
|
|
1140
|
+
"$ref": "#/state/unstageAll"
|
|
1141
|
+
},
|
|
1142
|
+
"value": []
|
|
1143
|
+
}
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"$prototype": "Array",
|
|
1151
|
+
"items": {
|
|
1152
|
+
"$ref": "#/state/stagedFiles"
|
|
1153
|
+
},
|
|
1154
|
+
"key": {
|
|
1155
|
+
"$ref": "$map/item/key"
|
|
1156
|
+
},
|
|
1157
|
+
"map": {
|
|
1158
|
+
"$description": "One changed file. Every row opens the file it names — renderability decides which VIEW opens, not whether the row responds — and carries the two or three verbs its staged state allows. `$map/item` inside a nested map is the FILE, which is why the row hands its own path back to every action rather than an index.",
|
|
1159
|
+
"tagName": "div",
|
|
1160
|
+
"attributes": {
|
|
1161
|
+
"part": "file-row",
|
|
1162
|
+
"data-path": "${$map.item.path}",
|
|
1163
|
+
"data-status": "${$map.item.status}"
|
|
1164
|
+
},
|
|
1165
|
+
"children": [
|
|
1166
|
+
{
|
|
1167
|
+
"tagName": "button",
|
|
1168
|
+
"attributes": {
|
|
1169
|
+
"part": "file-open",
|
|
1170
|
+
"type": "button",
|
|
1171
|
+
"aria-label": "${$map.item.label}",
|
|
1172
|
+
"title": "Open this file's comparison"
|
|
1173
|
+
},
|
|
1174
|
+
"onclick": {
|
|
1175
|
+
"$prototype": "Function",
|
|
1176
|
+
"body": [
|
|
1177
|
+
{
|
|
1178
|
+
"operator": "call",
|
|
1179
|
+
"target": {
|
|
1180
|
+
"$ref": "#/state/openFile"
|
|
1181
|
+
},
|
|
1182
|
+
"value": [
|
|
1183
|
+
{
|
|
1184
|
+
"$ref": "$map/item/path"
|
|
1185
|
+
}
|
|
1186
|
+
]
|
|
1187
|
+
}
|
|
1188
|
+
]
|
|
1189
|
+
},
|
|
1190
|
+
"children": [
|
|
1191
|
+
{
|
|
1192
|
+
"tagName": "span",
|
|
1193
|
+
"attributes": {
|
|
1194
|
+
"part": "file-name"
|
|
1195
|
+
},
|
|
1196
|
+
"textContent": "${$map.item.name}"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"tagName": "span",
|
|
1200
|
+
"attributes": {
|
|
1201
|
+
"part": "dir-slot",
|
|
1202
|
+
"role": "none"
|
|
1203
|
+
},
|
|
1204
|
+
"style": {
|
|
1205
|
+
"display": "contents"
|
|
1206
|
+
},
|
|
1207
|
+
"$switch": {
|
|
1208
|
+
"$ref": "$map/item/hasDir"
|
|
1209
|
+
},
|
|
1210
|
+
"cases": {
|
|
1211
|
+
"true": {
|
|
1212
|
+
"tagName": "span",
|
|
1213
|
+
"attributes": {
|
|
1214
|
+
"part": "file-dir"
|
|
1215
|
+
},
|
|
1216
|
+
"textContent": "${$map.item.dir}"
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"tagName": "span",
|
|
1224
|
+
"attributes": {
|
|
1225
|
+
"part": "file-actions"
|
|
1226
|
+
},
|
|
1227
|
+
"$switch": {
|
|
1228
|
+
"$ref": "$map/item/staged"
|
|
1229
|
+
},
|
|
1230
|
+
"cases": {
|
|
1231
|
+
"true": {
|
|
1232
|
+
"tagName": "jx-action-button",
|
|
1233
|
+
"attributes": {
|
|
1234
|
+
"part": "unstage",
|
|
1235
|
+
"data-action": "unstage"
|
|
1236
|
+
},
|
|
1237
|
+
"$props": {
|
|
1238
|
+
"icon": "minus",
|
|
1239
|
+
"size": "sm",
|
|
1240
|
+
"quiet": true,
|
|
1241
|
+
"label": "Unstage ${$map.item.path}",
|
|
1242
|
+
"hint": "Unstage"
|
|
1243
|
+
},
|
|
1244
|
+
"onclick": {
|
|
1245
|
+
"$prototype": "Function",
|
|
1246
|
+
"body": [
|
|
1247
|
+
{
|
|
1248
|
+
"operator": "call",
|
|
1249
|
+
"target": {
|
|
1250
|
+
"$ref": "#/state/unstage"
|
|
1251
|
+
},
|
|
1252
|
+
"value": [
|
|
1253
|
+
{
|
|
1254
|
+
"$ref": "$map/item/path"
|
|
1255
|
+
}
|
|
1256
|
+
]
|
|
1257
|
+
}
|
|
1258
|
+
]
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"false": {
|
|
1262
|
+
"tagName": "span",
|
|
1263
|
+
"attributes": {
|
|
1264
|
+
"part": "unstaged-actions",
|
|
1265
|
+
"role": "none"
|
|
1266
|
+
},
|
|
1267
|
+
"style": {
|
|
1268
|
+
"display": "contents"
|
|
1269
|
+
},
|
|
1270
|
+
"children": [
|
|
1271
|
+
{
|
|
1272
|
+
"tagName": "jx-action-button",
|
|
1273
|
+
"attributes": {
|
|
1274
|
+
"part": "discard",
|
|
1275
|
+
"data-action": "discard"
|
|
1276
|
+
},
|
|
1277
|
+
"$props": {
|
|
1278
|
+
"icon": "arrow-u-up-left",
|
|
1279
|
+
"size": "sm",
|
|
1280
|
+
"quiet": true,
|
|
1281
|
+
"label": "Discard changes to ${$map.item.path}",
|
|
1282
|
+
"hint": "Discard changes",
|
|
1283
|
+
"disabled": {
|
|
1284
|
+
"$ref": "$map/item/cannotDiscard"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"onclick": {
|
|
1288
|
+
"$prototype": "Function",
|
|
1289
|
+
"body": [
|
|
1290
|
+
{
|
|
1291
|
+
"operator": "call",
|
|
1292
|
+
"target": {
|
|
1293
|
+
"$ref": "#/state/discard"
|
|
1294
|
+
},
|
|
1295
|
+
"value": [
|
|
1296
|
+
{
|
|
1297
|
+
"$ref": "$map/item/path"
|
|
1298
|
+
}
|
|
1299
|
+
]
|
|
1300
|
+
}
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"tagName": "jx-action-button",
|
|
1306
|
+
"attributes": {
|
|
1307
|
+
"part": "stage",
|
|
1308
|
+
"data-action": "stage"
|
|
1309
|
+
},
|
|
1310
|
+
"$props": {
|
|
1311
|
+
"icon": "plus",
|
|
1312
|
+
"size": "sm",
|
|
1313
|
+
"quiet": true,
|
|
1314
|
+
"label": "Stage ${$map.item.path}",
|
|
1315
|
+
"hint": "Stage"
|
|
1316
|
+
},
|
|
1317
|
+
"onclick": {
|
|
1318
|
+
"$prototype": "Function",
|
|
1319
|
+
"body": [
|
|
1320
|
+
{
|
|
1321
|
+
"operator": "call",
|
|
1322
|
+
"target": {
|
|
1323
|
+
"$ref": "#/state/stage"
|
|
1324
|
+
},
|
|
1325
|
+
"value": [
|
|
1326
|
+
{
|
|
1327
|
+
"$ref": "$map/item/path"
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
]
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"tagName": "span",
|
|
1340
|
+
"attributes": {
|
|
1341
|
+
"part": "badge",
|
|
1342
|
+
"data-status": "${$map.item.status}"
|
|
1343
|
+
},
|
|
1344
|
+
"textContent": "${$map.item.status}"
|
|
1345
|
+
}
|
|
1346
|
+
]
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
]
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"tagName": "section",
|
|
1355
|
+
"attributes": {
|
|
1356
|
+
"part": "section",
|
|
1357
|
+
"data-section": "changed",
|
|
1358
|
+
"aria-label": "Changed Components"
|
|
1359
|
+
},
|
|
1360
|
+
"children": [
|
|
1361
|
+
{
|
|
1362
|
+
"tagName": "div",
|
|
1363
|
+
"attributes": {
|
|
1364
|
+
"part": "section-header"
|
|
1365
|
+
},
|
|
1366
|
+
"children": [
|
|
1367
|
+
{
|
|
1368
|
+
"tagName": "span",
|
|
1369
|
+
"attributes": {
|
|
1370
|
+
"part": "section-title"
|
|
1371
|
+
},
|
|
1372
|
+
"textContent": "Changed Components"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"tagName": "span",
|
|
1376
|
+
"attributes": {
|
|
1377
|
+
"part": "count"
|
|
1378
|
+
},
|
|
1379
|
+
"textContent": "${state.changedCount}"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"tagName": "span",
|
|
1383
|
+
"attributes": {
|
|
1384
|
+
"part": "stage-all-slot",
|
|
1385
|
+
"role": "none"
|
|
1386
|
+
},
|
|
1387
|
+
"style": {
|
|
1388
|
+
"display": "contents"
|
|
1389
|
+
},
|
|
1390
|
+
"$switch": {
|
|
1391
|
+
"$ref": "#/state/hasUnstaged"
|
|
1392
|
+
},
|
|
1393
|
+
"cases": {
|
|
1394
|
+
"true": {
|
|
1395
|
+
"tagName": "jx-action-button",
|
|
1396
|
+
"attributes": {
|
|
1397
|
+
"part": "stage-all",
|
|
1398
|
+
"data-action": "stage-all"
|
|
1399
|
+
},
|
|
1400
|
+
"$props": {
|
|
1401
|
+
"icon": "plus",
|
|
1402
|
+
"size": "sm",
|
|
1403
|
+
"quiet": true,
|
|
1404
|
+
"label": "Stage all",
|
|
1405
|
+
"hint": "Stage all"
|
|
1406
|
+
},
|
|
1407
|
+
"onclick": {
|
|
1408
|
+
"$prototype": "Function",
|
|
1409
|
+
"body": [
|
|
1410
|
+
{
|
|
1411
|
+
"operator": "call",
|
|
1412
|
+
"target": {
|
|
1413
|
+
"$ref": "#/state/stageAll"
|
|
1414
|
+
},
|
|
1415
|
+
"value": []
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
]
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"tagName": "div",
|
|
1426
|
+
"attributes": {
|
|
1427
|
+
"part": "groups-slot",
|
|
1428
|
+
"role": "none"
|
|
1429
|
+
},
|
|
1430
|
+
"style": {
|
|
1431
|
+
"display": "contents"
|
|
1432
|
+
},
|
|
1433
|
+
"$switch": {
|
|
1434
|
+
"$ref": "#/state/filesState"
|
|
1435
|
+
},
|
|
1436
|
+
"cases": {
|
|
1437
|
+
"listed": {
|
|
1438
|
+
"tagName": "div",
|
|
1439
|
+
"attributes": {
|
|
1440
|
+
"part": "groups"
|
|
1441
|
+
},
|
|
1442
|
+
"children": [
|
|
1443
|
+
{
|
|
1444
|
+
"$prototype": "Array",
|
|
1445
|
+
"items": {
|
|
1446
|
+
"$ref": "#/state/groups"
|
|
1447
|
+
},
|
|
1448
|
+
"key": {
|
|
1449
|
+
"$ref": "$map/item/key"
|
|
1450
|
+
},
|
|
1451
|
+
"map": {
|
|
1452
|
+
"tagName": "div",
|
|
1453
|
+
"attributes": {
|
|
1454
|
+
"part": "group",
|
|
1455
|
+
"data-group": "${$map.item.key}"
|
|
1456
|
+
},
|
|
1457
|
+
"children": [
|
|
1458
|
+
{
|
|
1459
|
+
"tagName": "div",
|
|
1460
|
+
"attributes": {
|
|
1461
|
+
"part": "group-header"
|
|
1462
|
+
},
|
|
1463
|
+
"children": [
|
|
1464
|
+
{
|
|
1465
|
+
"tagName": "span",
|
|
1466
|
+
"attributes": {
|
|
1467
|
+
"part": "group-name"
|
|
1468
|
+
},
|
|
1469
|
+
"textContent": "${$map.item.name}"
|
|
1470
|
+
}
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"$prototype": "Array",
|
|
1475
|
+
"items": {
|
|
1476
|
+
"$ref": "$map/item/files"
|
|
1477
|
+
},
|
|
1478
|
+
"key": {
|
|
1479
|
+
"$ref": "$map/item/key"
|
|
1480
|
+
},
|
|
1481
|
+
"map": {
|
|
1482
|
+
"tagName": "div",
|
|
1483
|
+
"attributes": {
|
|
1484
|
+
"part": "file-row",
|
|
1485
|
+
"data-path": "${$map.item.path}",
|
|
1486
|
+
"data-status": "${$map.item.status}"
|
|
1487
|
+
},
|
|
1488
|
+
"children": [
|
|
1489
|
+
{
|
|
1490
|
+
"tagName": "button",
|
|
1491
|
+
"attributes": {
|
|
1492
|
+
"part": "file-open",
|
|
1493
|
+
"type": "button",
|
|
1494
|
+
"aria-label": "${$map.item.label}",
|
|
1495
|
+
"title": "Open this file's comparison"
|
|
1496
|
+
},
|
|
1497
|
+
"onclick": {
|
|
1498
|
+
"$prototype": "Function",
|
|
1499
|
+
"body": [
|
|
1500
|
+
{
|
|
1501
|
+
"operator": "call",
|
|
1502
|
+
"target": {
|
|
1503
|
+
"$ref": "#/state/openFile"
|
|
1504
|
+
},
|
|
1505
|
+
"value": [
|
|
1506
|
+
{
|
|
1507
|
+
"$ref": "$map/item/path"
|
|
1508
|
+
}
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
"children": [
|
|
1514
|
+
{
|
|
1515
|
+
"tagName": "span",
|
|
1516
|
+
"attributes": {
|
|
1517
|
+
"part": "file-name"
|
|
1518
|
+
},
|
|
1519
|
+
"textContent": "${$map.item.name}"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"tagName": "span",
|
|
1523
|
+
"attributes": {
|
|
1524
|
+
"part": "dir-slot",
|
|
1525
|
+
"role": "none"
|
|
1526
|
+
},
|
|
1527
|
+
"style": {
|
|
1528
|
+
"display": "contents"
|
|
1529
|
+
},
|
|
1530
|
+
"$switch": {
|
|
1531
|
+
"$ref": "$map/item/hasDir"
|
|
1532
|
+
},
|
|
1533
|
+
"cases": {
|
|
1534
|
+
"true": {
|
|
1535
|
+
"tagName": "span",
|
|
1536
|
+
"attributes": {
|
|
1537
|
+
"part": "file-dir"
|
|
1538
|
+
},
|
|
1539
|
+
"textContent": "${$map.item.dir}"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
]
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"tagName": "span",
|
|
1547
|
+
"attributes": {
|
|
1548
|
+
"part": "file-actions"
|
|
1549
|
+
},
|
|
1550
|
+
"$switch": {
|
|
1551
|
+
"$ref": "$map/item/staged"
|
|
1552
|
+
},
|
|
1553
|
+
"cases": {
|
|
1554
|
+
"true": {
|
|
1555
|
+
"tagName": "jx-action-button",
|
|
1556
|
+
"attributes": {
|
|
1557
|
+
"part": "unstage",
|
|
1558
|
+
"data-action": "unstage"
|
|
1559
|
+
},
|
|
1560
|
+
"$props": {
|
|
1561
|
+
"icon": "minus",
|
|
1562
|
+
"size": "sm",
|
|
1563
|
+
"quiet": true,
|
|
1564
|
+
"label": "Unstage ${$map.item.path}",
|
|
1565
|
+
"hint": "Unstage"
|
|
1566
|
+
},
|
|
1567
|
+
"onclick": {
|
|
1568
|
+
"$prototype": "Function",
|
|
1569
|
+
"body": [
|
|
1570
|
+
{
|
|
1571
|
+
"operator": "call",
|
|
1572
|
+
"target": {
|
|
1573
|
+
"$ref": "#/state/unstage"
|
|
1574
|
+
},
|
|
1575
|
+
"value": [
|
|
1576
|
+
{
|
|
1577
|
+
"$ref": "$map/item/path"
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
}
|
|
1581
|
+
]
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
"false": {
|
|
1585
|
+
"tagName": "span",
|
|
1586
|
+
"attributes": {
|
|
1587
|
+
"part": "unstaged-actions",
|
|
1588
|
+
"role": "none"
|
|
1589
|
+
},
|
|
1590
|
+
"style": {
|
|
1591
|
+
"display": "contents"
|
|
1592
|
+
},
|
|
1593
|
+
"children": [
|
|
1594
|
+
{
|
|
1595
|
+
"tagName": "jx-action-button",
|
|
1596
|
+
"attributes": {
|
|
1597
|
+
"part": "discard",
|
|
1598
|
+
"data-action": "discard"
|
|
1599
|
+
},
|
|
1600
|
+
"$props": {
|
|
1601
|
+
"icon": "arrow-u-up-left",
|
|
1602
|
+
"size": "sm",
|
|
1603
|
+
"quiet": true,
|
|
1604
|
+
"label": "Discard changes to ${$map.item.path}",
|
|
1605
|
+
"hint": "Discard changes",
|
|
1606
|
+
"disabled": {
|
|
1607
|
+
"$ref": "$map/item/cannotDiscard"
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
"onclick": {
|
|
1611
|
+
"$prototype": "Function",
|
|
1612
|
+
"body": [
|
|
1613
|
+
{
|
|
1614
|
+
"operator": "call",
|
|
1615
|
+
"target": {
|
|
1616
|
+
"$ref": "#/state/discard"
|
|
1617
|
+
},
|
|
1618
|
+
"value": [
|
|
1619
|
+
{
|
|
1620
|
+
"$ref": "$map/item/path"
|
|
1621
|
+
}
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
]
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"tagName": "jx-action-button",
|
|
1629
|
+
"attributes": {
|
|
1630
|
+
"part": "stage",
|
|
1631
|
+
"data-action": "stage"
|
|
1632
|
+
},
|
|
1633
|
+
"$props": {
|
|
1634
|
+
"icon": "plus",
|
|
1635
|
+
"size": "sm",
|
|
1636
|
+
"quiet": true,
|
|
1637
|
+
"label": "Stage ${$map.item.path}",
|
|
1638
|
+
"hint": "Stage"
|
|
1639
|
+
},
|
|
1640
|
+
"onclick": {
|
|
1641
|
+
"$prototype": "Function",
|
|
1642
|
+
"body": [
|
|
1643
|
+
{
|
|
1644
|
+
"operator": "call",
|
|
1645
|
+
"target": {
|
|
1646
|
+
"$ref": "#/state/stage"
|
|
1647
|
+
},
|
|
1648
|
+
"value": [
|
|
1649
|
+
{
|
|
1650
|
+
"$ref": "$map/item/path"
|
|
1651
|
+
}
|
|
1652
|
+
]
|
|
1653
|
+
}
|
|
1654
|
+
]
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"tagName": "span",
|
|
1663
|
+
"attributes": {
|
|
1664
|
+
"part": "badge",
|
|
1665
|
+
"data-status": "${$map.item.status}"
|
|
1666
|
+
},
|
|
1667
|
+
"textContent": "${$map.item.status}"
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
]
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
]
|
|
1676
|
+
},
|
|
1677
|
+
"empty": {
|
|
1678
|
+
"tagName": "p",
|
|
1679
|
+
"attributes": {
|
|
1680
|
+
"part": "empty-message",
|
|
1681
|
+
"data-empty": "changes"
|
|
1682
|
+
},
|
|
1683
|
+
"textContent": "Nothing to commit. Files you edit and save show up here."
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
]
|
|
1688
|
+
}
|
|
1689
|
+
]
|
|
1690
|
+
},
|
|
1691
|
+
"history": {
|
|
1692
|
+
"tagName": "div",
|
|
1693
|
+
"attributes": {
|
|
1694
|
+
"part": "history"
|
|
1695
|
+
},
|
|
1696
|
+
"children": [
|
|
1697
|
+
{
|
|
1698
|
+
"tagName": "div",
|
|
1699
|
+
"attributes": {
|
|
1700
|
+
"part": "history-slot",
|
|
1701
|
+
"role": "none"
|
|
1702
|
+
},
|
|
1703
|
+
"style": {
|
|
1704
|
+
"display": "contents"
|
|
1705
|
+
},
|
|
1706
|
+
"$switch": {
|
|
1707
|
+
"$ref": "#/state/historyState"
|
|
1708
|
+
},
|
|
1709
|
+
"cases": {
|
|
1710
|
+
"listed": {
|
|
1711
|
+
"tagName": "ul",
|
|
1712
|
+
"attributes": {
|
|
1713
|
+
"part": "history-list"
|
|
1714
|
+
},
|
|
1715
|
+
"children": [
|
|
1716
|
+
{
|
|
1717
|
+
"$prototype": "Array",
|
|
1718
|
+
"items": {
|
|
1719
|
+
"$ref": "#/state/commits"
|
|
1720
|
+
},
|
|
1721
|
+
"key": {
|
|
1722
|
+
"$ref": "$map/item/key"
|
|
1723
|
+
},
|
|
1724
|
+
"map": {
|
|
1725
|
+
"tagName": "li",
|
|
1726
|
+
"attributes": {
|
|
1727
|
+
"part": "history-entry",
|
|
1728
|
+
"data-hash": "${$map.item.hash}"
|
|
1729
|
+
},
|
|
1730
|
+
"children": [
|
|
1731
|
+
{
|
|
1732
|
+
"tagName": "span",
|
|
1733
|
+
"attributes": {
|
|
1734
|
+
"part": "history-hash"
|
|
1735
|
+
},
|
|
1736
|
+
"textContent": "${$map.item.hash}"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"tagName": "span",
|
|
1740
|
+
"attributes": {
|
|
1741
|
+
"part": "history-message"
|
|
1742
|
+
},
|
|
1743
|
+
"textContent": "${$map.item.message}"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"tagName": "span",
|
|
1747
|
+
"attributes": {
|
|
1748
|
+
"part": "history-meta"
|
|
1749
|
+
},
|
|
1750
|
+
"textContent": "${$map.item.meta}"
|
|
1751
|
+
}
|
|
1752
|
+
]
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
]
|
|
1756
|
+
},
|
|
1757
|
+
"empty": {
|
|
1758
|
+
"tagName": "p",
|
|
1759
|
+
"attributes": {
|
|
1760
|
+
"part": "empty-message",
|
|
1761
|
+
"data-empty": "history"
|
|
1762
|
+
},
|
|
1763
|
+
"textContent": "No commits yet. Each commit you make is a version you can come back to."
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
]
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"tagName": "div",
|
|
1773
|
+
"attributes": {
|
|
1774
|
+
"part": "busy-slot",
|
|
1775
|
+
"role": "none"
|
|
1776
|
+
},
|
|
1777
|
+
"style": {
|
|
1778
|
+
"display": "contents"
|
|
1779
|
+
},
|
|
1780
|
+
"$switch": {
|
|
1781
|
+
"$ref": "#/state/busy"
|
|
1782
|
+
},
|
|
1783
|
+
"cases": {
|
|
1784
|
+
"true": {
|
|
1785
|
+
"tagName": "p",
|
|
1786
|
+
"attributes": {
|
|
1787
|
+
"part": "status",
|
|
1788
|
+
"data-status": "busy"
|
|
1789
|
+
},
|
|
1790
|
+
"textContent": "Loading…"
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"tagName": "div",
|
|
1796
|
+
"attributes": {
|
|
1797
|
+
"part": "error-slot",
|
|
1798
|
+
"role": "none"
|
|
1799
|
+
},
|
|
1800
|
+
"style": {
|
|
1801
|
+
"display": "contents"
|
|
1802
|
+
},
|
|
1803
|
+
"$switch": {
|
|
1804
|
+
"$ref": "#/state/hasError"
|
|
1805
|
+
},
|
|
1806
|
+
"cases": {
|
|
1807
|
+
"true": {
|
|
1808
|
+
"tagName": "p",
|
|
1809
|
+
"attributes": {
|
|
1810
|
+
"part": "error",
|
|
1811
|
+
"role": "alert"
|
|
1812
|
+
},
|
|
1813
|
+
"textContent": "${state.error}"
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
]
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
]
|
|
1822
|
+
}
|