create-saasicat-admin 1.0.0-rc.0 → 1.0.0-rc.2
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": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
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": {
|
|
@@ -37,8 +37,3 @@ export async function adminLogin(email: string, password: string) {
|
|
|
37
37
|
export function isAuthenticated(): boolean {
|
|
38
38
|
return !!localStorage.getItem(TOKEN_KEY);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
/** Auth-token provider for the platform loaders (`Authorization: Bearer …`). */
|
|
42
|
-
export function getAuthToken(): string | null {
|
|
43
|
-
return localStorage.getItem(TOKEN_KEY);
|
|
44
|
-
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// one place (handbook §8.1).
|
|
4
4
|
|
|
5
5
|
import { createPlatformLoaders, type SuperAdminEndpoints } from '@saasicat/ui-vue';
|
|
6
|
-
import {
|
|
6
|
+
import { platformHttp } from './http';
|
|
7
7
|
|
|
8
8
|
// `projectKey` names the catalogue this admin administers — the same key your
|
|
9
9
|
// backend configuration uses. The shell hands it to every platform resource,
|
|
@@ -17,5 +17,4 @@ export const loaders = createPlatformLoaders({
|
|
|
17
17
|
endpoints: ADMIN_ENDPOINTS,
|
|
18
18
|
http: platformHttp,
|
|
19
19
|
storageKeyPrefix: '__PROJECT_KEY__:',
|
|
20
|
-
getAuthToken,
|
|
21
20
|
});
|