From 5ba67a512ebeda3c8908a990c59eef9ecf0570be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E9=81=93?= Date: Fri, 7 Dec 2018 18:55:42 +0800 Subject: [PATCH] add block convertor config --- scripts/account-center.json | 10 ++++++++++ scripts/account-setting-base.json | 13 +++++++++++++ scripts/account-setting-binding.json | 12 ++++++++++++ scripts/account-setting-notification.json | 12 ++++++++++++ scripts/account-setting-security.json | 12 ++++++++++++ scripts/account-setting.json | 9 +++++++++ scripts/advanced-form.json | 12 ++++++++++++ scripts/advanced-profile.json | 9 +++++++++ scripts/analysis.json | 9 +++++++++ scripts/basic-form.json | 12 ++++++++++++ scripts/basic-list.json | 10 ++++++++++ scripts/basic-profile.json | 9 +++++++++ scripts/card-list.json | 10 ++++++++++ scripts/exception-403.json | 11 +++++++++++ scripts/exception-404.json | 11 +++++++++++ scripts/exception-500.json | 11 +++++++++++ scripts/monitor.json | 9 +++++++++ scripts/result-error.json | 10 ++++++++++ scripts/result-success.json | 7 +++++++ scripts/search-list-applications.json | 10 ++++++++++ scripts/search-list-articles.json | 10 ++++++++++ scripts/search-list-projects.json | 10 ++++++++++ scripts/search-list.json | 7 +++++++ scripts/step-form-confirm.json | 12 ++++++++++++ scripts/step-form-info.json | 12 ++++++++++++ scripts/step-form-result.json | 12 ++++++++++++ scripts/step-form.json | 11 +++++++++++ scripts/table-list.json | 10 ++++++++++ scripts/user-login.json | 12 ++++++++++++ scripts/user-register-result.json | 12 ++++++++++++ scripts/user-register.json | 12 ++++++++++++ scripts/workplace.json | 12 ++++++++++++ 32 files changed, 340 insertions(+) create mode 100644 scripts/account-center.json create mode 100644 scripts/account-setting-base.json create mode 100644 scripts/account-setting-binding.json create mode 100644 scripts/account-setting-notification.json create mode 100644 scripts/account-setting-security.json create mode 100644 scripts/account-setting.json create mode 100644 scripts/advanced-form.json create mode 100644 scripts/advanced-profile.json create mode 100644 scripts/analysis.json create mode 100644 scripts/basic-form.json create mode 100644 scripts/basic-list.json create mode 100644 scripts/basic-profile.json create mode 100644 scripts/card-list.json create mode 100644 scripts/exception-403.json create mode 100644 scripts/exception-404.json create mode 100644 scripts/exception-500.json create mode 100644 scripts/monitor.json create mode 100644 scripts/result-error.json create mode 100644 scripts/result-success.json create mode 100644 scripts/search-list-applications.json create mode 100644 scripts/search-list-articles.json create mode 100644 scripts/search-list-projects.json create mode 100644 scripts/search-list.json create mode 100644 scripts/step-form-confirm.json create mode 100644 scripts/step-form-info.json create mode 100644 scripts/step-form-result.json create mode 100644 scripts/step-form.json create mode 100644 scripts/table-list.json create mode 100644 scripts/user-login.json create mode 100644 scripts/user-register-result.json create mode 100644 scripts/user-register.json create mode 100644 scripts/workplace.json diff --git a/scripts/account-center.json b/scripts/account-center.json new file mode 100644 index 00000000..2323a6cb --- /dev/null +++ b/scripts/account-center.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/Account/Center/Center.js", + "target": "../umi-blocks/ant-design-pro/AccountCenter", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["src/models/project.js", "src/models/project.js"], + ["src/models/user.js", "src/models/user.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/account-setting-base.json b/scripts/account-setting-base.json new file mode 100644 index 00000000..b99a2443 --- /dev/null +++ b/scripts/account-setting-base.json @@ -0,0 +1,13 @@ +{ + "source": "src/pages/Account/Settings/BaseView.js", + "target": "../umi-blocks/ant-design-pro/AccountSettingsBase", + "extFiles": [ + ["src/pages/Account/Settings/models/geographic.js", "src/models/geographic.js"], + ["src/models/user.js", "src/models/user.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/geographic.js", "src/_mock.js"], + ["src/locales/zh-CN/settings.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/settings.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/settings.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/account-setting-binding.json b/scripts/account-setting-binding.json new file mode 100644 index 00000000..926daea2 --- /dev/null +++ b/scripts/account-setting-binding.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Account/Settings/BindingView.js", + "target": "../umi-blocks/ant-design-pro/AccountSettingsBinding", + "extFiles": [ + ["src/models/user.js", "src/models/user.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/settings.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/settings.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/settings.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/account-setting-notification.json b/scripts/account-setting-notification.json new file mode 100644 index 00000000..3fa27bd6 --- /dev/null +++ b/scripts/account-setting-notification.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Account/Settings/NotificationView.js", + "target": "../umi-blocks/ant-design-pro/AccountSettingsNotification", + "extFiles": [ + ["src/models/user.js", "src/models/user.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/settings.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/settings.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/settings.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/account-setting-security.json b/scripts/account-setting-security.json new file mode 100644 index 00000000..6e81bfa9 --- /dev/null +++ b/scripts/account-setting-security.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Account/Settings/SecurityView.js", + "target": "../umi-blocks/ant-design-pro/AccountSettingsSecurity", + "extFiles": [ + ["src/models/user.js", "src/models/user.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/settings.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/settings.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/settings.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/account-setting.json b/scripts/account-setting.json new file mode 100644 index 00000000..2b1a7e4a --- /dev/null +++ b/scripts/account-setting.json @@ -0,0 +1,9 @@ +{ + "source": "src/pages/Account/Settings/Info.js", + "target": "../umi-blocks/ant-design-pro/AccountSettings", + "extFiles": [ + ["src/models/user.js", "src/models/user.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/user.js", "src/_mock.js"] + ] +} diff --git a/scripts/advanced-form.json b/scripts/advanced-form.json new file mode 100644 index 00000000..e6589590 --- /dev/null +++ b/scripts/advanced-form.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Forms/AdvancedForm.js", + "target": "../umi-blocks/ant-design-pro/AdvancedForm", + "extFiles": [ + ["src/pages/Forms/models/form.js", "src/models/form.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/advanced-profile.json b/scripts/advanced-profile.json new file mode 100644 index 00000000..9df3b708 --- /dev/null +++ b/scripts/advanced-profile.json @@ -0,0 +1,9 @@ +{ + "source": "src/pages/Profile/AdvancedProfile.js", + "target": "../umi-blocks/ant-design-pro/AdvancedProfile", + "extFiles": [ + ["src/pages/Profile/models/profile.js", "src/models/profile.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/profile.js", "src/_mock.js"] + ] +} diff --git a/scripts/analysis.json b/scripts/analysis.json new file mode 100644 index 00000000..5460450f --- /dev/null +++ b/scripts/analysis.json @@ -0,0 +1,9 @@ +{ + "source": "src/pages/Dashboard/Analysis.js", + "target": "../umi-blocks/ant-design-pro/Analysis", + "extFiles": [ + ["src/pages/Dashboard/models/chart.js", "src/models/chart.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/chart.js", "src/_mock.js"] + ] +} diff --git a/scripts/basic-form.json b/scripts/basic-form.json new file mode 100644 index 00000000..d394efba --- /dev/null +++ b/scripts/basic-form.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Forms/BasicForm.js", + "target": "../umi-blocks/ant-design-pro/BasicForm", + "extFiles": [ + ["src/pages/Dashboard/models/form.js", "src/models/form.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/basic-list.json b/scripts/basic-list.json new file mode 100644 index 00000000..56870a2d --- /dev/null +++ b/scripts/basic-list.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/BasicList.js", + "target": "../umi-blocks/ant-design-pro/BasicList", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/basic-profile.json b/scripts/basic-profile.json new file mode 100644 index 00000000..2f69c1a0 --- /dev/null +++ b/scripts/basic-profile.json @@ -0,0 +1,9 @@ +{ + "source": "src/pages/Profile/BasicProfile.js", + "target": "../umi-blocks/ant-design-pro/BasicProfile", + "extFiles": [ + ["src/pages/Profile/models/profile.js", "src/models/profile.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/profile.js", "src/_mock.js"] + ] +} diff --git a/scripts/card-list.json b/scripts/card-list.json new file mode 100644 index 00000000..4d0b5fdc --- /dev/null +++ b/scripts/card-list.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/CardList.js", + "target": "../umi-blocks/ant-design-pro/CardList", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/exception-403.json b/scripts/exception-403.json new file mode 100644 index 00000000..37024733 --- /dev/null +++ b/scripts/exception-403.json @@ -0,0 +1,11 @@ +{ + "source": "src/pages/Exception/403.js", + "target": "../umi-blocks/ant-design-pro/Exception403", + "extFiles": [ + ["src/pages/Exception/models/error.js", "src/models/error.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["src/locales/zh-CN/exception.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/exception.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/exception.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/exception-404.json b/scripts/exception-404.json new file mode 100644 index 00000000..86e39a39 --- /dev/null +++ b/scripts/exception-404.json @@ -0,0 +1,11 @@ +{ + "source": "src/pages/Exception/404.js", + "target": "../umi-blocks/ant-design-pro/Exception404", + "extFiles": [ + ["src/pages/Exception/models/error.js", "src/models/error.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["src/locales/zh-CN/exception.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/exception.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/exception.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/exception-500.json b/scripts/exception-500.json new file mode 100644 index 00000000..741d2ff5 --- /dev/null +++ b/scripts/exception-500.json @@ -0,0 +1,11 @@ +{ + "source": "src/pages/Exception/500.js", + "target": "../umi-blocks/ant-design-pro/Exception500", + "extFiles": [ + ["src/pages/Exception/models/error.js", "src/models/error.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["src/locales/zh-CN/exception.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/exception.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/exception.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/monitor.json b/scripts/monitor.json new file mode 100644 index 00000000..1685e120 --- /dev/null +++ b/scripts/monitor.json @@ -0,0 +1,9 @@ +{ + "source": "src/pages/Dashboard/Monitor.js", + "target": "../umi-blocks/ant-design-pro/Monitor", + "extFiles": [ + ["src/pages/Dashboard/models/monitor.js", "src/models/monitor.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/chart.js", "src/_mock.js"] + ] +} diff --git a/scripts/result-error.json b/scripts/result-error.json new file mode 100644 index 00000000..2bb52f9d --- /dev/null +++ b/scripts/result-error.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/Result/Error.js", + "target": "../umi-blocks/ant-design-pro/ResultError", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["src/locales/zh-CN/result.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/result.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/result.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/result-success.json b/scripts/result-success.json new file mode 100644 index 00000000..071808fb --- /dev/null +++ b/scripts/result-success.json @@ -0,0 +1,7 @@ +{ + "source": "src/pages/Result/Success.js", + "target": "../umi-blocks/ant-design-pro/ResultSuccess", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"] + ] +} diff --git a/scripts/search-list-applications.json b/scripts/search-list-applications.json new file mode 100644 index 00000000..d5fbd7fa --- /dev/null +++ b/scripts/search-list-applications.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/Applications.js", + "target": "../umi-blocks/ant-design-pro/SearchListApplications", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/search-list-articles.json b/scripts/search-list-articles.json new file mode 100644 index 00000000..c57ccf3b --- /dev/null +++ b/scripts/search-list-articles.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/Articles.js", + "target": "../umi-blocks/ant-design-pro/SearchListArticles", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/search-list-projects.json b/scripts/search-list-projects.json new file mode 100644 index 00000000..6096940b --- /dev/null +++ b/scripts/search-list-projects.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/Projects.js", + "target": "../umi-blocks/ant-design-pro/SearchListProjects", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/search-list.json b/scripts/search-list.json new file mode 100644 index 00000000..dd1ff1a9 --- /dev/null +++ b/scripts/search-list.json @@ -0,0 +1,7 @@ +{ + "source": "src/pages/List/List.js", + "target": "../umi-blocks/ant-design-pro/SearchList", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"] + ] +} diff --git a/scripts/step-form-confirm.json b/scripts/step-form-confirm.json new file mode 100644 index 00000000..53ed5af1 --- /dev/null +++ b/scripts/step-form-confirm.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Forms/StepForm/Step2.js", + "target": "../umi-blocks/ant-design-pro/StepFormConfirm", + "extFiles": [ + ["src/pages/Forms/models/form.js", "src/models/form.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/step-form-info.json b/scripts/step-form-info.json new file mode 100644 index 00000000..1d17be9a --- /dev/null +++ b/scripts/step-form-info.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Forms/StepForm/Step1.js", + "target": "../umi-blocks/ant-design-pro/StepFormInfo", + "extFiles": [ + ["src/pages/Forms/models/form.js", "src/models/form.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/step-form-result.json b/scripts/step-form-result.json new file mode 100644 index 00000000..c04a45c1 --- /dev/null +++ b/scripts/step-form-result.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Forms/StepForm/Step3.js", + "target": "../umi-blocks/ant-design-pro/StepFormResult", + "extFiles": [ + ["src/pages/Forms/models/form.js", "src/models/form.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/step-form.json b/scripts/step-form.json new file mode 100644 index 00000000..7a792677 --- /dev/null +++ b/scripts/step-form.json @@ -0,0 +1,11 @@ +{ + "source": "src/pages/Forms/StepForm/index.js", + "target": "../umi-blocks/ant-design-pro/StepForm", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"], + ["src/locales/zh-CN/form.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/form.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/form.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/table-list.json b/scripts/table-list.json new file mode 100644 index 00000000..9cbf3fd9 --- /dev/null +++ b/scripts/table-list.json @@ -0,0 +1,10 @@ +{ + "source": "src/pages/List/TableList.js", + "target": "../umi-blocks/ant-design-pro/TableList", + "extFiles": [ + ["src/models/list.js", "src/models/list.js"], + ["src/pages/List/models/rule.js", "src/models/rule.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} diff --git a/scripts/user-login.json b/scripts/user-login.json new file mode 100644 index 00000000..d7c74f29 --- /dev/null +++ b/scripts/user-login.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/User/Login.js", + "target": "../umi-blocks/ant-design-pro/UserLogin", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["src/models/login.js", "src/models/login.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/login.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/login.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/login.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/user-register-result.json b/scripts/user-register-result.json new file mode 100644 index 00000000..b8ace7f2 --- /dev/null +++ b/scripts/user-register-result.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/User/RegisterResult.js", + "target": "../umi-blocks/ant-design-pro/UserRegisterResult", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["src/models/login.js", "src/models/login.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/login.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/login.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/login.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/user-register.json b/scripts/user-register.json new file mode 100644 index 00000000..2ab26d36 --- /dev/null +++ b/scripts/user-register.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/User/Register.js", + "target": "../umi-blocks/ant-design-pro/UserRegister", + "extFiles": [ + ["src/models/setting.js", "src/models/setting.js"], + ["src/models/login.js", "src/models/login.js"], + ["mock/user.js", "src/_mock.js"], + ["src/locales/zh-CN/login.js", "src/locales/zh-CN.js"], + ["src/locales/zh-TW/login.js", "src/locales/zh-TW.js"], + ["src/locales/en-US/login.js", "src/locales/en-US.js"] + ] +} diff --git a/scripts/workplace.json b/scripts/workplace.json new file mode 100644 index 00000000..5e133338 --- /dev/null +++ b/scripts/workplace.json @@ -0,0 +1,12 @@ +{ + "source": "src/pages/Dashboard/Workplace.js", + "target": "../umi-blocks/ant-design-pro/Workplace", + "extFiles": [ + ["src/pages/Dashboard/models/activities.js", "src/models/activities.js"], + ["src/pages/Dashboard/models/chart.js", "src/models/chart.js"], + ["src/models/user.js", "src/models/user.js"], + ["src/models/project.js", "src/models/project.js"], + ["src/models/setting.js", "src/models/setting.js"], + ["mock/api.js", "src/_mock.js"] + ] +} -- GitLab