清理代码
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user