清理代码

This commit is contained in:
2025-11-27 17:38:42 +08:00
parent 5dc4dcfb58
commit 7cba8ae8b1
10 changed files with 34 additions and 1372 deletions

View File

@@ -1,5 +1,4 @@
import fetch from 'node-fetch';
import { useConfig } from '@kevisual/use-config/env';
import { useConfig } from '@kevisual/use-config';
type GithubConfig = {
clientId: string;

View File

@@ -9,11 +9,7 @@ export const existDenpend = [
'pg', // commonjs
'@kevisual/router', // 共享模块
'ioredis', // commonjs
'socket.io', // commonjs
'minio', // commonjs
'pino', // commonjs
'pino-pretty', // commonjs
'@msgpack/msgpack', // commonjs
];
// export const manager = new Manager({ mainApp: app });
export { manager };

View File

@@ -1,7 +1,7 @@
import { CustomError } from '@kevisual/router';
import { app } from '../../app.ts';
import { PageModel } from './models/index.ts';
import { v4 as uuidv4 } from 'uuid';
import { nanoid, customAlphabet } from 'nanoid'
import { ContainerModel } from '../container/models/index.ts';
import { Op } from 'sequelize';
import { getDeck } from './module/cache-file.ts';
@@ -12,6 +12,11 @@ export const clearBlank = (newStyle: any) => {
}
}
};
const uuidv4 = () => {
const alphabet = '0123456789abcdef';
const nanoidCustom = customAlphabet(alphabet, 36);
return nanoidCustom();
}
app
.route({
path: 'page',

View File

@@ -1,9 +1,6 @@
import { CustomError } from '@kevisual/router';
import { app } from '../../app.ts';
import { PageModel } from './models/index.ts';
import { v4 as uuidv4 } from 'uuid';
import { ContainerModel } from '../container/models/index.ts';
import { Op } from 'sequelize';
import { AppListModel, AppModel } from '../app-manager/index.ts';
import { cachePage, getZip } from './module/cache-file.ts';
import { uniqBy } from 'lodash-es';