@raybase/create 0.0.1 → 0.3.3
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/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +38 -0
- package/assets/apple-touch-icons/0.png +0 -0
- package/assets/apple-touch-icons/1.png +0 -0
- package/assets/apple-touch-icons/2.png +0 -0
- package/assets/apple-touch-icons/3.png +0 -0
- package/assets/apple-touch-icons/4.png +0 -0
- package/assets/apple-touch-icons/5.png +0 -0
- package/assets/apple-touch-icons/6.png +0 -0
- package/assets/apple-touch-icons/7.png +0 -0
- package/assets/apple-touch-icons/8.png +0 -0
- package/assets/apple-touch-icons/9.png +0 -0
- package/assets/apple-touch-icons/A.png +0 -0
- package/assets/apple-touch-icons/B.png +0 -0
- package/assets/apple-touch-icons/C.png +0 -0
- package/assets/apple-touch-icons/D.png +0 -0
- package/assets/apple-touch-icons/E.png +0 -0
- package/assets/apple-touch-icons/F.png +0 -0
- package/assets/apple-touch-icons/G.png +0 -0
- package/assets/apple-touch-icons/H.png +0 -0
- package/assets/apple-touch-icons/I.png +0 -0
- package/assets/apple-touch-icons/J.png +0 -0
- package/assets/apple-touch-icons/K.png +0 -0
- package/assets/apple-touch-icons/L.png +0 -0
- package/assets/apple-touch-icons/M.png +0 -0
- package/assets/apple-touch-icons/N.png +0 -0
- package/assets/apple-touch-icons/O.png +0 -0
- package/assets/apple-touch-icons/P.png +0 -0
- package/assets/apple-touch-icons/Q.png +0 -0
- package/assets/apple-touch-icons/R.png +0 -0
- package/assets/apple-touch-icons/S.png +0 -0
- package/assets/apple-touch-icons/T.png +0 -0
- package/assets/apple-touch-icons/U.png +0 -0
- package/assets/apple-touch-icons/V.png +0 -0
- package/assets/apple-touch-icons/W.png +0 -0
- package/assets/apple-touch-icons/X.png +0 -0
- package/assets/apple-touch-icons/Y.png +0 -0
- package/assets/apple-touch-icons/Z.png +0 -0
- package/assets/apple-touch-icons/default.png +0 -0
- package/dist/.source-hash +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2351 -0
- package/dist/index.js.map +1 -0
- package/dist/raybase-package-ranges.d.ts +11 -0
- package/dist/raybase-package-ranges.d.ts.map +1 -0
- package/dist/raybase-package-ranges.js +11 -0
- package/dist/raybase-package-ranges.js.map +1 -0
- package/dist/source-fetch.d.ts +91 -0
- package/dist/source-fetch.d.ts.map +1 -0
- package/dist/source-fetch.js +325 -0
- package/dist/source-fetch.js.map +1 -0
- package/dist/source-hash.d.ts +2 -0
- package/dist/source-hash.d.ts.map +1 -0
- package/dist/source-hash.js +23 -0
- package/dist/source-hash.js.map +1 -0
- package/dist/starter-description.d.ts +44 -0
- package/dist/starter-description.d.ts.map +1 -0
- package/dist/starter-description.js +273 -0
- package/dist/starter-description.js.map +1 -0
- package/dist/starter-source.d.ts +43 -0
- package/dist/starter-source.d.ts.map +1 -0
- package/dist/starter-source.js +156 -0
- package/dist/starter-source.js.map +1 -0
- package/dist/store-app-apply.d.ts +27 -0
- package/dist/store-app-apply.d.ts.map +1 -0
- package/dist/store-app-apply.js +100 -0
- package/dist/store-app-apply.js.map +1 -0
- package/dist/store-app-manifest.d.ts +86 -0
- package/dist/store-app-manifest.d.ts.map +1 -0
- package/dist/store-app-manifest.js +110 -0
- package/dist/store-app-manifest.js.map +1 -0
- package/dist/store-app-registry.d.ts +30 -0
- package/dist/store-app-registry.d.ts.map +1 -0
- package/dist/store-app-registry.js +232 -0
- package/dist/store-app-registry.js.map +1 -0
- package/models/recommended.json +42 -0
- package/modules/api/templates/react-router/app/api/operations.ts +8 -0
- package/modules/api/templates/tanstack-start/src/api/operations.ts +15 -0
- package/modules/docs/templates/astro-emdash/content/docs/getting-started.mdx +13 -0
- package/modules/docs/templates/astro-emdash/content/docs/index.mdx +13 -0
- package/modules/docs/templates/astro-emdash/content/docs/mcp.mdx +11 -0
- package/modules/docs/templates/astro-emdash/content/docs/meta.json +4 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/getting-started.mdx +12 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/index.mdx +12 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/mcp.mdx +10 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/meta.json +4 -0
- package/modules/docs/templates/astro-emdash/site/source.config.ts +10 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/source.ts +7 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/[...slug].ts +6 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/api/markdown.ts +4 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/api/search.ts +4 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/llms.txt.ts +8 -0
- package/modules/docs/templates/astro-emdash/site/src/styles-docs.css +3 -0
- package/modules/docs/templates/astro-emdash/source.config.ts +10 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/astro-emdash/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/astro-emdash/src/docs/source.ts +7 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/$.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/api/markdown.ts +12 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/api/search.ts +12 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs.index.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/styles-docs.css +3 -0
- package/modules/docs/templates/react-router/app/components/mdx.tsx +79 -0
- package/modules/docs/templates/react-router/app/lib/layout.shared.tsx +54 -0
- package/modules/docs/templates/react-router/app/lib/source.ts +7 -0
- package/modules/docs/templates/react-router/app/routes/docs.$.tsx +49 -0
- package/modules/docs/templates/react-router/app/routes/docs.api.search.ts +10 -0
- package/modules/docs/templates/react-router/app/routes/docs.tsx +13 -0
- package/modules/docs/templates/react-router/content/docs/getting-started.mdx +8 -0
- package/modules/docs/templates/react-router/content/docs/index.mdx +8 -0
- package/modules/docs/templates/react-router/content/docs/mcp.mdx +121 -0
- package/modules/docs/templates/react-router/content/docs/meta.json +4 -0
- package/modules/docs/templates/react-router/source.config.ts +5 -0
- package/modules/docs/templates/tanstack-start/content/docs/getting-started.mdx +10 -0
- package/modules/docs/templates/tanstack-start/content/docs/index.mdx +8 -0
- package/modules/docs/templates/tanstack-start/content/docs/mcp.mdx +121 -0
- package/modules/docs/templates/tanstack-start/content/docs/meta.json +4 -0
- package/modules/docs/templates/tanstack-start/source.config.ts +10 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/tanstack-start/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/tanstack-start/src/docs/source.ts +7 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/$.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/api/markdown.ts +12 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/api/search.ts +12 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs.index.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/styles-docs.css +3 -0
- package/modules/guide/templates/astro-emdash/content/guide/capability-map.md +17 -0
- package/modules/guide/templates/astro-emdash/src/components/guide-widget.tsx +41 -0
- package/modules/guide/templates/astro-emdash/src/guide/actions.ts +8 -0
- package/modules/guide/templates/astro-emdash/src/guide/config.ts +21 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.manifest.json +72 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.ts +4 -0
- package/modules/guide/templates/astro-emdash/src/guide/resources.json +4 -0
- package/modules/guide/templates/react-router/app/components/guide-widget.tsx +29 -0
- package/modules/guide/templates/react-router/app/guide/actions.ts +3 -0
- package/modules/guide/templates/react-router/app/guide/config.ts +21 -0
- package/modules/guide/templates/react-router/app/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/react-router/app/guide/corpus.manifest.json +22 -0
- package/modules/guide/templates/react-router/app/guide/corpus.ts +4 -0
- package/modules/guide/templates/react-router/app/guide/resources.json +4 -0
- package/modules/guide/templates/react-router/content/guide/capability-map.md +13 -0
- package/modules/guide/templates/tanstack-start/content/guide/capability-map.md +17 -0
- package/modules/guide/templates/tanstack-start/src/components/guide-widget.tsx +41 -0
- package/modules/guide/templates/tanstack-start/src/guide/actions.ts +17 -0
- package/modules/guide/templates/tanstack-start/src/guide/config.ts +21 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.manifest.json +22 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.ts +4 -0
- package/modules/guide/templates/tanstack-start/src/guide/resources.json +4 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/astro-emdash/src/openai-subscription.ts +11 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/react-router/app/openai-subscription.ts +11 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/tanstack-start/src/openai-subscription.ts +11 -0
- package/package.json +34 -8
- package/skills/README.md +122 -0
- package/skills/raybase-actions/SKILL.md +223 -0
- package/skills/raybase-actions/references/action-patterns.md +190 -0
- package/skills/raybase-actions/references/adapting-actions.md +93 -0
- package/skills/raybase-actions/references/testing-actions.md +48 -0
- package/skills/raybase-agent-debugging/SKILL.md +230 -0
- package/skills/raybase-ai/SKILL.md +1310 -0
- package/skills/raybase-api/SKILL.md +45 -0
- package/skills/raybase-astro-emdash/SKILL.md +143 -0
- package/skills/raybase-astro-emdash-content-model/SKILL.md +217 -0
- package/skills/raybase-astro-emdash-content-model/references/LICENSE-emdash +9 -0
- package/skills/raybase-astro-emdash-content-model/references/emdash-collections.md +265 -0
- package/skills/raybase-astro-emdash-design/LICENSE-impeccable +60 -0
- package/skills/raybase-astro-emdash-design/SKILL.md +170 -0
- package/skills/raybase-astro-emdash-design/reference/color.md +91 -0
- package/skills/raybase-astro-emdash-design/reference/copy.md +73 -0
- package/skills/raybase-astro-emdash-design/reference/direction.md +115 -0
- package/skills/raybase-astro-emdash-design/reference/imagery.md +84 -0
- package/skills/raybase-astro-emdash-design/reference/layout.md +69 -0
- package/skills/raybase-astro-emdash-design/reference/motion.md +75 -0
- package/skills/raybase-astro-emdash-design/reference/polish.md +75 -0
- package/skills/raybase-astro-emdash-design/reference/typography.md +72 -0
- package/skills/raybase-astro-emdash-galley/SKILL.md +265 -0
- package/skills/raybase-astro-emdash-migration/SKILL.md +218 -0
- package/skills/raybase-astro-emdash-migration/references/inventory-and-conversion.md +242 -0
- package/skills/raybase-astro-emdash-security-review/SKILL.md +68 -0
- package/skills/raybase-astro-emdash-theme-selection/SKILL.md +216 -0
- package/skills/raybase-auth/SKILL.md +358 -0
- package/skills/raybase-background-jobs/SKILL.md +774 -0
- package/skills/raybase-building/SKILL.md +409 -0
- package/skills/raybase-building/references/interview-and-spec.md +87 -0
- package/skills/raybase-building/references/planning-docs.md +26 -0
- package/skills/raybase-building/references/schema-and-config.md +70 -0
- package/skills/raybase-changing-a-live-app/SKILL.md +119 -0
- package/skills/raybase-data-and-policies/SKILL.md +377 -0
- package/skills/raybase-deploy/SKILL.md +136 -0
- package/skills/raybase-docs-writing/SKILL.md +119 -0
- package/skills/raybase-guide/SKILL.md +235 -0
- package/skills/raybase-mcp/SKILL.md +309 -0
- package/skills/raybase-mcp/agents/openai.yaml +4 -0
- package/skills/raybase-notifications/SKILL.md +138 -0
- package/skills/raybase-pro-migration/SKILL.md +28 -0
- package/skills/raybase-react-router/SKILL.md +241 -0
- package/skills/raybase-react-router-design/LICENSE-impeccable +60 -0
- package/skills/raybase-react-router-design/SKILL.md +135 -0
- package/skills/raybase-react-router-design/reference/color.md +87 -0
- package/skills/raybase-react-router-design/reference/copy.md +83 -0
- package/skills/raybase-react-router-design/reference/delight.md +48 -0
- package/skills/raybase-react-router-design/reference/interaction.md +91 -0
- package/skills/raybase-react-router-design/reference/layout.md +82 -0
- package/skills/raybase-react-router-design/reference/motion.md +86 -0
- package/skills/raybase-react-router-design/reference/polish.md +79 -0
- package/skills/raybase-react-router-design/reference/typography.md +71 -0
- package/skills/raybase-react-router-security-review/LICENSE +22 -0
- package/skills/raybase-react-router-security-review/SKILL.md +190 -0
- package/skills/raybase-react-router-security-review/agents/openai.yaml +4 -0
- package/skills/raybase-react-router-security-review/references/api-security.md +519 -0
- package/skills/raybase-react-router-security-review/references/authentication.md +353 -0
- package/skills/raybase-react-router-security-review/references/authorization.md +372 -0
- package/skills/raybase-react-router-security-review/references/business-logic.md +443 -0
- package/skills/raybase-react-router-security-review/references/cryptography.md +329 -0
- package/skills/raybase-react-router-security-review/references/csrf.md +398 -0
- package/skills/raybase-react-router-security-review/references/data-protection.md +378 -0
- package/skills/raybase-react-router-security-review/references/deserialization.md +410 -0
- package/skills/raybase-react-router-security-review/references/error-handling.md +436 -0
- package/skills/raybase-react-router-security-review/references/file-security.md +457 -0
- package/skills/raybase-react-router-security-review/references/injection.md +259 -0
- package/skills/raybase-react-router-security-review/references/logging.md +433 -0
- package/skills/raybase-react-router-security-review/references/misconfiguration.md +435 -0
- package/skills/raybase-react-router-security-review/references/modern-threats.md +475 -0
- package/skills/raybase-react-router-security-review/references/raybase-react-router-security.md +235 -0
- package/skills/raybase-react-router-security-review/references/ssrf.md +413 -0
- package/skills/raybase-react-router-security-review/references/supply-chain.md +405 -0
- package/skills/raybase-react-router-security-review/references/xss.md +336 -0
- package/skills/raybase-realtime/SKILL.md +158 -0
- package/skills/raybase-realtime/agents/openai.yaml +4 -0
- package/skills/raybase-schema/SKILL.md +209 -0
- package/skills/raybase-search/SKILL.md +137 -0
- package/skills/raybase-search/agents/openai.yaml +4 -0
- package/skills/raybase-settings/SKILL.md +139 -0
- package/skills/raybase-settings/agents/openai.yaml +4 -0
- package/skills/raybase-tanstack-start/SKILL.md +166 -0
- package/skills/raybase-tanstack-start-design/LICENSE-impeccable +60 -0
- package/skills/raybase-tanstack-start-design/SKILL.md +140 -0
- package/skills/raybase-tanstack-start-design/reference/color.md +80 -0
- package/skills/raybase-tanstack-start-design/reference/copy.md +83 -0
- package/skills/raybase-tanstack-start-design/reference/delight.md +48 -0
- package/skills/raybase-tanstack-start-design/reference/interaction.md +91 -0
- package/skills/raybase-tanstack-start-design/reference/layout.md +82 -0
- package/skills/raybase-tanstack-start-design/reference/motion.md +86 -0
- package/skills/raybase-tanstack-start-design/reference/polish.md +79 -0
- package/skills/raybase-tanstack-start-design/reference/typography.md +71 -0
- package/skills/raybase-tanstack-start-security-review/LICENSE +22 -0
- package/skills/raybase-tanstack-start-security-review/SKILL.md +194 -0
- package/skills/raybase-tanstack-start-security-review/agents/openai.yaml +4 -0
- package/skills/raybase-tanstack-start-security-review/references/api-security.md +519 -0
- package/skills/raybase-tanstack-start-security-review/references/authentication.md +353 -0
- package/skills/raybase-tanstack-start-security-review/references/authorization.md +372 -0
- package/skills/raybase-tanstack-start-security-review/references/business-logic.md +443 -0
- package/skills/raybase-tanstack-start-security-review/references/cryptography.md +329 -0
- package/skills/raybase-tanstack-start-security-review/references/csrf.md +398 -0
- package/skills/raybase-tanstack-start-security-review/references/data-protection.md +378 -0
- package/skills/raybase-tanstack-start-security-review/references/deserialization.md +410 -0
- package/skills/raybase-tanstack-start-security-review/references/error-handling.md +436 -0
- package/skills/raybase-tanstack-start-security-review/references/file-security.md +457 -0
- package/skills/raybase-tanstack-start-security-review/references/injection.md +259 -0
- package/skills/raybase-tanstack-start-security-review/references/logging.md +433 -0
- package/skills/raybase-tanstack-start-security-review/references/misconfiguration.md +435 -0
- package/skills/raybase-tanstack-start-security-review/references/modern-threats.md +475 -0
- package/skills/raybase-tanstack-start-security-review/references/raybase-tanstack-security.md +208 -0
- package/skills/raybase-tanstack-start-security-review/references/ssrf.md +413 -0
- package/skills/raybase-tanstack-start-security-review/references/supply-chain.md +405 -0
- package/skills/raybase-tanstack-start-security-review/references/xss.md +336 -0
- package/skills-manifest.json +41 -0
- package/templates/astro-emdash/.dev.vars.example +7 -0
- package/templates/astro-emdash/AGENTS.md +122 -0
- package/templates/astro-emdash/DESIGN.md +90 -0
- package/templates/astro-emdash/components.json +21 -0
- package/templates/astro-emdash/content/docs/getting-started.mdx +20 -0
- package/templates/astro-emdash/content/docs/index.mdx +13 -0
- package/templates/astro-emdash/content/docs/mcp.mdx +11 -0
- package/templates/astro-emdash/content/docs/meta.json +4 -0
- package/templates/astro-emdash/content/docs/site-templates.mdx +62 -0
- package/templates/astro-emdash/dev/CODEBASE-MAP.md +46 -0
- package/templates/astro-emdash/dev/SPEC-OVERVIEW.md +15 -0
- package/templates/astro-emdash/dev/SPEC.md +84 -0
- package/templates/astro-emdash/dev/features/archive/.gitkeep +1 -0
- package/templates/astro-emdash/docs/theme-previews/base.svg +24 -0
- package/templates/astro-emdash/docs/theme-previews/steel.svg +24 -0
- package/templates/astro-emdash/docs/theme-previews/zen.svg +24 -0
- package/templates/astro-emdash/docs/themes.md +106 -0
- package/templates/astro-emdash/drizzle.config.ts +5 -0
- package/templates/astro-emdash/gitignore +11 -0
- package/templates/astro-emdash/migrations/app/meta/_journal.json +5 -0
- package/templates/astro-emdash/package.json +79 -0
- package/templates/astro-emdash/pnpm-workspace.yaml +71 -0
- package/templates/astro-emdash/public/_headers +4 -0
- package/templates/astro-emdash/site/astro.config.mjs +120 -0
- package/templates/astro-emdash/site/demo/README.md +72 -0
- package/templates/astro-emdash/site/demo/content/collection.json +43 -0
- package/templates/astro-emdash/site/demo/content/entries.json +120 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/manifest.json +51 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/sample-content.json +5 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/template.liquid +48 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/host.json +9 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/manifest.json +38 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/sample-content.json +34 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/template.liquid +84 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/manifest.json +64 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/page.json +7 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/sample-content.json +24 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/template.liquid +100 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/manifest.json +51 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/sample-content.json +5 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/template.liquid +70 -0
- package/templates/astro-emdash/site/gitignore +1 -0
- package/templates/astro-emdash/site/package.json +56 -0
- package/templates/astro-emdash/site/scripts/apply-site-templates.mjs +560 -0
- package/templates/astro-emdash/site/scripts/galley-demo.mjs +298 -0
- package/templates/astro-emdash/site/scripts/seed-galley-starter.mjs +360 -0
- package/templates/astro-emdash/site/scripts/site-origin.mjs +45 -0
- package/templates/astro-emdash/site/seed/seed.json +154 -0
- package/templates/astro-emdash/site/seed/templates/.gitkeep +1 -0
- package/templates/astro-emdash/site/src/components/RaybaseSignedInMenu.astro +163 -0
- package/templates/astro-emdash/site/src/components/blocks/RaybaseActionIsland.astro +41 -0
- package/templates/astro-emdash/site/src/content-door/raybase-routes.ts +738 -0
- package/templates/astro-emdash/site/src/content-door/resolve-page.ts +142 -0
- package/templates/astro-emdash/site/src/content-door/seed.ts +85 -0
- package/templates/astro-emdash/site/src/env.d.ts +12 -0
- package/templates/astro-emdash/site/src/layouts/SiteLayout.astro +68 -0
- package/templates/astro-emdash/site/src/lib/palettes.gen.ts +7 -0
- package/templates/astro-emdash/site/src/lib/site-motion.ts +169 -0
- package/templates/astro-emdash/site/src/lib/site-shell.ts +294 -0
- package/templates/astro-emdash/site/src/live.config.ts +8 -0
- package/templates/astro-emdash/site/src/middleware.ts +20 -0
- package/templates/astro-emdash/site/src/pages/[...slug].astro +113 -0
- package/templates/astro-emdash/site/src/pages/_raybase/handoff/consume.ts +6 -0
- package/templates/astro-emdash/site/src/pages/_raybase/islands/action.ts +8 -0
- package/templates/astro-emdash/site/src/pages/_raybase/sign-out/index.ts +6 -0
- package/templates/astro-emdash/site/src/styles/palette-fonts.gen.css +1 -0
- package/templates/astro-emdash/site/src/styles/palettes.gen.css +3 -0
- package/templates/astro-emdash/site/src/styles.css +607 -0
- package/templates/astro-emdash/site/tsconfig.json +12 -0
- package/templates/astro-emdash/site/wrangler.jsonc +34 -0
- package/templates/astro-emdash/source.config.ts +10 -0
- package/templates/astro-emdash/src/actions.ts +58 -0
- package/templates/astro-emdash/src/ai/agents.ts +20 -0
- package/templates/astro-emdash/src/ai/retrieval.ts +36 -0
- package/templates/astro-emdash/src/auth-door.ts +18 -0
- package/templates/astro-emdash/src/client.tsx +25 -0
- package/templates/astro-emdash/src/components/.gitkeep +1 -0
- package/templates/astro-emdash/src/components/account-menu.tsx +91 -0
- package/templates/astro-emdash/src/components/auth-shell.tsx +69 -0
- package/templates/astro-emdash/src/components/mode-toggle.tsx +32 -0
- package/templates/astro-emdash/src/components/search-command-palette.tsx +107 -0
- package/templates/astro-emdash/src/components/setup-token-page.tsx +196 -0
- package/templates/astro-emdash/src/components/ui/avatar.tsx +107 -0
- package/templates/astro-emdash/src/components/ui/badge.tsx +52 -0
- package/templates/astro-emdash/src/components/ui/button.tsx +69 -0
- package/templates/astro-emdash/src/components/ui/checkbox.tsx +29 -0
- package/templates/astro-emdash/src/components/ui/dialog.tsx +158 -0
- package/templates/astro-emdash/src/components/ui/dropdown-menu.tsx +303 -0
- package/templates/astro-emdash/src/components/ui/input.tsx +20 -0
- package/templates/astro-emdash/src/components/ui/label.tsx +20 -0
- package/templates/astro-emdash/src/components/ui/scroll-area.tsx +53 -0
- package/templates/astro-emdash/src/components/ui/select.tsx +215 -0
- package/templates/astro-emdash/src/components/ui/separator.tsx +23 -0
- package/templates/astro-emdash/src/components/ui/sheet.tsx +138 -0
- package/templates/astro-emdash/src/components/ui/sidebar.tsx +728 -0
- package/templates/astro-emdash/src/components/ui/skeleton.tsx +13 -0
- package/templates/astro-emdash/src/components/ui/textarea.tsx +18 -0
- package/templates/astro-emdash/src/components/ui/tooltip.tsx +66 -0
- package/templates/astro-emdash/src/db/migrations.gen.ts +6 -0
- package/templates/astro-emdash/src/db/schema.ts +6 -0
- package/templates/astro-emdash/src/db/seed.ts +16 -0
- package/templates/astro-emdash/src/db/storage.ts +32 -0
- package/templates/astro-emdash/src/docs/docs-assets.ts +1 -0
- package/templates/astro-emdash/src/docs/docs-client.tsx +22 -0
- package/templates/astro-emdash/src/docs/docs-data.ts +24 -0
- package/templates/astro-emdash/src/docs/docs-handler.tsx +105 -0
- package/templates/astro-emdash/src/docs/docs-layout.tsx +56 -0
- package/templates/astro-emdash/src/docs/docs-mdx.tsx +79 -0
- package/templates/astro-emdash/src/docs/docs-page-actions.tsx +146 -0
- package/templates/astro-emdash/src/docs/docs-page.tsx +70 -0
- package/templates/astro-emdash/src/docs/llm-text.ts +61 -0
- package/templates/astro-emdash/src/docs/source.ts +7 -0
- package/templates/astro-emdash/src/guide/corpus.gen.ts +4 -0
- package/templates/astro-emdash/src/guide/corpus.manifest.json +72 -0
- package/templates/astro-emdash/src/hooks/use-mobile.ts +19 -0
- package/templates/astro-emdash/src/jobs.example.ts +48 -0
- package/templates/astro-emdash/src/lib/account.ts +12 -0
- package/templates/astro-emdash/src/lib/auth-client.ts +181 -0
- package/templates/astro-emdash/src/lib/utils.ts +6 -0
- package/templates/astro-emdash/src/mcp-app.ts +57 -0
- package/templates/astro-emdash/src/notifications.example.ts +37 -0
- package/templates/astro-emdash/src/raybase.auth.ts +70 -0
- package/templates/astro-emdash/src/raybase.config.ts +49 -0
- package/templates/astro-emdash/src/raybase.server.ts +56 -0
- package/templates/astro-emdash/src/realtime.example.ts +18 -0
- package/templates/astro-emdash/src/router.tsx +19 -0
- package/templates/astro-emdash/src/routes/__root.tsx +56 -0
- package/templates/astro-emdash/src/routes/_app/admin.tsx +13 -0
- package/templates/astro-emdash/src/routes/_app/forgot-password.tsx +97 -0
- package/templates/astro-emdash/src/routes/_app/index.tsx +169 -0
- package/templates/astro-emdash/src/routes/_app/invite.$token.tsx +11 -0
- package/templates/astro-emdash/src/routes/_app/login.tsx +193 -0
- package/templates/astro-emdash/src/routes/_app/profile.tsx +98 -0
- package/templates/astro-emdash/src/routes/_app/reset-password.$token.tsx +15 -0
- package/templates/astro-emdash/src/routes/_app/reset-password.tsx +115 -0
- package/templates/astro-emdash/src/routes/_app/setup.$token.tsx +11 -0
- package/templates/astro-emdash/src/routes/_app/signup.tsx +141 -0
- package/templates/astro-emdash/src/routes/_app/verify-email.$token.tsx +15 -0
- package/templates/astro-emdash/src/routes/_app/verify-email.tsx +154 -0
- package/templates/astro-emdash/src/routes/_app.tsx +33 -0
- package/templates/astro-emdash/src/routes/admin/$.ts +20 -0
- package/templates/astro-emdash/src/routes/api/$.ts +19 -0
- package/templates/astro-emdash/src/routes/docs/$.tsx +22 -0
- package/templates/astro-emdash/src/routes/docs/api/markdown.ts +12 -0
- package/templates/astro-emdash/src/routes/docs/api/search.ts +12 -0
- package/templates/astro-emdash/src/routes/docs.index.tsx +22 -0
- package/templates/astro-emdash/src/routes/docs.tsx +22 -0
- package/templates/astro-emdash/src/search.ts +6 -0
- package/templates/astro-emdash/src/settings.ts +12 -0
- package/templates/astro-emdash/src/styles-docs.css +3 -0
- package/templates/astro-emdash/src/styles.css +101 -0
- package/templates/astro-emdash/src/themes/base.css +76 -0
- package/templates/astro-emdash/src/themes/carbon.css +76 -0
- package/templates/astro-emdash/src/themes/fonts.css +25 -0
- package/templates/astro-emdash/src/themes/sage.css +76 -0
- package/templates/astro-emdash/src/themes/sand.css +76 -0
- package/templates/astro-emdash/src/themes/slate.css +81 -0
- package/templates/astro-emdash/src/themes/ultra.css +76 -0
- package/templates/astro-emdash/src/themes/zen.css +76 -0
- package/templates/astro-emdash/src/worker-entry.ts +31 -0
- package/templates/astro-emdash/tests/raybase-patterns.test.ts +29 -0
- package/templates/astro-emdash/tsconfig.json +36 -0
- package/templates/astro-emdash/vite.config.ts +130 -0
- package/templates/astro-emdash/vitest.config.ts +8 -0
- package/templates/astro-emdash/wrangler.jsonc +112 -0
- package/templates/react-router/.dev.vars.example +5 -0
- package/templates/react-router/.editorconfig +15 -0
- package/templates/react-router/AGENTS.md +54 -0
- package/templates/react-router/README.md +52 -0
- package/templates/react-router/app/app.css +44 -0
- package/templates/react-router/app/components/mdx.tsx +79 -0
- package/templates/react-router/app/components/ui/button.tsx +45 -0
- package/templates/react-router/app/components/ui/card.tsx +87 -0
- package/templates/react-router/app/components/ui/separator.tsx +22 -0
- package/templates/react-router/app/db/migrations.gen.ts +6 -0
- package/templates/react-router/app/db/schema.ts +56 -0
- package/templates/react-router/app/db/seed.ts +14 -0
- package/templates/react-router/app/entry.server.tsx +41 -0
- package/templates/react-router/app/globals.d.ts +1 -0
- package/templates/react-router/app/lib/layout.shared.tsx +52 -0
- package/templates/react-router/app/lib/source.ts +7 -0
- package/templates/react-router/app/lib/utils.ts +6 -0
- package/templates/react-router/app/raybase.server.ts +65 -0
- package/templates/react-router/app/root.tsx +23 -0
- package/templates/react-router/app/routes/_index.tsx +53 -0
- package/templates/react-router/app/routes/docs.$.tsx +49 -0
- package/templates/react-router/app/routes/docs.api.search.ts +10 -0
- package/templates/react-router/app/routes/docs.tsx +13 -0
- package/templates/react-router/app/routes.ts +3 -0
- package/templates/react-router/components.json +22 -0
- package/templates/react-router/content/docs/getting-started.mdx +15 -0
- package/templates/react-router/content/docs/index.mdx +8 -0
- package/templates/react-router/content/docs/mcp.mdx +121 -0
- package/templates/react-router/content/docs/meta.json +4 -0
- package/templates/react-router/dev/CODEBASE-MAP.md +48 -0
- package/templates/react-router/dev/SPEC-OVERVIEW.md +35 -0
- package/templates/react-router/dev/SPEC.md +93 -0
- package/templates/react-router/dev/features/archive/.gitkeep +1 -0
- package/templates/react-router/drizzle.config.ts +5 -0
- package/templates/react-router/env.d.ts +53 -0
- package/templates/react-router/gitignore +23 -0
- package/templates/react-router/migrations/app/meta/_journal.json +1 -0
- package/templates/react-router/package.json +70 -0
- package/templates/react-router/public/_headers +4 -0
- package/templates/react-router/public/favicon.ico +0 -0
- package/templates/react-router/react-router.config.ts +9 -0
- package/templates/react-router/source.config.ts +5 -0
- package/templates/react-router/tests/raybase-patterns.test.ts +23 -0
- package/templates/react-router/tsconfig.json +27 -0
- package/templates/react-router/vite.config.ts +59 -0
- package/templates/react-router/vitest.config.ts +8 -0
- package/templates/react-router/workers/app.ts +40 -0
- package/templates/react-router/wrangler.jsonc +111 -0
- package/templates/tanstack-start/.dev.vars.example +5 -0
- package/templates/tanstack-start/AGENTS.md +95 -0
- package/templates/tanstack-start/DESIGN.md +65 -0
- package/templates/tanstack-start/components.json +21 -0
- package/templates/tanstack-start/content/docs/getting-started.mdx +65 -0
- package/templates/tanstack-start/content/docs/index.mdx +10 -0
- package/templates/tanstack-start/content/docs/mcp.mdx +122 -0
- package/templates/tanstack-start/content/docs/meta.json +4 -0
- package/templates/tanstack-start/dev/CODEBASE-MAP.md +84 -0
- package/templates/tanstack-start/dev/SPEC-OVERVIEW.md +46 -0
- package/templates/tanstack-start/dev/SPEC.md +213 -0
- package/templates/tanstack-start/dev/features/archive/.gitkeep +1 -0
- package/templates/tanstack-start/docs/theme-previews/base.svg +24 -0
- package/templates/tanstack-start/docs/theme-previews/steel.svg +24 -0
- package/templates/tanstack-start/docs/theme-previews/zen.svg +24 -0
- package/templates/tanstack-start/docs/themes.md +116 -0
- package/templates/tanstack-start/drizzle.config.ts +5 -0
- package/templates/tanstack-start/gitignore +11 -0
- package/templates/tanstack-start/migrations/app/0000_low_karen_page.sql +26 -0
- package/templates/tanstack-start/migrations/app/meta/0000_snapshot.json +196 -0
- package/templates/tanstack-start/migrations/app/meta/_journal.json +13 -0
- package/templates/tanstack-start/package.json +77 -0
- package/templates/tanstack-start/public/_headers +8 -0
- package/templates/tanstack-start/public/icons/app-icon-maskable.svg +1 -0
- package/templates/tanstack-start/public/icons/app-icon.svg +1 -0
- package/templates/tanstack-start/public/icons/apple-touch-icon.png +0 -0
- package/templates/tanstack-start/public/manifest.webmanifest +14 -0
- package/templates/tanstack-start/public/raybase-push-sw.js +32 -0
- package/templates/tanstack-start/source.config.ts +10 -0
- package/templates/tanstack-start/src/actions.ts +560 -0
- package/templates/tanstack-start/src/ai/agents.ts +78 -0
- package/templates/tanstack-start/src/ai/retrieval.ts +36 -0
- package/templates/tanstack-start/src/auth-door.ts +18 -0
- package/templates/tanstack-start/src/client.tsx +25 -0
- package/templates/tanstack-start/src/components/.gitkeep +1 -0
- package/templates/tanstack-start/src/components/account-menu.tsx +127 -0
- package/templates/tanstack-start/src/components/auth-shell.tsx +69 -0
- package/templates/tanstack-start/src/components/install-app.tsx +35 -0
- package/templates/tanstack-start/src/components/mode-toggle.tsx +32 -0
- package/templates/tanstack-start/src/components/search-command-palette.tsx +107 -0
- package/templates/tanstack-start/src/components/setup-token-page.tsx +197 -0
- package/templates/tanstack-start/src/components/ui/avatar.tsx +107 -0
- package/templates/tanstack-start/src/components/ui/badge.tsx +52 -0
- package/templates/tanstack-start/src/components/ui/button.tsx +69 -0
- package/templates/tanstack-start/src/components/ui/checkbox.tsx +29 -0
- package/templates/tanstack-start/src/components/ui/dialog.tsx +158 -0
- package/templates/tanstack-start/src/components/ui/dropdown-menu.tsx +303 -0
- package/templates/tanstack-start/src/components/ui/input.tsx +20 -0
- package/templates/tanstack-start/src/components/ui/label.tsx +20 -0
- package/templates/tanstack-start/src/components/ui/scroll-area.tsx +53 -0
- package/templates/tanstack-start/src/components/ui/select.tsx +215 -0
- package/templates/tanstack-start/src/components/ui/separator.tsx +23 -0
- package/templates/tanstack-start/src/components/ui/sheet.tsx +138 -0
- package/templates/tanstack-start/src/components/ui/sidebar.tsx +728 -0
- package/templates/tanstack-start/src/components/ui/skeleton.tsx +13 -0
- package/templates/tanstack-start/src/components/ui/textarea.tsx +18 -0
- package/templates/tanstack-start/src/components/ui/tooltip.tsx +66 -0
- package/templates/tanstack-start/src/db/migrations.gen.ts +6 -0
- package/templates/tanstack-start/src/db/schema.ts +90 -0
- package/templates/tanstack-start/src/db/seed.ts +106 -0
- package/templates/tanstack-start/src/db/storage.ts +32 -0
- package/templates/tanstack-start/src/docs/docs-assets.ts +1 -0
- package/templates/tanstack-start/src/docs/docs-client.tsx +22 -0
- package/templates/tanstack-start/src/docs/docs-data.ts +24 -0
- package/templates/tanstack-start/src/docs/docs-handler.tsx +105 -0
- package/templates/tanstack-start/src/docs/docs-layout.tsx +56 -0
- package/templates/tanstack-start/src/docs/docs-mdx.tsx +79 -0
- package/templates/tanstack-start/src/docs/docs-page-actions.tsx +146 -0
- package/templates/tanstack-start/src/docs/docs-page.tsx +70 -0
- package/templates/tanstack-start/src/docs/llm-text.ts +61 -0
- package/templates/tanstack-start/src/docs/source.ts +7 -0
- package/templates/tanstack-start/src/hooks/use-mobile.ts +19 -0
- package/templates/tanstack-start/src/hooks/use-pwa-install.ts +77 -0
- package/templates/tanstack-start/src/jobs.example.ts +56 -0
- package/templates/tanstack-start/src/lib/account.ts +13 -0
- package/templates/tanstack-start/src/lib/auth-client.ts +187 -0
- package/templates/tanstack-start/src/lib/push-client.ts +98 -0
- package/templates/tanstack-start/src/lib/utils.ts +6 -0
- package/templates/tanstack-start/src/mcp-app.ts +74 -0
- package/templates/tanstack-start/src/notifications.example.ts +37 -0
- package/templates/tanstack-start/src/raybase.auth.ts +86 -0
- package/templates/tanstack-start/src/raybase.config.ts +86 -0
- package/templates/tanstack-start/src/raybase.server.ts +155 -0
- package/templates/tanstack-start/src/realtime.example.ts +46 -0
- package/templates/tanstack-start/src/router.tsx +19 -0
- package/templates/tanstack-start/src/routes/__root.tsx +73 -0
- package/templates/tanstack-start/src/routes/_app/admin.tsx +13 -0
- package/templates/tanstack-start/src/routes/_app/forgot-password.tsx +97 -0
- package/templates/tanstack-start/src/routes/_app/index.tsx +1316 -0
- package/templates/tanstack-start/src/routes/_app/invite.$token.tsx +11 -0
- package/templates/tanstack-start/src/routes/_app/login.tsx +193 -0
- package/templates/tanstack-start/src/routes/_app/profile.tsx +98 -0
- package/templates/tanstack-start/src/routes/_app/reset-password.$token.tsx +16 -0
- package/templates/tanstack-start/src/routes/_app/reset-password.tsx +115 -0
- package/templates/tanstack-start/src/routes/_app/setup.$token.tsx +11 -0
- package/templates/tanstack-start/src/routes/_app/signup.tsx +141 -0
- package/templates/tanstack-start/src/routes/_app/verify-email.$token.tsx +15 -0
- package/templates/tanstack-start/src/routes/_app/verify-email.tsx +154 -0
- package/templates/tanstack-start/src/routes/_app.tsx +33 -0
- package/templates/tanstack-start/src/routes/admin/$.ts +20 -0
- package/templates/tanstack-start/src/routes/api/$.ts +19 -0
- package/templates/tanstack-start/src/routes/docs/$.tsx +22 -0
- package/templates/tanstack-start/src/routes/docs/api/markdown.ts +12 -0
- package/templates/tanstack-start/src/routes/docs/api/search.ts +12 -0
- package/templates/tanstack-start/src/routes/docs.index.tsx +22 -0
- package/templates/tanstack-start/src/routes/docs.tsx +22 -0
- package/templates/tanstack-start/src/search.ts +26 -0
- package/templates/tanstack-start/src/settings.ts +12 -0
- package/templates/tanstack-start/src/styles-docs.css +3 -0
- package/templates/tanstack-start/src/styles.css +73 -0
- package/templates/tanstack-start/src/themes/base.css +76 -0
- package/templates/tanstack-start/src/themes/carbon.css +76 -0
- package/templates/tanstack-start/src/themes/fonts.css +18 -0
- package/templates/tanstack-start/src/themes/sage.css +76 -0
- package/templates/tanstack-start/src/themes/sand.css +76 -0
- package/templates/tanstack-start/src/themes/slate.css +76 -0
- package/templates/tanstack-start/src/themes/ultra.css +76 -0
- package/templates/tanstack-start/src/themes/zen.css +76 -0
- package/templates/tanstack-start/src/worker-entry.ts +30 -0
- package/templates/tanstack-start/tests/raybase-patterns.test.ts +247 -0
- package/templates/tanstack-start/tsconfig.json +33 -0
- package/templates/tanstack-start/vite.config.ts +132 -0
- package/templates/tanstack-start/vitest.config.ts +8 -0
- package/templates/tanstack-start/wrangler.jsonc +112 -0
- package/README.md +0 -3
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
/* Registry Galley templates author their markup with Tailwind utility
|
|
2
|
+
classes stored in template JSON, so the site scans staged template files
|
|
3
|
+
(and the optional demo set) in addition to its own source. */
|
|
4
|
+
@import "tailwindcss";
|
|
5
|
+
@source "../seed/templates/**/*.json";
|
|
6
|
+
@source "../seed/pages/**/*.json";
|
|
7
|
+
@source "../demo/**/*.json";
|
|
8
|
+
|
|
9
|
+
@layer palette-defaults, palette;
|
|
10
|
+
|
|
11
|
+
@layer palette-defaults {
|
|
12
|
+
:root {
|
|
13
|
+
color-scheme: light;
|
|
14
|
+
--app-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
15
|
+
--app-font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
16
|
+
--app-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
17
|
+
--radius: 0.625rem;
|
|
18
|
+
--tracking-normal: 0em;
|
|
19
|
+
--background: oklch(0.985 0.003 247);
|
|
20
|
+
--foreground: oklch(0.19 0.012 248);
|
|
21
|
+
--card: oklch(1 0 0);
|
|
22
|
+
--card-foreground: oklch(0.19 0.012 248);
|
|
23
|
+
--popover: oklch(1 0 0);
|
|
24
|
+
--popover-foreground: oklch(0.19 0.012 248);
|
|
25
|
+
--primary: oklch(0.25 0.025 248);
|
|
26
|
+
--primary-foreground: oklch(0.985 0.003 247);
|
|
27
|
+
--secondary: oklch(0.94 0.006 247);
|
|
28
|
+
--secondary-foreground: oklch(0.25 0.025 248);
|
|
29
|
+
--muted: oklch(0.955 0.006 247);
|
|
30
|
+
--muted-foreground: oklch(0.48 0.017 248);
|
|
31
|
+
--accent: oklch(0.92 0.018 246);
|
|
32
|
+
--accent-foreground: oklch(0.25 0.025 248);
|
|
33
|
+
--destructive: oklch(0.58 0.21 25);
|
|
34
|
+
--destructive-foreground: oklch(0.985 0.003 247);
|
|
35
|
+
--border: oklch(0.9 0.008 247);
|
|
36
|
+
--input: oklch(0.86 0.01 247);
|
|
37
|
+
--ring: oklch(0.54 0.06 248);
|
|
38
|
+
--chart-1: oklch(0.58 0.16 35);
|
|
39
|
+
--chart-2: oklch(0.56 0.11 185);
|
|
40
|
+
--chart-3: oklch(0.48 0.11 250);
|
|
41
|
+
--chart-4: oklch(0.7 0.14 140);
|
|
42
|
+
--chart-5: oklch(0.62 0.13 305);
|
|
43
|
+
--sidebar: oklch(0.965 0.004 247);
|
|
44
|
+
--sidebar-foreground: oklch(0.19 0.012 248);
|
|
45
|
+
--sidebar-primary: oklch(0.25 0.025 248);
|
|
46
|
+
--sidebar-primary-foreground: oklch(0.985 0.003 247);
|
|
47
|
+
--sidebar-accent: oklch(0.92 0.018 246);
|
|
48
|
+
--sidebar-accent-foreground: oklch(0.25 0.025 248);
|
|
49
|
+
--sidebar-border: oklch(0.9 0.008 247);
|
|
50
|
+
--sidebar-ring: oklch(0.54 0.06 248);
|
|
51
|
+
--bg: var(--background);
|
|
52
|
+
--surface: var(--card);
|
|
53
|
+
--ink: var(--foreground);
|
|
54
|
+
--muted-text: var(--muted-foreground);
|
|
55
|
+
--line: var(--border);
|
|
56
|
+
--accent-2: var(--primary);
|
|
57
|
+
--soft: var(--muted);
|
|
58
|
+
font-family: var(--app-font-sans);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* shadcn-semantic-v1 token contract: registry Galley templates style with
|
|
63
|
+
palette-token utilities (bg-card, text-primary, from-card/70, ...), and
|
|
64
|
+
Tailwind v4 only generates those when the tokens are registered in @theme.
|
|
65
|
+
Without this block every palette-token utility silently compiles to
|
|
66
|
+
nothing on the public site. Keep in sync with the spine's src/styles.css. */
|
|
67
|
+
@theme inline {
|
|
68
|
+
--font-sans: var(--app-font-sans);
|
|
69
|
+
--font-serif: var(--app-font-serif);
|
|
70
|
+
--font-mono: var(--app-font-mono);
|
|
71
|
+
--font-display: var(--app-font-display, var(--app-font-sans));
|
|
72
|
+
--color-background: var(--background);
|
|
73
|
+
--color-foreground: var(--foreground);
|
|
74
|
+
--color-card: var(--card);
|
|
75
|
+
--color-card-foreground: var(--card-foreground);
|
|
76
|
+
--color-popover: var(--popover);
|
|
77
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
78
|
+
--color-primary: var(--primary);
|
|
79
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
80
|
+
--color-secondary: var(--secondary);
|
|
81
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
82
|
+
--color-muted: var(--muted);
|
|
83
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
84
|
+
--color-accent: var(--accent);
|
|
85
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
86
|
+
--color-destructive: var(--destructive);
|
|
87
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
88
|
+
--color-border: var(--border);
|
|
89
|
+
--color-input: var(--input);
|
|
90
|
+
--color-ring: var(--ring);
|
|
91
|
+
--color-chart-1: var(--chart-1);
|
|
92
|
+
--color-chart-2: var(--chart-2);
|
|
93
|
+
--color-chart-3: var(--chart-3);
|
|
94
|
+
--color-chart-4: var(--chart-4);
|
|
95
|
+
--color-chart-5: var(--chart-5);
|
|
96
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
97
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
98
|
+
--radius-lg: var(--radius);
|
|
99
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
100
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
101
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
102
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Display-weight companion to `font-display`; see the spine styles for the
|
|
106
|
+
full rationale. Themes cap it with --app-font-display-weight. */
|
|
107
|
+
@utility font-display-weight {
|
|
108
|
+
font-weight: var(--app-font-display-weight, 700);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Element defaults live in @layer base so Tailwind utilities from installed
|
|
112
|
+
templates (inline, max-w-none, ...) can still override them. */
|
|
113
|
+
@layer base {
|
|
114
|
+
* {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
html,
|
|
119
|
+
body {
|
|
120
|
+
margin: 0;
|
|
121
|
+
min-height: 100%;
|
|
122
|
+
background: var(--bg);
|
|
123
|
+
color: var(--ink);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
body {
|
|
127
|
+
line-height: 1.5;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
a {
|
|
131
|
+
color: inherit;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
img {
|
|
135
|
+
display: block;
|
|
136
|
+
max-width: 100%;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.site-shell {
|
|
141
|
+
min-height: 100vh;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.site-header {
|
|
145
|
+
position: sticky;
|
|
146
|
+
top: 0;
|
|
147
|
+
z-index: 10;
|
|
148
|
+
border-bottom: 1px solid var(--line);
|
|
149
|
+
background: color-mix(in srgb, var(--surface) 92%, transparent);
|
|
150
|
+
backdrop-filter: blur(14px);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.site-header-inner,
|
|
154
|
+
.page-section,
|
|
155
|
+
.page-content {
|
|
156
|
+
width: min(1120px, calc(100vw - 32px));
|
|
157
|
+
margin: 0 auto;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.site-header-inner {
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: space-between;
|
|
164
|
+
gap: 24px;
|
|
165
|
+
padding: 18px 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.brand {
|
|
169
|
+
font-weight: 760;
|
|
170
|
+
letter-spacing: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.nav {
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 18px;
|
|
177
|
+
color: var(--muted-text);
|
|
178
|
+
font-size: 14px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.nav a {
|
|
182
|
+
text-decoration: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.raybase-menu {
|
|
186
|
+
--raybase-menu-offset: 18px;
|
|
187
|
+
position: fixed;
|
|
188
|
+
z-index: 40;
|
|
189
|
+
color: #1f2933;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.raybase-menu[data-position="bottom-right"] {
|
|
194
|
+
right: var(--raybase-menu-offset);
|
|
195
|
+
bottom: var(--raybase-menu-offset);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.raybase-menu[data-position="bottom-left"] {
|
|
199
|
+
bottom: var(--raybase-menu-offset);
|
|
200
|
+
left: var(--raybase-menu-offset);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.raybase-menu[data-position="top-right"] {
|
|
204
|
+
top: var(--raybase-menu-offset);
|
|
205
|
+
right: var(--raybase-menu-offset);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.raybase-menu[data-position="top-left"] {
|
|
209
|
+
top: var(--raybase-menu-offset);
|
|
210
|
+
left: var(--raybase-menu-offset);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.raybase-menu-details {
|
|
214
|
+
position: relative;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.raybase-menu-button {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
min-height: 42px;
|
|
220
|
+
max-width: min(260px, calc(100vw - 36px));
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 8px;
|
|
223
|
+
border: 1px solid rgb(17 24 39 / 0.12);
|
|
224
|
+
border-radius: 999px;
|
|
225
|
+
background: rgb(255 255 255 / 0.94);
|
|
226
|
+
box-shadow: 0 10px 30px rgb(15 23 42 / 0.14);
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
list-style: none;
|
|
229
|
+
padding: 5px 10px 5px 6px;
|
|
230
|
+
backdrop-filter: blur(12px);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.raybase-menu-button::-webkit-details-marker {
|
|
234
|
+
display: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.raybase-menu-button:focus-visible,
|
|
238
|
+
.raybase-menu-item:focus-visible {
|
|
239
|
+
outline: 2px solid rgb(31 111 235 / 0.6);
|
|
240
|
+
outline-offset: 2px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.raybase-menu-avatar {
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
width: 30px;
|
|
246
|
+
height: 30px;
|
|
247
|
+
flex: none;
|
|
248
|
+
align-items: center;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
border-radius: 999px;
|
|
251
|
+
background: #171717;
|
|
252
|
+
color: #ffffff;
|
|
253
|
+
font-size: 11px;
|
|
254
|
+
font-weight: 800;
|
|
255
|
+
letter-spacing: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.raybase-menu-label {
|
|
259
|
+
min-width: 0;
|
|
260
|
+
max-width: 150px;
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.raybase-menu-chevron {
|
|
267
|
+
flex: none;
|
|
268
|
+
color: #6b7280;
|
|
269
|
+
transition: transform 160ms ease;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.raybase-menu-details[open] .raybase-menu-chevron {
|
|
273
|
+
transform: rotate(180deg);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.raybase-menu-panel {
|
|
277
|
+
position: absolute;
|
|
278
|
+
right: 0;
|
|
279
|
+
bottom: calc(100% + 8px);
|
|
280
|
+
display: grid;
|
|
281
|
+
min-width: 180px;
|
|
282
|
+
border: 1px solid rgb(17 24 39 / 0.12);
|
|
283
|
+
border-radius: 8px;
|
|
284
|
+
background: #ffffff;
|
|
285
|
+
box-shadow: 0 18px 42px rgb(15 23 42 / 0.18);
|
|
286
|
+
padding: 5px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.raybase-menu[data-position^="top"] .raybase-menu-panel {
|
|
290
|
+
top: calc(100% + 8px);
|
|
291
|
+
bottom: auto;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.raybase-menu[data-position$="left"] .raybase-menu-panel {
|
|
295
|
+
right: auto;
|
|
296
|
+
left: 0;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.raybase-menu-panel form {
|
|
300
|
+
margin: 0;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.raybase-dev-persona-trigger {
|
|
304
|
+
justify-content: space-between;
|
|
305
|
+
gap: 8px;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.raybase-dev-persona-caret {
|
|
309
|
+
flex: none;
|
|
310
|
+
color: #6b7280;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.raybase-menu[data-position$="left"] .raybase-dev-persona-caret {
|
|
314
|
+
transform: rotate(180deg);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.raybase-dev-persona-flyout {
|
|
318
|
+
position: absolute;
|
|
319
|
+
right: calc(100% - 5px);
|
|
320
|
+
bottom: 0;
|
|
321
|
+
display: none;
|
|
322
|
+
padding-right: 13px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.raybase-menu[data-position^="top"] .raybase-dev-persona-flyout {
|
|
326
|
+
top: 0;
|
|
327
|
+
bottom: auto;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.raybase-menu[data-position$="left"] .raybase-dev-persona-flyout {
|
|
331
|
+
right: auto;
|
|
332
|
+
left: calc(100% - 5px);
|
|
333
|
+
padding-right: 0;
|
|
334
|
+
padding-left: 13px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.raybase-dev-persona[data-open="true"] .raybase-dev-persona-flyout {
|
|
338
|
+
display: block;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.raybase-dev-persona-flyout-panel {
|
|
342
|
+
display: grid;
|
|
343
|
+
gap: 2px;
|
|
344
|
+
min-width: 230px;
|
|
345
|
+
max-width: min(320px, calc(100vw - 36px));
|
|
346
|
+
max-height: min(60vh, 420px);
|
|
347
|
+
overflow: auto;
|
|
348
|
+
border: 1px solid rgb(17 24 39 / 0.12);
|
|
349
|
+
border-radius: 8px;
|
|
350
|
+
background: #ffffff;
|
|
351
|
+
box-shadow: 0 18px 42px rgb(15 23 42 / 0.18);
|
|
352
|
+
padding: 5px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.raybase-dev-persona-heading {
|
|
356
|
+
margin: 0;
|
|
357
|
+
padding: 6px 10px 4px;
|
|
358
|
+
color: #64748b;
|
|
359
|
+
font-size: 11px;
|
|
360
|
+
font-weight: 700;
|
|
361
|
+
letter-spacing: 0.06em;
|
|
362
|
+
text-transform: uppercase;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
@media (max-width: 640px) {
|
|
366
|
+
.raybase-dev-persona-flyout {
|
|
367
|
+
right: 0;
|
|
368
|
+
bottom: calc(100% - 5px);
|
|
369
|
+
padding: 0 0 13px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.raybase-menu[data-position$="left"] .raybase-dev-persona-flyout {
|
|
373
|
+
right: auto;
|
|
374
|
+
left: 0;
|
|
375
|
+
padding: 0 0 13px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.raybase-menu[data-position^="top"] .raybase-dev-persona-flyout {
|
|
379
|
+
top: calc(100% - 5px);
|
|
380
|
+
bottom: auto;
|
|
381
|
+
padding: 13px 0 0;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.raybase-menu-item.raybase-dev-persona-option {
|
|
386
|
+
display: grid;
|
|
387
|
+
min-height: 46px;
|
|
388
|
+
gap: 2px;
|
|
389
|
+
align-items: center;
|
|
390
|
+
padding-block: 6px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.raybase-dev-persona-option[aria-current="true"] {
|
|
394
|
+
background: #eef2ff;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.raybase-dev-persona-name,
|
|
398
|
+
.raybase-dev-persona-meta {
|
|
399
|
+
min-width: 0;
|
|
400
|
+
overflow: hidden;
|
|
401
|
+
text-overflow: ellipsis;
|
|
402
|
+
white-space: nowrap;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.raybase-dev-persona-name {
|
|
406
|
+
font-weight: 700;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.raybase-dev-persona-meta {
|
|
410
|
+
color: #64748b;
|
|
411
|
+
font-size: 12px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.raybase-menu-item {
|
|
415
|
+
display: flex;
|
|
416
|
+
width: 100%;
|
|
417
|
+
min-height: 36px;
|
|
418
|
+
align-items: center;
|
|
419
|
+
border: 0;
|
|
420
|
+
border-radius: 5px;
|
|
421
|
+
background: transparent;
|
|
422
|
+
color: #1f2933;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
font: inherit;
|
|
425
|
+
padding: 0 10px;
|
|
426
|
+
text-align: left;
|
|
427
|
+
text-decoration: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.raybase-menu-item:hover {
|
|
431
|
+
background: #f3f4f6;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.raybase-menu-submit {
|
|
435
|
+
appearance: none;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.page-content {
|
|
439
|
+
padding: 86px 0 64px;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/* Prose typography lives in @layer components so template-authored utility
|
|
443
|
+
classes (designed pages style their own Portable Text bodies) always win.
|
|
444
|
+
Designed pages render inside .page-designed, which adds no width cap or
|
|
445
|
+
padding — Galley shells and sections manage their own layout. */
|
|
446
|
+
@layer components {
|
|
447
|
+
/* Vertical rhythm: preflight zeroes every margin and rendered Portable
|
|
448
|
+
Text carries no classes, so prose spacing must come from here. */
|
|
449
|
+
.page-content h1,
|
|
450
|
+
.page-content h2,
|
|
451
|
+
.rich-text h1 {
|
|
452
|
+
margin: 1.8em 0 0.55em;
|
|
453
|
+
max-width: 760px;
|
|
454
|
+
letter-spacing: 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.page-content h1,
|
|
458
|
+
.rich-text h1 {
|
|
459
|
+
font-size: clamp(42px, 7vw, 76px);
|
|
460
|
+
line-height: 0.96;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.page-content h2 {
|
|
464
|
+
font-size: clamp(28px, 4vw, 44px);
|
|
465
|
+
line-height: 1.05;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.page-content p,
|
|
469
|
+
.rich-text p {
|
|
470
|
+
margin: 1em 0;
|
|
471
|
+
color: var(--muted-text);
|
|
472
|
+
font-size: 18px;
|
|
473
|
+
max-width: 760px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.page-content > :first-child,
|
|
477
|
+
.rich-text > :first-child {
|
|
478
|
+
margin-top: 0;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* Portable Text element defaults: Tailwind preflight strips list, quote,
|
|
482
|
+
link, and code styling, and rendered bodies carry no classes of their
|
|
483
|
+
own. Template utilities still override any of this. */
|
|
484
|
+
.page-content a,
|
|
485
|
+
.rich-text a,
|
|
486
|
+
[data-dynamic-portable-text] a {
|
|
487
|
+
text-decoration: underline;
|
|
488
|
+
text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
|
|
489
|
+
text-underline-offset: 3px;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.page-content ul,
|
|
493
|
+
.rich-text ul,
|
|
494
|
+
[data-dynamic-portable-text] ul {
|
|
495
|
+
list-style: disc;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.page-content ol,
|
|
499
|
+
.rich-text ol,
|
|
500
|
+
[data-dynamic-portable-text] ol {
|
|
501
|
+
list-style: decimal;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.page-content ul,
|
|
505
|
+
.page-content ol,
|
|
506
|
+
.rich-text ul,
|
|
507
|
+
.rich-text ol,
|
|
508
|
+
[data-dynamic-portable-text] ul,
|
|
509
|
+
[data-dynamic-portable-text] ol {
|
|
510
|
+
margin: 1em 0;
|
|
511
|
+
max-width: 760px;
|
|
512
|
+
padding-left: 1.5em;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.page-content li,
|
|
516
|
+
.rich-text li,
|
|
517
|
+
[data-dynamic-portable-text] li {
|
|
518
|
+
margin: 0.35em 0;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.page-content blockquote,
|
|
522
|
+
.rich-text blockquote,
|
|
523
|
+
[data-dynamic-portable-text] blockquote {
|
|
524
|
+
margin: 1.4em 0;
|
|
525
|
+
max-width: 760px;
|
|
526
|
+
border-left: 3px solid var(--line);
|
|
527
|
+
color: var(--muted-text);
|
|
528
|
+
font-style: italic;
|
|
529
|
+
padding-left: 1em;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.page-content code,
|
|
533
|
+
.rich-text code,
|
|
534
|
+
[data-dynamic-portable-text] code {
|
|
535
|
+
border-radius: 4px;
|
|
536
|
+
background: var(--soft);
|
|
537
|
+
font-family: var(--app-font-mono);
|
|
538
|
+
font-size: 0.9em;
|
|
539
|
+
padding: 0.1em 0.35em;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.page-content hr,
|
|
543
|
+
.rich-text hr,
|
|
544
|
+
[data-dynamic-portable-text] hr {
|
|
545
|
+
margin: 2em 0;
|
|
546
|
+
border: 0;
|
|
547
|
+
border-top: 1px solid var(--line);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.button-row {
|
|
552
|
+
display: flex;
|
|
553
|
+
flex-wrap: wrap;
|
|
554
|
+
gap: 12px;
|
|
555
|
+
margin-top: 28px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.button {
|
|
559
|
+
display: inline-flex;
|
|
560
|
+
min-height: 44px;
|
|
561
|
+
align-items: center;
|
|
562
|
+
justify-content: center;
|
|
563
|
+
border: 1px solid var(--ink);
|
|
564
|
+
border-radius: 6px;
|
|
565
|
+
padding: 0 16px;
|
|
566
|
+
background: var(--ink);
|
|
567
|
+
color: white;
|
|
568
|
+
font-weight: 700;
|
|
569
|
+
text-decoration: none;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.button.secondary {
|
|
573
|
+
background: transparent;
|
|
574
|
+
color: var(--ink);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.rich-text {
|
|
578
|
+
max-width: 760px;
|
|
579
|
+
padding: 44px 0;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.island {
|
|
583
|
+
margin: 44px 0;
|
|
584
|
+
border: 1px solid var(--line);
|
|
585
|
+
background: var(--surface);
|
|
586
|
+
padding: 24px;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.island-output {
|
|
590
|
+
margin-top: 16px;
|
|
591
|
+
min-height: 42px;
|
|
592
|
+
color: var(--muted-text);
|
|
593
|
+
font-family: var(--app-font-mono);
|
|
594
|
+
font-size: 13px;
|
|
595
|
+
white-space: pre-wrap;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
@media (max-width: 760px) {
|
|
599
|
+
.site-header-inner {
|
|
600
|
+
align-items: flex-start;
|
|
601
|
+
flex-direction: column;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.page-content {
|
|
605
|
+
padding-top: 56px;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "node_modules/wrangler/config-schema.json",
|
|
3
|
+
// raybase dev runs site/ with Astro dev; this Wrangler config is for deployed
|
|
4
|
+
// Cloudflare bindings and direct site-worker deployment.
|
|
5
|
+
"name": "__PACKAGE_NAME__-site",
|
|
6
|
+
"compatibility_date": "2026-06-26",
|
|
7
|
+
"compatibility_flags": [
|
|
8
|
+
"nodejs_compat"
|
|
9
|
+
],
|
|
10
|
+
"assets": {
|
|
11
|
+
"directory": "./dist",
|
|
12
|
+
"binding": "ASSETS"
|
|
13
|
+
},
|
|
14
|
+
"vars": {
|
|
15
|
+
"RAYBASE_SPINE_URL": "http://127.0.0.1:3000",
|
|
16
|
+
"RAYBASE_SITE_ORIGIN": "http://127.0.0.1:4321",
|
|
17
|
+
"RAYBASE_HANDOFF_RESOURCE": "primary",
|
|
18
|
+
"RAYBASE_CMS_PATH": "/_emdash/admin",
|
|
19
|
+
"RAYBASE_SITE_MENU_POSITION": "bottom-right"
|
|
20
|
+
},
|
|
21
|
+
"d1_databases": [
|
|
22
|
+
{
|
|
23
|
+
"binding": "EMDASH_DB",
|
|
24
|
+
"database_name": "__PACKAGE_NAME__-emdash",
|
|
25
|
+
"database_id": "00000000-0000-0000-0000-000000000000"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"r2_buckets": [
|
|
29
|
+
{
|
|
30
|
+
"binding": "EMDASH_MEDIA",
|
|
31
|
+
"bucket_name": "__PACKAGE_NAME__-emdash-media"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { allowAll, defineAction, defineActions } from "@raybase/core";
|
|
2
|
+
import type { RaybaseActionContext } from "@raybase/core";
|
|
3
|
+
import type { RaybaseEnv } from "@raybase/core/worker";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import type { schema } from "./db/schema";
|
|
6
|
+
|
|
7
|
+
type AppActionContext = RaybaseActionContext<RaybaseEnv, typeof schema>;
|
|
8
|
+
|
|
9
|
+
type ContentSiteSnapshotInput = {
|
|
10
|
+
path?: string;
|
|
11
|
+
source?: "server-island";
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function normalizePath(value: string): string {
|
|
15
|
+
const trimmed = value.trim() || "/";
|
|
16
|
+
if (!trimmed.startsWith("/")) return `/${trimmed}`;
|
|
17
|
+
return trimmed;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const actions = defineActions<RaybaseEnv, typeof schema>({
|
|
21
|
+
contentSiteSnapshot: defineAction({
|
|
22
|
+
name: "content.site_snapshot",
|
|
23
|
+
description: "Return a public, read-only Raybase spine snapshot for content-site Server Islands.",
|
|
24
|
+
input: {
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
path: { type: "string", maxLength: 240 },
|
|
28
|
+
source: { type: "string", enum: ["server-island"] }
|
|
29
|
+
},
|
|
30
|
+
additionalProperties: false
|
|
31
|
+
},
|
|
32
|
+
output: z.object({
|
|
33
|
+
ok: z.literal(true),
|
|
34
|
+
path: z.string(),
|
|
35
|
+
siteId: z.string(),
|
|
36
|
+
message: z.string(),
|
|
37
|
+
requestedBy: z.object({
|
|
38
|
+
kind: z.string(),
|
|
39
|
+
id: z.string().nullable()
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
audience: "public",
|
|
43
|
+
policy: allowAll,
|
|
44
|
+
annotations: { title: "Content site snapshot", readOnlyHint: true },
|
|
45
|
+
resource: { name: "content_site", operation: "read" },
|
|
46
|
+
effects: [],
|
|
47
|
+
handler: async (ctx: AppActionContext, input: ContentSiteSnapshotInput) => ({
|
|
48
|
+
ok: true as const,
|
|
49
|
+
path: normalizePath(input.path ?? "/"),
|
|
50
|
+
siteId: "primary",
|
|
51
|
+
message: "Raybase spine is available to the content site.",
|
|
52
|
+
requestedBy: {
|
|
53
|
+
kind: ctx.principal.kind,
|
|
54
|
+
id: "id" in ctx.principal ? String(ctx.principal.id) : null
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|