spine-framework 0.1.22 → 0.1.24
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.
|
@@ -105,6 +105,7 @@ function copyFrameworkFiles(dryRun: boolean): void {
|
|
|
105
105
|
{ src: 'netlify.toml', dest: 'netlify.toml' },
|
|
106
106
|
{ src: 'vitest.config.ts', dest: 'vitest.config.ts' },
|
|
107
107
|
{ src: 'index.html', dest: 'index.html' },
|
|
108
|
+
{ src: 'package-project.json', dest: 'package.json' },
|
|
108
109
|
{ src: 'STRUCTURE.md', dest: 'STRUCTURE.md' },
|
|
109
110
|
]
|
|
110
111
|
|
|
@@ -239,22 +239,31 @@ CREATE TABLE IF NOT EXISTS public.people (
|
|
|
239
239
|
);
|
|
240
240
|
|
|
241
241
|
-- add deferred FKs now that people exists
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
ALTER TABLE public.people
|
|
247
|
-
|
|
242
|
+
DO $$ BEGIN
|
|
243
|
+
ALTER TABLE public.accounts ADD CONSTRAINT accounts_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.people(id) ON DELETE SET NULL;
|
|
244
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
245
|
+
DO $$ BEGIN
|
|
246
|
+
ALTER TABLE public.accounts ADD CONSTRAINT accounts_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES public.people(id) ON DELETE SET NULL;
|
|
247
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
248
|
+
DO $$ BEGIN
|
|
249
|
+
ALTER TABLE public.people ADD CONSTRAINT people_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.people(id) ON DELETE SET NULL;
|
|
250
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
248
251
|
|
|
249
252
|
-- add FK on roles.account_id and roles.app_id
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
DO $$ BEGIN
|
|
254
|
+
ALTER TABLE public.roles ADD CONSTRAINT roles_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE CASCADE;
|
|
255
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
256
|
+
DO $$ BEGIN
|
|
257
|
+
ALTER TABLE public.roles ADD CONSTRAINT roles_app_id_fkey FOREIGN KEY (app_id) REFERENCES public.apps(id) ON DELETE CASCADE;
|
|
258
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
253
259
|
|
|
254
260
|
-- add FK on apps.account_id and apps.owner_account_id
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
261
|
+
DO $$ BEGIN
|
|
262
|
+
ALTER TABLE public.apps ADD CONSTRAINT apps_account_id_fkey FOREIGN KEY (account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
263
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
264
|
+
DO $$ BEGIN
|
|
265
|
+
ALTER TABLE public.apps ADD CONSTRAINT apps_owner_account_id_fkey FOREIGN KEY (owner_account_id) REFERENCES public.accounts(id) ON DELETE SET NULL;
|
|
266
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
258
267
|
|
|
259
268
|
-- items (depends on accounts, types, apps)
|
|
260
269
|
CREATE TABLE IF NOT EXISTS public.items (
|
|
@@ -4,10 +4,16 @@
|
|
|
4
4
|
-- =============================================================================
|
|
5
5
|
|
|
6
6
|
-- link_types needs unique on (app_id, slug) for seed upserts
|
|
7
|
-
|
|
7
|
+
DO $$ BEGIN
|
|
8
|
+
ALTER TABLE public.link_types ADD CONSTRAINT link_types_app_id_slug_key UNIQUE (app_id, slug);
|
|
9
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
8
10
|
|
|
9
11
|
-- triggers needs unique on (app_id, name) for seed upserts
|
|
10
|
-
|
|
12
|
+
DO $$ BEGIN
|
|
13
|
+
ALTER TABLE public.triggers ADD CONSTRAINT triggers_app_id_name_key UNIQUE (app_id, name);
|
|
14
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
11
15
|
|
|
12
16
|
-- pipelines needs unique on (app_id, name) for seed upserts
|
|
13
|
-
|
|
17
|
+
DO $$ BEGIN
|
|
18
|
+
ALTER TABLE public.pipelines ADD CONSTRAINT pipelines_app_id_name_key UNIQUE (app_id, name);
|
|
19
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/init.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../.framework/cli/commands/init.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA2IxC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAcpD"}
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Spine</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spine-project",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"assemble": "bash node_modules/spine-framework/.framework/scripts/assemble.sh",
|
|
7
|
+
"dev": "netlify dev",
|
|
8
|
+
"build": "npm run assemble && netlify build",
|
|
9
|
+
"preview": "netlify dev"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"spine-framework": "^0.1.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spine-framework",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Spine — enterprise application framework built on Supabase + Netlify + React",
|
|
6
6
|
"type": "module",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"netlify.toml",
|
|
60
60
|
"vitest.config.ts",
|
|
61
61
|
"index.html",
|
|
62
|
+
"package-project.json",
|
|
62
63
|
"STRUCTURE.md",
|
|
63
64
|
"README.md"
|
|
64
65
|
],
|