@pb33f/cowboy-components 0.7.18 → 0.8.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/dist/_basePickBy-DtTwxTrV.js +151 -0
- package/dist/_baseUniq-C5Y4WFmx.js +614 -0
- package/dist/arc-a-7w7y90.js +83 -0
- package/dist/architecture-U656AL7Q-c_zxypEp.js +5 -0
- package/dist/architectureDiagram-VXUJARFQ-CIhQJ6xS.js +4661 -0
- package/dist/assets/elk-layout.worker-B71_NI2D.js +1 -0
- package/dist/assets/equalizer.worker-A8HFNy4g.js +1 -0
- package/dist/assets/graph-dependent.worker-BgWuMZsb.js +1 -0
- package/dist/assets/rule-documentation.worker-BCKuwSgZ.js +1 -0
- package/dist/assets/search-graph.worker-Cwqb-ecv.js +1 -0
- package/dist/blockDiagram-VD42YOAC-BLl5ID-l.js +2261 -0
- package/dist/c4Diagram-YG6GDRKO-BOGfb13x.js +1580 -0
- package/dist/channel-DYeI56io.js +5 -0
- package/dist/chunk-4BX2VUAB-BeHGB7ON.js +8 -0
- package/dist/chunk-55IACEB6-DgHUzWsw.js +8 -0
- package/dist/chunk-B4BG7PRW-Vs7GiQMf.js +1375 -0
- package/dist/chunk-DI55MBZ5-CHjdGXx0.js +1370 -0
- package/dist/chunk-FMBD7UC4-D-H9-bHN.js +19 -0
- package/dist/chunk-QN33PNHL-D7uE2r1Y.js +19 -0
- package/dist/chunk-QZHKN3VN-Cp3sUp7e.js +15 -0
- package/dist/chunk-TZMSLE5B-BmXGcXo9.js +64 -0
- package/dist/classDiagram-2ON5EDUG-9ilqiDEi.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-9ilqiDEi.js +16 -0
- package/dist/clone-CybyMoa0.js +8 -0
- package/dist/components/attention-box/attention-box.css.js +8 -0
- package/dist/components/auth/login-button.js +1 -1
- package/dist/components/auth/login-panel.d.ts +4 -0
- package/dist/components/auth/login-panel.js +12 -4
- package/dist/components/auth/oauth-login.css.js +4 -0
- package/dist/components/auth/oauth-login.d.ts +2 -0
- package/dist/components/auth/oauth-login.js +12 -3
- package/dist/components/brokerable.d.ts +21 -0
- package/dist/components/brokerable.js +39 -0
- package/dist/components/bundle-toolbar/bundle-toolbar.css.js +110 -0
- package/dist/components/bundle-toolbar/bundle-toolbar.d.ts +21 -0
- package/dist/components/bundle-toolbar/bundle-toolbar.js +93 -0
- package/dist/components/changelog/changelog.css.js +2 -0
- package/dist/components/changelog/changelog.d.ts +2 -0
- package/dist/components/changelog/changelog.js +10 -1
- package/dist/components/changelog/release.css.js +5 -1
- package/dist/components/charts/beefy-chart.js +0 -2
- package/dist/components/charts/doughnut-chart.d.ts +5 -1
- package/dist/components/charts/doughnut-chart.js +20 -1
- package/dist/components/credit-ticker/credit-ticker.d.ts +3 -0
- package/dist/components/credit-ticker/credit-ticker.js +20 -4
- package/dist/components/details-drawer/details-drawer.css.d.ts +2 -0
- package/dist/components/{problem-list → details-drawer}/details-drawer.css.js +18 -3
- package/dist/components/details-drawer/generic-details-drawer.css.d.ts +1 -0
- package/dist/components/details-drawer/generic-details-drawer.css.js +219 -0
- package/dist/components/details-drawer/generic-details-drawer.d.ts +38 -0
- package/dist/components/details-drawer/generic-details-drawer.js +245 -0
- package/dist/components/details-drawer/handlers/diagram-handler.d.ts +35 -0
- package/dist/components/details-drawer/handlers/diagram-handler.js +248 -0
- package/dist/components/details-drawer/handlers/documentation-handler.d.ts +11 -0
- package/dist/components/details-drawer/handlers/documentation-handler.js +46 -0
- package/dist/components/details-drawer/handlers/example-handler.d.ts +18 -0
- package/dist/components/details-drawer/handlers/example-handler.js +146 -0
- package/dist/components/details-drawer/handlers/howto-handler.d.ts +11 -0
- package/dist/components/details-drawer/handlers/howto-handler.js +36 -0
- package/dist/components/details-drawer/handlers/markdown-handler.d.ts +12 -0
- package/dist/components/details-drawer/handlers/markdown-handler.js +54 -0
- package/dist/components/editor/editor-breadcrumb.css.js +1 -1
- package/dist/components/editor/editor.css.js +42 -0
- package/dist/components/editor/editor.d.ts +29 -3
- package/dist/components/editor/editor.js +495 -73
- package/dist/components/github/github-workspace-view.css.d.ts +2 -0
- package/dist/components/github/github-workspace-view.css.js +165 -0
- package/dist/components/github/github-workspace-view.d.ts +59 -0
- package/dist/components/github/github-workspace-view.js +525 -0
- package/dist/components/global-task/global-task-view.css.d.ts +2 -0
- package/dist/components/global-task/global-task-view.css.js +392 -0
- package/dist/components/global-task/global-task-view.d.ts +48 -0
- package/dist/components/global-task/global-task-view.js +359 -0
- package/dist/components/header/header.css.js +9 -1
- package/dist/components/http-method/http-method.css.js +5 -1
- package/dist/components/indeterminate-loader/indeterminate-loader.css.d.ts +2 -0
- package/dist/components/indeterminate-loader/indeterminate-loader.css.js +135 -0
- package/dist/components/indeterminate-loader/indeterminate-loader.d.ts +35 -0
- package/dist/components/indeterminate-loader/indeterminate-loader.js +201 -0
- package/dist/components/kv-view/kv-view.css.js +2 -0
- package/dist/components/kv-view/kv-view.js +0 -1
- package/dist/components/logo-wall/logo-wall.css.js +9 -0
- package/dist/components/manage-ruleset/manage-ruleset.css.js +14 -1
- package/dist/components/manage-ruleset/manage-ruleset.d.ts +1 -0
- package/dist/components/manage-ruleset/manage-ruleset.js +54 -22
- package/dist/components/manage-ruleset/rule-action.css.js +2 -0
- package/dist/components/manage-ruleset/rule-action.d.ts +10 -3
- package/dist/components/manage-ruleset/rule-action.js +118 -129
- package/dist/components/manage-ruleset/rule-input.d.ts +3 -1
- package/dist/components/manage-ruleset/rule-input.js +38 -34
- package/dist/components/manage-ruleset/rule.css.js +15 -1
- package/dist/components/manage-ruleset/rule.d.ts +4 -1
- package/dist/components/manage-ruleset/rule.js +44 -17
- package/dist/components/mermaid/mermaid-renderer.css.d.ts +1 -0
- package/dist/components/mermaid/mermaid-renderer.css.js +121 -0
- package/dist/components/mermaid/mermaid-renderer.d.ts +75 -0
- package/dist/components/mermaid/mermaid-renderer.js +485 -0
- package/dist/components/model-icon/doctor-icon.d.ts +9 -0
- package/dist/components/model-icon/doctor-icon.js +60 -0
- package/dist/components/model-icon/model-icon.d.ts +2 -1
- package/dist/components/model-icon/model-icon.js +13 -1
- package/dist/components/model-renderer/change.css.js +22 -8
- package/dist/components/model-renderer/changes.d.ts +1 -0
- package/dist/components/model-renderer/changes.js +47 -32
- package/dist/components/model-renderer/clickable-ref.d.ts +9 -3
- package/dist/components/model-renderer/clickable-ref.js +49 -10
- package/dist/components/model-renderer/components.d.ts +2 -0
- package/dist/components/model-renderer/components.js +196 -116
- package/dist/components/model-renderer/contact.js +2 -2
- package/dist/components/model-renderer/description.css.js +2 -0
- package/dist/components/model-renderer/document.d.ts +1 -0
- package/dist/components/model-renderer/document.js +14 -9
- package/dist/components/model-renderer/encoding.d.ts +2 -0
- package/dist/components/model-renderer/encoding.js +16 -7
- package/dist/components/model-renderer/example.css.js +5 -1
- package/dist/components/model-renderer/example.d.ts +4 -1
- package/dist/components/model-renderer/example.js +72 -118
- package/dist/components/model-renderer/extensions.d.ts +2 -0
- package/dist/components/model-renderer/extensions.js +11 -2
- package/dist/components/model-renderer/external-docs.d.ts +2 -0
- package/dist/components/model-renderer/external-docs.js +13 -4
- package/dist/components/model-renderer/has-changes.js +3 -3
- package/dist/components/model-renderer/header.d.ts +2 -0
- package/dist/components/model-renderer/header.js +27 -14
- package/dist/components/model-renderer/info.d.ts +2 -0
- package/dist/components/model-renderer/info.js +20 -7
- package/dist/components/model-renderer/link.d.ts +2 -0
- package/dist/components/model-renderer/link.js +27 -10
- package/dist/components/model-renderer/media-type.js +2 -2
- package/dist/components/model-renderer/model-badge.d.ts +11 -0
- package/dist/components/model-renderer/model-badge.js +59 -0
- package/dist/components/model-renderer/model-shared.css.js +14 -2
- package/dist/components/model-renderer/oauth-flows.js +4 -4
- package/dist/components/model-renderer/operation.d.ts +2 -1
- package/dist/components/model-renderer/operation.js +37 -16
- package/dist/components/model-renderer/param-location.js +3 -3
- package/dist/components/model-renderer/parameter.d.ts +2 -0
- package/dist/components/model-renderer/parameter.js +28 -15
- package/dist/components/model-renderer/path-item.d.ts +3 -0
- package/dist/components/model-renderer/path-item.js +52 -80
- package/dist/components/model-renderer/paths.d.ts +2 -0
- package/dist/components/model-renderer/paths.js +10 -3
- package/dist/components/model-renderer/problem-node.js +10 -10
- package/dist/components/model-renderer/rendered-node.css.js +35 -6
- package/dist/components/model-renderer/rendered-node.d.ts +14 -4
- package/dist/components/model-renderer/rendered-node.js +121 -58
- package/dist/components/model-renderer/rendered-property.js +4 -4
- package/dist/components/model-renderer/request-body.d.ts +2 -0
- package/dist/components/model-renderer/request-body.js +16 -9
- package/dist/components/model-renderer/response.d.ts +2 -0
- package/dist/components/model-renderer/response.js +35 -17
- package/dist/components/model-renderer/schema.css.js +10 -1
- package/dist/components/model-renderer/schema.d.ts +3 -2
- package/dist/components/model-renderer/schema.js +127 -129
- package/dist/components/model-renderer/security-scheme.js +3 -3
- package/dist/components/model-renderer/server.js +18 -8
- package/dist/components/model-renderer/tag.js +1 -1
- package/dist/components/model-tree/tree.css.js +21 -10
- package/dist/components/model-tree/tree.d.ts +39 -22
- package/dist/components/model-tree/tree.js +230 -167
- package/dist/components/paginator/paginator-navigator.css.js +9 -5
- package/dist/components/paginator/paginator-navigator.js +6 -6
- package/dist/components/paginator/paginator.css.js +2 -0
- package/dist/components/paginator/paginator.js +5 -8
- package/dist/components/percent-bar/percent-bar.css.js +133 -13
- package/dist/components/percent-bar/percent-bar.d.ts +2 -0
- package/dist/components/percent-bar/percent-bar.js +28 -24
- package/dist/components/premium-gate/premium-gate.css.d.ts +1 -0
- package/dist/components/premium-gate/premium-gate.css.js +117 -0
- package/dist/components/premium-gate/premium-gate.d.ts +49 -0
- package/dist/components/premium-gate/premium-gate.js +336 -0
- package/dist/components/problem-list/problem-list.css.js +72 -1
- package/dist/components/problem-list/problem-list.d.ts +17 -9
- package/dist/components/problem-list/problem-list.js +222 -226
- package/dist/components/problem-list/problem-mainview.css.js +12 -2
- package/dist/components/problem-list/problem-mainview.d.ts +3 -0
- package/dist/components/problem-list/problem-mainview.js +37 -17
- package/dist/components/problem-list/problem-toolbar.css.js +10 -7
- package/dist/components/problems-overview/diagnostic-evaluation.css.js +11 -1
- package/dist/components/problems-overview/diagnostic-evaluation.js +6 -7
- package/dist/components/problems-overview/document-statistic.css.js +6 -0
- package/dist/components/problems-overview/document-statistic.js +1 -1
- package/dist/components/problems-overview/problem-overview-group.js +5 -5
- package/dist/components/problems-overview/problem-statistic.css.js +24 -5
- package/dist/components/problems-overview/problem-statistic.js +15 -6
- package/dist/components/problems-overview/problem-statistics.css.js +4 -4
- package/dist/components/problems-overview/problem-statistics.js +29 -25
- package/dist/components/problems-overview/problems-overview.css.js +2 -2
- package/dist/components/property-view/property-view.css.js +2 -0
- package/dist/components/render-json-path/render-json-path.css.js +11 -3
- package/dist/components/render-json-path/render-json-path.js +3 -0
- package/dist/components/render-operation-path/render-operation-path.css.js +9 -0
- package/dist/components/render-operation-path/render-operation-path.js +7 -22
- package/dist/components/rodeo/rodeo.d.ts +1 -0
- package/dist/components/rodeo/rodeo.js +5 -0
- package/dist/components/rodeo/roundup.js +2 -2
- package/dist/components/rodeo/statistic.css.js +25 -2
- package/dist/components/rodeo/statistic.js +0 -4
- package/dist/components/shader-canvas/shader-canvas.css.d.ts +2 -0
- package/dist/components/shader-canvas/shader-canvas.css.js +66 -0
- package/dist/components/shader-canvas/shader-canvas.d.ts +36 -0
- package/dist/components/shader-canvas/shader-canvas.js +363 -0
- package/dist/components/shaders/flowing-waves-shader.d.ts +2 -0
- package/dist/components/shaders/flowing-waves-shader.js +70 -0
- package/dist/components/shaders/neon-canyon-shader.d.ts +2 -0
- package/dist/components/shaders/neon-canyon-shader.js +265 -0
- package/dist/components/shaders/neon-lines-shader.d.ts +2 -0
- package/dist/components/shaders/neon-lines-shader.js +181 -0
- package/dist/components/shaders/neon-squircles-shader.d.ts +2 -0
- package/dist/components/shaders/neon-squircles-shader.js +56 -0
- package/dist/components/shaders/retro-grid-shader.d.ts +2 -0
- package/dist/components/shaders/retro-grid-shader.js +53 -0
- package/dist/components/shaders/shader-base.d.ts +9 -0
- package/dist/components/shaders/shader-base.js +11 -0
- package/dist/components/terminal/terminal-example.css.js +4 -0
- package/dist/components/terminal/terminal-example.js +2 -3
- package/dist/components/terminal-emulator/terminal-emulator.css.js +12 -2
- package/dist/components/terminal-emulator/terminal-emulator.d.ts +7 -1
- package/dist/components/terminal-emulator/terminal-emulator.js +10 -5
- package/dist/components/the-doctor/doctor-controls-panel.css.d.ts +2 -0
- package/dist/components/the-doctor/doctor-controls-panel.css.js +53 -0
- package/dist/components/the-doctor/doctor-controls-panel.d.ts +20 -0
- package/dist/components/the-doctor/doctor-controls-panel.js +78 -0
- package/dist/components/the-doctor/doctor-editor-panel.css.d.ts +2 -0
- package/dist/components/the-doctor/doctor-editor-panel.css.js +209 -0
- package/dist/components/the-doctor/doctor-editor-panel.d.ts +41 -0
- package/dist/components/the-doctor/doctor-editor-panel.js +188 -0
- package/dist/components/the-doctor/doctor-navigator-panel.css.d.ts +2 -0
- package/dist/components/the-doctor/doctor-navigator-panel.css.js +134 -0
- package/dist/components/the-doctor/doctor-navigator-panel.d.ts +35 -0
- package/dist/components/the-doctor/doctor-navigator-panel.js +117 -0
- package/dist/components/the-doctor/doctor-sidebar-panel.css.d.ts +2 -0
- package/dist/components/the-doctor/doctor-sidebar-panel.css.js +143 -0
- package/dist/components/the-doctor/doctor-sidebar-panel.d.ts +31 -0
- package/dist/components/the-doctor/doctor-sidebar-panel.js +131 -0
- package/dist/components/the-doctor/doctor-url-overlay.css.d.ts +2 -0
- package/dist/components/the-doctor/doctor-url-overlay.css.js +59 -0
- package/dist/components/the-doctor/doctor-url-overlay.d.ts +23 -0
- package/dist/components/the-doctor/doctor-url-overlay.js +82 -0
- package/dist/components/the-doctor/nuke-workspace.js +4 -3
- package/dist/components/the-doctor/settings.css.js +2 -0
- package/dist/components/the-doctor/settings.js +5 -8
- package/dist/components/the-doctor/status-bar.d.ts +2 -2
- package/dist/components/the-doctor/status-bar.js +32 -31
- package/dist/components/the-doctor/the-doctor.css.js +47 -238
- package/dist/components/the-doctor/the-doctor.d.ts +149 -37
- package/dist/components/the-doctor/the-doctor.js +958 -528
- package/dist/components/the-doctor/upload-archive.css.js +8 -2
- package/dist/components/the-doctor/upload-archive.js +2 -2
- package/dist/components/theme-switcher/theme-switcher.js +5 -1
- package/dist/components/time-vortex/change-list-item.css.js +18 -4
- package/dist/components/time-vortex/change-list-item.d.ts +1 -0
- package/dist/components/time-vortex/change-list-item.js +4 -3
- package/dist/components/time-vortex/history-picker.css.js +60 -1
- package/dist/components/time-vortex/history-picker.d.ts +7 -1
- package/dist/components/time-vortex/history-picker.js +109 -5
- package/dist/components/time-vortex/tardis-control.css.js +339 -14
- package/dist/components/time-vortex/tardis-control.d.ts +31 -3
- package/dist/components/time-vortex/tardis-control.js +296 -58
- package/dist/components/time-vortex/time-vortex.d.ts +8 -2
- package/dist/components/time-vortex/time-vortex.js +54 -13
- package/dist/components/toast/toast-component.css.js +1 -0
- package/dist/components/toast/toast-component.d.ts +1 -0
- package/dist/components/toast/toast-component.js +23 -8
- package/dist/components/toast/toast-manager.d.ts +5 -0
- package/dist/components/toast/toast-manager.js +29 -7
- package/dist/components/visualizer/edge.d.ts +11 -1
- package/dist/components/visualizer/edge.js +27 -22
- package/dist/components/visualizer/equalizer.css.js +118 -76
- package/dist/components/visualizer/equalizer.d.ts +24 -45
- package/dist/components/visualizer/equalizer.js +262 -363
- package/dist/components/visualizer/explorer.d.ts +94 -14
- package/dist/components/visualizer/explorer.js +580 -393
- package/dist/components/visualizer/foreign-object.d.ts +12 -2
- package/dist/components/visualizer/foreign-object.js +21 -10
- package/dist/components/visualizer/key.js +12 -1
- package/dist/components/visualizer/nodes/callback.d.ts +2 -1
- package/dist/components/visualizer/nodes/callback.js +2 -2
- package/dist/components/visualizer/nodes/components.d.ts +2 -1
- package/dist/components/visualizer/nodes/components.js +2 -2
- package/dist/components/visualizer/nodes/contact.d.ts +2 -1
- package/dist/components/visualizer/nodes/contact.js +2 -2
- package/dist/components/visualizer/nodes/document.d.ts +2 -1
- package/dist/components/visualizer/nodes/document.js +2 -2
- package/dist/components/visualizer/nodes/graph-node.d.ts +14 -3
- package/dist/components/visualizer/nodes/graph-node.js +94 -43
- package/dist/components/visualizer/nodes/header.d.ts +2 -1
- package/dist/components/visualizer/nodes/header.js +2 -2
- package/dist/components/visualizer/nodes/info.d.ts +2 -1
- package/dist/components/visualizer/nodes/info.js +2 -2
- package/dist/components/visualizer/nodes/license.d.ts +2 -1
- package/dist/components/visualizer/nodes/license.js +2 -2
- package/dist/components/visualizer/nodes/link.d.ts +2 -1
- package/dist/components/visualizer/nodes/link.js +2 -2
- package/dist/components/visualizer/nodes/media-type.d.ts +2 -1
- package/dist/components/visualizer/nodes/media-type.js +2 -2
- package/dist/components/visualizer/nodes/operation.d.ts +2 -1
- package/dist/components/visualizer/nodes/operation.js +3 -4
- package/dist/components/visualizer/nodes/parameter.d.ts +3 -1
- package/dist/components/visualizer/nodes/parameter.js +3 -4
- package/dist/components/visualizer/nodes/path-item.d.ts +2 -1
- package/dist/components/visualizer/nodes/path-item.js +2 -2
- package/dist/components/visualizer/nodes/request-body.d.ts +2 -1
- package/dist/components/visualizer/nodes/request-body.js +2 -2
- package/dist/components/visualizer/nodes/response.d.ts +2 -1
- package/dist/components/visualizer/nodes/response.js +2 -2
- package/dist/components/visualizer/nodes/schema.d.ts +2 -1
- package/dist/components/visualizer/nodes/schema.js +64 -9
- package/dist/components/visualizer/nodes/security-scheme.d.ts +2 -1
- package/dist/components/visualizer/nodes/security-scheme.js +2 -2
- package/dist/components/visualizer/nodes/server.d.ts +2 -1
- package/dist/components/visualizer/nodes/server.js +3 -4
- package/dist/components/visualizer/nodes/tag.d.ts +2 -1
- package/dist/components/visualizer/nodes/tag.js +4 -5
- package/dist/components/visualizer/nodes/xml.d.ts +2 -1
- package/dist/components/visualizer/nodes/xml.js +2 -2
- package/dist/components/visualizer/orientation-controls.d.ts +6 -1
- package/dist/components/visualizer/orientation-controls.js +65 -7
- package/dist/components/visualizer/search.d.ts +2 -1
- package/dist/components/visualizer/search.js +22 -29
- package/dist/components/visualizer/shared.css.js +55 -18
- package/dist/components/visualizer/templates/svg-markers.d.ts +2 -0
- package/dist/components/visualizer/templates/svg-markers.js +73 -0
- package/dist/components/waiting-line/waiting-line.css.d.ts +2 -0
- package/dist/components/waiting-line/waiting-line.css.js +26 -0
- package/dist/components/waiting-line/waiting-line.d.ts +30 -0
- package/dist/components/waiting-line/waiting-line.js +424 -0
- package/dist/components/workspaces/workspace-view.css.js +89 -8
- package/dist/components/workspaces/workspace-view.d.ts +8 -1
- package/dist/components/workspaces/workspace-view.js +77 -25
- package/dist/controllers/auth-controller.d.ts +9 -0
- package/dist/controllers/auth-controller.js +12 -5
- package/dist/controllers/broker-controller.d.ts +30 -4
- package/dist/controllers/broker-controller.js +148 -25
- package/dist/controllers/bundle-controller.d.ts +21 -0
- package/dist/controllers/bundle-controller.js +122 -0
- package/dist/controllers/countdown-controller.d.ts +17 -0
- package/dist/controllers/countdown-controller.js +59 -0
- package/dist/controllers/diagnostic-controller.d.ts +18 -5
- package/dist/controllers/diagnostic-controller.js +206 -218
- package/dist/controllers/diagramatron-controller.d.ts +33 -0
- package/dist/controllers/diagramatron-controller.js +128 -0
- package/dist/controllers/docs-controller.d.ts +11 -5
- package/dist/controllers/docs-controller.js +97 -97
- package/dist/controllers/github-controller.d.ts +47 -0
- package/dist/controllers/github-controller.js +494 -0
- package/dist/controllers/global-task-controller.d.ts +46 -0
- package/dist/controllers/global-task-controller.js +352 -0
- package/dist/controllers/model-controller.d.ts +26 -4
- package/dist/controllers/model-controller.js +98 -62
- package/dist/controllers/node-clicker-controller.d.ts +121 -4
- package/dist/controllers/node-clicker-controller.js +526 -253
- package/dist/controllers/problem-controller.d.ts +11 -4
- package/dist/controllers/problem-controller.js +98 -39
- package/dist/controllers/rolodex-controller.d.ts +8 -3
- package/dist/controllers/rolodex-controller.js +117 -83
- package/dist/controllers/rule-controller.d.ts +12 -5
- package/dist/controllers/rule-controller.js +154 -161
- package/dist/controllers/spec-controller.d.ts +16 -4
- package/dist/controllers/spec-controller.js +91 -62
- package/dist/controllers/state-controller.d.ts +4 -3
- package/dist/controllers/state-controller.js +201 -154
- package/dist/controllers/tab-cache-controller.d.ts +29 -0
- package/dist/controllers/tab-cache-controller.js +68 -0
- package/dist/controllers/timeline-controller.d.ts +18 -0
- package/dist/controllers/timeline-controller.js +129 -0
- package/dist/controllers/wallet-controller.d.ts +3 -3
- package/dist/controllers/wallet-controller.js +22 -41
- package/dist/controllers/workspace-controller.d.ts +10 -4
- package/dist/controllers/workspace-controller.js +67 -22
- package/dist/cose-bilkent-S5V4N54A-2TG-C-n3.js +2608 -0
- package/dist/cowboy-components-BcyXo9oX.js +68425 -0
- package/dist/cowboy-components.css +1 -1
- package/dist/cowboy-components.umd.cjs +14117 -6601
- package/dist/css/alerts.css.js +2 -0
- package/dist/css/badges.css.js +2 -0
- package/dist/css/button.css.js +34 -1
- package/dist/css/cowboy-components.css +34 -0
- package/dist/css/dialog.css.js +11 -2
- package/dist/css/filter.css.js +17 -5
- package/dist/css/forms.css.js +14 -0
- package/dist/css/pb33f-theme.css +87 -16
- package/dist/css/syntax.css.js +5 -0
- package/dist/css/tabs.css.js +19 -2
- package/dist/css/tooltip.css.js +4 -0
- package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
- package/dist/dagre-6UL2VRFP-BIlmTbhO.js +444 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/diagram-PSM6KHXK-CeWby24E.js +531 -0
- package/dist/diagram-QEK2KX5R-DGonyVCK.js +217 -0
- package/dist/diagram-S2PKOQOG-mGn-y1uX.js +142 -0
- package/dist/erDiagram-Q2GNP2WA-BlBBw4Mz.js +841 -0
- package/dist/events/doctor.d.ts +63 -9
- package/dist/events/doctor.js +29 -1
- package/dist/events/drawer-events.d.ts +7 -0
- package/dist/events/drawer-events.js +3 -0
- package/dist/events/theme.d.ts +4 -0
- package/dist/events/theme.js +1 -0
- package/dist/factories/explorer-component-factory.d.ts +49 -0
- package/dist/factories/explorer-component-factory.js +205 -0
- package/dist/factories/state-controller-deps.factory.d.ts +88 -0
- package/dist/factories/state-controller-deps.factory.js +116 -0
- package/dist/flowDiagram-NV44I4VS-BlLzzy1C.js +1620 -0
- package/dist/ganttDiagram-LVOFAZNH-BoQtPC8k.js +2505 -0
- package/dist/gitGraph-F6HP7TQM-CShNSlrW.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-BdpWBgHy.js +699 -0
- package/dist/graph-D9HS4Ahd.js +247 -0
- package/dist/helpers/event-wiring.d.ts +72 -0
- package/dist/helpers/event-wiring.js +58 -0
- package/dist/helpers/file-size-formatter.d.ts +3 -0
- package/dist/helpers/file-size-formatter.js +15 -0
- package/dist/helpers/filename-colorizer.d.ts +5 -0
- package/dist/helpers/filename-colorizer.js +30 -0
- package/dist/helpers/navigation-helper.d.ts +54 -0
- package/dist/helpers/navigation-helper.js +159 -0
- package/dist/helpers/typed-events.d.ts +1 -0
- package/dist/helpers/typed-events.js +3 -0
- package/dist/info-NVLQJR56-Bpi6I8up.js +5 -0
- package/dist/infoDiagram-F6ZHWCRC-DmhhbuMJ.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/interfaces/bundle-interfaces.d.ts +7 -0
- package/dist/interfaces/bundle-interfaces.js +1 -0
- package/dist/interfaces/doctor-interfaces.d.ts +506 -0
- package/dist/interfaces/doctor-interfaces.js +1 -0
- package/dist/journeyDiagram-XKPGCS4Q-CpkhK8vl.js +834 -0
- package/dist/kanban-definition-3W4ZIXB7-BFbucfYE.js +719 -0
- package/dist/katex-SsTUIUTC.js +11688 -0
- package/dist/layout-B8H1_UrM.js +1324 -0
- package/dist/linear-Bo0rJUSQ.js +259 -0
- package/dist/managers/drag-handler.d.ts +28 -0
- package/dist/managers/drag-handler.js +64 -0
- package/dist/managers/event-registration-manager.d.ts +17 -0
- package/dist/managers/event-registration-manager.js +34 -0
- package/dist/managers/expansion-manager.d.ts +58 -0
- package/dist/managers/expansion-manager.js +189 -0
- package/dist/managers/layout-filter-manager.d.ts +31 -0
- package/dist/managers/layout-filter-manager.js +109 -0
- package/dist/managers/panel-divider-manager.d.ts +33 -0
- package/dist/managers/panel-divider-manager.js +71 -0
- package/dist/managers/view-state-manager.d.ts +48 -0
- package/dist/managers/view-state-manager.js +101 -0
- package/dist/managers/viewport-manager.d.ts +53 -0
- package/dist/managers/viewport-manager.js +198 -0
- package/dist/mermaid-parser.core-BPror82d.js +12966 -0
- package/dist/mindmap-definition-VGOIOE7T-VAn-EShH.js +784 -0
- package/dist/mocks/task-mock-generator.d.ts +13 -0
- package/dist/mocks/task-mock-generator.js +200 -0
- package/dist/model/api-response.d.ts +2 -7
- package/dist/model/api-response.js +0 -2
- package/dist/model/bundle.d.ts +35 -0
- package/dist/model/bundle.js +1 -0
- package/dist/model/channels.d.ts +8 -1
- package/dist/model/channels.js +7 -0
- package/dist/model/drawer-content.d.ts +80 -0
- package/dist/model/drawer-content.js +14 -0
- package/dist/model/formable.js +22 -11
- package/dist/model/github.d.ts +125 -0
- package/dist/model/github.js +1 -0
- package/dist/model/graph.d.ts +15 -15
- package/dist/model/graph.js +24 -4
- package/dist/model/media-type.js +2 -2
- package/dist/model/node_type.d.ts +4 -0
- package/dist/model/node_type.js +4 -0
- package/dist/model/panel-state.d.ts +1 -0
- package/dist/model/rolodex.d.ts +3 -0
- package/dist/model/task.d.ts +50 -0
- package/dist/model/task.js +22 -0
- package/dist/model/timeline.d.ts +107 -1
- package/dist/model/tree-icon-config.d.ts +11 -0
- package/dist/model/tree-icon-config.js +46 -0
- package/dist/model/workspace.d.ts +2 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-BFZMPI3H-CXPCK9Q2.js +5 -0
- package/dist/pie-7BOR55EZ-CMcuUZ_S.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-C0kdlQqn.js +161 -0
- package/dist/quadrantDiagram-AYHSOK5B-CRVq6wY3.js +1022 -0
- package/dist/radar-NHE76QYJ-CX_Gyp4h.js +5 -0
- package/dist/requirementDiagram-UZGBJVZJ-B8ZGgMKn.js +850 -0
- package/dist/sankeyDiagram-TZEHDZUN-CWAUJJue.js +810 -0
- package/dist/sequenceDiagram-WL72ISMW-nz81a4Cq.js +2511 -0
- package/dist/services/diagramatron-service.d.ts +20 -0
- package/dist/services/diagramatron-service.js +48 -0
- package/dist/services/doctor-events.d.ts +58 -0
- package/dist/services/doctor-events.js +33 -0
- package/dist/services/drawer-content-registry.d.ts +9 -0
- package/dist/services/drawer-content-registry.js +37 -0
- package/dist/services/github-service.d.ts +9 -0
- package/dist/services/github-service.js +166 -0
- package/dist/services/global-task-service.d.ts +6 -0
- package/dist/services/global-task-service.js +27 -0
- package/dist/services/header-service.d.ts +5 -3
- package/dist/services/header-service.js +13 -0
- package/dist/services/linting-service.d.ts +2 -0
- package/dist/services/linting-service.js +19 -2
- package/dist/services/mermaid-config-service.d.ts +53 -0
- package/dist/services/mermaid-config-service.js +519 -0
- package/dist/services/model-service.d.ts +12 -7
- package/dist/services/model-service.js +64 -11
- package/dist/services/rodeo-service.js +12 -12
- package/dist/services/timeline-service.d.ts +12 -2
- package/dist/services/timeline-service.js +329 -0
- package/dist/services/wallet-service.d.ts +1 -1
- package/dist/services/wallet-service.js +4 -1
- package/dist/services/workspace-service.js +16 -2
- package/dist/stateDiagram-FKZM4ZOC-3PFzJlcG.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-Bp46vM6_.js +16 -0
- package/dist/timeline-definition-IT6M3QCI-utm7jTLb.js +795 -0
- package/dist/treemap-KMMF4GRG-BvEKHn43.js +5 -0
- package/dist/utils/language-utils.d.ts +1 -0
- package/dist/utils/language-utils.js +23 -0
- package/dist/utils/lru-cache.d.ts +11 -0
- package/dist/utils/lru-cache.js +38 -0
- package/dist/utils/node-helpers.d.ts +6 -0
- package/dist/utils/node-helpers.js +62 -0
- package/dist/utils/path-utils.d.ts +5 -0
- package/dist/utils/path-utils.js +22 -0
- package/dist/workers/elk-layout.worker.d.ts +2 -0
- package/dist/workers/elk-layout.worker.js +31 -0
- package/dist/workers/equalizer.worker.d.ts +6 -1
- package/dist/workers/equalizer.worker.js +144 -195
- package/dist/workers/graph-dependent.worker.js +6 -6
- package/dist/workers/rule-documentation.worker.js +12 -48
- package/dist/workers/search-graph.worker.js +8 -23
- package/dist/xychartDiagram-PRI3JC2R-twqDKWMX.js +1340 -0
- package/package.json +17 -10
- package/dist/assets/equalizer.worker-B1FBgh0h.js +0 -1
- package/dist/assets/graph-dependent.worker-CxW1u577.js +0 -1
- package/dist/assets/rule-documentation.worker-B4_JKUg4.js +0 -1
- package/dist/assets/search-graph.worker-DJxOIWLn.js +0 -1
- package/dist/components/problem-list/details-drawer.d.ts +0 -34
- package/dist/components/problem-list/details-drawer.js +0 -200
- /package/dist/components/{problem-list/details-drawer.css.d.ts → bundle-toolbar/bundle-toolbar.css.d.ts} +0 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
9
|
+
import waitingLineCss from './waiting-line.css.js';
|
|
10
|
+
const vertexShader = `#version 300 es
|
|
11
|
+
in vec2 position;
|
|
12
|
+
void main() {
|
|
13
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
14
|
+
}`;
|
|
15
|
+
const fragmentShader = `#version 300 es
|
|
16
|
+
precision highp float;
|
|
17
|
+
|
|
18
|
+
uniform float uTime;
|
|
19
|
+
uniform vec2 uResolution;
|
|
20
|
+
uniform vec3 uPrimaryColor;
|
|
21
|
+
uniform vec3 uSecondaryColor;
|
|
22
|
+
uniform float uLightMode;
|
|
23
|
+
|
|
24
|
+
out vec4 fragColor;
|
|
25
|
+
|
|
26
|
+
vec3 random3(vec3 c) {
|
|
27
|
+
float j = 4096.0*sin(dot(c,vec3(17.0, 59.4, 15.0)));
|
|
28
|
+
vec3 r;
|
|
29
|
+
r.z = fract(512.0*j);
|
|
30
|
+
j *= .125;
|
|
31
|
+
r.x = fract(512.0*j);
|
|
32
|
+
j *= .125;
|
|
33
|
+
r.y = fract(512.0*j);
|
|
34
|
+
return r-0.5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const float F3 = 0.3333333;
|
|
38
|
+
const float G3 = 0.1666667;
|
|
39
|
+
|
|
40
|
+
float simplex3d(vec3 p) {
|
|
41
|
+
vec3 s = floor(p + dot(p, vec3(F3)));
|
|
42
|
+
vec3 x = p - s + dot(s, vec3(G3));
|
|
43
|
+
vec3 e = step(vec3(0.0), x - x.yzx);
|
|
44
|
+
vec3 i1 = e*(1.0 - e.zxy);
|
|
45
|
+
vec3 i2 = 1.0 - e.zxy*(1.0 - e);
|
|
46
|
+
vec3 x1 = x - i1 + G3;
|
|
47
|
+
vec3 x2 = x - i2 + 2.0*G3;
|
|
48
|
+
vec3 x3 = x - 1.0 + 3.0*G3;
|
|
49
|
+
vec4 w, d;
|
|
50
|
+
w.x = dot(x, x);
|
|
51
|
+
w.y = dot(x1, x1);
|
|
52
|
+
w.z = dot(x2, x2);
|
|
53
|
+
w.w = dot(x3, x3);
|
|
54
|
+
w = max(0.6 - w, 0.0);
|
|
55
|
+
d.x = dot(random3(s), x);
|
|
56
|
+
d.y = dot(random3(s + i1), x1);
|
|
57
|
+
d.z = dot(random3(s + i2), x2);
|
|
58
|
+
d.w = dot(random3(s + 1.0), x3);
|
|
59
|
+
w *= w;
|
|
60
|
+
w *= w;
|
|
61
|
+
d *= w;
|
|
62
|
+
return dot(d, vec4(52.0));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
float noise(vec3 m) {
|
|
66
|
+
return 0.5333333*simplex3d(m)
|
|
67
|
+
+0.2666667*simplex3d(2.0*m)
|
|
68
|
+
+0.1333333*simplex3d(4.0*m)
|
|
69
|
+
+0.0666667*simplex3d(8.0*m);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Hash functions for particle randomization (bounded input for precision)
|
|
73
|
+
float hash(float n) {
|
|
74
|
+
n = mod(n, 1000.0);
|
|
75
|
+
return fract(sin(n) * 43758.5453123);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
vec2 hash2(float n) {
|
|
79
|
+
n = mod(n, 1000.0);
|
|
80
|
+
return fract(sin(vec2(n, n + 1.0)) * vec2(43758.5453123, 22578.1459123));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Get the Y position of the line at a given X coordinate
|
|
84
|
+
float getLineY(float x, float time) {
|
|
85
|
+
float normalizedX = (x + 1.0) * 0.5;
|
|
86
|
+
vec2 p = vec2(normalizedX, 0.5);
|
|
87
|
+
vec3 p3 = vec3(p, time * 0.4);
|
|
88
|
+
float intensity = noise(vec3(p3 * 12.0 + 12.0));
|
|
89
|
+
float t = clamp((x * -x * 0.16) + 0.15, 0.0, 1.0);
|
|
90
|
+
return intensity * -t * 0.12;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Render a spark streak using line segment SDF
|
|
94
|
+
float renderSparkStreak(vec2 uv, vec2 particlePos, vec2 velocity, float age, float lifetime) {
|
|
95
|
+
vec2 streakDir = normalize(velocity + vec2(0.0, 0.001));
|
|
96
|
+
float speed = length(velocity);
|
|
97
|
+
float streakLength = speed * 0.15 + 0.02;
|
|
98
|
+
|
|
99
|
+
// Line segment SDF: point to segment distance
|
|
100
|
+
vec2 pa = uv - particlePos;
|
|
101
|
+
vec2 ba = -streakDir * streakLength;
|
|
102
|
+
float baDot = max(dot(ba, ba), 0.0001);
|
|
103
|
+
float h = clamp(dot(pa, ba) / baDot, 0.0, 1.0);
|
|
104
|
+
float dist = length(pa - ba * h);
|
|
105
|
+
|
|
106
|
+
float thickness = 0.015;
|
|
107
|
+
float glow = smoothstep(thickness * 3.0, 0.0, dist);
|
|
108
|
+
|
|
109
|
+
// Fade based on remaining lifetime (quadratic falloff)
|
|
110
|
+
float lifeFade = 1.0 - pow(age / lifetime, 2.0);
|
|
111
|
+
// Fade along the streak (brighter at head)
|
|
112
|
+
float headFade = 1.0 - h * 0.4;
|
|
113
|
+
|
|
114
|
+
return glow * lifeFade * headFade * 2.5;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Spark particle constants
|
|
118
|
+
const int NUM_PARTICLE_GROUPS = 6;
|
|
119
|
+
const int PARTICLES_PER_GROUP = 4;
|
|
120
|
+
const float CYCLE_DURATION = 2.0;
|
|
121
|
+
const float GRAVITY = 0.8;
|
|
122
|
+
|
|
123
|
+
void main() {
|
|
124
|
+
// Original line UV (with Y compression)
|
|
125
|
+
vec2 uv = gl_FragCoord.xy / uResolution.xy;
|
|
126
|
+
uv = uv * 2.0 - 1.0;
|
|
127
|
+
uv.y *= 0.12;
|
|
128
|
+
|
|
129
|
+
vec2 p = gl_FragCoord.xy / uResolution.x;
|
|
130
|
+
vec3 p3 = vec3(p, uTime * 0.4);
|
|
131
|
+
|
|
132
|
+
float intensity = noise(vec3(p3 * 12.0 + 12.0));
|
|
133
|
+
|
|
134
|
+
float t = clamp((uv.x * -uv.x * 0.16) + 0.15, 0.0, 1.0);
|
|
135
|
+
float y = abs(intensity * -t + uv.y);
|
|
136
|
+
|
|
137
|
+
float g = pow(y, 0.13);
|
|
138
|
+
|
|
139
|
+
// lineIntensity: 1.0 at line center, 0.0 away from line
|
|
140
|
+
float lineIntensity = 1.0 - clamp(g * 1.5, 0.0, 1.0);
|
|
141
|
+
lineIntensity = pow(lineIntensity, 0.9);
|
|
142
|
+
|
|
143
|
+
vec3 col;
|
|
144
|
+
if (uLightMode > 0.5) {
|
|
145
|
+
// Light mode: BLACK line on WHITE background
|
|
146
|
+
col = vec3(1.0 - lineIntensity);
|
|
147
|
+
} else {
|
|
148
|
+
// Dark mode: BLUE line on dark theme background
|
|
149
|
+
vec3 bgColor = vec3(0.051, 0.067, 0.090); // #0d1117
|
|
150
|
+
vec3 lineColor = vec3(0.5, 0.85, 1.0);
|
|
151
|
+
col = mix(bgColor, lineColor, lineIntensity);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Spark particle system (uses uncompressed coordinates)
|
|
155
|
+
vec2 sparkUV = gl_FragCoord.xy / uResolution.xy;
|
|
156
|
+
sparkUV = sparkUV * 2.0 - 1.0;
|
|
157
|
+
// Adjust aspect ratio for sparks
|
|
158
|
+
sparkUV.x *= uResolution.x / uResolution.y;
|
|
159
|
+
|
|
160
|
+
float sparkIntensity = 0.0;
|
|
161
|
+
float cycleTime = mod(uTime, CYCLE_DURATION);
|
|
162
|
+
float cycleIndex = floor(uTime / CYCLE_DURATION);
|
|
163
|
+
|
|
164
|
+
for (int g = 0; g < NUM_PARTICLE_GROUPS; g++) {
|
|
165
|
+
float spawnInterval = CYCLE_DURATION / float(NUM_PARTICLE_GROUPS);
|
|
166
|
+
float groupSpawnTime = float(g) * spawnInterval;
|
|
167
|
+
float timeSinceSpawn = cycleTime - groupSpawnTime;
|
|
168
|
+
|
|
169
|
+
// Handle wrap-around for particles from previous cycle still alive
|
|
170
|
+
if (timeSinceSpawn < 0.0) {
|
|
171
|
+
timeSinceSpawn += CYCLE_DURATION;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Random lifetime for this group (0.4 - 1.2 seconds)
|
|
175
|
+
// Branchless: use previous cycle seed when particle wraps around
|
|
176
|
+
float prevCycleOffset = step(CYCLE_DURATION * 0.5, timeSinceSpawn) * -100.0;
|
|
177
|
+
float groupSeed = float(g) * 17.0 + (cycleIndex + prevCycleOffset) * 100.0;
|
|
178
|
+
float lifetime = 0.4 + hash(groupSeed) * 0.8;
|
|
179
|
+
|
|
180
|
+
if (timeSinceSpawn < lifetime && timeSinceSpawn >= 0.0) {
|
|
181
|
+
// Spawn position: random X along the visible line (-0.7 to 0.7)
|
|
182
|
+
float spawnX = (hash(groupSeed + 7.0) * 1.4 - 0.7);
|
|
183
|
+
float spawnTime = uTime - timeSinceSpawn;
|
|
184
|
+
float spawnY = getLineY(spawnX, spawnTime);
|
|
185
|
+
|
|
186
|
+
// Adjust spawnX for aspect ratio
|
|
187
|
+
float spawnXAspect = spawnX * uResolution.x / uResolution.y;
|
|
188
|
+
|
|
189
|
+
for (int i = 0; i < PARTICLES_PER_GROUP; i++) {
|
|
190
|
+
float particleSeed = groupSeed + float(i) * 31.0;
|
|
191
|
+
|
|
192
|
+
// Initial velocity: spread outward and upward (scaled up for visibility)
|
|
193
|
+
vec2 randVel = hash2(particleSeed + 13.0);
|
|
194
|
+
float vx = (randVel.x - 0.5) * 1.2;
|
|
195
|
+
float vy = 0.5 + randVel.y * 0.6;
|
|
196
|
+
|
|
197
|
+
// Calculate current position with gravity
|
|
198
|
+
float age = timeSinceSpawn;
|
|
199
|
+
float posX = spawnXAspect + vx * age;
|
|
200
|
+
float posY = spawnY + vy * age - 0.5 * GRAVITY * age * age;
|
|
201
|
+
|
|
202
|
+
// Current velocity (for streak direction)
|
|
203
|
+
vec2 currentVel = vec2(vx, vy - GRAVITY * age);
|
|
204
|
+
|
|
205
|
+
// Render the spark streak
|
|
206
|
+
sparkIntensity += renderSparkStreak(
|
|
207
|
+
sparkUV,
|
|
208
|
+
vec2(posX, posY),
|
|
209
|
+
currentVel,
|
|
210
|
+
age,
|
|
211
|
+
lifetime
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
fragColor = vec4(col, 1.0);
|
|
218
|
+
}`;
|
|
219
|
+
let WaitingLine = class WaitingLine extends LitElement {
|
|
220
|
+
constructor() {
|
|
221
|
+
super(...arguments);
|
|
222
|
+
this.height = 60;
|
|
223
|
+
this.webglSupported = true;
|
|
224
|
+
this.gl = null;
|
|
225
|
+
this.program = null;
|
|
226
|
+
this.animationId = null;
|
|
227
|
+
this.startTime = 0;
|
|
228
|
+
this.uniformLocations = {};
|
|
229
|
+
this.observer = null;
|
|
230
|
+
this.colors = {
|
|
231
|
+
primary: [0, 1, 1],
|
|
232
|
+
secondary: [1, 0.4, 0.7]
|
|
233
|
+
};
|
|
234
|
+
this.handleResize = () => {
|
|
235
|
+
this.resizeCanvas();
|
|
236
|
+
};
|
|
237
|
+
this.renderFrame = () => {
|
|
238
|
+
if (!this.gl || !this.program)
|
|
239
|
+
return;
|
|
240
|
+
const time = performance.now() / 1000 - this.startTime;
|
|
241
|
+
this.gl.clearColor(0, 0, 0, 0);
|
|
242
|
+
this.gl.clear(this.gl.COLOR_BUFFER_BIT);
|
|
243
|
+
this.gl.useProgram(this.program);
|
|
244
|
+
this.gl.uniform1f(this.uniformLocations.uTime, time);
|
|
245
|
+
this.gl.uniform2f(this.uniformLocations.uResolution, this.canvas.width, this.canvas.height);
|
|
246
|
+
this.gl.uniform3fv(this.uniformLocations.uPrimaryColor, this.colors.primary);
|
|
247
|
+
this.gl.uniform3fv(this.uniformLocations.uSecondaryColor, this.colors.secondary);
|
|
248
|
+
this.gl.uniform1f(this.uniformLocations.uLightMode, this.isLightMode() ? 1.0 : 0.0);
|
|
249
|
+
this.gl.drawArrays(this.gl.TRIANGLES, 0, 6);
|
|
250
|
+
this.animationId = requestAnimationFrame(this.renderFrame);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
connectedCallback() {
|
|
254
|
+
super.connectedCallback();
|
|
255
|
+
this.startTime = performance.now() / 1000;
|
|
256
|
+
this.observer = new IntersectionObserver((entries) => {
|
|
257
|
+
entries.forEach(entry => {
|
|
258
|
+
if (entry.isIntersecting) {
|
|
259
|
+
if (!this.gl) {
|
|
260
|
+
this.initWebGL();
|
|
261
|
+
}
|
|
262
|
+
this.resizeCanvas();
|
|
263
|
+
this.startAnimation();
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
this.stopAnimation();
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
this.observer.observe(this);
|
|
271
|
+
}
|
|
272
|
+
disconnectedCallback() {
|
|
273
|
+
super.disconnectedCallback();
|
|
274
|
+
this.observer?.disconnect();
|
|
275
|
+
this.stopAnimation();
|
|
276
|
+
this.cleanup();
|
|
277
|
+
}
|
|
278
|
+
firstUpdated(_changedProperties) {
|
|
279
|
+
super.firstUpdated(_changedProperties);
|
|
280
|
+
this.initWebGL();
|
|
281
|
+
}
|
|
282
|
+
initWebGL() {
|
|
283
|
+
if (!this.canvas)
|
|
284
|
+
return;
|
|
285
|
+
try {
|
|
286
|
+
this.gl = this.canvas.getContext('webgl2', { alpha: true, premultipliedAlpha: false });
|
|
287
|
+
if (!this.gl) {
|
|
288
|
+
this.webglSupported = false;
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
this.gl.enable(this.gl.BLEND);
|
|
292
|
+
this.gl.blendFunc(this.gl.SRC_ALPHA, this.gl.ONE_MINUS_SRC_ALPHA);
|
|
293
|
+
this.setupShader();
|
|
294
|
+
this.updateColorsFromCSS();
|
|
295
|
+
requestAnimationFrame(() => this.resizeCanvas());
|
|
296
|
+
window.addEventListener('resize', this.handleResize);
|
|
297
|
+
}
|
|
298
|
+
catch (e) {
|
|
299
|
+
this.webglSupported = false;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
setupShader() {
|
|
303
|
+
if (!this.gl)
|
|
304
|
+
return;
|
|
305
|
+
const vert = this.compileShader(this.gl.VERTEX_SHADER, vertexShader);
|
|
306
|
+
const frag = this.compileShader(this.gl.FRAGMENT_SHADER, fragmentShader);
|
|
307
|
+
if (!vert || !frag)
|
|
308
|
+
return;
|
|
309
|
+
this.program = this.gl.createProgram();
|
|
310
|
+
this.gl.attachShader(this.program, vert);
|
|
311
|
+
this.gl.attachShader(this.program, frag);
|
|
312
|
+
this.gl.linkProgram(this.program);
|
|
313
|
+
if (!this.gl.getProgramParameter(this.program, this.gl.LINK_STATUS)) {
|
|
314
|
+
console.error('Shader link failed:', this.gl.getProgramInfoLog(this.program));
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
const vertices = new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]);
|
|
318
|
+
const buffer = this.gl.createBuffer();
|
|
319
|
+
this.gl.bindBuffer(this.gl.ARRAY_BUFFER, buffer);
|
|
320
|
+
this.gl.bufferData(this.gl.ARRAY_BUFFER, vertices, this.gl.STATIC_DRAW);
|
|
321
|
+
const posLoc = this.gl.getAttribLocation(this.program, 'position');
|
|
322
|
+
this.gl.enableVertexAttribArray(posLoc);
|
|
323
|
+
this.gl.vertexAttribPointer(posLoc, 2, this.gl.FLOAT, false, 0, 0);
|
|
324
|
+
this.gl.useProgram(this.program);
|
|
325
|
+
this.uniformLocations = {
|
|
326
|
+
uTime: this.gl.getUniformLocation(this.program, 'uTime'),
|
|
327
|
+
uResolution: this.gl.getUniformLocation(this.program, 'uResolution'),
|
|
328
|
+
uPrimaryColor: this.gl.getUniformLocation(this.program, 'uPrimaryColor'),
|
|
329
|
+
uSecondaryColor: this.gl.getUniformLocation(this.program, 'uSecondaryColor'),
|
|
330
|
+
uLightMode: this.gl.getUniformLocation(this.program, 'uLightMode')
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
compileShader(type, source) {
|
|
334
|
+
if (!this.gl)
|
|
335
|
+
return null;
|
|
336
|
+
const shader = this.gl.createShader(type);
|
|
337
|
+
this.gl.shaderSource(shader, source);
|
|
338
|
+
this.gl.compileShader(shader);
|
|
339
|
+
if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {
|
|
340
|
+
console.error('Shader compile error:', this.gl.getShaderInfoLog(shader));
|
|
341
|
+
this.gl.deleteShader(shader);
|
|
342
|
+
return null;
|
|
343
|
+
}
|
|
344
|
+
return shader;
|
|
345
|
+
}
|
|
346
|
+
isLightMode() {
|
|
347
|
+
return document.documentElement.getAttribute('theme') === 'light';
|
|
348
|
+
}
|
|
349
|
+
updateColorsFromCSS() {
|
|
350
|
+
const styles = getComputedStyle(this);
|
|
351
|
+
this.colors.primary = this.parseColor(styles.getPropertyValue('--primary-color'));
|
|
352
|
+
this.colors.secondary = this.parseColor(styles.getPropertyValue('--secondary-color'));
|
|
353
|
+
}
|
|
354
|
+
parseColor(color) {
|
|
355
|
+
const trimmed = color.trim();
|
|
356
|
+
if (!trimmed)
|
|
357
|
+
return [0, 1, 1];
|
|
358
|
+
if (trimmed.startsWith('#')) {
|
|
359
|
+
let hex = trimmed.slice(1);
|
|
360
|
+
if (hex.length === 3)
|
|
361
|
+
hex = hex.split('').map(c => c + c).join('');
|
|
362
|
+
return [
|
|
363
|
+
parseInt(hex.slice(0, 2), 16) / 255,
|
|
364
|
+
parseInt(hex.slice(2, 4), 16) / 255,
|
|
365
|
+
parseInt(hex.slice(4, 6), 16) / 255
|
|
366
|
+
];
|
|
367
|
+
}
|
|
368
|
+
const match = trimmed.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
369
|
+
if (match) {
|
|
370
|
+
return [+match[1] / 255, +match[2] / 255, +match[3] / 255];
|
|
371
|
+
}
|
|
372
|
+
return [0, 1, 1];
|
|
373
|
+
}
|
|
374
|
+
resizeCanvas() {
|
|
375
|
+
if (!this.canvas || !this.gl)
|
|
376
|
+
return;
|
|
377
|
+
const rect = this.canvas.getBoundingClientRect();
|
|
378
|
+
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
379
|
+
this.canvas.width = rect.width * dpr;
|
|
380
|
+
this.canvas.height = rect.height * dpr;
|
|
381
|
+
this.gl.viewport(0, 0, this.canvas.width, this.canvas.height);
|
|
382
|
+
}
|
|
383
|
+
startAnimation() {
|
|
384
|
+
if (!this.animationId && this.isConnected && this.gl) {
|
|
385
|
+
this.renderFrame();
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
stopAnimation() {
|
|
389
|
+
if (this.animationId) {
|
|
390
|
+
cancelAnimationFrame(this.animationId);
|
|
391
|
+
this.animationId = null;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
cleanup() {
|
|
395
|
+
this.stopAnimation();
|
|
396
|
+
window.removeEventListener('resize', this.handleResize);
|
|
397
|
+
if (this.gl && this.program) {
|
|
398
|
+
this.gl.deleteProgram(this.program);
|
|
399
|
+
}
|
|
400
|
+
this.gl = null;
|
|
401
|
+
this.program = null;
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
const style = `height: ${this.height}px;`;
|
|
405
|
+
if (!this.webglSupported) {
|
|
406
|
+
return html `<div class="fallback" style=${style}></div>`;
|
|
407
|
+
}
|
|
408
|
+
return html `<canvas style=${style}></canvas>`;
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
WaitingLine.styles = [waitingLineCss];
|
|
412
|
+
__decorate([
|
|
413
|
+
property({ type: Number })
|
|
414
|
+
], WaitingLine.prototype, "height", void 0);
|
|
415
|
+
__decorate([
|
|
416
|
+
query('canvas')
|
|
417
|
+
], WaitingLine.prototype, "canvas", void 0);
|
|
418
|
+
__decorate([
|
|
419
|
+
state()
|
|
420
|
+
], WaitingLine.prototype, "webglSupported", void 0);
|
|
421
|
+
WaitingLine = __decorate([
|
|
422
|
+
customElement('pb33f-waiting-line')
|
|
423
|
+
], WaitingLine);
|
|
424
|
+
export { WaitingLine };
|
|
@@ -3,13 +3,34 @@ export default css `
|
|
|
3
3
|
|
|
4
4
|
h2 {
|
|
5
5
|
margin-top: 10px;
|
|
6
|
+
text-transform: uppercase;
|
|
7
|
+
letter-spacing: 0.05em;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.workspace-area {
|
|
9
11
|
padding-left: 20px;
|
|
10
12
|
padding-right: 20px;
|
|
13
|
+
height: calc(100vh - 125px);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
overflow-y: auto;
|
|
11
16
|
}
|
|
12
|
-
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.workspace-area::-webkit-scrollbar {
|
|
20
|
+
width: 8px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.workspace-area::-webkit-scrollbar-track {
|
|
24
|
+
background-color: black;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.workspace-area::-webkit-scrollbar-thumb {
|
|
28
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
29
|
+
background: var(--secondary-color-lowalpha);
|
|
30
|
+
padding: var(--global-padding);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
13
34
|
p {
|
|
14
35
|
font-size: 0.8rem;
|
|
15
36
|
}
|
|
@@ -24,15 +45,11 @@ export default css `
|
|
|
24
45
|
display:none;
|
|
25
46
|
}
|
|
26
47
|
|
|
27
|
-
.active {
|
|
28
|
-
background-color: var(--primary-color-verylowalpha);
|
|
29
|
-
color: var(--font-color);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.active sl-icon-button.delete-workspace::part(base) {
|
|
48
|
+
.workspace-row.active sl-icon-button.delete-workspace::part(base) {
|
|
33
49
|
display: inline-block;
|
|
34
50
|
}
|
|
35
|
-
|
|
51
|
+
|
|
52
|
+
.workspace-row.active sl-icon-button.edit-workspace::part(base) {
|
|
36
53
|
display: inline-block;
|
|
37
54
|
}
|
|
38
55
|
|
|
@@ -50,4 +67,68 @@ export default css `
|
|
|
50
67
|
color: var(--secondary-color)
|
|
51
68
|
}
|
|
52
69
|
|
|
70
|
+
/* Clean 4-column workspace grid */
|
|
71
|
+
.workspace-grid {
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
gap: 2px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.workspace-row {
|
|
78
|
+
display: grid;
|
|
79
|
+
grid-template-columns: 20px auto 1fr auto;
|
|
80
|
+
gap: 8px;
|
|
81
|
+
align-items: start;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
margin: 2px 0;
|
|
84
|
+
padding: 4px 8px;
|
|
85
|
+
min-height: 25px;
|
|
86
|
+
border-radius: 0;
|
|
87
|
+
background-color: transparent;
|
|
88
|
+
transition: background-color 0.15s ease;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.col-github-icon {
|
|
92
|
+
width: 20px;
|
|
93
|
+
min-width: 20px;
|
|
94
|
+
color: var(--font-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.workspace-row.active {
|
|
98
|
+
background-color: var(--primary-color-verylowalpha);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.col-chevron {
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.col-name {
|
|
106
|
+
min-width: 0;
|
|
107
|
+
word-wrap: break-word;
|
|
108
|
+
overflow-wrap: break-word;
|
|
109
|
+
line-height: 1.4;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.col-name strong,
|
|
114
|
+
.col-name a {
|
|
115
|
+
line-height: inherit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.col-actions {
|
|
119
|
+
display: flex;
|
|
120
|
+
gap: 5px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Prevent layout shift on workspace links */
|
|
124
|
+
.workspace-link {
|
|
125
|
+
text-decoration: none;
|
|
126
|
+
border-bottom: 1px solid transparent;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.workspace-link:hover {
|
|
130
|
+
text-decoration: none;
|
|
131
|
+
border-bottom: 1px solid currentColor;
|
|
132
|
+
}
|
|
133
|
+
|
|
53
134
|
`;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TheDoctor } from "../the-doctor/the-doctor.js";
|
|
2
2
|
import { WorkspaceController } from "../../controllers/workspace-controller.js";
|
|
3
3
|
import { WalletController } from "../../controllers/wallet-controller.js";
|
|
4
|
+
import { GitHubController } from "../../controllers/github-controller.js";
|
|
5
|
+
import { GitHubWorkspaceView } from "../github/github-workspace-view.js";
|
|
4
6
|
import { Workspace } from "../../model/workspace.js";
|
|
5
7
|
import { Formable } from "../../model/formable.js";
|
|
6
8
|
import { WorkspaceForm } from "./workspace-form.js";
|
|
@@ -13,12 +15,15 @@ export declare class WorkspacesView extends Formable {
|
|
|
13
15
|
workspaces: Workspace[];
|
|
14
16
|
wsController: WorkspaceController;
|
|
15
17
|
walletController: WalletController;
|
|
18
|
+
githubController: GitHubController;
|
|
16
19
|
workspaceForm: WorkspaceForm;
|
|
17
20
|
destroyDialog: WorkspaceDestroyView;
|
|
18
|
-
|
|
21
|
+
githubView: GitHubWorkspaceView;
|
|
22
|
+
constructor(doc: TheDoctor, wsController: WorkspaceController, walletController: WalletController, githubController: GitHubController);
|
|
19
23
|
private setupDestroyDialogEvents;
|
|
20
24
|
private setupWorkspaceFormEvents;
|
|
21
25
|
private setupWalletEvents;
|
|
26
|
+
firstUpdated(): Promise<void>;
|
|
22
27
|
private handleDailyCreditRequest;
|
|
23
28
|
private handleWorkspaceFormComplete;
|
|
24
29
|
openCreateWorkspaceDialog(): void;
|
|
@@ -30,5 +35,7 @@ export declare class WorkspacesView extends Formable {
|
|
|
30
35
|
private handleDestroyCancel;
|
|
31
36
|
private handleDestroyConfirm;
|
|
32
37
|
deleteWorkspaceError(error: PlatformError): void;
|
|
38
|
+
private handleWorkspaceHover;
|
|
39
|
+
private handleWorkspaceUnhover;
|
|
33
40
|
render(): import("lit-html").TemplateResult<1>;
|
|
34
41
|
}
|