From 9996539b5dc605b43d129fbc5f492d5a318e4dbb Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 20 May 2019 09:07:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E5=B8=B8=E9=87=8F?= =?UTF-8?q?=E5=8D=95=E7=8B=AC=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- private/constants.ts | 1 + src/app/link_set/right/right_title/right.title.component.ts | 2 +- src/app/link_set/select/select.service.ts | 5 +---- tsconfig.json | 2 ++ webpack.config.js | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 private/constants.ts diff --git a/private/constants.ts b/private/constants.ts new file mode 100644 index 0000000..000b796 --- /dev/null +++ b/private/constants.ts @@ -0,0 +1 @@ +export const OTHER_CONNECT = 'other'; diff --git a/src/app/link_set/right/right_title/right.title.component.ts b/src/app/link_set/right/right_title/right.title.component.ts index 11f690d..5a1281f 100644 --- a/src/app/link_set/right/right_title/right.title.component.ts +++ b/src/app/link_set/right/right_title/right.title.component.ts @@ -1,7 +1,7 @@ import {WidgetType, Left, Label, Button} from '@ui/index'; import RightTitleModel from '../../link-set.model'; import {LinkType} from '@ui/type'; -import {OTHER_CONNECT} from '../../select/select.service'; +import {OTHER_CONNECT} from '@private/constants'; const className = 'fr.component.right.title'; const Widget: WidgetType = { _store() { diff --git a/src/app/link_set/select/select.service.ts b/src/app/link_set/select/select.service.ts index 0a01813..99c5d9c 100644 --- a/src/app/link_set/select/select.service.ts +++ b/src/app/link_set/select/select.service.ts @@ -1,9 +1,6 @@ import {LinkType} from '@ui/type'; import pluginListConstant from '../../app.constant'; -/** - * 其他连接方式 - */ -export const OTHER_CONNECT = 'other'; +import {OTHER_CONNECT} from '@private/constants'; export const databaseTyle = [ { diff --git a/tsconfig.json b/tsconfig.json index 0aebbc0..22be292 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,8 @@ "@types": ["src/ui/index"], "@shared/*": ["src/shared/*"], "@shared": ["src/shared"], + "@private/*": ["private/*"], + "@private": ["private"], } }, "include": [ diff --git a/webpack.config.js b/webpack.config.js index 1eff132..d62ab3b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,6 +24,7 @@ module.exports = env => { "@ui": path.resolve("src/ui"), "@types": path.resolve("types"), "@shared": path.resolve("src/shared"), + "@private": path.resolve("private"), } }, plugins: [htmlWebpackPlugin, new MiniCssExtractPlugin({filename: `style.css`}), new CopyPlugin([