diff --git a/AccountCenter/src/data.d.ts b/AccountCenter/src/data.d.ts index e1af4bb7b93ecfe1fc6dd6790631bed0ff58cd25..0f4070e639963b4c792120695aafbb917122a84e 100644 --- a/AccountCenter/src/data.d.ts +++ b/AccountCenter/src/data.d.ts @@ -29,7 +29,7 @@ export interface INotice { memberLink: string; } -export interface currentuser { +export interface CurrentUser { name: string; avatar: string; userid: string; diff --git a/AccountSettings/src/data.d.ts b/AccountSettings/src/data.d.ts index e1af4bb7b93ecfe1fc6dd6790631bed0ff58cd25..0f4070e639963b4c792120695aafbb917122a84e 100644 --- a/AccountSettings/src/data.d.ts +++ b/AccountSettings/src/data.d.ts @@ -29,7 +29,7 @@ export interface INotice { memberLink: string; } -export interface currentuser { +export interface CurrentUser { name: string; avatar: string; userid: string; diff --git a/DashboardAnalysis/src/data.d.ts b/DashboardAnalysis/src/data.d.ts index df36ae209b834a15a756fce08f022f04cb3ebffc..20df2e20dc6eeeff67414b3f6f50d8bfaeb7d62e 100644 --- a/DashboardAnalysis/src/data.d.ts +++ b/DashboardAnalysis/src/data.d.ts @@ -1,19 +1,19 @@ -export interface ivisitdata { +export interface IVisitData { x: string; y: number; } -export interface ivisitdata2 { +export interface IVisitData2 { x: string; y: number; } -export interface isalesdata { +export interface ISalesData { x: string; y: number; } -export interface isearchdata { +export interface ISearchData { index: number; keyword: string; count: number; @@ -21,39 +21,39 @@ export interface isearchdata { status: number; } -export interface iofflinedata { +export interface IOfflineData { name: string; cvr: number; } -export interface iofflinechartdata { +export interface IOfflineChartData { x: any; y1: number; y2: number; } -export interface isalestypedata { +export interface ISalesTypeData { x: string; y: number; } -export interface isalestypedataonline { +export interface ISalesTypeDataOnline { x: string; y: number; } -export interface isalestypedataoffline { +export interface ISalesTypeDataOffline { x: string; y: number; } -export interface iradardata { +export interface IRadarData { name: string; label: string; value: number; } -export interface ianalysisdata { +export interface IAnalysisData { visitData: IVisitData[]; visitData2: IVisitData2[]; salesData: ISalesData[]; diff --git a/DashboardWorkplace/src/data.d.ts b/DashboardWorkplace/src/data.d.ts index 0de8d14d2125543b0af1cb30a0876e5cafb625b2..8634a39c0db3c17549dbc3b98d849974b185a48b 100644 --- a/DashboardWorkplace/src/data.d.ts +++ b/DashboardWorkplace/src/data.d.ts @@ -1,24 +1,24 @@ -export interface itag { +export interface ITag { key: string; label: string; } -export interface iprovince { +export interface IProvince { label: string; key: string; } -export interface icity { +export interface ICity { label: string; key: string; } -export interface geographic { +export interface IGeographic { province: IProvince; city: ICity; } -export interface inotice { +export interface INotice { id: string; title: string; logo: string; @@ -29,7 +29,7 @@ export interface inotice { memberLink: string; } -export interface icurrentuser { +export interface ICurrentUser { name: string; avatar: string; userid: string; @@ -42,18 +42,17 @@ export interface icurrentuser { notifyCount: number; unreadCount: number; country: string; - geographic: Geographic; + geographic: IGeographic; address: string; phone: string; } - -export interface imember { +export interface IMember { avatar: string; name: string; id: string; } -export interface iactivities { +export interface IActivities { id: string; updatedAt: string; user: { @@ -72,7 +71,7 @@ export interface iactivities { template: string; } -export interface iradardata { +export interface IRadarData { label: string; name: string; value: number; diff --git a/EditorFlow/src/components/EditorItemPanel/FlowItemPanel.js b/EditorFlow/src/components/EditorItemPanel/FlowItemPanel.js index e6912793d9dca32face694ad91687ab8accce0e9..234363d0b078756b3189d32ed143aaddc5a3b87a 100644 --- a/EditorFlow/src/components/EditorItemPanel/FlowItemPanel.js +++ b/EditorFlow/src/components/EditorItemPanel/FlowItemPanel.js @@ -1,5 +1,5 @@ -import React from 'react'; -import { Card } from 'antd'; +import React from 'EditorFlow/node_modules/_@types_react@16.8.18@@types/react'; +import { Card } from 'EditorFlow/node_modules/_antd@3.18.2@antd/lib'; import { ItemPanel, Item } from 'gg-editor'; import styles from './index.less'; diff --git a/EditorFlow/src/components/PageHeaderWrapper/index.tsx b/EditorFlow/src/components/PageHeaderWrapper/index.tsx index bb565a04505fb3fb70482dfdf942d93025fc0cb8..18525c4b66ed20dfa89fd987ad943e18a710bcab 100644 --- a/EditorFlow/src/components/PageHeaderWrapper/index.tsx +++ b/EditorFlow/src/components/PageHeaderWrapper/index.tsx @@ -1,8 +1,7 @@ import React from 'react'; -import { RouteContext } from '@ant-design/pro-layout'; +import { RouteContext, GridContent } from '@ant-design/pro-layout'; import { PageHeader, Tabs, Typography } from 'antd'; import styles from './index.less'; -import { GridContent } from '@ant-design/pro-layout'; import { TabsProps } from 'antd/lib/tabs'; interface IPageHeaderTabConfig { tabList?: Array<{ diff --git a/EditorFlow/src/index.tsx b/EditorFlow/src/index.tsx index d8dec88ad9a027ba8d5c96a941fc423c53bc67c6..a323ffdf48478c9438fc81a3637a1dfed2a5681a 100644 --- a/EditorFlow/src/index.tsx +++ b/EditorFlow/src/index.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { Row, Col } from 'antd'; +import React from 'EditorFlow/node_modules/_@types_react@16.8.18@@types/react'; +import { Row, Col } from 'EditorFlow/node_modules/_antd@3.18.2@antd/lib'; import GGEditor, { Flow } from 'gg-editor'; import EditorMinimap from './components/EditorMinimap'; import { FlowContextMenu } from './components/EditorContextMenu'; diff --git a/ListSearchArticles/src/data.d.ts b/ListSearchArticles/src/data.d.ts index 51542b80cde11f46245eb4a38b11de02423765ce..6a4a88ce1a0c1b9d32dd8a5925828858d27cc0b4 100644 --- a/ListSearchArticles/src/data.d.ts +++ b/ListSearchArticles/src/data.d.ts @@ -1,10 +1,10 @@ -export interface member { +export interface Member { avatar: string; name: string; id: string; } -export interface listitemdatatype { +export interface ListItemDataType { id: string; owner: string; title: string; diff --git a/ListSearchProjects/src/data.d.ts b/ListSearchProjects/src/data.d.ts index 51542b80cde11f46245eb4a38b11de02423765ce..6a4a88ce1a0c1b9d32dd8a5925828858d27cc0b4 100644 --- a/ListSearchProjects/src/data.d.ts +++ b/ListSearchProjects/src/data.d.ts @@ -1,10 +1,10 @@ -export interface member { +export interface Member { avatar: string; name: string; id: string; } -export interface listitemdatatype { +export interface ListItemDataType { id: string; owner: string; title: string; diff --git a/ListTableList/src/data.d.ts b/ListTableList/src/data.d.ts index 6c3d1452fb5048f9124c69b421bf8eb478f48860..a4ae013d1ec696c80a75a8a52a9d78cbb046c942 100644 --- a/ListTableList/src/data.d.ts +++ b/ListTableList/src/data.d.ts @@ -1,4 +1,4 @@ -export interface tablelistitem { +export interface TableListItem { key: number; disabled?: boolean; href: string; @@ -14,18 +14,18 @@ export interface tablelistitem { progress: number; } -export interface tablelistpagination { +export interface TableListPagination { total: number; pageSize: number; current: number; } -export interface tablelistdate { +export interface TableListDate { list: TableListItem[]; pagination: Partial; } -export interface tablelistparams { +export interface TableListParams { sorter: string; status: string; name: string; diff --git a/ProfileAdvanced/src/data.d.ts b/ProfileAdvanced/src/data.d.ts index b640c8347ab5a514559cc67a65a1f0cf15b1ee77..64f7e78edfc35f6782b2e1fc1c82173d8b09960d 100644 --- a/ProfileAdvanced/src/data.d.ts +++ b/ProfileAdvanced/src/data.d.ts @@ -1,4 +1,4 @@ -export interface advancedoperation1 { +export interface AdvancedOperation1 { key: string; type: string; name: string; @@ -7,7 +7,7 @@ export interface advancedoperation1 { memo: string; } -export interface advancedoperation2 { +export interface AdvancedOperation2 { key: string; type: string; name: string; @@ -16,7 +16,7 @@ export interface advancedoperation2 { memo: string; } -export interface advancedoperation3 { +export interface AdvancedOperation3 { key: string; type: string; name: string; @@ -25,7 +25,7 @@ export interface advancedoperation3 { memo: string; } -export interface advancedprofiledata { +export interface AdvancedProfileData { advancedOperation1: AdvancedOperation1[]; advancedOperation2: AdvancedOperation2[]; advancedOperation3: AdvancedOperation3[]; diff --git a/ProfileBasic/src/data.d.ts b/ProfileBasic/src/data.d.ts index 76e67b3ab5d56ecd3874906a7885fd3746144fb6..786f796d43e854b59ad8309996dc65bf03fa5e61 100644 --- a/ProfileBasic/src/data.d.ts +++ b/ProfileBasic/src/data.d.ts @@ -1,4 +1,4 @@ -export interface basicgood { +export interface BasicGood { id: string; name: string; barcode: string; @@ -7,7 +7,7 @@ export interface basicgood { amount: string | number; } -export interface basicprogress { +export interface BasicProgress { key: string; time: string; rate: string; @@ -16,7 +16,7 @@ export interface basicprogress { cost: string; } -export interface basicprofiledatatype { +export interface BasicProfileDataType { basicGoods: BasicGood[]; basicProgress: BasicProgress[]; } diff --git a/package.json b/package.json index c5904c3d2ebfe4accd1041002d2eea7f93be7b71..b0927c90411ffa2101eae839b0261f0244960113 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,12 @@ "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint-staged": "lint-staged", "lint-staged:ts": "tslint", - "lint:fix": "npm run tslint:fix && npm run lint:style", + "lint:fix": "npm run lint:style", "lint:prettier": "check-prettier write", "lint:style": "stylelint --syntax less --fix **/**.less ", "lint:ts": "tslint -p . -c tslint.yml", "prettier": "node ./_scripts/prettier.js", - "tslint": "npm run tslint:fix", - "tslint:fix": "tslint -p . -c tslint.yml --fix " + "tslint": "npm run tslint:fix" }, "husky": { "hooks": {