@wular/coder 0.3.17 → 0.4.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 +18 -16
- package/bin/coder.mjs +3 -1
- package/dist/actions-Mk3FSlpJ.js +20 -0
- package/dist/adapter-B0oYCI0S.js +1 -0
- package/dist/adapter-BKVzTDnn.js +1 -0
- package/dist/adapter-DPInwbJG.js +1 -0
- package/dist/adapter-DaiJMOYo.js +1 -0
- package/dist/adapter-PeKziOUg.js +1 -0
- package/dist/add-BxpLHnvD.js +1 -0
- package/dist/add-CE-70LFs.js +1 -0
- package/dist/add-U-pty9qJ.js +6 -0
- package/dist/add-ej0X9e3a.js +1 -0
- package/dist/add-json-CEa-6luW.js +1 -0
- package/dist/agent-BsYx3Odz.js +3 -0
- package/dist/agent-JdtZozvP.js +1 -0
- package/dist/alias-DX-Bm86x.js +2 -0
- package/dist/app-BT5f7zL5.js +1 -0
- package/dist/approvals-C-AvFt6s.js +2 -0
- package/dist/approve-DOmpQRNd.js +2 -0
- package/dist/apps-CjfrZyM5.js +1 -0
- package/dist/archive-BUB8gFKD.js +4 -0
- package/dist/archive-BziJ1rQ-.js +3 -0
- package/dist/archive-sweep-CtBcARgN.js +1 -0
- package/dist/args-BOEEdpWk.js +1 -0
- package/dist/ask-dE3U3ss2.js +4 -0
- package/dist/auth-BFny--17.js +1 -0
- package/dist/auth-DWHIzqbA.js +1 -0
- package/dist/builtin/coder/agent.json +24 -0
- package/dist/builtin/coder/system.md +17 -0
- package/dist/chat-3Znsevah.js +1 -0
- package/dist/chat-B_yhNTo0.js +13 -0
- package/dist/chat-bridge-BS9WtP3X.js +2 -0
- package/dist/cli-BilSDkvE.js +9 -0
- package/dist/cli.d.ts +71 -1
- package/dist/cli.js +1 -91
- package/dist/client-D9IoAuDD.js +1 -0
- package/dist/config-Da_cwoxI.js +3 -0
- package/dist/create-C_iMJV4Y.js +1 -0
- package/dist/credentials-B1jv6dkg.js +1 -0
- package/dist/dash/manifest.json +3427 -0
- package/dist/dash/public/assets/apple-touch-icon.png +0 -0
- package/dist/dash/public/assets/chunks/agent-pills-69c965aae1737cef.js +1 -0
- package/dist/dash/public/assets/chunks/agent-settings-form-a1ce70812eea3f20.js +1 -0
- package/dist/dash/public/assets/chunks/agents-grid-f62180478e43c192.js +1 -0
- package/dist/dash/public/assets/chunks/badge-d07f35e9abc80e14.js +1 -0
- package/dist/dash/public/assets/chunks/card-be04148b64223a52.js +1 -0
- package/dist/dash/public/assets/chunks/combo-32c321a7a84fa902.js +1 -0
- package/dist/dash/public/assets/chunks/composer-aec9c3c691f1f79a.js +1 -0
- package/dist/dash/public/assets/chunks/composer-data-6f7608fed13f3dd7.js +1 -0
- package/dist/dash/public/assets/chunks/composer-e56860d72742379e.js +1 -0
- package/dist/dash/public/assets/chunks/confirm-b4e2c16aef4b3431.js +1 -0
- package/dist/dash/public/assets/chunks/connect-apps-a5a63941e287c33f.js +1 -0
- package/dist/dash/public/assets/chunks/connect-repositories-e4c049b5b4384623.js +1 -0
- package/dist/dash/public/assets/chunks/credentials-list-2b7d0c771b89f9c5.js +2 -0
- package/dist/dash/public/assets/chunks/custom-range-53b70e0d9eeae84e.js +1 -0
- package/dist/dash/public/assets/chunks/editor-691d2bcecb1ecb87.js +7 -0
- package/dist/dash/public/assets/chunks/engines-list-a5fe1671601ce3b0.js +1 -0
- package/dist/dash/public/assets/chunks/field-9e12e5fc8774b6e5.js +1 -0
- package/dist/dash/public/assets/chunks/format-eb03fc9d9744d960.js +1 -0
- package/dist/dash/public/assets/chunks/heads-4041a925d63ab116.js +1 -0
- package/dist/dash/public/assets/chunks/instructions-4e0d18b9b40edbd7.js +2 -0
- package/dist/dash/public/assets/chunks/instructions-b00959bd4bb70502.js +1 -0
- package/dist/dash/public/assets/chunks/list-d7eb9e02cf261fbe.js +1 -0
- package/dist/dash/public/assets/chunks/mcp-list-a450533109045ef5.js +1 -0
- package/dist/dash/public/assets/chunks/model-options-15c53331a2f28a4f.js +1 -0
- package/dist/dash/public/assets/chunks/models-list-1e273c6843858148.js +1 -0
- package/dist/dash/public/assets/chunks/paged-bc6fa0c2b9d52ed7.js +1 -0
- package/dist/dash/public/assets/chunks/platform-actions-87f3f76ec1b840cb.js +1 -0
- package/dist/dash/public/assets/chunks/runners-list-fc7cdae4fa93e78b.js +1 -0
- package/dist/dash/public/assets/chunks/runtime-246221e985d863e5-1.js +2 -0
- package/dist/dash/public/assets/chunks/segmented-6091dfb2f954799f.js +1 -0
- package/dist/dash/public/assets/chunks/select-dd09a6b9544cfde2.js +1 -0
- package/dist/dash/public/assets/chunks/sentinel-ff7143a47fd22835.js +1 -0
- package/dist/dash/public/assets/chunks/shared-init-246221e985d863e5-2.js +1 -0
- package/dist/dash/public/assets/chunks/shared-init-8f2ac936c95a7f7b.js +1 -0
- package/dist/dash/public/assets/chunks/shared-init-986901c810947c12.js +5 -0
- package/dist/dash/public/assets/chunks/shared-init-baceed9fd2d43661.js +2 -0
- package/dist/dash/public/assets/chunks/tail-5a5bfcd308535d70.js +1 -0
- package/dist/dash/public/assets/chunks/task-actions-7919ca0e901131f4.js +1 -0
- package/dist/dash/public/assets/chunks/task-fa8b82e95e771c4a.js +1 -0
- package/dist/dash/public/assets/chunks/task-view-e8a0f99c992fa11e.js +3 -0
- package/dist/dash/public/assets/chunks/tasks-list-7b72f5b295349532.js +1 -0
- package/dist/dash/public/assets/chunks/toolbar-9b18a5d26dee37c3.js +1 -0
- package/dist/dash/public/assets/chunks/versions-list-8cdf3a41c56b2152.js +1 -0
- package/dist/dash/public/assets/chunks/wular-pnext-246221e985d863e5-0.js +1 -0
- package/dist/dash/public/assets/connect-382b1729a7ae7808.css +1 -0
- package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +1 -0
- package/dist/dash/public/assets/dash-account-04859899c1838ada.css +1 -0
- package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +1 -0
- package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +1 -0
- package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +1 -0
- package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +1 -0
- package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +1 -0
- package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +1 -0
- package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +1 -0
- package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +1 -0
- package/dist/dash/public/assets/favicon.ico +0 -0
- package/dist/dash/public/assets/favicon.svg +1 -0
- package/dist/dash/public/assets/fonts/LICENSE-fira-code +93 -0
- package/dist/dash/public/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
- package/dist/dash/public/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
- package/dist/dash/public/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
- package/dist/dash/public/assets/global-d2adbf01910d9df5.css +1 -0
- package/dist/dash/public/assets/login-c129b1ce237be260.css +1 -0
- package/dist/dash/public/assets/pnext-client-073464b8f422ef57.js +1 -0
- package/dist/dash/public/assets/pnext-client-0b6720fdec66eeb0.js +1 -0
- package/dist/dash/public/assets/pnext-client-1e9cb2f4f6387a87.js +1 -0
- package/dist/dash/public/assets/pnext-client-2f0e78dd006fed0f.js +1 -0
- package/dist/dash/public/assets/pnext-client-3c62e2aa2cbe9fe1.js +1 -0
- package/dist/dash/public/assets/pnext-client-43a88896ed42dd39.js +1 -0
- package/dist/dash/public/assets/pnext-client-4cf2e27d0b9c0365.js +1 -0
- package/dist/dash/public/assets/pnext-client-587008fa987d3073.js +1 -0
- package/dist/dash/public/assets/pnext-client-676360cc86f31573.js +1 -0
- package/dist/dash/public/assets/pnext-client-813427605f424145.js +1 -0
- package/dist/dash/public/assets/pnext-client-82de7cf6dfc35b98.js +1 -0
- package/dist/dash/public/assets/pnext-client-831e8004c09f0b5b.js +1 -0
- package/dist/dash/public/assets/pnext-client-9b557fe468a45ca3.js +1 -0
- package/dist/dash/public/assets/pnext-client-ab7c900c802fe827.js +1 -0
- package/dist/dash/public/assets/pnext-client-d87d00e402811f0c.js +1 -0
- package/dist/dash/public/assets/pnext-client-fbdb7c1da7eda7e5.js +1 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +28 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +2702 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +206 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +832 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +33 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +1580 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +129 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +435 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +23 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +829 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +722 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +20 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +170 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +376 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +87 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +6268 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +1196 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +59 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +5149 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +18 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +436 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +15 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +105 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +181 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +645 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +127 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +7144 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +2395 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +218 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +70 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +229 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +625 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +263 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +16 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +14 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +15 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +217 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +14 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +46 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +961 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +24 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +12577 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +503 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +52 -0
- package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +13 -0
- package/dist/default-Bobztoxf.js +1 -0
- package/dist/default-vYPT26DR.js +1 -0
- package/dist/delete-D8gEwoOj.js +4 -0
- package/dist/delete-z1_86nf6.js +2 -0
- package/dist/disable-DVKd-0Xb.js +1 -0
- package/dist/discover-Df-a8K4R.js +3 -0
- package/dist/discover-Dvr_3_Xr.js +1 -0
- package/dist/dispatch-BKeAch9E.js +14 -0
- package/dist/docs-BX65z2Iu.js +2 -0
- package/dist/docs-DKJnqZqt.js +2 -0
- package/dist/enable-C8Zf_wpN.js +1 -0
- package/dist/env-CRf6wkM2.js +1 -0
- package/dist/exec-RZFLclKX.js +11 -0
- package/dist/executor-BvAA7Cgw.js +10 -0
- package/dist/flow/builtin/review.d.ts +157 -0
- package/dist/flow/builtin/review.js +19 -0
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/flow-17k25MHt.js +1 -0
- package/dist/github-actions-DwUzm4hC.js +24 -0
- package/dist/http-Bkg_OQ6r.js +1 -0
- package/dist/{index-BQ-b77or.d.ts → index-DT7EST00.d.ts} +116 -238
- package/dist/init-CoMfFxbG.js +1 -0
- package/dist/integrations-5xCaXSd-.js +1 -0
- package/dist/integrations-BAgdVDhj.js +5 -0
- package/dist/lib/broker.js +3 -3
- package/dist/list-BAKvxSbh.js +4 -0
- package/dist/list-BYiG8Zav.js +2 -0
- package/dist/list-BxEywhHU.js +1 -0
- package/dist/list-C5w01-8q.js +1 -0
- package/dist/list-CIW2joV1.js +1 -0
- package/dist/list-DX-z3SBp.js +3 -0
- package/dist/list-DpCf4G-H.js +4 -0
- package/dist/list-VToARh3C.js +1 -0
- package/dist/load-BpEsAn51.js +2 -0
- package/dist/local-H3uvqEbq.js +1 -0
- package/dist/log-view-dg0TlKLA.js +1 -0
- package/dist/login-BFxX4jJy.js +1 -0
- package/dist/login-DkkslfBx.js +1 -0
- package/dist/logout-BHAtw4Z8.js +1 -0
- package/dist/maintenance-C5FklUw3.js +1 -0
- package/dist/match-CXAjDhg7.js +1 -0
- package/dist/mcp-BgKb2Cdk.js +1 -0
- package/dist/mcp-CCZOAo06.js +1 -0
- package/dist/mcp-server-DGzme0YX.js +1 -0
- package/dist/migrate-C4vM7DQN.js +2 -0
- package/dist/migrate-N-85_N7J.js +1 -0
- package/dist/model-Bs1StDo3.js +1 -0
- package/dist/models-_5LVGC3m.js +1 -0
- package/dist/output-BKeyLbvt.js +5 -0
- package/dist/prompt-CEuBMNhk.js +7 -0
- package/dist/push-CUC55Bqd.js +1 -0
- package/dist/queue-6io_NOP3.js +116 -0
- package/dist/refresh-BIrmrWYq.js +1 -0
- package/dist/remote-miQNTVRa.js +1 -0
- package/dist/remove-B93LNkZI.js +1 -0
- package/dist/remove-C5_xggx7.js +1 -0
- package/dist/remove-CuH8a3L9.js +1 -0
- package/dist/remove-eQ8y5C5p.js +1 -0
- package/dist/rename-CYfy03FE.js +1 -0
- package/dist/result-BEtQZHaY.js +5 -0
- package/dist/result-BzaM3inj.js +15 -0
- package/dist/resume-DYzKvyEw.js +3 -0
- package/dist/review-oIBeECZE.js +7 -0
- package/dist/rolldown-runtime-DT7IzrpZ.js +1 -0
- package/dist/rotate-key-IdMYH7gg.js +1 -0
- package/dist/run-BDYl0CKl.js +2 -0
- package/dist/run-CTtd0Znc.js +5 -0
- package/dist/run-CawRGnOg.js +2 -0
- package/dist/runner-D7ScbIHJ.js +1 -0
- package/dist/runner-sUpWJ_k0.js +1 -0
- package/dist/schema-CU2iFkp8.js +1 -0
- package/dist/sdk.d.ts +1166 -191
- package/dist/sdk.js +1 -1
- package/dist/serve-BTeomYxW.js +1 -0
- package/dist/serve-CE8YV2e9.js +1 -0
- package/dist/serve-CPnmrKyf.js +2 -0
- package/dist/serve-CQKZxzFE.js +4 -0
- package/dist/serve-GmRO89s5.js +12 -0
- package/dist/server-Kb22cWfF.js +1 -0
- package/dist/setup-host-GFTUzzZJ.js +6 -0
- package/dist/shared-DVtzWhUT.js +1 -0
- package/dist/show-CMUg8SJu.js +1 -0
- package/dist/show-COTZEYgc.js +1 -0
- package/dist/status-D26U--p8.js +1 -0
- package/dist/steer-C6uARLp5.js +4 -0
- package/dist/stop-BrGI3hSS.js +1 -0
- package/dist/stop-ByCAlbmN.js +3 -0
- package/dist/store-B94tSate.js +42 -0
- package/dist/store-DzqXS2wT.js +8 -0
- package/dist/task-C6VAg5WU.js +1 -0
- package/dist/task-CgOKgkEG.js +1 -0
- package/dist/task-DeglY79z.js +5 -0
- package/dist/test-NEbhlxvo.js +1 -0
- package/dist/tools-D0Zfs8Hx.js +1 -0
- package/dist/types-D0q15RJa.js +1 -0
- package/dist/types-Dve7Z0ZP.d.ts +389 -0
- package/dist/unalias-C9NqmSDq.js +1 -0
- package/dist/update-BTxYQj7Z.js +2 -0
- package/dist/upgrade-hA0yWBvx.js +2 -0
- package/dist/usage-BhqoCjvE.js +1 -0
- package/dist/usage-C4d9X2Uq.js +1 -0
- package/dist/watch-CSdj24ct.js +5 -0
- package/dist/watch-DtRuC0Wc.js +8 -0
- package/dist/wire-BeT1Axeo.js +1 -0
- package/dist/worker-CXndxmGF.js +9 -0
- package/dist/worker-DX7P9kWl.js +1 -0
- package/dist/workflow-Dcmdooi8.js +1 -0
- package/docs/agents/coder.md +26 -0
- package/docs/agents/index.md +120 -0
- package/docs/config.md +51 -30
- package/docs/dash.md +64 -0
- package/docs/flows.md +20 -15
- package/docs/mcp.md +62 -0
- package/docs/models.md +41 -23
- package/docs/review.md +41 -0
- package/docs/sdk.md +57 -38
- package/docs/self-host.md +188 -0
- package/migrations/0000_initial.sql +252 -0
- package/migrations/meta/0000_snapshot.json +1787 -0
- package/migrations/meta/_journal.json +13 -0
- package/package.json +37 -7
- package/plugins/agents/skills/coder/SKILL.md +14 -60
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/setup.md +2 -2
- package/plugins/claude/skills/dispatch/SKILL.md +14 -58
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/README.md +5 -5
- package/plugins/cursor/assets/logo.png +0 -0
- package/plugins/cursor/skills/coder/SKILL.md +14 -59
- package/src/client/index.ts +573 -0
- package/src/client/types.ts +506 -0
- package/src/core/errors.ts +72 -0
- package/src/core/task/log-view.ts +173 -0
- package/src/server/auth/sign-in.ts +14 -0
- package/src/server/dash/api/load.ts +62 -0
- package/src/server/dash/api/types.ts +11 -0
- package/src/server/dash/app/connect/page.tsx +42 -0
- package/src/server/dash/app/dash/account/loading.tsx +11 -0
- package/src/server/dash/app/dash/account/notify.tsx +42 -0
- package/src/server/dash/app/dash/account/page.css +81 -0
- package/src/server/dash/app/dash/account/page.tsx +126 -0
- package/src/server/dash/app/dash/account/sign-out.tsx +24 -0
- package/src/server/dash/app/dash/agents/(list)/agent-menu.tsx +10 -0
- package/src/server/dash/app/dash/agents/(list)/agents-grid.tsx +143 -0
- package/src/server/dash/app/dash/agents/(list)/connect-apps.tsx +46 -0
- package/src/server/dash/app/dash/agents/(list)/loading.tsx +14 -0
- package/src/server/dash/app/dash/agents/(list)/page.css +72 -0
- package/src/server/dash/app/dash/agents/(list)/page.tsx +89 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.tsx +135 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/loading.tsx +5 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.css +21 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.tsx +173 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/loading.tsx +18 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.css +87 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.tsx +258 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/platform-actions.tsx +111 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.css +114 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.tsx +294 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/loading.tsx +5 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/page.tsx +54 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/loading.tsx +5 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/page.tsx +14 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/loading.tsx +31 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.css +12 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.tsx +163 -0
- package/src/server/dash/app/dash/agents/[slug]/(tabs)/versions-list.tsx +53 -0
- package/src/server/dash/app/dash/agents/[slug]/edit/loading.tsx +31 -0
- package/src/server/dash/app/dash/agents/[slug]/edit/page.tsx +91 -0
- package/src/server/dash/app/dash/agents/agent/agent-pills.css +27 -0
- package/src/server/dash/app/dash/agents/agent/agent-pills.tsx +133 -0
- package/src/server/dash/app/dash/agents/agent/hero.css +40 -0
- package/src/server/dash/app/dash/agents/agent/hero.tsx +60 -0
- package/src/server/dash/app/dash/agents/agent/instructions.css +29 -0
- package/src/server/dash/app/dash/agents/agent/instructions.tsx +82 -0
- package/src/server/dash/app/dash/agents/editor/connect-repositories.ts +16 -0
- package/src/server/dash/app/dash/agents/editor/editor.css +263 -0
- package/src/server/dash/app/dash/agents/editor/editor.tsx +774 -0
- package/src/server/dash/app/dash/agents/editor/import-picker.css +48 -0
- package/src/server/dash/app/dash/agents/editor/import-picker.tsx +253 -0
- package/src/server/dash/app/dash/agents/editor/names.ts +35 -0
- package/src/server/dash/app/dash/agents/new/loading.tsx +25 -0
- package/src/server/dash/app/dash/agents/new/page.tsx +72 -0
- package/src/server/dash/app/dash/layout.css +265 -0
- package/src/server/dash/app/dash/layout.tsx +332 -0
- package/src/server/dash/app/dash/page.tsx +14 -0
- package/src/server/dash/app/dash/settings/[tab]/credentials-list.css +94 -0
- package/src/server/dash/app/dash/settings/[tab]/credentials-list.tsx +619 -0
- package/src/server/dash/app/dash/settings/[tab]/credentials.tsx +36 -0
- package/src/server/dash/app/dash/settings/[tab]/engines-list.css +16 -0
- package/src/server/dash/app/dash/settings/[tab]/engines-list.tsx +135 -0
- package/src/server/dash/app/dash/settings/[tab]/list.css +98 -0
- package/src/server/dash/app/dash/settings/[tab]/list.tsx +215 -0
- package/src/server/dash/app/dash/settings/[tab]/loading.tsx +6 -0
- package/src/server/dash/app/dash/settings/[tab]/mcp-list.css +43 -0
- package/src/server/dash/app/dash/settings/[tab]/mcp-list.tsx +290 -0
- package/src/server/dash/app/dash/settings/[tab]/models-list.tsx +513 -0
- package/src/server/dash/app/dash/settings/[tab]/page.tsx +89 -0
- package/src/server/dash/app/dash/settings/[tab]/runners-list.css +153 -0
- package/src/server/dash/app/dash/settings/[tab]/runners-list.tsx +457 -0
- package/src/server/dash/app/dash/settings/layout.tsx +50 -0
- package/src/server/dash/app/dash/settings/model-options.ts +117 -0
- package/src/server/dash/app/dash/settings/page.tsx +7 -0
- package/src/server/dash/app/dash/settings/settings-head.tsx +24 -0
- package/src/server/dash/app/dash/settings/tunnel-guide.tsx +28 -0
- package/src/server/dash/app/dash/tasks/[id]/activity.tsx +202 -0
- package/src/server/dash/app/dash/tasks/[id]/loading.tsx +31 -0
- package/src/server/dash/app/dash/tasks/[id]/page.tsx +30 -0
- package/src/server/dash/app/dash/tasks/[id]/task-actions.tsx +164 -0
- package/src/server/dash/app/dash/tasks/[id]/task-view.css +407 -0
- package/src/server/dash/app/dash/tasks/[id]/task-view.tsx +513 -0
- package/src/server/dash/app/dash/tasks/composer-data.ts +96 -0
- package/src/server/dash/app/dash/tasks/composer.css +316 -0
- package/src/server/dash/app/dash/tasks/composer.tsx +890 -0
- package/src/server/dash/app/dash/tasks/list/status.css +50 -0
- package/src/server/dash/app/dash/tasks/list/status.tsx +20 -0
- package/src/server/dash/app/dash/tasks/list/task.ts +45 -0
- package/src/server/dash/app/dash/tasks/list/tasks-list.css +85 -0
- package/src/server/dash/app/dash/tasks/list/tasks-list.tsx +402 -0
- package/src/server/dash/app/dash/tasks/list/tasks-section.tsx +96 -0
- package/src/server/dash/app/dash/tasks/page.tsx +53 -0
- package/src/server/dash/app/dash/token-from-hash.tsx +17 -0
- package/src/server/dash/app/dash/usage/custom-range.tsx +63 -0
- package/src/server/dash/app/dash/usage/day-chart.css +109 -0
- package/src/server/dash/app/dash/usage/day-chart.tsx +110 -0
- package/src/server/dash/app/dash/usage/loading.tsx +17 -0
- package/src/server/dash/app/dash/usage/metric.ts +13 -0
- package/src/server/dash/app/dash/usage/page.tsx +117 -0
- package/src/server/dash/app/dash/usage/range-bar.css +13 -0
- package/src/server/dash/app/dash/usage/range-bar.tsx +69 -0
- package/src/server/dash/app/dash/usage/stats.css +52 -0
- package/src/server/dash/app/dash/usage/stats.tsx +19 -0
- package/src/server/dash/app/dash/usage/top-agents.css +40 -0
- package/src/server/dash/app/dash/usage/top-agents.tsx +138 -0
- package/src/server/dash/app/dash/usage/usage.css +0 -0
- package/src/server/dash/app/globals.css +692 -0
- package/src/server/dash/app/layout.tsx +52 -0
- package/src/server/dash/app/login/page.css +26 -0
- package/src/server/dash/app/login/page.tsx +57 -0
- package/src/server/dash/app/page.tsx +5 -0
- package/src/server/dash/app/responsive.css +49 -0
- package/src/server/dash/app/zone.tsx +13 -0
- package/src/server/dash/comps/frame/auth-panel.css +60 -0
- package/src/server/dash/comps/frame/auth-panel.tsx +44 -0
- package/src/server/dash/comps/frame/drawer.css +28 -0
- package/src/server/dash/comps/frame/drawer.tsx +39 -0
- package/src/server/dash/comps/frame/heads.ts +41 -0
- package/src/server/dash/comps/frame/loading-card.tsx +65 -0
- package/src/server/dash/comps/frame/page-head.css +83 -0
- package/src/server/dash/comps/frame/page-head.tsx +71 -0
- package/src/server/dash/comps/frame/stream.tsx +50 -0
- package/src/server/dash/comps/frame/task-toasts.tsx +214 -0
- package/src/server/dash/comps/frame/theme-choices.tsx +46 -0
- package/src/server/dash/comps/nav/current-link.tsx +53 -0
- package/src/server/dash/comps/nav/side-toggle.tsx +30 -0
- package/src/server/dash/comps/nav/to.ts +22 -0
- package/src/server/dash/comps/ui/badge.css +64 -0
- package/src/server/dash/comps/ui/badge.tsx +41 -0
- package/src/server/dash/comps/ui/card.css +93 -0
- package/src/server/dash/comps/ui/card.tsx +77 -0
- package/src/server/dash/comps/ui/collapse.css +32 -0
- package/src/server/dash/comps/ui/collapse.tsx +49 -0
- package/src/server/dash/comps/ui/combo.tsx +154 -0
- package/src/server/dash/comps/ui/confirm.css +36 -0
- package/src/server/dash/comps/ui/confirm.tsx +67 -0
- package/src/server/dash/comps/ui/field.css +25 -0
- package/src/server/dash/comps/ui/field.tsx +34 -0
- package/src/server/dash/comps/ui/icon.css +22 -0
- package/src/server/dash/comps/ui/icon.tsx +17 -0
- package/src/server/dash/comps/ui/icons.ts +44 -0
- package/src/server/dash/comps/ui/menu.css +178 -0
- package/src/server/dash/comps/ui/menu.tsx +152 -0
- package/src/server/dash/comps/ui/segmented.css +44 -0
- package/src/server/dash/comps/ui/segmented.tsx +58 -0
- package/src/server/dash/comps/ui/select.css +103 -0
- package/src/server/dash/comps/ui/select.tsx +250 -0
- package/src/server/dash/comps/ui/sentinel.css +58 -0
- package/src/server/dash/comps/ui/sentinel.tsx +67 -0
- package/src/server/dash/comps/ui/tabs.css +81 -0
- package/src/server/dash/comps/ui/tabs.tsx +32 -0
- package/src/server/dash/comps/ui/tail.css +12 -0
- package/src/server/dash/comps/ui/tail.tsx +37 -0
- package/src/server/dash/comps/ui/toast.css +72 -0
- package/src/server/dash/comps/ui/toolbar.css +143 -0
- package/src/server/dash/comps/ui/toolbar.tsx +93 -0
- package/src/server/dash/package.json +5 -0
- package/src/server/dash/pnext-env.d.ts +4 -0
- package/src/server/dash/pnext.config.ts +5 -0
- package/src/server/dash/public/assets/apple-touch-icon.png +0 -0
- package/src/server/dash/public/assets/favicon.ico +0 -0
- package/src/server/dash/public/assets/favicon.svg +1 -0
- package/src/server/dash/public/assets/fonts/LICENSE-fira-code +93 -0
- package/src/server/dash/public/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
- package/src/server/dash/public/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
- package/src/server/dash/public/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
- package/src/server/dash/tsconfig.json +10 -0
- package/src/server/dash/utils/client.ts +19 -0
- package/src/server/dash/utils/format.ts +75 -0
- package/src/server/dash/utils/paged.ts +184 -0
- package/src/server/dash/utils/range.ts +117 -0
- package/dist/app-server-bHl6RBZ2.js +0 -3
- package/dist/runtime-X5Bgf1qH.js +0 -26
- package/dist/upgrade-piLxMgEv.js +0 -37
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import './sentinel.css';
|
|
4
|
+
|
|
5
|
+
import { useEffect, useRef } from 'preact/hooks';
|
|
6
|
+
|
|
7
|
+
/** Goes right before a page head: the head sticks under the top bar and turns compact there, its old height kept as margin so nothing under it moves. */
|
|
8
|
+
export function Sentinel() {
|
|
9
|
+
const ref = useRef<HTMLElement>(null);
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const mark = ref.current!;
|
|
13
|
+
// Inside an island the head follows the island's host.
|
|
14
|
+
const head = (mark.nextElementSibling ?? mark.parentElement!.nextElementSibling) as HTMLElement;
|
|
15
|
+
const page = head.closest<HTMLElement>('.page');
|
|
16
|
+
|
|
17
|
+
// How much shorter the compact head is; it compacts only once that much has scrolled under it, so no gap opens above what follows.
|
|
18
|
+
const shrink = () => {
|
|
19
|
+
const stuck = head.classList.contains('stuck');
|
|
20
|
+
const before = head.offsetHeight;
|
|
21
|
+
head.classList.toggle('stuck', !stuck);
|
|
22
|
+
const after = head.offsetHeight;
|
|
23
|
+
head.classList.toggle('stuck', stuck);
|
|
24
|
+
return Math.max(0, stuck ? after - before : before - after);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
let observer: IntersectionObserver | undefined;
|
|
28
|
+
const watch = () => {
|
|
29
|
+
observer?.disconnect();
|
|
30
|
+
// the head sticks at 56px; it compacts once its top is that much further up
|
|
31
|
+
const line = 56 - shrink();
|
|
32
|
+
observer = new IntersectionObserver(
|
|
33
|
+
([entry]) => {
|
|
34
|
+
const stuck = !entry!.isIntersecting && entry!.boundingClientRect.top < line;
|
|
35
|
+
if (stuck === head.classList.contains('stuck')) return;
|
|
36
|
+
|
|
37
|
+
// The page keeps its height while the head changes, or a page just taller than the viewport clamps its scroll to 0.
|
|
38
|
+
const tall = head.offsetHeight;
|
|
39
|
+
if (page) page.style.paddingBottom = `${tall}px`;
|
|
40
|
+
head.classList.toggle('stuck', stuck);
|
|
41
|
+
head.style.marginBottom = stuck ? `${tall - head.offsetHeight}px` : '';
|
|
42
|
+
if (page) page.style.paddingBottom = '';
|
|
43
|
+
},
|
|
44
|
+
{ rootMargin: `${-line}px 0px 0px 0px` },
|
|
45
|
+
);
|
|
46
|
+
observer.observe(mark);
|
|
47
|
+
};
|
|
48
|
+
watch();
|
|
49
|
+
|
|
50
|
+
// Tabs and filter rows stick under the head at its current height; a new width changes how much it compacts by.
|
|
51
|
+
let width = head.offsetWidth;
|
|
52
|
+
const sized = new ResizeObserver(() => {
|
|
53
|
+
page?.style.setProperty('--head', `${head.offsetHeight}px`);
|
|
54
|
+
if (head.offsetWidth === width) return;
|
|
55
|
+
width = head.offsetWidth;
|
|
56
|
+
watch();
|
|
57
|
+
});
|
|
58
|
+
sized.observe(head, { box: 'border-box' });
|
|
59
|
+
return () => {
|
|
60
|
+
observer?.disconnect();
|
|
61
|
+
sized.disconnect();
|
|
62
|
+
page?.style.removeProperty('--head');
|
|
63
|
+
};
|
|
64
|
+
}, []);
|
|
65
|
+
|
|
66
|
+
return <i class="sentinel" ref={ref} />;
|
|
67
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tabs that do not fit scroll sideways; the line is a shadow so the scroll box never clips the current tab's underline */
|
|
2
|
+
.tabs {
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
scrollbar-width: none;
|
|
8
|
+
box-shadow: inset 0 -1px var(--line2);
|
|
9
|
+
}
|
|
10
|
+
/* page tabs are one 40px row that sticks under the top bar and the page head */
|
|
11
|
+
.page .tabs:not(.vertical) {
|
|
12
|
+
height: 40px;
|
|
13
|
+
margin-top: -8px;
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: calc(56px + var(--head, 0px));
|
|
16
|
+
z-index: 9;
|
|
17
|
+
background: var(--bg);
|
|
18
|
+
}
|
|
19
|
+
.tabs a,
|
|
20
|
+
.tabs > button {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: none;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
padding: 10px 12px;
|
|
26
|
+
border: 0;
|
|
27
|
+
border-bottom: 2px solid transparent;
|
|
28
|
+
background: none;
|
|
29
|
+
font-size: 10.5px;
|
|
30
|
+
color: var(--muted);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
.tabs a:hover,
|
|
35
|
+
.tabs > button:hover {
|
|
36
|
+
color: var(--fg);
|
|
37
|
+
}
|
|
38
|
+
.tabs:focus {
|
|
39
|
+
outline: none;
|
|
40
|
+
}
|
|
41
|
+
.tabs a:focus-visible,
|
|
42
|
+
.tabs > button:focus-visible {
|
|
43
|
+
outline-offset: -2px;
|
|
44
|
+
}
|
|
45
|
+
.tabs a[aria-current],
|
|
46
|
+
.tabs a[data-pending],
|
|
47
|
+
.tabs > button[aria-current] {
|
|
48
|
+
color: var(--fg);
|
|
49
|
+
border-bottom-color: var(--fg);
|
|
50
|
+
}
|
|
51
|
+
/* while another tab loads, only that one is underlined */
|
|
52
|
+
.tabs:has(a[data-pending]) a[aria-current]:not([data-pending]) {
|
|
53
|
+
color: var(--muted);
|
|
54
|
+
border-bottom-color: transparent;
|
|
55
|
+
}
|
|
56
|
+
.tabs .count {
|
|
57
|
+
color: var(--dim);
|
|
58
|
+
}
|
|
59
|
+
/* tabs cut at the edge fade out there until scrolled to the end */
|
|
60
|
+
@property --tabs-fade {
|
|
61
|
+
syntax: "<length>";
|
|
62
|
+
inherits: false;
|
|
63
|
+
initial-value: 0px;
|
|
64
|
+
}
|
|
65
|
+
@keyframes tabs-fade {
|
|
66
|
+
from {
|
|
67
|
+
--tabs-fade: 40px;
|
|
68
|
+
}
|
|
69
|
+
to {
|
|
70
|
+
--tabs-fade: 0px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.tabs {
|
|
74
|
+
mask-image: linear-gradient(to left, transparent, #000 var(--tabs-fade));
|
|
75
|
+
animation: tabs-fade linear both;
|
|
76
|
+
animation-timeline: scroll(self inline);
|
|
77
|
+
}
|
|
78
|
+
/* Loading tabs keep their row until the page brings them with their counts. */
|
|
79
|
+
.tabs[aria-hidden] > * {
|
|
80
|
+
visibility: hidden;
|
|
81
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import './tabs.css';
|
|
2
|
+
import { CurrentLink } from '@/comps/nav/current-link';
|
|
3
|
+
import type { To } from '@/comps/nav/to';
|
|
4
|
+
|
|
5
|
+
type TabItem = To & { label: string; count?: number };
|
|
6
|
+
|
|
7
|
+
const compact = new Intl.NumberFormat('en', { notation: 'compact' });
|
|
8
|
+
|
|
9
|
+
/** Tabs that are pages under one header; the current one follows the address. */
|
|
10
|
+
export function Tabs({ label, items }: { label: string; items: TabItem[] }) {
|
|
11
|
+
return (
|
|
12
|
+
<nav class="tabs" aria-label={label}>
|
|
13
|
+
{items.map(({ label, count, ...to }) => (
|
|
14
|
+
<CurrentLink key={label} {...to} prefetch="intent">
|
|
15
|
+
{label}
|
|
16
|
+
{count !== undefined ? <span class="count">{compact.format(count)}</span> : null}
|
|
17
|
+
</CurrentLink>
|
|
18
|
+
))}
|
|
19
|
+
</nav>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Tabs before their page arrives: the same row, kept blank until the labels come with their counts. */
|
|
24
|
+
export function LoadingTabs({ labels }: { labels: string[] }) {
|
|
25
|
+
return (
|
|
26
|
+
<nav class="tabs" aria-hidden="true">
|
|
27
|
+
{labels.map(label => (
|
|
28
|
+
<a key={label}>{label}</a>
|
|
29
|
+
))}
|
|
30
|
+
</nav>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import './tail.css';
|
|
2
|
+
import type { RefObject } from 'preact';
|
|
3
|
+
|
|
4
|
+
import { Loading } from './card';
|
|
5
|
+
|
|
6
|
+
/** Below the rows: what is loading, what failed, and the mark that pulls in the next page. */
|
|
7
|
+
export function Tail({
|
|
8
|
+
sentinel,
|
|
9
|
+
more,
|
|
10
|
+
busy,
|
|
11
|
+
error,
|
|
12
|
+
retry,
|
|
13
|
+
noun,
|
|
14
|
+
}: {
|
|
15
|
+
sentinel: RefObject<HTMLElement>;
|
|
16
|
+
more: boolean;
|
|
17
|
+
busy: boolean;
|
|
18
|
+
error: string;
|
|
19
|
+
retry: () => void;
|
|
20
|
+
noun: string;
|
|
21
|
+
}) {
|
|
22
|
+
if (!more && !error) return null;
|
|
23
|
+
return (
|
|
24
|
+
<div class={error ? 'tail err' : 'tail'} ref={sentinel as never} role="status">
|
|
25
|
+
{error ? (
|
|
26
|
+
<>
|
|
27
|
+
{error}{' '}
|
|
28
|
+
<button type="button" class="btn ghost sm" onClick={retry}>
|
|
29
|
+
Retry
|
|
30
|
+
</button>
|
|
31
|
+
</>
|
|
32
|
+
) : busy ? (
|
|
33
|
+
<Loading label={`Loading more ${noun}`} inline />
|
|
34
|
+
) : null}
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* task toasts: a fixed stack at the bottom right, newest on top */
|
|
2
|
+
.toasts {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 16px;
|
|
5
|
+
right: 16px;
|
|
6
|
+
bottom: 16px;
|
|
7
|
+
z-index: 50;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
width: min(340px, calc(100vw - 32px));
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
.toast {
|
|
16
|
+
position: relative;
|
|
17
|
+
display: grid;
|
|
18
|
+
gap: 4px;
|
|
19
|
+
padding: 10px 12px;
|
|
20
|
+
border: 1px solid var(--line2);
|
|
21
|
+
background: var(--tile);
|
|
22
|
+
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
animation: toast-in 0.15s ease-out;
|
|
26
|
+
}
|
|
27
|
+
.toast:hover {
|
|
28
|
+
background: linear-gradient(var(--wash), var(--wash)), var(--tile);
|
|
29
|
+
}
|
|
30
|
+
.toast:has(.cover:focus-visible) {
|
|
31
|
+
outline: 2px solid var(--acc);
|
|
32
|
+
outline-offset: 2px;
|
|
33
|
+
}
|
|
34
|
+
.toast-head {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
.toast-head .cover {
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
color: var(--fg);
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
.toast-line {
|
|
51
|
+
margin: 0;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
color: var(--muted);
|
|
56
|
+
}
|
|
57
|
+
.toast.err .toast-head .cover {
|
|
58
|
+
color: var(--bad);
|
|
59
|
+
}
|
|
60
|
+
.toast.err .toast-line {
|
|
61
|
+
white-space: normal;
|
|
62
|
+
}
|
|
63
|
+
@keyframes toast-in {
|
|
64
|
+
from {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@media (prefers-reduced-motion: reduce) {
|
|
69
|
+
.toast {
|
|
70
|
+
animation: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
.head.tools {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 10px 24px;
|
|
6
|
+
min-height: 36px;
|
|
7
|
+
}
|
|
8
|
+
.head.tools > div:first-child {
|
|
9
|
+
display: contents;
|
|
10
|
+
}
|
|
11
|
+
.head.tools .lead {
|
|
12
|
+
grid-row: 2;
|
|
13
|
+
grid-column: 1 / -1;
|
|
14
|
+
}
|
|
15
|
+
.head.tools > .filters {
|
|
16
|
+
grid-row: 1;
|
|
17
|
+
grid-column: 2;
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
}
|
|
20
|
+
.head.tools > .filters:last-child {
|
|
21
|
+
grid-column: 2 / -1;
|
|
22
|
+
}
|
|
23
|
+
.head.tools > .actions {
|
|
24
|
+
grid-row: 1;
|
|
25
|
+
grid-column: 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* lists: filters above, rows load on scroll */
|
|
29
|
+
.filters {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
}
|
|
35
|
+
.search {
|
|
36
|
+
position: relative;
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
/* a tab's filter row sticks together with the tabs */
|
|
40
|
+
.tab-body .filters {
|
|
41
|
+
position: sticky;
|
|
42
|
+
top: calc(56px + var(--head, 0px) + var(--tabs, 0px));
|
|
43
|
+
z-index: 8;
|
|
44
|
+
margin-block: -8px;
|
|
45
|
+
padding-block: 8px;
|
|
46
|
+
background: var(--bg);
|
|
47
|
+
}
|
|
48
|
+
.filters .search {
|
|
49
|
+
flex: 1 1 240px;
|
|
50
|
+
max-width: 360px;
|
|
51
|
+
}
|
|
52
|
+
.search .ic {
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: 10px;
|
|
55
|
+
top: 50%;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
color: var(--dim);
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
label.search input[type="search"] {
|
|
61
|
+
padding-left: 32px;
|
|
62
|
+
}
|
|
63
|
+
.filters .select {
|
|
64
|
+
flex: none;
|
|
65
|
+
}
|
|
66
|
+
.filters .end {
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
}
|
|
69
|
+
.vsearch .search {
|
|
70
|
+
width: min(280px, 100%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (max-width: 760px) {
|
|
74
|
+
.head.tools {
|
|
75
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
76
|
+
row-gap: 12px;
|
|
77
|
+
}
|
|
78
|
+
.head.tools > .filters {
|
|
79
|
+
grid-row: 3;
|
|
80
|
+
grid-column: 1 / -1;
|
|
81
|
+
}
|
|
82
|
+
.head.tools > .actions {
|
|
83
|
+
grid-column: 2;
|
|
84
|
+
width: auto;
|
|
85
|
+
}
|
|
86
|
+
.filters .search {
|
|
87
|
+
max-width: none;
|
|
88
|
+
flex-basis: 100%;
|
|
89
|
+
}
|
|
90
|
+
/* the filters share one row under the search, and only the search stays once the head sticks */
|
|
91
|
+
.filters .select {
|
|
92
|
+
flex: 1 1 0;
|
|
93
|
+
}
|
|
94
|
+
.filters .select > button {
|
|
95
|
+
gap: 4px;
|
|
96
|
+
padding-inline: 8px;
|
|
97
|
+
}
|
|
98
|
+
.head.tools.stuck > .filters > .select {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* the rarer filters sit behind one button; it lights up while any of them is set */
|
|
104
|
+
.filter-more > .pop:popover-open {
|
|
105
|
+
display: block;
|
|
106
|
+
width: min(260px, calc(100vw - 32px));
|
|
107
|
+
max-height: calc(100vh - 160px);
|
|
108
|
+
overflow-y: auto;
|
|
109
|
+
padding: 6px;
|
|
110
|
+
}
|
|
111
|
+
.filter-more .pop-label:not(:first-child) {
|
|
112
|
+
margin-top: 10px;
|
|
113
|
+
}
|
|
114
|
+
.filter-more .pop-item {
|
|
115
|
+
width: 100%;
|
|
116
|
+
min-height: 30px;
|
|
117
|
+
font-size: 12px;
|
|
118
|
+
}
|
|
119
|
+
/* the filter menu's button, dressed like the selects beside it */
|
|
120
|
+
.field-btn {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
gap: 10px;
|
|
124
|
+
min-height: 36px;
|
|
125
|
+
padding: 7px 12px;
|
|
126
|
+
border: 1px solid var(--line2);
|
|
127
|
+
background: var(--field);
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
.field-btn:focus-visible,
|
|
132
|
+
.field-btn:has(+ .pop:popover-open) {
|
|
133
|
+
outline: none;
|
|
134
|
+
border-color: var(--acc);
|
|
135
|
+
box-shadow: 0 0 0 3px var(--accbg);
|
|
136
|
+
}
|
|
137
|
+
.field-btn:disabled {
|
|
138
|
+
color: var(--muted);
|
|
139
|
+
cursor: default;
|
|
140
|
+
}
|
|
141
|
+
.filter-more > .field-btn.on {
|
|
142
|
+
color: var(--acc);
|
|
143
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import './toolbar.css';
|
|
2
|
+
import type { ComponentChildren } from 'preact';
|
|
3
|
+
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
4
|
+
|
|
5
|
+
import { iSearch } from './icons';
|
|
6
|
+
import { readQuery, writeQuery } from '@/utils/paged';
|
|
7
|
+
import { Icon } from './icon';
|
|
8
|
+
import { Sentinel } from './sentinel';
|
|
9
|
+
|
|
10
|
+
/** The query string for a set of filters, empty ones left out. */
|
|
11
|
+
export const queryOf = (values: Record<string, string>) =>
|
|
12
|
+
new URLSearchParams(Object.entries(values).filter(([, value]) => value)).toString();
|
|
13
|
+
|
|
14
|
+
/** Filter values that live in the address bar; typing settles for a moment before it applies. */
|
|
15
|
+
export function useFilters<K extends string>(initial: Record<K, string>) {
|
|
16
|
+
const [values, setValues] = useState(initial);
|
|
17
|
+
const [applied, setApplied] = useState(initial);
|
|
18
|
+
const timer = useRef<ReturnType<typeof setTimeout>>();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const fromUrl = readQuery(Object.keys(initial)) as Record<K, string>;
|
|
21
|
+
if (Object.keys(initial).some(key => fromUrl[key as K] !== initial[key as K])) {
|
|
22
|
+
setValues(fromUrl);
|
|
23
|
+
setApplied(fromUrl);
|
|
24
|
+
}
|
|
25
|
+
}, []);
|
|
26
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
27
|
+
const set = (key: K, value: string, settle = 0) => {
|
|
28
|
+
const next = { ...values, [key]: value };
|
|
29
|
+
setValues(next);
|
|
30
|
+
clearTimeout(timer.current);
|
|
31
|
+
const apply = () => {
|
|
32
|
+
setApplied(next);
|
|
33
|
+
writeQuery(next);
|
|
34
|
+
};
|
|
35
|
+
if (settle) timer.current = setTimeout(apply, settle);
|
|
36
|
+
else apply();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return { values, set, query: queryOf(applied) };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function Search({
|
|
43
|
+
value,
|
|
44
|
+
label,
|
|
45
|
+
onInput,
|
|
46
|
+
}: {
|
|
47
|
+
value: string;
|
|
48
|
+
label: string;
|
|
49
|
+
onInput: (value: string) => void;
|
|
50
|
+
}) {
|
|
51
|
+
return (
|
|
52
|
+
<label class="search">
|
|
53
|
+
<Icon d={iSearch} />
|
|
54
|
+
<input
|
|
55
|
+
type="search"
|
|
56
|
+
value={value}
|
|
57
|
+
placeholder={label}
|
|
58
|
+
aria-label={label}
|
|
59
|
+
onInput={event => onInput((event.currentTarget as HTMLInputElement).value)}
|
|
60
|
+
/>
|
|
61
|
+
</label>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** A list's search and filters with its primary action: one row in the page head, or its own row inside a tab. */
|
|
66
|
+
export function Toolbar({
|
|
67
|
+
head,
|
|
68
|
+
action,
|
|
69
|
+
children,
|
|
70
|
+
}: {
|
|
71
|
+
head?: { title: string; lead?: string };
|
|
72
|
+
action?: ComponentChildren;
|
|
73
|
+
children: ComponentChildren;
|
|
74
|
+
}) {
|
|
75
|
+
return head ? (
|
|
76
|
+
<>
|
|
77
|
+
<Sentinel />
|
|
78
|
+
<header class="head tools">
|
|
79
|
+
<div>
|
|
80
|
+
<h1>{head.title}</h1>
|
|
81
|
+
{head.lead ? <p class="lead">{head.lead}</p> : null}
|
|
82
|
+
</div>
|
|
83
|
+
<div class="filters">{children}</div>
|
|
84
|
+
{action ? <div class="actions">{action}</div> : null}
|
|
85
|
+
</header>
|
|
86
|
+
</>
|
|
87
|
+
) : (
|
|
88
|
+
<div class="filters">
|
|
89
|
+
{children}
|
|
90
|
+
{action ? <span class="end">{action}</span> : null}
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><style>path{fill:#0a63c4}@media (prefers-color-scheme:dark){path{fill:#8fbcff}}</style><path d="M5 0h3v3h-3zM9 0h3v3h-3zM13 0h3v3h-3zM0 4h3v3h-3zM0 9h3v3h-3zM5 13h3v3h-3zM9 13h3v3h-3zM13 13h3v3h-3z"/></svg>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014-2020 The Fira Code Project Authors (https://github.com/tonsky/FiraCode)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|