{{ appConfig }}
7 |
8 |
--------------------------------------------------------------------------------
/playground/components/content/StudioComponents.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | {{ studio.components }}
7 |
8 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.codeActionsOnSave": {
3 | "source.fixAll.eslint": "explicit"
4 | },
5 | "files.associations": {
6 | "*.css": "postcss"
7 | },
8 | "editor.formatOnSave": false
9 | }
10 |
--------------------------------------------------------------------------------
/src/runtime/types/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './api'
2 |
3 | declare global {
4 | interface Window {
5 | openContentInStudioEditor: (ids: string[], navigate?: { navigate?: boolean, pageContentId?: string }) => void
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "node",
6 | "name": "Launch",
7 | "request": "launch",
8 | "preLaunchTask": "start"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_size = 2
5 | indent_style = space
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/playground/nuxt.schema.ts:
--------------------------------------------------------------------------------
1 | import { field, group } from '@nuxthq/studio/theme'
2 |
3 | export default defineNuxtSchema({
4 | appConfig: {
5 | header: group({
6 | title: 'Header',
7 | fields: {
8 | title: field({ type: 'string' }),
9 | },
10 | }),
11 | },
12 | })
13 |
--------------------------------------------------------------------------------
/eslint.config.mjs:
--------------------------------------------------------------------------------
1 | // @ts-check
2 | import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
3 |
4 | export default createConfigForNuxt({
5 | features: {
6 | tooling: true,
7 | stylistic: true,
8 | },
9 | }, {
10 | rules: {
11 | 'vue/multi-word-component-names': 'off',
12 | },
13 | })
14 |
--------------------------------------------------------------------------------
/playground/components/content/ArticlesList.vue:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Initializing the preview...
217 | 220 |{{ error }}
228 | 231 |