create-saasicat-admin 0.5.0 → 0.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-saasicat-admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Scaffolding CLI for SuperAdmin frontend projects (Vue 3 + Quasar + Vite). Generates a minimal working admin app built on @saasicat/ui-vue. Usage: `pnpm create saasicat-admin <dir>`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/templates/index.html.tpl
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>__BRAND_NAME__ SuperAdmin</title>
|
|
7
|
+
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3' fill='%23f5a623'/%3E%3Cpath d='M5 4h6v1H5zM5 7h6v1H5zM5 10h4v1H5z' fill='%230f172a'/%3E%3C/svg%3E" />
|
|
7
8
|
</head>
|
|
8
9
|
<body>
|
|
9
10
|
<div id="app"></div>
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
// Bootstrap. createSuperAdminApp
|
|
1
|
+
// Bootstrap. createSuperAdminApp wires up Quasar + Pinia + Router + guards.
|
|
2
2
|
|
|
3
3
|
import 'quasar/src/css/index.sass';
|
|
4
4
|
import '@quasar/extras/material-icons/material-icons.css';
|
|
5
|
+
// Platform page styles (sa-* classes + CSS variables). Without it the
|
|
6
|
+
// standard pages render unstyled.
|
|
7
|
+
import '@saasicat/ui-vue/sa-theme.css';
|
|
5
8
|
|
|
6
9
|
import { createSuperAdminApp } from '@saasicat/ui-vue/quasar';
|
|
7
10
|
import App from './App.vue';
|
|
8
11
|
import { appRoutes } from './router/routes';
|
|
9
|
-
import { adminLogin, isAuthenticated } from './services/http';
|
|
12
|
+
import { platformHttp, adminLogin, isAuthenticated } from './services/http';
|
|
10
13
|
import { ADMIN_ENDPOINTS } from './services/platform-loaders';
|
|
11
14
|
import { useManifestStore } from './stores/manifest';
|
|
12
15
|
|
|
@@ -27,8 +30,14 @@ const handle = createSuperAdminApp({
|
|
|
27
30
|
getManifest: () => useManifestStore().manifest,
|
|
28
31
|
errorRoute: '/admin-error',
|
|
29
32
|
},
|
|
33
|
+
// Platform pages issue their own requests (KPI cards, tenant tables) —
|
|
34
|
+
// without this they would fall back to a bare fetch() and lose the app's auth.
|
|
35
|
+
http: platformHttp,
|
|
30
36
|
actions: {},
|
|
31
37
|
extensions: {},
|
|
38
|
+
// UI language: 'de' (default) or 'en'. Pass a Ref to switch at runtime,
|
|
39
|
+
// `overrides` to replace individual strings (handbook §8.6).
|
|
40
|
+
i18n: { locale: 'de' },
|
|
32
41
|
});
|
|
33
42
|
|
|
34
43
|
handle.mount('#app');
|