关于login重构

This commit is contained in:
2025-03-21 20:41:01 +08:00
parent 0179fe73a3
commit 8053a3db64
28 changed files with 889 additions and 596 deletions

View File

@@ -18,8 +18,9 @@ export interface AppData {
password?: string; // 受保护的访问密码
'expiration-time'?: string; // 受保护的访问过期时间
};
// 运行环境browser, node, 或者其他,是数组
runtime?: string[];
}
export type AppType = 'web-single' | 'web-module'; // 可以做到网页代理
export enum AppStatus {
running = 'running',
stop = 'stop',
@@ -36,9 +37,7 @@ export class AppModel extends Model {
declare description: string;
declare version: string;
declare domain: string;
declare appType: string;
declare key: string;
declare type: string;
declare uid: string;
declare pid: string;
// 是否是history路由代理模式。静态的直接转minio而不需要缓存下来。
@@ -74,18 +73,10 @@ AppModel.init(
type: DataTypes.STRING,
defaultValue: '',
},
appType: {
type: DataTypes.STRING,
defaultValue: '',
},
key: {
type: DataTypes.STRING,
// 和 uid 组合唯一
},
type: {
type: DataTypes.STRING,
defaultValue: '',
},
uid: {
type: DataTypes.UUID,
allowNull: true,