create-saasicat-admin 0.27.0 → 1.0.0-rc.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": "1.0.0-rc.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/README.md.tpl
CHANGED
|
@@ -21,4 +21,4 @@ serve `__API_BASE__/manifest`.
|
|
|
21
21
|
- Add your own project pages in `src/router/routes.ts` (with
|
|
22
22
|
`createProjectPageHostRoute()` as a catch-all).
|
|
23
23
|
- Register KPI cards, tenant actions and project pages in your backend
|
|
24
|
-
manifest (see `docs/
|
|
24
|
+
manifest (see `docs/handbook.md` §6.6 in the saasicat repo).
|
|
@@ -38,7 +38,7 @@ const handle = createSuperAdminApp({
|
|
|
38
38
|
// Starting UI language — the shell's header switcher lets the user change
|
|
39
39
|
// it from there and remembers the pick. `overrides` replaces individual
|
|
40
40
|
// strings (handbook §8.7).
|
|
41
|
-
i18n: { locale: '
|
|
41
|
+
i18n: { locale: 'en' },
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
handle.mount('#app');
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { createAdminRoutes } from '@saasicat/ui-vue';
|
|
3
|
+
import { standardAdminChildren } from '@saasicat/ui-vue/pages';
|
|
4
|
+
import SuperAdminLoginPage from '@saasicat/ui-vue/auth/SuperAdminLoginPage.vue';
|
|
5
|
+
import AdminLayout from '@saasicat/ui-vue/layouts/AdminLayout.vue';
|
|
4
6
|
import AdminManifestErrorPage from '@saasicat/ui-vue/pages/AdminManifestErrorPage.vue';
|
|
5
|
-
import DashboardPage from '@saasicat/ui-vue/pages/DashboardPage.vue';
|
|
6
|
-
import TenantsPage from '@saasicat/ui-vue/pages/TenantsPage.vue';
|
|
7
|
-
import PlansPage from '@saasicat/ui-vue/pages/PlansPage.vue';
|
|
8
|
-
import DiscoveryPage from '@saasicat/ui-vue/pages/DiscoveryPage.vue';
|
|
9
7
|
|
|
10
|
-
//
|
|
11
|
-
//
|
|
8
|
+
// `createAdminRoutes` supplies the shell every SuperAdmin app has: a public
|
|
9
|
+
// `/login`, a fail-closed `/admin-error`, and `/admin` with its index redirect
|
|
10
|
+
// and the catch-all that mounts manifest-declared project pages.
|
|
11
|
+
//
|
|
12
|
+
// `standardAdminChildren()` fills in the platform's own screens. Pass your own
|
|
13
|
+
// routes to it and yours win on a matching path:
|
|
14
|
+
//
|
|
15
|
+
// children: standardAdminChildren([
|
|
16
|
+
// { path: 'tenants', component: MyTenantsPage },
|
|
17
|
+
// ])
|
|
18
|
+
//
|
|
19
|
+
// The error page is imported statically on purpose — a screen that reports a
|
|
20
|
+
// failed load must not be behind a load of its own.
|
|
12
21
|
|
|
13
|
-
export const appRoutes: RouteRecordRaw[] =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
path: '/admin',
|
|
22
|
-
component: AdminLayout,
|
|
23
|
-
children: [
|
|
24
|
-
{ path: '', redirect: '/admin/dashboard' },
|
|
25
|
-
{ path: 'dashboard', component: DashboardPage },
|
|
26
|
-
{ path: 'tenants', component: TenantsPage },
|
|
27
|
-
{ path: 'plans', component: PlansPage },
|
|
28
|
-
{ path: 'discovery', component: DiscoveryPage },
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
];
|
|
22
|
+
export const appRoutes: RouteRecordRaw[] = createAdminRoutes({
|
|
23
|
+
loginPage: SuperAdminLoginPage,
|
|
24
|
+
adminLayout: AdminLayout,
|
|
25
|
+
adminErrorPage: AdminManifestErrorPage,
|
|
26
|
+
children: standardAdminChildren(),
|
|
27
|
+
});
|