From a01644b13be6986ad3373c2ae94a9fcf2d9459c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E8=89=B2=E5=9B=9B=E6=9C=88=E5=A4=A9?= <461249104@qq.com> Date: Wed, 29 Mar 2017 17:02:07 +0800 Subject: [PATCH] add loaidng animation --- .idea/workspace.xml | 214 +++++++++++--------- README.md | 6 +- src/components/Index.vue | 261 +++++++++++++++++++++++++ src/components/Musicsong/Musicsong.vue | 16 +- src/main.js | 4 +- static/img/rage_loading.png | Bin 0 -> 2660 bytes test/unit/specs/Hello.spec.js | 2 +- 7 files changed, 403 insertions(+), 100 deletions(-) create mode 100644 src/components/Index.vue create mode 100644 static/img/rage_loading.png diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 28f4a57..1028c91 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -26,11 +26,10 @@ - - + + - @@ -39,8 +38,8 @@ - - + + @@ -49,37 +48,29 @@ - - - - - - - - - - - - + + - - + + - - + + + + - + - + @@ -96,11 +87,11 @@ - + - - + + @@ -113,7 +104,6 @@ - @@ -171,13 +161,14 @@ @@ -193,8 +184,8 @@ - @@ -231,6 +222,48 @@ - + @@ -460,8 +492,10 @@ - - + + + + @@ -500,7 +534,6 @@ - @@ -516,7 +549,7 @@ - + @@ -525,8 +558,10 @@ - - + + + + @@ -565,7 +600,6 @@ - @@ -601,7 +635,6 @@ - @@ -625,7 +658,7 @@ - + @@ -634,8 +667,10 @@ - - + + + + @@ -727,17 +762,6 @@ - - - - - - - - - - - @@ -764,6 +788,7 @@ + @@ -775,33 +800,28 @@ - + - - + + - - - - - - + - - + + - - + + @@ -809,30 +829,26 @@ - + - - + + - - - - - - - - - - - - + + + + + + + + - + @@ -848,5 +864,25 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 1fb5f48..83666d9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#musiccloudWebapp +## Build Setup # install dependencies npm install @@ -7,6 +7,4 @@ npm install npm run dev # build for production with minification -npm run build - -The online demo [http://qiufengh.com:8080/](http://qiufengh.com:8080/) +npm run build \ No newline at end of file diff --git a/src/components/Index.vue b/src/components/Index.vue new file mode 100644 index 0000000..5c84c10 --- /dev/null +++ b/src/components/Index.vue @@ -0,0 +1,261 @@ + + + + + + diff --git a/src/components/Musicsong/Musicsong.vue b/src/components/Musicsong/Musicsong.vue index 61514d7..704febd 100644 --- a/src/components/Musicsong/Musicsong.vue +++ b/src/components/Musicsong/Musicsong.vue @@ -472,12 +472,20 @@ span color: #333 @-webkit-keyframes rotating{ - 0% { -webkit-transform:rotate(0deg); } - 100% { -webkit-transform:rotate(360deg); } + 0% { + -webkit-transform:rotate(0deg) + } + 100% { + -webkit-transform:rotate(360deg) + } } @keyframes rotating { - 0% { transform: rotate(0deg);} - 100% { transform: rotate(360deg);} + 0% { + transform: rotate(0deg) + } + 100% { + transform: rotate(360deg) + } } .cd-rotate -webkit-animation: rotating 10s linear .3s infinite diff --git a/src/main.js b/src/main.js index 121b5ef..4c10ebd 100644 --- a/src/main.js +++ b/src/main.js @@ -7,7 +7,7 @@ import Router from 'vue-router'; import Music from './components/Music'; import Rank from './components/Rank'; import Station from './components/Station'; -import Hello from './components/Hello'; +import Index from './components/Index'; import NProgress from 'nprogress'; import 'nprogress/nprogress.css'; @@ -28,7 +28,7 @@ Vue.use(Router); const routes = [{ path: '/', - component: Hello + component: Index }, { path: '/music', component: Music diff --git a/static/img/rage_loading.png b/static/img/rage_loading.png new file mode 100644 index 0000000000000000000000000000000000000000..e3e69d46eb8a9073b2d8955f90eaf207ec4f6a47 GIT binary patch literal 2660 zcmV-q3Y+zbP)qhk8P%rp*|UB)o8&=>~0l7cWZ$6Cdek{QFyUI@Y2nYpLTmzTj1AxQhw~ z(2WcvehBfP3+M1CAF>H`U=ttmDCf{6^@S*4C{OS^`XB0em!}xVP>!W19cWD+f{;gR zI?$728Ok`G;$7;{|FDc_8A)*}3Q@>~%%cG{{6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?I5s4;50re=SwUkW|u0mN7=t3HcQLb(&tuorSv`R~{9U6HOWkE~% zrGFRXDn$au)vg7(gua0+(Y6Vtua}~I3tNiz2_e1=P#H&IGRi_i2rY#@>59-&>Xm_r zS0P%8|I)}qD9h=Fq$pikj`9f7Tp_ZVf$}pQkrd>g{ERZgj{@OBhy^I$rDVzY@9av( zJ2nwWu?5nNUu>HQxVM!!2uTqRia}cm!`{q5Sxlp_o5J7n{shbhKh!SA};)0itZVk$p^hA=7o_v9_#@Qd+jD}^KC{4PCWu*Cy_y~6Z27&2jkbm&Ol$5B~equF^OqvXrPcMQIxL;BMBtTQWWJ$ z?;WK5Y6BG8^j+3Kgp+(A5fI7Oy_Lh8>pYnbhe@>KTt_N;vcaH z?drozF>R?og+2*xsqa7$7c-9r)bI<{lyVfsj*IOmN~z`-)X>0uE~W^H1wt$-W+cz< zknLT^yFAG_hH?x&XisZG2ttU~w5JEhFqCmT$-C6;kV*b5BaMtPBVGp7^LUhx*n~Q; ziH~@c^XQ7i9wDA&Qo=y0xSJ`w#+Up~9qUn)_0;h@U-BALxSJ{lQbHyYKmHf${NwM; S={%MI0000 { +describe('index.vue', () => { it('should render correct contents', () => { const Constructor = Vue.extend(Hello){{#if_eq lintConfig "airbnb"}};{{/if_eq}} const vm = new Constructor().$mount(){{#if_eq lintConfig "airbnb"}};{{/if_eq}}