From b1ee9cc197bb027853f49bfe1cefbd8841ccf7f2 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 11 Jul 2019 01:26:19 +0530 Subject: [PATCH] cleanup, new loader and themeing fixes Signed-off-by: Rohit Yadav --- ui/public/index.html | 167 +++++++++++++++++- ui/public/loading/loading.css | 1 - ui/public/loading/loading.html | 1 - .../loading/option2/html_code_segment.html | 5 - ui/public/loading/option2/loading.css | 1 - ui/public/loading/option2/loading.svg | 1 - ui/vue.config.js | 12 +- 7 files changed, 169 insertions(+), 19 deletions(-) delete mode 100644 ui/public/loading/loading.css delete mode 100644 ui/public/loading/loading.html delete mode 100644 ui/public/loading/option2/html_code_segment.html delete mode 100644 ui/public/loading/option2/loading.css delete mode 100644 ui/public/loading/option2/loading.svg diff --git a/ui/public/index.html b/ui/public/index.html index fdceaeb7052..e4de38a4836 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -6,14 +6,175 @@ Apache CloudStack - +
-
Loading
+
diff --git a/ui/public/loading/loading.css b/ui/public/loading/loading.css deleted file mode 100644 index a899eac7906..00000000000 --- a/ui/public/loading/loading.css +++ /dev/null @@ -1 +0,0 @@ -#preloadingAnimation{position:fixed;left:0;top:0;height:100%;width:100%;background:#ffffff;user-select:none;z-index: 9999;overflow: hidden}.lds-roller{display:inline-block;position:relative;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;}.lds-roller div{animation:lds-roller 1.2s cubic-bezier(0.5,0,0.5,1) infinite;transform-origin:32px 32px;}.lds-roller div:after{content:" ";display:block;position:absolute;width:6px;height:6px;border-radius:50%;background:#13c2c2;margin:-3px 0 0 -3px;}.lds-roller div:nth-child(1){animation-delay:-0.036s;}.lds-roller div:nth-child(1):after{top:50px;left:50px;}.lds-roller div:nth-child(2){animation-delay:-0.072s;}.lds-roller div:nth-child(2):after{top:54px;left:45px;}.lds-roller div:nth-child(3){animation-delay:-0.108s;}.lds-roller div:nth-child(3):after{top:57px;left:39px;}.lds-roller div:nth-child(4){animation-delay:-0.144s;}.lds-roller div:nth-child(4):after{top:58px;left:32px;}.lds-roller div:nth-child(5){animation-delay:-0.18s;}.lds-roller div:nth-child(5):after{top:57px;left:25px;}.lds-roller div:nth-child(6){animation-delay:-0.216s;}.lds-roller div:nth-child(6):after{top:54px;left:19px;}.lds-roller div:nth-child(7){animation-delay:-0.252s;}.lds-roller div:nth-child(7):after{top:50px;left:14px;}.lds-roller div:nth-child(8){animation-delay:-0.288s;}.lds-roller div:nth-child(8):after{top:45px;left:10px;}#preloadingAnimation .load-tips{color: #13c2c2;font-size:2rem;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin-top:80px;text-align:center;width:400px;height:64px;} @keyframes lds-roller{0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);}} \ No newline at end of file diff --git a/ui/public/loading/loading.html b/ui/public/loading/loading.html deleted file mode 100644 index 9b9319650f0..00000000000 --- a/ui/public/loading/loading.html +++ /dev/null @@ -1 +0,0 @@ -
Loading
\ No newline at end of file diff --git a/ui/public/loading/option2/html_code_segment.html b/ui/public/loading/option2/html_code_segment.html deleted file mode 100644 index df81b262b35..00000000000 --- a/ui/public/loading/option2/html_code_segment.html +++ /dev/null @@ -1,5 +0,0 @@ -
-
- -
-
\ No newline at end of file diff --git a/ui/public/loading/option2/loading.css b/ui/public/loading/option2/loading.css deleted file mode 100644 index c35cd73ad58..00000000000 --- a/ui/public/loading/option2/loading.css +++ /dev/null @@ -1 +0,0 @@ -.preloading-animate{background:#ffffff;width:100%;height:100%;position:fixed;left:0;top:0;z-index:299;}.preloading-animate .preloading-wrapper{position:absolute;width:5rem;height:5rem;left:50%;top:50%;transform:translate(-50%,-50%);}.preloading-animate .preloading-wrapper .preloading-balls{font-size:5rem;} \ No newline at end of file diff --git a/ui/public/loading/option2/loading.svg b/ui/public/loading/option2/loading.svg deleted file mode 100644 index 7ff7322d7f9..00000000000 --- a/ui/public/loading/option2/loading.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ui/vue.config.js b/ui/vue.config.js index 1b020480f8f..be948187bda 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -72,13 +72,11 @@ module.exports = { loaderOptions: { less: { modifyVars: { - /* less 变量覆盖,用于自定义 ant design 主题 */ - - /* - 'primary-color': '#F5222D', - 'link-color': '#F5222D', - 'border-radius-base': '4px', - */ + // Refer: + // https://ant.design/docs/spec/colors + // https://vue.ant.design/docs/vue/customize-theme/ + 'primary-color': '#1890ff', + 'link-color': '#1890ff' }, javascriptEnabled: true }