From f8483833f124c357e7a0bdea294d9ce302c1e2a5 Mon Sep 17 00:00:00 2001 From: chenghx Date: Tue, 11 Sep 2018 11:45:32 +0800 Subject: [PATCH] refactor: update to new project structure --- .../{dashboard => card}/ChartCard.vue | 0 src/components/check/Index.vue | 65 ------------------- .../ColorCheckbox.vue} | 4 +- .../ImgCheckbox.vue} | 4 +- src/components/layout/CommonPageLayout.vue | 36 ---------- src/components/setting/Setting.vue | 52 +++++++-------- .../task/{TaskCard.vue => TaskGroup.vue} | 6 +- .../layout => layouts}/GlobalFooter.vue | 0 .../layout => layouts}/GlobalHeader.vue | 2 +- .../layout => layouts}/GlobalLayout.vue | 10 ++- .../layout => layouts}/HeaderNotice.vue | 0 .../layout => layouts}/HeaderSearch.vue | 0 .../layout => layouts}/HeaderlAvatar.vue | 0 .../layout => layouts}/MenuView.vue | 0 .../layout => layouts}/PageLayout.vue | 2 +- .../layout => layouts}/PageView.vue | 2 +- .../layout => layouts}/RouteView.vue | 0 src/pages/components/Palette.vue | 65 +++++++++++++++++++ .../components/TaskCard.vue} | 22 +++---- .../dashboard/Analysis.vue} | 20 +++--- .../dashboard/WorkPlace.vue | 8 +-- .../detail/AdvancedDetail.vue | 6 +- .../detail/BasicDetail.vue | 4 +- src/{components => pages}/exception/403.vue | 2 +- src/{components => pages}/exception/404.vue | 2 +- src/{components => pages}/exception/500.vue | 2 +- src/{components => pages}/form/BasicForm.vue | 0 .../form/advancedForm/AdvancedForm.vue | 2 +- .../form/advancedForm/RepositoryForm.vue | 0 .../form/advancedForm/TableForm.vue | 0 .../form/advancedForm/TaskForm.vue | 0 .../form/stepForm/Step1.vue | 0 .../form/stepForm/Step2.vue | 0 .../form/stepForm/Step3.vue | 2 +- .../form/stepForm/StepForm.vue | 0 src/{components => pages}/list/CardList.vue | 0 src/{components => pages}/list/QueryList.vue | 2 +- .../list/StandardList.vue | 2 +- .../list/search/ApplicationList.vue | 0 .../list/search/ArticleList.vue | 0 .../list/search/ProjectList.vue | 2 +- .../list/search/SearchForm.vue | 4 +- .../list/search/SearchLayout.vue | 0 src/{components => pages}/login/Login.vue | 2 +- src/{components => pages}/result/Error.vue | 5 +- src/{components => pages}/result/Success.vue | 8 +-- src/router/index.js | 58 ++++++++--------- src/router/lazy.js | 50 +++++++------- 48 files changed, 205 insertions(+), 246 deletions(-) rename src/components/{dashboard => card}/ChartCard.vue (100%) delete mode 100644 src/components/check/Index.vue rename src/components/{check/ColorCheckBox.vue => checkbox/ColorCheckbox.vue} (98%) rename src/components/{check/ImgCheckBox.vue => checkbox/ImgCheckbox.vue} (98%) delete mode 100644 src/components/layout/CommonPageLayout.vue rename src/components/task/{TaskCard.vue => TaskGroup.vue} (96%) rename src/{components/layout => layouts}/GlobalFooter.vue (100%) rename src/{components/layout => layouts}/GlobalHeader.vue (98%) rename src/{components/layout => layouts}/GlobalLayout.vue (93%) rename src/{components/layout => layouts}/HeaderNotice.vue (100%) rename src/{components/layout => layouts}/HeaderSearch.vue (100%) rename src/{components/layout => layouts}/HeaderlAvatar.vue (100%) rename src/{components/layout => layouts}/MenuView.vue (100%) rename src/{components/layout => layouts}/PageLayout.vue (96%) rename src/{components/layout => layouts}/PageView.vue (94%) rename src/{components/layout => layouts}/RouteView.vue (100%) create mode 100644 src/pages/components/Palette.vue rename src/{components/task/Index.vue => pages/components/TaskCard.vue} (65%) rename src/{components/dashboard/Dashboard.vue => pages/dashboard/Analysis.vue} (90%) rename src/{components => pages}/dashboard/WorkPlace.vue (96%) rename src/{components => pages}/detail/AdvancedDetail.vue (97%) rename src/{components => pages}/detail/BasicDetail.vue (97%) rename src/{components => pages}/exception/403.vue (68%) rename src/{components => pages}/exception/404.vue (68%) rename src/{components => pages}/exception/500.vue (68%) rename src/{components => pages}/form/BasicForm.vue (100%) rename src/{components => pages}/form/advancedForm/AdvancedForm.vue (95%) rename src/{components => pages}/form/advancedForm/RepositoryForm.vue (100%) rename src/{components => pages}/form/advancedForm/TableForm.vue (100%) rename src/{components => pages}/form/advancedForm/TaskForm.vue (100%) rename src/{components => pages}/form/stepForm/Step1.vue (100%) rename src/{components => pages}/form/stepForm/Step2.vue (100%) rename src/{components => pages}/form/stepForm/Step3.vue (93%) rename src/{components => pages}/form/stepForm/StepForm.vue (100%) rename src/{components => pages}/list/CardList.vue (100%) rename src/{components => pages}/list/QueryList.vue (99%) rename src/{components => pages}/list/StandardList.vue (98%) rename src/{components => pages}/list/search/ApplicationList.vue (100%) rename src/{components => pages}/list/search/ArticleList.vue (100%) rename src/{components => pages}/list/search/ProjectList.vue (97%) rename src/{components => pages}/list/search/SearchForm.vue (96%) rename src/{components => pages}/list/search/SearchLayout.vue (100%) rename src/{components => pages}/login/Login.vue (99%) rename src/{components => pages}/result/Error.vue (91%) rename src/{components => pages}/result/Success.vue (94%) diff --git a/src/components/dashboard/ChartCard.vue b/src/components/card/ChartCard.vue similarity index 100% rename from src/components/dashboard/ChartCard.vue rename to src/components/card/ChartCard.vue diff --git a/src/components/check/Index.vue b/src/components/check/Index.vue deleted file mode 100644 index 286bf17..0000000 --- a/src/components/check/Index.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/src/components/check/ColorCheckBox.vue b/src/components/checkbox/ColorCheckbox.vue similarity index 98% rename from src/components/check/ColorCheckBox.vue rename to src/components/checkbox/ColorCheckbox.vue index 4983552..4763fa1 100644 --- a/src/components/check/ColorCheckBox.vue +++ b/src/components/checkbox/ColorCheckbox.vue @@ -8,7 +8,7 @@ import AIcon from 'ant-design-vue/es/icon/icon' const Group = { - name: 'ColorCheckBoxGroup', + name: 'ColorCheckboxGroup', props: { defaultValues: { type: Array, @@ -80,7 +80,7 @@ const Group = { } export default { - name: 'ColorCheckBox', + name: 'ColorCheckbox', Group: Group, components: {AIcon}, props: { diff --git a/src/components/check/ImgCheckBox.vue b/src/components/checkbox/ImgCheckbox.vue similarity index 98% rename from src/components/check/ImgCheckBox.vue rename to src/components/checkbox/ImgCheckbox.vue index 8800a23..034fcb5 100644 --- a/src/components/check/ImgCheckBox.vue +++ b/src/components/checkbox/ImgCheckbox.vue @@ -11,7 +11,7 @@ import AIcon from 'ant-design-vue/es/icon/icon' const Group = { - name: 'ImgCheckBoxGroup', + name: 'ImgCheckboxGroup', props: { multiple: { type: Boolean, @@ -73,7 +73,7 @@ const Group = { } export default { - name: 'ImgCheckBox', + name: 'ImgCheckbox', Group, props: { checked: { diff --git a/src/components/layout/CommonPageLayout.vue b/src/components/layout/CommonPageLayout.vue deleted file mode 100644 index 4ea20de..0000000 --- a/src/components/layout/CommonPageLayout.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - - - diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue index 1ef8ec7..7875ad3 100644 --- a/src/components/setting/Setting.vue +++ b/src/components/setting/Setting.vue @@ -1,29 +1,29 @@