From 8ef59d44ca0f5899137066cfe1006e346ef30d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=95=8A=E5=B9=B3?= <951984189@qq.com> Date: Wed, 20 Jan 2021 14:59:43 +0800 Subject: [PATCH] 111 --- src/app/view/welcome.html | 18 ------------------ src/config/config.default.ts | 7 +------ typings/app/index.d.ts | 7 ------- typings/config/index.d.ts | 32 -------------------------------- typings/config/plugin.d.ts | 31 ------------------------------- 5 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 src/app/view/welcome.html delete mode 100644 typings/app/index.d.ts delete mode 100644 typings/config/index.d.ts delete mode 100644 typings/config/plugin.d.ts diff --git a/src/app/view/welcome.html b/src/app/view/welcome.html deleted file mode 100644 index 3aeb223..0000000 --- a/src/app/view/welcome.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - COOL-AMIND 通用后台管理系统 - - - - - -
{{text}}
- - - - diff --git a/src/config/config.default.ts b/src/config/config.default.ts index 297f931..6670ac7 100644 --- a/src/config/config.default.ts +++ b/src/config/config.default.ts @@ -1,5 +1,4 @@ import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; -import * as path from 'path'; export type DefaultConfig = PowerPartial; @@ -7,14 +6,10 @@ export default (appInfo: EggAppInfo) => { const config = {} as DefaultConfig; // use for cookie sign key, should change to your own and keep security - config.keys = appInfo.name + '_1610416114197_5726'; + config.keys = appInfo.name + '_1611125891022_7317'; // add your config here config.middleware = []; - config.view = { - root: path.join(appInfo.baseDir, 'view'), - } - return config; }; diff --git a/typings/app/index.d.ts b/typings/app/index.d.ts deleted file mode 100644 index 69543bc..0000000 --- a/typings/app/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file is created by egg-ts-helper@1.25.8 -// Do not modify this file!!!!!!!!! - -import 'egg'; -import '@midwayjs/web'; -export * from 'egg'; -export as namespace Egg; diff --git a/typings/config/index.d.ts b/typings/config/index.d.ts deleted file mode 100644 index ca60818..0000000 --- a/typings/config/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// This file is created by egg-ts-helper@1.25.8 -// Do not modify this file!!!!!!!!! - -import '@midwayjs/web'; -import 'egg'; -import 'egg-onerror'; -import 'egg-session'; -import 'egg-i18n'; -import 'egg-multipart'; -import 'egg-security'; -import 'egg-schedule'; -import 'egg-jsonp'; -import 'egg-view'; -import 'midway-schedule'; -import { EggPluginItem } from 'egg'; -declare module 'egg' { - interface EggPlugin { - onerror?: EggPluginItem; - session?: EggPluginItem; - i18n?: EggPluginItem; - watcher?: EggPluginItem; - multipart?: EggPluginItem; - security?: EggPluginItem; - development?: EggPluginItem; - logrotator?: EggPluginItem; - schedule?: EggPluginItem; - static?: EggPluginItem; - jsonp?: EggPluginItem; - view?: EggPluginItem; - schedulePlus?: EggPluginItem; - } -} \ No newline at end of file diff --git a/typings/config/plugin.d.ts b/typings/config/plugin.d.ts deleted file mode 100644 index e857358..0000000 --- a/typings/config/plugin.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file is created by egg-ts-helper@1.25.8 -// Do not modify this file!!!!!!!!! - -import 'egg'; -import 'egg-onerror'; -import 'egg-session'; -import 'egg-i18n'; -import 'egg-multipart'; -import 'egg-security'; -import 'egg-schedule'; -import 'egg-jsonp'; -import 'egg-view'; -import 'midway-schedule'; -import { EggPluginItem } from 'egg'; -declare module 'egg' { - interface EggPlugin { - onerror?: EggPluginItem; - session?: EggPluginItem; - i18n?: EggPluginItem; - watcher?: EggPluginItem; - multipart?: EggPluginItem; - security?: EggPluginItem; - development?: EggPluginItem; - logrotator?: EggPluginItem; - schedule?: EggPluginItem; - static?: EggPluginItem; - jsonp?: EggPluginItem; - view?: EggPluginItem; - schedulePlus?: EggPluginItem; - } -} \ No newline at end of file