groove-dev 0.27.136 → 0.27.138
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/node_modules/@groove-dev/cli/package.json +1 -1
- package/node_modules/@groove-dev/daemon/package.json +1 -1
- package/node_modules/@groove-dev/daemon/src/adaptive.js +26 -16
- package/node_modules/@groove-dev/daemon/src/journalist.js +62 -24
- package/node_modules/@groove-dev/daemon/src/model-lab.js +6 -5
- package/node_modules/@groove-dev/daemon/src/rotator.js +48 -21
- package/{packages/gui/dist/assets/codemirror-DRQdprYi.js → node_modules/@groove-dev/gui/dist/assets/codemirror-BYKpdS2W.js} +1 -1
- package/{packages/gui/dist/assets/index-BrZHF7pK.js → node_modules/@groove-dev/gui/dist/assets/index-DcNgRadn.js} +1764 -1764
- package/node_modules/@groove-dev/gui/dist/assets/index-EY6WfKWH.css +1 -0
- package/node_modules/@groove-dev/gui/dist/index.html +3 -3
- package/node_modules/@groove-dev/gui/package.json +2 -1
- package/node_modules/@groove-dev/gui/src/components/editor/code-editor.jsx +81 -63
- package/node_modules/@groove-dev/gui/src/components/editor/editor-status-bar.jsx +66 -0
- package/node_modules/@groove-dev/gui/src/components/lab/system-prompt-editor.jsx +21 -24
- package/node_modules/@groove-dev/gui/src/stores/groove.js +5 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/README.md +152 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/cjs/index.js +95 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/esm/index.js +84 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-abcdef/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-abyss/README.md +150 -0
- package/node_modules/@uiw/codemirror-theme-abyss/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-abyss/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-abyss/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-abyss/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-abyss/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-abyss/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-abyss/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-abyss/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-abyss/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-abyss/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-abyss/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-abyss/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-abyss/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/README.md +153 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/cjs/index.js +66 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/esm/index.js +55 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-androidstudio/src/index.ts +40 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/cjs/color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/cjs/color.js +32 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/cjs/index.js +106 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/esm/color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/esm/color.js +26 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/esm/index.js +96 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/src/color.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-andromeda/src/index.ts +56 -0
- package/node_modules/@uiw/codemirror-theme-atomone/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-atomone/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-atomone/cjs/index.js +69 -0
- package/node_modules/@uiw/codemirror-theme-atomone/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-atomone/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-atomone/esm/index.js +58 -0
- package/node_modules/@uiw/codemirror-theme-atomone/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-atomone/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-atomone/src/index.ts +48 -0
- package/node_modules/@uiw/codemirror-theme-aura/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-aura/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-aura/cjs/index.js +99 -0
- package/node_modules/@uiw/codemirror-theme-aura/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-aura/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-aura/esm/index.js +89 -0
- package/node_modules/@uiw/codemirror-theme-aura/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-aura/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-aura/src/index.ts +51 -0
- package/node_modules/@uiw/codemirror-theme-basic/README.md +159 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/dark.js +156 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/index.js +27 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/light.js +153 -0
- package/node_modules/@uiw/codemirror-theme-basic/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-basic/dark.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/dark.js +146 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/index.js +2 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/light.js +143 -0
- package/node_modules/@uiw/codemirror-theme-basic/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-basic/light.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-basic/package.json +63 -0
- package/node_modules/@uiw/codemirror-theme-basic/src/dark.ts +76 -0
- package/node_modules/@uiw/codemirror-theme-basic/src/index.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-basic/src/light.ts +81 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/cjs/index.js +77 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/esm/index.js +67 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-bbedit/src/index.ts +44 -0
- package/node_modules/@uiw/codemirror-theme-bespin/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-bespin/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-bespin/cjs/index.js +72 -0
- package/node_modules/@uiw/codemirror-theme-bespin/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-bespin/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-bespin/esm/index.js +61 -0
- package/node_modules/@uiw/codemirror-theme-bespin/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-bespin/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-bespin/src/index.ts +46 -0
- package/node_modules/@uiw/codemirror-theme-console/README.md +160 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/dark.d.ts +4 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/dark.js +36 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/index.js +27 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/light.d.ts +4 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/light.js +36 -0
- package/node_modules/@uiw/codemirror-theme-console/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-console/dark.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/dark.d.ts +4 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/dark.js +26 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/index.js +2 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/light.d.ts +4 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/light.js +26 -0
- package/node_modules/@uiw/codemirror-theme-console/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-console/light.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-console/package.json +62 -0
- package/node_modules/@uiw/codemirror-theme-console/src/dark.ts +27 -0
- package/node_modules/@uiw/codemirror-theme-console/src/index.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-console/src/light.ts +27 -0
- package/node_modules/@uiw/codemirror-theme-copilot/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-copilot/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-copilot/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-copilot/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-copilot/cjs/index.js +106 -0
- package/node_modules/@uiw/codemirror-theme-copilot/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-copilot/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-copilot/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-copilot/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-copilot/esm/index.js +96 -0
- package/node_modules/@uiw/codemirror-theme-copilot/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-copilot/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-copilot/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-copilot/src/index.ts +56 -0
- package/node_modules/@uiw/codemirror-theme-darcula/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-darcula/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-darcula/cjs/index.js +72 -0
- package/node_modules/@uiw/codemirror-theme-darcula/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-darcula/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-darcula/esm/index.js +61 -0
- package/node_modules/@uiw/codemirror-theme-darcula/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-darcula/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-darcula/src/index.ts +46 -0
- package/node_modules/@uiw/codemirror-theme-dracula/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-dracula/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-dracula/cjs/index.js +69 -0
- package/node_modules/@uiw/codemirror-theme-dracula/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-dracula/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-dracula/esm/index.js +58 -0
- package/node_modules/@uiw/codemirror-theme-dracula/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-dracula/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-dracula/src/index.ts +48 -0
- package/node_modules/@uiw/codemirror-theme-duotone/README.md +156 -0
- package/node_modules/@uiw/codemirror-theme-duotone/cjs/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-duotone/cjs/index.js +115 -0
- package/node_modules/@uiw/codemirror-theme-duotone/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-duotone/esm/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-duotone/esm/index.js +102 -0
- package/node_modules/@uiw/codemirror-theme-duotone/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-duotone/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-duotone/src/index.ts +79 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/README.md +145 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/cjs/index.js +78 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/esm/index.js +68 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-eclipse/src/index.ts +44 -0
- package/node_modules/@uiw/codemirror-theme-github/README.md +154 -0
- package/node_modules/@uiw/codemirror-theme-github/cjs/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-github/cjs/index.js +156 -0
- package/node_modules/@uiw/codemirror-theme-github/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-github/esm/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-github/esm/index.js +143 -0
- package/node_modules/@uiw/codemirror-theme-github/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-github/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-github/src/index.ts +86 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/README.md +153 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/cjs/index.d.ts +8 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/cjs/index.js +296 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/esm/index.d.ts +8 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/esm/index.js +283 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-gruvbox-dark/src/index.ts +203 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-kimbie/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-material/README.md +161 -0
- package/node_modules/@uiw/codemirror-theme-material/cjs/index.d.ts +12 -0
- package/node_modules/@uiw/codemirror-theme-material/cjs/index.js +247 -0
- package/node_modules/@uiw/codemirror-theme-material/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-material/esm/index.d.ts +12 -0
- package/node_modules/@uiw/codemirror-theme-material/esm/index.js +235 -0
- package/node_modules/@uiw/codemirror-theme-material/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-material/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-material/src/index.ts +129 -0
- package/node_modules/@uiw/codemirror-theme-monokai/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-monokai/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-monokai/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-monokai/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-monokai/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-monokai/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-monokai/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-monokai/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-monokai/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-monokai/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/package.json +46 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-monokai-dimmed/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/cjs/index.js +83 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/esm/index.js +73 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-noctis-lilac/src/index.ts +49 -0
- package/node_modules/@uiw/codemirror-theme-nord/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-nord/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-nord/cjs/index.js +159 -0
- package/node_modules/@uiw/codemirror-theme-nord/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-nord/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-nord/esm/index.js +149 -0
- package/node_modules/@uiw/codemirror-theme-nord/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-nord/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-nord/src/index.ts +77 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/README.md +147 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/cjs/index.js +69 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/esm/index.js +59 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-okaidia/src/index.ts +41 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/cjs/index.js +104 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/esm/index.js +94 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-quietlight/src/index.ts +53 -0
- package/node_modules/@uiw/codemirror-theme-red/README.md +149 -0
- package/node_modules/@uiw/codemirror-theme-red/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-red/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-red/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-red/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-red/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-red/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-red/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-red/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-red/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-red/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-red/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-red/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-red/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-solarized/README.md +160 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/dark-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/dark-color.js +32 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/dark.js +104 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/index.js +27 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/light-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/light-color.js +32 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/light.js +104 -0
- package/node_modules/@uiw/codemirror-theme-solarized/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-solarized/dark.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/dark-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/dark-color.js +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/dark.js +94 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/index.js +2 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/light-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/light-color.js +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/light.js +94 -0
- package/node_modules/@uiw/codemirror-theme-solarized/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-solarized/light.d.ts +6 -0
- package/node_modules/@uiw/codemirror-theme-solarized/package.json +63 -0
- package/node_modules/@uiw/codemirror-theme-solarized/src/dark-color.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/src/dark.ts +53 -0
- package/node_modules/@uiw/codemirror-theme-solarized/src/index.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-solarized/src/light-color.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-solarized/src/light.ts +53 -0
- package/node_modules/@uiw/codemirror-theme-sublime/README.md +147 -0
- package/node_modules/@uiw/codemirror-theme-sublime/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-sublime/cjs/index.js +73 -0
- package/node_modules/@uiw/codemirror-theme-sublime/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-sublime/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-sublime/esm/index.js +62 -0
- package/node_modules/@uiw/codemirror-theme-sublime/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-sublime/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-sublime/src/index.ts +42 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/cjs/index.js +99 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/esm/index.js +89 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/package.json +50 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night/src/index.ts +51 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/README.md +153 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/cjs/index.js +100 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/esm/index.js +90 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/package.json +51 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-day/src/index.ts +51 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/README.md +153 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/cjs/index.js +100 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/esm/index.js +90 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/package.json +51 -0
- package/node_modules/@uiw/codemirror-theme-tokyo-night-storm/src/index.ts +51 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/README.md +151 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/cjs/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/cjs/color.js +31 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/cjs/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/cjs/index.js +103 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/color.d.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/color.js +25 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/index.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/index.js +93 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/package.json +45 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/src/color.ts +25 -0
- package/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/src/index.ts +52 -0
- package/node_modules/@uiw/codemirror-theme-vscode/README.md +161 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/dark.js +98 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/index.js +27 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/light.js +98 -0
- package/node_modules/@uiw/codemirror-theme-vscode/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/dark.js +85 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/index.js +2 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/light.js +85 -0
- package/node_modules/@uiw/codemirror-theme-vscode/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-vscode/package.json +44 -0
- package/node_modules/@uiw/codemirror-theme-vscode/src/dark.ts +82 -0
- package/node_modules/@uiw/codemirror-theme-vscode/src/index.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-vscode/src/light.ts +82 -0
- package/node_modules/@uiw/codemirror-theme-white/README.md +160 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/dark-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/dark-color.js +32 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/dark.js +110 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/index.js +27 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/light-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/light-color.js +32 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/light.js +110 -0
- package/node_modules/@uiw/codemirror-theme-white/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/dark-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/dark-color.js +26 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/dark.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/dark.js +100 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/index.d.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/index.js +2 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/light-color.d.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/light-color.js +26 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/light.d.ts +5 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/light.js +100 -0
- package/node_modules/@uiw/codemirror-theme-white/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-white/package.json +56 -0
- package/node_modules/@uiw/codemirror-theme-white/src/dark-color.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/src/dark.ts +57 -0
- package/node_modules/@uiw/codemirror-theme-white/src/index.ts +2 -0
- package/node_modules/@uiw/codemirror-theme-white/src/light-color.ts +26 -0
- package/node_modules/@uiw/codemirror-theme-white/src/light.ts +57 -0
- package/node_modules/@uiw/codemirror-theme-xcode/README.md +154 -0
- package/node_modules/@uiw/codemirror-theme-xcode/cjs/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-xcode/cjs/index.js +119 -0
- package/node_modules/@uiw/codemirror-theme-xcode/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-xcode/esm/index.d.ts +9 -0
- package/node_modules/@uiw/codemirror-theme-xcode/esm/index.js +104 -0
- package/node_modules/@uiw/codemirror-theme-xcode/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-theme-xcode/package.json +44 -0
- package/node_modules/@uiw/codemirror-theme-xcode/src/index.ts +75 -0
- package/node_modules/@uiw/codemirror-themes/README.md +391 -0
- package/node_modules/@uiw/codemirror-themes/cjs/index.d.ts +46 -0
- package/node_modules/@uiw/codemirror-themes/cjs/index.js +84 -0
- package/node_modules/@uiw/codemirror-themes/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-themes/esm/index.d.ts +46 -0
- package/node_modules/@uiw/codemirror-themes/esm/index.js +78 -0
- package/node_modules/@uiw/codemirror-themes/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-themes/package.json +56 -0
- package/node_modules/@uiw/codemirror-themes/src/index.tsx +128 -0
- package/node_modules/@uiw/codemirror-themes-all/README.md +406 -0
- package/node_modules/@uiw/codemirror-themes-all/cjs/index.d.ts +35 -0
- package/node_modules/@uiw/codemirror-themes-all/cjs/index.js +390 -0
- package/node_modules/@uiw/codemirror-themes-all/cjs/package.json +1 -0
- package/node_modules/@uiw/codemirror-themes-all/esm/index.d.ts +35 -0
- package/node_modules/@uiw/codemirror-themes-all/esm/index.js +35 -0
- package/node_modules/@uiw/codemirror-themes-all/esm/package.json +1 -0
- package/node_modules/@uiw/codemirror-themes-all/package.json +86 -0
- package/node_modules/@uiw/codemirror-themes-all/src/index.ts +35 -0
- package/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/daemon/package.json +1 -1
- package/packages/daemon/src/adaptive.js +26 -16
- package/packages/daemon/src/journalist.js +62 -24
- package/packages/daemon/src/model-lab.js +6 -5
- package/packages/daemon/src/rotator.js +48 -21
- package/{node_modules/@groove-dev/gui/dist/assets/codemirror-DRQdprYi.js → packages/gui/dist/assets/codemirror-BYKpdS2W.js} +1 -1
- package/{node_modules/@groove-dev/gui/dist/assets/index-BrZHF7pK.js → packages/gui/dist/assets/index-DcNgRadn.js} +1764 -1764
- package/packages/gui/dist/assets/index-EY6WfKWH.css +1 -0
- package/packages/gui/dist/index.html +3 -3
- package/packages/gui/package.json +2 -1
- package/packages/gui/src/components/editor/code-editor.jsx +81 -63
- package/packages/gui/src/components/editor/editor-status-bar.jsx +66 -0
- package/packages/gui/src/components/lab/system-prompt-editor.jsx +21 -24
- package/packages/gui/src/stores/groove.js +5 -0
- package/model-workspace/LAB-ASSISTANT-BUILD-PLAN.md +0 -341
- package/node_modules/@groove-dev/gui/dist/assets/index-DIfiwdKl.css +0 -1
- package/packages/gui/dist/assets/index-DIfiwdKl.css +0 -1
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// FSL-1.1-Apache-2.0 — see LICENSE
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { Palette } from 'lucide-react';
|
|
4
|
+
import { useGrooveStore } from '../../stores/groove';
|
|
5
|
+
import { EDITOR_THEMES } from './code-editor';
|
|
6
|
+
import { cn } from '../../lib/cn';
|
|
2
7
|
|
|
3
8
|
const LANG_LABELS = {
|
|
4
9
|
javascript: 'JavaScript',
|
|
@@ -10,13 +15,74 @@ const LANG_LABELS = {
|
|
|
10
15
|
python: 'Python',
|
|
11
16
|
};
|
|
12
17
|
|
|
18
|
+
const themeKeys = Object.keys(EDITOR_THEMES);
|
|
19
|
+
const darkThemes = themeKeys.filter((k) => !['githubLight', 'vscodeLight', 'eclipse', 'xcodeLight', 'solarizedLight', 'gruvboxLight', 'materialLight', 'duotoneLight', 'quietlight', 'bbedit', 'tokyoNightDay', 'basicLight'].includes(k));
|
|
20
|
+
const lightThemes = themeKeys.filter((k) => !darkThemes.includes(k));
|
|
21
|
+
|
|
13
22
|
export function EditorStatusBar({ cursorPos, language }) {
|
|
23
|
+
const editorTheme = useGrooveStore((s) => s.editorTheme);
|
|
24
|
+
const setEditorTheme = useGrooveStore((s) => s.setEditorTheme);
|
|
25
|
+
const [open, setOpen] = useState(false);
|
|
26
|
+
const menuRef = useRef(null);
|
|
27
|
+
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!open) return;
|
|
30
|
+
function handleClick(e) {
|
|
31
|
+
if (menuRef.current && !menuRef.current.contains(e.target)) setOpen(false);
|
|
32
|
+
}
|
|
33
|
+
document.addEventListener('mousedown', handleClick);
|
|
34
|
+
return () => document.removeEventListener('mousedown', handleClick);
|
|
35
|
+
}, [open]);
|
|
36
|
+
|
|
14
37
|
return (
|
|
15
38
|
<div className="flex items-center justify-between h-6 px-3 bg-surface-1 border-t border-border-subtle text-2xs font-sans text-text-3 flex-shrink-0 select-none">
|
|
16
39
|
<div className="flex items-center gap-3">
|
|
17
40
|
<span>Ln {cursorPos.line}, Col {cursorPos.col}</span>
|
|
18
41
|
</div>
|
|
19
42
|
<div className="flex items-center gap-3">
|
|
43
|
+
<div className="relative" ref={menuRef}>
|
|
44
|
+
<button
|
|
45
|
+
onClick={() => setOpen(!open)}
|
|
46
|
+
className="flex items-center gap-1.5 hover:text-text-0 transition-colors cursor-pointer"
|
|
47
|
+
>
|
|
48
|
+
<Palette size={10} />
|
|
49
|
+
<span>{EDITOR_THEMES[editorTheme]?.label || editorTheme}</span>
|
|
50
|
+
</button>
|
|
51
|
+
{open && (
|
|
52
|
+
<div className="absolute bottom-6 right-0 w-48 max-h-72 overflow-y-auto rounded-md border border-border bg-surface-2 shadow-xl z-50 py-1 scrollbar-thin">
|
|
53
|
+
<div className="px-2 py-1 text-2xs text-text-4 font-semibold uppercase tracking-wider">Dark</div>
|
|
54
|
+
{darkThemes.map((key) => (
|
|
55
|
+
<button
|
|
56
|
+
key={key}
|
|
57
|
+
onClick={() => { setEditorTheme(key); setOpen(false); }}
|
|
58
|
+
className={cn(
|
|
59
|
+
'w-full text-left px-3 py-1 text-2xs font-sans cursor-pointer transition-colors',
|
|
60
|
+
key === editorTheme
|
|
61
|
+
? 'text-accent bg-accent/10'
|
|
62
|
+
: 'text-text-1 hover:bg-surface-4',
|
|
63
|
+
)}
|
|
64
|
+
>
|
|
65
|
+
{EDITOR_THEMES[key].label}
|
|
66
|
+
</button>
|
|
67
|
+
))}
|
|
68
|
+
<div className="px-2 py-1 mt-1 text-2xs text-text-4 font-semibold uppercase tracking-wider border-t border-border-subtle">Light</div>
|
|
69
|
+
{lightThemes.map((key) => (
|
|
70
|
+
<button
|
|
71
|
+
key={key}
|
|
72
|
+
onClick={() => { setEditorTheme(key); setOpen(false); }}
|
|
73
|
+
className={cn(
|
|
74
|
+
'w-full text-left px-3 py-1 text-2xs font-sans cursor-pointer transition-colors',
|
|
75
|
+
key === editorTheme
|
|
76
|
+
? 'text-accent bg-accent/10'
|
|
77
|
+
: 'text-text-1 hover:bg-surface-4',
|
|
78
|
+
)}
|
|
79
|
+
>
|
|
80
|
+
{EDITOR_THEMES[key].label}
|
|
81
|
+
</button>
|
|
82
|
+
))}
|
|
83
|
+
</div>
|
|
84
|
+
)}
|
|
85
|
+
</div>
|
|
20
86
|
<span className="cursor-default">{LANG_LABELS[language] || language || 'Plain Text'}</span>
|
|
21
87
|
<span>Spaces: 2</span>
|
|
22
88
|
<span>UTF-8</span>
|
|
@@ -4,42 +4,31 @@ import { useGrooveStore } from '../../stores/groove';
|
|
|
4
4
|
import { ChevronDown, ChevronRight } from 'lucide-react';
|
|
5
5
|
import { cn } from '../../lib/cn';
|
|
6
6
|
import { EditorView, keymap, lineNumbers } from '@codemirror/view';
|
|
7
|
-
import { EditorState } from '@codemirror/state';
|
|
7
|
+
import { EditorState, Compartment } from '@codemirror/state';
|
|
8
8
|
import { defaultKeymap, history, historyKeymap } from '@codemirror/commands';
|
|
9
|
-
import { syntaxHighlighting, HighlightStyle } from '@codemirror/language';
|
|
10
|
-
import { tags as t } from '@lezer/highlight';
|
|
11
9
|
import { markdown } from '@codemirror/lang-markdown';
|
|
10
|
+
import { EDITOR_THEMES } from '../editor/code-editor';
|
|
12
11
|
|
|
13
|
-
const
|
|
14
|
-
'&': {
|
|
12
|
+
const promptChrome = EditorView.theme({
|
|
13
|
+
'&': { fontFamily: 'var(--font-mono)', fontSize: '11px', height: '100%', lineHeight: '1.6' },
|
|
15
14
|
'.cm-scroller': { overflow: 'auto', padding: '4px 0' },
|
|
16
|
-
'.cm-content': {
|
|
17
|
-
'.cm-
|
|
18
|
-
'.cm-gutters': { backgroundColor: 'var(--color-surface-1)', borderRight: 'none', color: '#404852', minWidth: '28px' },
|
|
15
|
+
'.cm-content': { padding: '0 8px' },
|
|
16
|
+
'.cm-gutters': { borderRight: 'none', minWidth: '28px' },
|
|
19
17
|
'.cm-activeLine': { backgroundColor: 'rgba(255, 255, 255, 0.02)' },
|
|
20
|
-
'&.cm-focused .cm-selectionBackground, .cm-selectionBackground': { backgroundColor: 'rgba(51, 175, 188, 0.15)' },
|
|
21
18
|
});
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{ tag: [t.function(t.variableName), t.labelName], color: '#dcc9a0' },
|
|
27
|
-
{ tag: [t.meta, t.comment], color: '#6e7681', fontStyle: 'italic' },
|
|
28
|
-
{ tag: t.strong, fontWeight: 'bold' },
|
|
29
|
-
{ tag: t.emphasis, fontStyle: 'italic' },
|
|
30
|
-
{ tag: t.link, color: '#7ab0df', textDecoration: 'underline' },
|
|
31
|
-
{ tag: t.heading, fontWeight: '400', color: '#bcc2cd' },
|
|
32
|
-
{ tag: [t.processingInstruction, t.string, t.inserted], color: '#95b2b8' },
|
|
33
|
-
{ tag: [t.atom, t.bool], color: '#d4a07a' },
|
|
34
|
-
{ tag: t.invalid, color: '#d4736e' },
|
|
35
|
-
]);
|
|
20
|
+
function getThemeExt(key) {
|
|
21
|
+
return EDITOR_THEMES[key]?.ext || EDITOR_THEMES.vscodeDark.ext;
|
|
22
|
+
}
|
|
36
23
|
|
|
37
24
|
export function SystemPromptEditor() {
|
|
38
25
|
const systemPrompt = useGrooveStore((s) => s.labSystemPrompt);
|
|
39
26
|
const setSystemPrompt = useGrooveStore((s) => s.setLabSystemPrompt);
|
|
27
|
+
const themeKey = useGrooveStore((s) => s.editorTheme);
|
|
40
28
|
const [collapsed, setCollapsed] = useState(false);
|
|
41
29
|
const containerRef = useRef(null);
|
|
42
30
|
const viewRef = useRef(null);
|
|
31
|
+
const themeCompartment = useRef(new Compartment());
|
|
43
32
|
const externalUpdate = useRef(false);
|
|
44
33
|
|
|
45
34
|
const charCount = systemPrompt.length;
|
|
@@ -51,6 +40,8 @@ export function SystemPromptEditor() {
|
|
|
51
40
|
useEffect(() => {
|
|
52
41
|
if (!containerRef.current) return;
|
|
53
42
|
|
|
43
|
+
const initialTheme = getThemeExt(useGrooveStore.getState().editorTheme);
|
|
44
|
+
|
|
54
45
|
const updateListener = EditorView.updateListener.of((update) => {
|
|
55
46
|
if (update.docChanged) {
|
|
56
47
|
handleChange(update.state.doc.toString());
|
|
@@ -62,10 +53,10 @@ export function SystemPromptEditor() {
|
|
|
62
53
|
extensions: [
|
|
63
54
|
lineNumbers(),
|
|
64
55
|
history(),
|
|
65
|
-
|
|
56
|
+
themeCompartment.current.of(initialTheme),
|
|
57
|
+
promptChrome,
|
|
66
58
|
markdown(),
|
|
67
59
|
keymap.of([...defaultKeymap, ...historyKeymap]),
|
|
68
|
-
editorTheme,
|
|
69
60
|
updateListener,
|
|
70
61
|
EditorView.lineWrapping,
|
|
71
62
|
],
|
|
@@ -76,6 +67,12 @@ export function SystemPromptEditor() {
|
|
|
76
67
|
return () => view.destroy();
|
|
77
68
|
}, []);
|
|
78
69
|
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
const view = viewRef.current;
|
|
72
|
+
if (!view) return;
|
|
73
|
+
view.dispatch({ effects: themeCompartment.current.reconfigure(getThemeExt(themeKey)) });
|
|
74
|
+
}, [themeKey]);
|
|
75
|
+
|
|
79
76
|
useEffect(() => {
|
|
80
77
|
const view = viewRef.current;
|
|
81
78
|
if (!view) return;
|
|
@@ -196,6 +196,7 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
196
196
|
editorChangedFiles: {},
|
|
197
197
|
editorRecentSaves: {},
|
|
198
198
|
editorSidebarWidth: Number(localStorage.getItem('groove:editorSidebarWidth')) || 240,
|
|
199
|
+
editorTheme: localStorage.getItem('groove:editorTheme') || 'vscodeDark',
|
|
199
200
|
|
|
200
201
|
// ── Workspace Mode ────────────────────────────────────────
|
|
201
202
|
workspaceMode: localStorage.getItem('groove:workspaceMode') === 'true',
|
|
@@ -2810,6 +2811,10 @@ export const useGrooveStore = create((set, get) => ({
|
|
|
2810
2811
|
set({ editorSidebarWidth: width });
|
|
2811
2812
|
localStorage.setItem('groove:editorSidebarWidth', String(width));
|
|
2812
2813
|
},
|
|
2814
|
+
setEditorTheme(theme) {
|
|
2815
|
+
set({ editorTheme: theme });
|
|
2816
|
+
localStorage.setItem('groove:editorTheme', theme);
|
|
2817
|
+
},
|
|
2813
2818
|
|
|
2814
2819
|
updateFileContent(path, content) {
|
|
2815
2820
|
set((s) => ({ editorFiles: { ...s.editorFiles, [path]: { ...s.editorFiles[path], content } } }));
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<div markdown="1">
|
|
2
|
+
<sup>Using <a href="https://wangchujiang.com/#/app" target="_blank">my app</a> is also a way to <a href="https://wangchujiang.com/#/sponsor" target="_blank">support</a> me:</sup>
|
|
3
|
+
<br>
|
|
4
|
+
<a target="_blank" href="https://apps.apple.com/app/6758053530" title="Scap: Screenshot & Markup Edit for macOS"><img alt="Scap: Screenshot & Markup Edit" height="52" width="52" src="https://wangchujiang.com/appicon/scap.png"></a>
|
|
5
|
+
<a target="_blank" href="https://apps.apple.com/app/6757317079" title="Screen Test for macOS"><img alt="Screen Test" height="52" width="52" src="https://wangchujiang.com/appicon/screen-test.png"></a>
|
|
6
|
+
<a target="_blank" href="https://apps.apple.com/app/Deskmark/6755948110" title="Deskmark for macOS"><img alt="Deskmark" height="52" width="52" src="https://wangchujiang.com/appicon/deskmark.png"></a>
|
|
7
|
+
<a target="_blank" href="https://apps.apple.com/app/Keyzer/6500434773" title="Keyzer for macOS"><img alt="Keyzer" height="52" width="52" src="https://wangchujiang.com/appicon/keyzer.png"></a>
|
|
8
|
+
<a target="_blank" href="https://github.com/jaywcjlove/vidwall-hub" title="Vidwall Hub for macOS"><img alt="Vidwall Hub" height="52" width="52" src="https://wangchujiang.com/appicon/vidwall-hub.png"></a>
|
|
9
|
+
<a target="_blank" href="https://apps.apple.com/app/VidCrop/6752624705" title="VidCrop for macOS"><img alt="VidCrop" height="52" width="52" src="https://wangchujiang.com/appicon/vidcrop.png"></a>
|
|
10
|
+
<a target="_blank" href="https://apps.apple.com/app/Vidwall/6747587746" title="Vidwall for macOS"><img alt="Vidwall" height="52" width="52" src="https://wangchujiang.com/appicon/vidwall.png"></a>
|
|
11
|
+
<a target="_blank" href="https://wangchujiang.com/mousio-hint/" title="Mousio Hint for macOS"><img alt="Mousio Hint" height="52" width="52" src="https://wangchujiang.com/appicon/mousio-hint.png"></a>
|
|
12
|
+
<a target="_blank" href="https://apps.apple.com/app/6746747327" title="Mousio for macOS"><img alt="Mousio" height="52" width="52" src="https://wangchujiang.com/appicon/mousio.png"></a>
|
|
13
|
+
<a target="_blank" href="https://apps.apple.com/app/6745227444" title="Musicer for macOS"><img alt="Musicer" height="52" width="52" src="https://wangchujiang.com/appicon/musicer.png"></a>
|
|
14
|
+
<a target="_blank" href="https://apps.apple.com/app/6743841447" title="Audioer for macOS"><img alt="Audioer" height="52" width="52" src="https://wangchujiang.com/appicon/audioer.png"></a>
|
|
15
|
+
<a target="_blank" href="https://apps.apple.com/app/6744690194" title="FileSentinel for macOS"><img alt="FileSentinel" height="52" width="52" src="https://wangchujiang.com/appicon/file-sentinel.png"></a>
|
|
16
|
+
<a target="_blank" href="https://apps.apple.com/app/6743495172" title="FocusCursor for macOS"><img alt="FocusCursor" height="52" width="52" src="https://wangchujiang.com/appicon/focus-cursor.png"></a>
|
|
17
|
+
<a target="_blank" href="https://apps.apple.com/app/6742680573" title="Videoer for macOS"><img alt="Videoer" height="52" width="52" src="https://wangchujiang.com/appicon/videoer.png"></a>
|
|
18
|
+
<a target="_blank" href="https://apps.apple.com/app/6740425504" title="KeyClicker for macOS"><img alt="KeyClicker" height="52" width="52" src="https://wangchujiang.com/appicon/key-clicker.png"></a>
|
|
19
|
+
<a target="_blank" href="https://apps.apple.com/app/6739052447" title="DayBar for macOS"><img alt="DayBar" height="52" width="52" src="https://wangchujiang.com/appicon/daybar.png"></a>
|
|
20
|
+
<a target="_blank" href="https://apps.apple.com/app/6739444407" title="Iconed for macOS"><img alt="Iconed" height="52" width="52" src="https://wangchujiang.com/appicon/iconed.png"></a>
|
|
21
|
+
<a target="_blank" href="https://apps.apple.com/app/6737160756" title="Menuist for macOS"><img alt="Menuist" height="52" width="52" src="https://wangchujiang.com/appicon/rightmenu-master.png"></a>
|
|
22
|
+
<a target="_blank" href="https://apps.apple.com/app/6723903021" title="Paste Quick for macOS"><img alt="Quick RSS" height="52" width="52" src="https://wangchujiang.com/appicon/paste-quick.png"></a>
|
|
23
|
+
<a target="_blank" href="https://apps.apple.com/app/6670696072" title="Quick RSS for macOS/iOS"><img alt="Quick RSS" height="52" width="52" src="https://wangchujiang.com/appicon/quick-rss.png"></a>
|
|
24
|
+
<a target="_blank" href="https://apps.apple.com/app/6670167443" title="Web Serve for macOS"><img alt="Web Serve" height="52" width="52" src="https://wangchujiang.com/appicon/web-serve.png"></a>
|
|
25
|
+
<a target="_blank" href="https://apps.apple.com/app/6503953628" title="Copybook Generator for macOS/iOS"><img alt="Copybook Generator" height="52" width="52" src="https://wangchujiang.com/appicon/copybook-generator.png"></a>
|
|
26
|
+
<a target="_blank" href="https://apps.apple.com/app/6471227008" title="DevTutor for macOS/iOS"><img alt="DevTutor for SwiftUI" height="52" width="52" src="https://wangchujiang.com/appicon/devtutor.png"></a>
|
|
27
|
+
<a target="_blank" href="https://apps.apple.com/app/6479819388" title="RegexMate for macOS/iOS"><img alt="RegexMate" height="52" width="52" src="https://wangchujiang.com/appicon/regex-mate.png"></a>
|
|
28
|
+
<a target="_blank" href="https://apps.apple.com/app/6479194014" title="Time Passage for macOS/iOS"><img alt="Time Passage" height="52" width="52" src="https://wangchujiang.com/appicon/time-passage.png"></a>
|
|
29
|
+
<a target="_blank" href="https://apps.apple.com/app/6478772538" title="IconizeFolder for macOS"><img alt="Iconize Folder" height="52" width="52" src="https://wangchujiang.com/appicon/iconize-folder.png"></a>
|
|
30
|
+
<a target="_blank" href="https://apps.apple.com/app/6478511402" title="Textsound Saver for macOS/iOS"><img alt="Textsound Saver" height="52" width="52" src="https://wangchujiang.com/appicon/textsound-saver.png"></a>
|
|
31
|
+
<a target="_blank" href="https://apps.apple.com/app/6476924627" title="Create Custom Symbols for macOS"><img alt="Create Custom Symbols" height="52" width="52" src="https://wangchujiang.com/appicon/create-custom-symbols.png"></a>
|
|
32
|
+
<a target="_blank" href="https://apps.apple.com/app/6476452351" title="DevHub for macOS"><img alt="DevHub" height="52" width="52" src="https://wangchujiang.com/appicon/devhub.png"></a>
|
|
33
|
+
<a target="_blank" href="https://apps.apple.com/app/6476400184" title="Resume Revise for macOS"><img alt="Resume Revise" height="52" width="52" src="https://wangchujiang.com/appicon/resume-revise.png"></a>
|
|
34
|
+
<a target="_blank" href="https://apps.apple.com/app/6472593276" title="Palette Genius for macOS"><img alt="Palette Genius" height="52" width="52" src="https://wangchujiang.com/appicon/palette-genius.png"></a>
|
|
35
|
+
<a target="_blank" href="https://apps.apple.com/app/6470879005" title="Symbol Scribe for macOS"><img alt="Symbol Scribe" height="52" width="52" src="https://wangchujiang.com/appicon/symbol-scribe.png"></a>
|
|
36
|
+
<br><br>
|
|
37
|
+
</div>
|
|
38
|
+
<hr>
|
|
39
|
+
|
|
40
|
+
<!--rehype:ignore:start-->
|
|
41
|
+
|
|
42
|
+
# Abcdef Theme
|
|
43
|
+
|
|
44
|
+
<!--rehype:ignore:end-->
|
|
45
|
+
|
|
46
|
+
[](https://jaywcjlove.github.io/#/sponsor)
|
|
47
|
+
[](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef)
|
|
48
|
+
|
|
49
|
+
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef">
|
|
50
|
+
<img width="436" alt="codemirror-theme-abcdef" src="https://user-images.githubusercontent.com/1680273/176573508-705562ad-16ec-4b16-994e-f235a9331a3f.png">
|
|
51
|
+
</a>
|
|
52
|
+
|
|
53
|
+
## Install
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install @uiw/codemirror-theme-abcdef --save
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
import { EditorState } from '@codemirror/state';
|
|
61
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
62
|
+
import { abcdef } from '@uiw/codemirror-theme-abcdef';
|
|
63
|
+
|
|
64
|
+
const state = EditorState.create({
|
|
65
|
+
doc: 'my source code',
|
|
66
|
+
extensions: [abcdef, javascript({ jsx: true })],
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Using in React:
|
|
71
|
+
|
|
72
|
+
```jsx
|
|
73
|
+
import CodeMirror from '@uiw/react-codemirror';
|
|
74
|
+
import { tags as t } from '@lezer/highlight';
|
|
75
|
+
import { abcdef, abcdefInit } from '@uiw/codemirror-theme-abcdef';
|
|
76
|
+
|
|
77
|
+
<CodeMirror theme={abcdef} />
|
|
78
|
+
<CodeMirror
|
|
79
|
+
theme={abcdefInit({
|
|
80
|
+
settings: {
|
|
81
|
+
caret: '#c6c6c6',
|
|
82
|
+
fontFamily: 'monospace',
|
|
83
|
+
},
|
|
84
|
+
styles: [
|
|
85
|
+
{ tag: t.comment, color: '#6272a4' },
|
|
86
|
+
]
|
|
87
|
+
})}
|
|
88
|
+
/>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## API
|
|
92
|
+
|
|
93
|
+
```tsx
|
|
94
|
+
import { CreateThemeOptions } from '@uiw/codemirror-themes';
|
|
95
|
+
export declare const defaultSettingsAbcdef: CreateThemeOptions['settings'];
|
|
96
|
+
export declare const abcdefInit: (options?: Partial<CreateThemeOptions>) => import('@codemirror/state').Extension;
|
|
97
|
+
export declare const abcdef: import('@codemirror/state').Extension;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Usage
|
|
101
|
+
|
|
102
|
+
```jsx
|
|
103
|
+
import CodeMirror from '@uiw/react-codemirror';
|
|
104
|
+
import { abcdef } from '@uiw/codemirror-theme-abcdef';
|
|
105
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
106
|
+
|
|
107
|
+
function App() {
|
|
108
|
+
return (
|
|
109
|
+
<CodeMirror
|
|
110
|
+
value="console.log('hello world!');"
|
|
111
|
+
height="200px"
|
|
112
|
+
theme={abcdef}
|
|
113
|
+
extensions={[javascript({ jsx: true })]}
|
|
114
|
+
onChange={(value, viewUpdate) => {
|
|
115
|
+
console.log('value:', value);
|
|
116
|
+
}}
|
|
117
|
+
/>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
export default App;
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```js
|
|
124
|
+
import { EditorView } from '@codemirror/view';
|
|
125
|
+
import { EditorState } from '@codemirror/state';
|
|
126
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
127
|
+
import { abcdef } from '@uiw/codemirror-theme-abcdef';
|
|
128
|
+
|
|
129
|
+
const state = EditorState.create({
|
|
130
|
+
doc: 'my source code',
|
|
131
|
+
extensions: [abcdef, javascript({ jsx: true })],
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
const view = new EditorView({
|
|
135
|
+
parent: document.querySelector('#editor'),
|
|
136
|
+
state,
|
|
137
|
+
});
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Contributors
|
|
141
|
+
|
|
142
|
+
As always, thanks to our amazing contributors!
|
|
143
|
+
|
|
144
|
+
<a href="https://github.com/uiwjs/react-codemirror/graphs/contributors">
|
|
145
|
+
<img src="https://uiwjs.github.io/react-codemirror/CONTRIBUTORS.svg" />
|
|
146
|
+
</a>
|
|
147
|
+
|
|
148
|
+
Made with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).
|
|
149
|
+
|
|
150
|
+
## License
|
|
151
|
+
|
|
152
|
+
Licensed under the MIT License.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type CreateThemeOptions } from '@uiw/codemirror-themes';
|
|
2
|
+
export declare const defaultSettingsAbcdef: CreateThemeOptions['settings'];
|
|
3
|
+
export declare const abcdefDarkStyle: CreateThemeOptions['styles'];
|
|
4
|
+
export declare const abcdefInit: (options?: Partial<CreateThemeOptions>) => import("@codemirror/state").Extension;
|
|
5
|
+
export declare const abcdef: import("@codemirror/state").Extension;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.defaultSettingsAbcdef = exports.abcdefInit = exports.abcdefDarkStyle = exports.abcdef = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
+
var _highlight = require("@lezer/highlight");
|
|
11
|
+
var _codemirrorThemes = require("@uiw/codemirror-themes");
|
|
12
|
+
/**
|
|
13
|
+
* @name abcdef
|
|
14
|
+
* @author codemirror.net
|
|
15
|
+
* https://codemirror.net/5/theme/abcdef.css
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var defaultSettingsAbcdef = exports.defaultSettingsAbcdef = {
|
|
19
|
+
background: '#0f0f0f',
|
|
20
|
+
foreground: '#defdef',
|
|
21
|
+
caret: '#00FF00',
|
|
22
|
+
selection: '#515151',
|
|
23
|
+
selectionMatch: '#515151',
|
|
24
|
+
gutterBackground: '#555',
|
|
25
|
+
gutterForeground: '#FFFFFF',
|
|
26
|
+
lineHighlight: '#0a6bcb3d'
|
|
27
|
+
};
|
|
28
|
+
var abcdefDarkStyle = exports.abcdefDarkStyle = [{
|
|
29
|
+
tag: _highlight.tags.keyword,
|
|
30
|
+
color: 'darkgoldenrod',
|
|
31
|
+
fontWeight: 'bold'
|
|
32
|
+
}, {
|
|
33
|
+
tag: _highlight.tags.atom,
|
|
34
|
+
color: '#77F'
|
|
35
|
+
}, {
|
|
36
|
+
tag: _highlight.tags.comment,
|
|
37
|
+
color: '#7a7b7c',
|
|
38
|
+
fontStyle: 'italic'
|
|
39
|
+
}, {
|
|
40
|
+
tag: _highlight.tags.number,
|
|
41
|
+
color: 'violet'
|
|
42
|
+
}, {
|
|
43
|
+
tag: _highlight.tags.definition(_highlight.tags.variableName),
|
|
44
|
+
color: '#fffabc'
|
|
45
|
+
}, {
|
|
46
|
+
tag: _highlight.tags.variableName,
|
|
47
|
+
color: '#abcdef'
|
|
48
|
+
}, {
|
|
49
|
+
tag: _highlight.tags["function"](_highlight.tags.variableName),
|
|
50
|
+
color: '#fffabc'
|
|
51
|
+
}, {
|
|
52
|
+
tag: _highlight.tags.typeName,
|
|
53
|
+
color: '#FFDD44'
|
|
54
|
+
}, {
|
|
55
|
+
tag: _highlight.tags.tagName,
|
|
56
|
+
color: '#def'
|
|
57
|
+
}, {
|
|
58
|
+
tag: _highlight.tags.string,
|
|
59
|
+
color: '#2b4'
|
|
60
|
+
}, {
|
|
61
|
+
tag: _highlight.tags.meta,
|
|
62
|
+
color: '#C9F'
|
|
63
|
+
},
|
|
64
|
+
// { tag: t.qualifier, color: '#FFF700' },
|
|
65
|
+
// { tag: t.builtin, color: '#30aabc' },
|
|
66
|
+
{
|
|
67
|
+
tag: _highlight.tags.bracket,
|
|
68
|
+
color: '#8a8a8a'
|
|
69
|
+
}, {
|
|
70
|
+
tag: _highlight.tags.attributeName,
|
|
71
|
+
color: '#DDFF00'
|
|
72
|
+
}, {
|
|
73
|
+
tag: _highlight.tags.heading,
|
|
74
|
+
color: 'aquamarine',
|
|
75
|
+
fontWeight: 'bold'
|
|
76
|
+
}, {
|
|
77
|
+
tag: _highlight.tags.link,
|
|
78
|
+
color: 'blueviolet',
|
|
79
|
+
fontWeight: 'bold'
|
|
80
|
+
}];
|
|
81
|
+
var abcdefInit = exports.abcdefInit = function abcdefInit(options) {
|
|
82
|
+
var _ref = options || {},
|
|
83
|
+
_ref$theme = _ref.theme,
|
|
84
|
+
theme = _ref$theme === void 0 ? 'dark' : _ref$theme,
|
|
85
|
+
_ref$settings = _ref.settings,
|
|
86
|
+
settings = _ref$settings === void 0 ? {} : _ref$settings,
|
|
87
|
+
_ref$styles = _ref.styles,
|
|
88
|
+
styles = _ref$styles === void 0 ? [] : _ref$styles;
|
|
89
|
+
return (0, _codemirrorThemes.createTheme)({
|
|
90
|
+
theme: theme,
|
|
91
|
+
settings: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, defaultSettingsAbcdef), settings),
|
|
92
|
+
styles: [].concat(abcdefDarkStyle, (0, _toConsumableArray2["default"])(styles))
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
var abcdef = exports.abcdef = abcdefInit();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type CreateThemeOptions } from '@uiw/codemirror-themes';
|
|
2
|
+
export declare const defaultSettingsAbcdef: CreateThemeOptions['settings'];
|
|
3
|
+
export declare const abcdefDarkStyle: CreateThemeOptions['styles'];
|
|
4
|
+
export declare const abcdefInit: (options?: Partial<CreateThemeOptions>) => import("@codemirror/state").Extension;
|
|
5
|
+
export declare const abcdef: import("@codemirror/state").Extension;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @name abcdef
|
|
4
|
+
* @author codemirror.net
|
|
5
|
+
* https://codemirror.net/5/theme/abcdef.css
|
|
6
|
+
*/
|
|
7
|
+
import { tags as t } from '@lezer/highlight';
|
|
8
|
+
import { createTheme } from '@uiw/codemirror-themes';
|
|
9
|
+
export var defaultSettingsAbcdef = {
|
|
10
|
+
background: '#0f0f0f',
|
|
11
|
+
foreground: '#defdef',
|
|
12
|
+
caret: '#00FF00',
|
|
13
|
+
selection: '#515151',
|
|
14
|
+
selectionMatch: '#515151',
|
|
15
|
+
gutterBackground: '#555',
|
|
16
|
+
gutterForeground: '#FFFFFF',
|
|
17
|
+
lineHighlight: '#0a6bcb3d'
|
|
18
|
+
};
|
|
19
|
+
export var abcdefDarkStyle = [{
|
|
20
|
+
tag: t.keyword,
|
|
21
|
+
color: 'darkgoldenrod',
|
|
22
|
+
fontWeight: 'bold'
|
|
23
|
+
}, {
|
|
24
|
+
tag: t.atom,
|
|
25
|
+
color: '#77F'
|
|
26
|
+
}, {
|
|
27
|
+
tag: t.comment,
|
|
28
|
+
color: '#7a7b7c',
|
|
29
|
+
fontStyle: 'italic'
|
|
30
|
+
}, {
|
|
31
|
+
tag: t.number,
|
|
32
|
+
color: 'violet'
|
|
33
|
+
}, {
|
|
34
|
+
tag: t.definition(t.variableName),
|
|
35
|
+
color: '#fffabc'
|
|
36
|
+
}, {
|
|
37
|
+
tag: t.variableName,
|
|
38
|
+
color: '#abcdef'
|
|
39
|
+
}, {
|
|
40
|
+
tag: t.function(t.variableName),
|
|
41
|
+
color: '#fffabc'
|
|
42
|
+
}, {
|
|
43
|
+
tag: t.typeName,
|
|
44
|
+
color: '#FFDD44'
|
|
45
|
+
}, {
|
|
46
|
+
tag: t.tagName,
|
|
47
|
+
color: '#def'
|
|
48
|
+
}, {
|
|
49
|
+
tag: t.string,
|
|
50
|
+
color: '#2b4'
|
|
51
|
+
}, {
|
|
52
|
+
tag: t.meta,
|
|
53
|
+
color: '#C9F'
|
|
54
|
+
},
|
|
55
|
+
// { tag: t.qualifier, color: '#FFF700' },
|
|
56
|
+
// { tag: t.builtin, color: '#30aabc' },
|
|
57
|
+
{
|
|
58
|
+
tag: t.bracket,
|
|
59
|
+
color: '#8a8a8a'
|
|
60
|
+
}, {
|
|
61
|
+
tag: t.attributeName,
|
|
62
|
+
color: '#DDFF00'
|
|
63
|
+
}, {
|
|
64
|
+
tag: t.heading,
|
|
65
|
+
color: 'aquamarine',
|
|
66
|
+
fontWeight: 'bold'
|
|
67
|
+
}, {
|
|
68
|
+
tag: t.link,
|
|
69
|
+
color: 'blueviolet',
|
|
70
|
+
fontWeight: 'bold'
|
|
71
|
+
}];
|
|
72
|
+
export var abcdefInit = options => {
|
|
73
|
+
var {
|
|
74
|
+
theme = 'dark',
|
|
75
|
+
settings = {},
|
|
76
|
+
styles = []
|
|
77
|
+
} = options || {};
|
|
78
|
+
return createTheme({
|
|
79
|
+
theme: theme,
|
|
80
|
+
settings: _extends({}, defaultSettingsAbcdef, settings),
|
|
81
|
+
styles: [...abcdefDarkStyle, ...styles]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export var abcdef = abcdefInit();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@uiw/codemirror-theme-abcdef",
|
|
3
|
+
"version": "4.25.9",
|
|
4
|
+
"description": "Theme abcdef for CodeMirror.",
|
|
5
|
+
"homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef",
|
|
6
|
+
"funding": "https://jaywcjlove.github.io/#/sponsor",
|
|
7
|
+
"author": "kenny wong <wowohoo@qq.com>",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"main": "./cjs/index.js",
|
|
10
|
+
"module": "./esm/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./cjs/index.js",
|
|
14
|
+
"import": "./esm/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./*": "./*"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"watch": "tsbb watch src/*.ts --use-babel",
|
|
20
|
+
"build": "tsbb build src/*.ts --use-babel && npm run setmodule",
|
|
21
|
+
"setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/uiwjs/react-codemirror.git"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"src",
|
|
29
|
+
"esm",
|
|
30
|
+
"cjs"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@uiw/codemirror-themes": "4.25.9"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"codemirror",
|
|
37
|
+
"codemirror6",
|
|
38
|
+
"theme",
|
|
39
|
+
"abcdef",
|
|
40
|
+
"syntax",
|
|
41
|
+
"ide",
|
|
42
|
+
"code"
|
|
43
|
+
],
|
|
44
|
+
"jest": {
|
|
45
|
+
"coverageReporters": [
|
|
46
|
+
"lcov",
|
|
47
|
+
"json-summary"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name abcdef
|
|
3
|
+
* @author codemirror.net
|
|
4
|
+
* https://codemirror.net/5/theme/abcdef.css
|
|
5
|
+
*/
|
|
6
|
+
import { tags as t } from '@lezer/highlight';
|
|
7
|
+
import { createTheme, type CreateThemeOptions } from '@uiw/codemirror-themes';
|
|
8
|
+
|
|
9
|
+
export const defaultSettingsAbcdef: CreateThemeOptions['settings'] = {
|
|
10
|
+
background: '#0f0f0f',
|
|
11
|
+
foreground: '#defdef',
|
|
12
|
+
caret: '#00FF00',
|
|
13
|
+
selection: '#515151',
|
|
14
|
+
selectionMatch: '#515151',
|
|
15
|
+
gutterBackground: '#555',
|
|
16
|
+
gutterForeground: '#FFFFFF',
|
|
17
|
+
lineHighlight: '#0a6bcb3d',
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const abcdefDarkStyle: CreateThemeOptions['styles'] = [
|
|
21
|
+
{ tag: t.keyword, color: 'darkgoldenrod', fontWeight: 'bold' },
|
|
22
|
+
{ tag: t.atom, color: '#77F' },
|
|
23
|
+
{ tag: t.comment, color: '#7a7b7c', fontStyle: 'italic' },
|
|
24
|
+
{ tag: t.number, color: 'violet' },
|
|
25
|
+
{ tag: t.definition(t.variableName), color: '#fffabc' },
|
|
26
|
+
{ tag: t.variableName, color: '#abcdef' },
|
|
27
|
+
{ tag: t.function(t.variableName), color: '#fffabc' },
|
|
28
|
+
{ tag: t.typeName, color: '#FFDD44' },
|
|
29
|
+
{ tag: t.tagName, color: '#def' },
|
|
30
|
+
{ tag: t.string, color: '#2b4' },
|
|
31
|
+
{ tag: t.meta, color: '#C9F' },
|
|
32
|
+
// { tag: t.qualifier, color: '#FFF700' },
|
|
33
|
+
// { tag: t.builtin, color: '#30aabc' },
|
|
34
|
+
{ tag: t.bracket, color: '#8a8a8a' },
|
|
35
|
+
{ tag: t.attributeName, color: '#DDFF00' },
|
|
36
|
+
{ tag: t.heading, color: 'aquamarine', fontWeight: 'bold' },
|
|
37
|
+
{ tag: t.link, color: 'blueviolet', fontWeight: 'bold' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export const abcdefInit = (options?: Partial<CreateThemeOptions>) => {
|
|
41
|
+
const { theme = 'dark', settings = {}, styles = [] } = options || {};
|
|
42
|
+
return createTheme({
|
|
43
|
+
theme: theme,
|
|
44
|
+
settings: {
|
|
45
|
+
...defaultSettingsAbcdef,
|
|
46
|
+
...settings,
|
|
47
|
+
},
|
|
48
|
+
styles: [...abcdefDarkStyle, ...styles],
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const abcdef = abcdefInit();
|