@svgrid/create-studio 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs
CHANGED
|
@@ -85,11 +85,14 @@ ${color('bold', 'Examples')}
|
|
|
85
85
|
npm create @svgrid/studio@latest my-app -- --from ./prisma/schema.prisma
|
|
86
86
|
npm create @svgrid/studio@latest my-app -- --project ./studio.config.json
|
|
87
87
|
npm create @svgrid/studio@latest my-app -- --theme material --dark
|
|
88
|
+
|
|
89
|
+
${color('bold', 'Have a database?')}
|
|
90
|
+
npx @svgrid/studio init reads your tables and scaffolds a page for each.
|
|
88
91
|
`)
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
const THEME_IDS = [
|
|
92
|
-
'shadcn', 'tailwind', 'material', 'excel', 'fluent', 'carbon', 'sap',
|
|
95
|
+
'ember', 'shadcn', 'tailwind', 'material', 'excel', 'fluent', 'carbon', 'sap',
|
|
93
96
|
'salesforce', 'atlassian', 'github', 'antd', 'ag-alpine', 'bootstrap',
|
|
94
97
|
'vercel', 'linear', 'notion', 'nord', 'dracula', 'catppuccin',
|
|
95
98
|
]
|
|
@@ -376,6 +379,7 @@ async function main() {
|
|
|
376
379
|
stdout.write(` cd ${target}\n`)
|
|
377
380
|
stdout.write(` npm install\n`)
|
|
378
381
|
stdout.write(` npm run dev\n\n`)
|
|
382
|
+
stdout.write(`${color('dim', 'Have a database?')} npx @svgrid/studio init ${color('dim', 'reads your tables and scaffolds a page for each.')}\n`)
|
|
379
383
|
stdout.write(`${color('dim', 'Docs:')} https://svgrid.com/docs/enterprise/studio/\n\n`)
|
|
380
384
|
}
|
|
381
385
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "commercial",
|
|
5
5
|
"url": "https://svgrid.com/pricing"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.4.0",
|
|
8
8
|
"description": "Scaffold a runnable SvGrid Studio data app in one command: npm create @svgrid/studio@latest",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"license": "MIT",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"node": ">=18"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@svgrid/enterprise": "^2.
|
|
44
|
+
"@svgrid/enterprise": "^2.4.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import '../app.css'
|
|
3
|
-
import { page } from '$app/
|
|
3
|
+
import { page } from '$app/state'
|
|
4
4
|
|
|
5
5
|
let { children } = $props()
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<a class="app__brand" href="/">My Studio App</a>
|
|
18
18
|
<nav class="app__links">
|
|
19
19
|
{#each nav as item (item.href)}
|
|
20
|
-
<a class="app__link" class:is-active={
|
|
20
|
+
<a class="app__link" class:is-active={page.url.pathname === item.href} href={item.href}>{item.label}</a>
|
|
21
21
|
{/each}
|
|
22
22
|
</nav>
|
|
23
23
|
<span class="app__foot">Built with SvGrid Studio</span>
|