temp
This commit is contained in:
parent
a97bb5f732
commit
87f4420896
@ -35,7 +35,7 @@
|
|||||||
"@kevisual/ai-graph": "workspace:^",
|
"@kevisual/ai-graph": "workspace:^",
|
||||||
"@kevisual/ai-lang": "workspace:^",
|
"@kevisual/ai-lang": "workspace:^",
|
||||||
"@kevisual/auth": "1.0.5",
|
"@kevisual/auth": "1.0.5",
|
||||||
"@kevisual/local-app-manager": "0.1.6-alpha.5",
|
"@kevisual/local-app-manager": "0.1.6",
|
||||||
"@kevisual/router": "^0.0.6-alpha-5",
|
"@kevisual/router": "^0.0.6-alpha-5",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"archiver": "^7.0.1",
|
"archiver": "^7.0.1",
|
||||||
|
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@ -32,8 +32,8 @@ importers:
|
|||||||
specifier: 1.0.5
|
specifier: 1.0.5
|
||||||
version: 1.0.5
|
version: 1.0.5
|
||||||
'@kevisual/local-app-manager':
|
'@kevisual/local-app-manager':
|
||||||
specifier: 0.1.6-alpha.5
|
specifier: 0.1.6
|
||||||
version: 0.1.6-alpha.5(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)
|
version: 0.1.6(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)
|
||||||
'@kevisual/router':
|
'@kevisual/router':
|
||||||
specifier: ^0.0.6-alpha-5
|
specifier: ^0.0.6-alpha-5
|
||||||
version: 0.0.6-alpha-5
|
version: 0.0.6-alpha-5
|
||||||
@ -1042,8 +1042,8 @@ packages:
|
|||||||
'@kevisual/auth@1.0.5':
|
'@kevisual/auth@1.0.5':
|
||||||
resolution: {integrity: sha512-GwsLj7unKXi7lmMiIIgdig4LwwLiDJnOy15HHZR5gMbyK6s5/uJiMY5RXPB2+onGzTNDqFo/hXjsD2wkerHPVg==}
|
resolution: {integrity: sha512-GwsLj7unKXi7lmMiIIgdig4LwwLiDJnOy15HHZR5gMbyK6s5/uJiMY5RXPB2+onGzTNDqFo/hXjsD2wkerHPVg==}
|
||||||
|
|
||||||
'@kevisual/local-app-manager@0.1.6-alpha.5':
|
'@kevisual/local-app-manager@0.1.6':
|
||||||
resolution: {integrity: sha512-I6+EhARUDYWhyjknfVfUOHn3pIufW/qrChERXAlDTzNFmcGGd+S4CCPJg54yyTsNa9RyDe8bFEsZSPe46FfGSw==}
|
resolution: {integrity: sha512-ECIM72GS42++xWisE0MVfaby3wGby9Qz+AphpAzYJ286sbSatY7z5cHYKIVeKwIzqU9pyUlgLFDU8UeKCYpsmA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@kevisual/router': ^0.0.6-alpha-2
|
'@kevisual/router': ^0.0.6-alpha-2
|
||||||
'@kevisual/types': ^0.0.1
|
'@kevisual/types': ^0.0.1
|
||||||
@ -4991,7 +4991,7 @@ snapshots:
|
|||||||
|
|
||||||
'@kevisual/auth@1.0.5': {}
|
'@kevisual/auth@1.0.5': {}
|
||||||
|
|
||||||
'@kevisual/local-app-manager@0.1.6-alpha.5(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)':
|
'@kevisual/local-app-manager@0.1.6(@kevisual/router@0.0.6-alpha-5)(@kevisual/types@0.0.1)(@kevisual/use-config@1.0.7)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@kevisual/router': 0.0.6-alpha-5
|
'@kevisual/router': 0.0.6-alpha-5
|
||||||
'@kevisual/types': 0.0.1
|
'@kevisual/types': 0.0.1
|
||||||
|
13
src/route.ts
13
src/route.ts
@ -11,6 +11,19 @@ createAuthRoute({
|
|||||||
secret: config.tokenSecret,
|
secret: config.tokenSecret,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app
|
||||||
|
.route({
|
||||||
|
path: 'auth',
|
||||||
|
key: 'admin',
|
||||||
|
id: 'auth-admin',
|
||||||
|
})
|
||||||
|
.define(async (ctx) => {
|
||||||
|
// ctx.body = 'admin';
|
||||||
|
const token = ctx.query?.token;
|
||||||
|
//
|
||||||
|
})
|
||||||
|
.addTo(app);
|
||||||
|
|
||||||
// app.importApp(adminApp);
|
// app.importApp(adminApp);
|
||||||
|
|
||||||
// appendTo(app);
|
// appendTo(app);
|
||||||
|
@ -12,7 +12,7 @@ app
|
|||||||
.define(async (ctx) => {
|
.define(async (ctx) => {
|
||||||
const { uid } = ctx.state.tokenUser;
|
const { uid } = ctx.state.tokenUser;
|
||||||
const uploadList = await MicroAppUploadModel.findAll({
|
const uploadList = await MicroAppUploadModel.findAll({
|
||||||
where: { uid },
|
// where: { uid },
|
||||||
});
|
});
|
||||||
ctx.body = uploadList;
|
ctx.body = uploadList;
|
||||||
})
|
})
|
||||||
|
@ -29,6 +29,7 @@ export const getHTML = (opts: HTMLOptions) => {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script src="https://kevisual.xiongxiao.me/system/lib/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -80,6 +81,7 @@ export const getOneHTML = (opts: OneHTMLOptions) => {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script src="https://kevisual.xiongxiao.me/system/lib/app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user