From ce66a8cbeea5ac830ac99e14c78757f664f48272 Mon Sep 17 00:00:00 2001 From: Dmitry Molotkov Date: Sat, 23 Mar 2019 09:51:32 +0300 Subject: [PATCH] examples(with-buefy): update example (#5348) --- examples/with-buefy/assets/logo.png | Bin 4252 -> 0 bytes examples/with-buefy/components/card.vue | 42 +++++++++++++++ examples/with-buefy/nuxt.config.js | 5 +- examples/with-buefy/package.json | 7 +-- examples/with-buefy/pages/about.vue | 3 -- examples/with-buefy/pages/index.vue | 65 +++++++++++++++--------- examples/with-buefy/plugins/buefy.js | 4 -- 7 files changed, 87 insertions(+), 39 deletions(-) delete mode 100644 examples/with-buefy/assets/logo.png create mode 100644 examples/with-buefy/components/card.vue delete mode 100644 examples/with-buefy/pages/about.vue delete mode 100644 examples/with-buefy/plugins/buefy.js diff --git a/examples/with-buefy/assets/logo.png b/examples/with-buefy/assets/logo.png deleted file mode 100644 index 7f238b598c85d618ae0c601fec86455a2a1ed4e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4252 zcmV;N5M%F&P)g` zMQS+^rII|YPa_znyK06zSH+#;sbvrYPbJ-$aIST{pJ152GFi-#g|FGax5DoN-#l6N znP8Z{O75z3{VsQE_oQAM(2rSB>QQRU zvXfygeLVz&U3Iqn8=TBG#8!!K*Cbf&uJ(bxb!UbDitto?d`>X@x=IFHmdF0)s+QTt zz*EWA#-FYm>9*QezkPnmi1MbyzC2lAUPBGRV5^K~6WASrA#4Kx-Mos5-dd~{>#wS~ zrQTH$#1{KL(I(eyzbDhOLkO36Hu;a2~U~Gh7 zn4s?0CQ+*2Co>X>_szN1Nor_(Z1>d@PC@}40}z-KH{!k$41cfY(cbk5XTjh_#Q=Qm z&g9Fz+KE53?<6R}|2Q206qpk$PKMWacMuH!Q}U7zwoR(-S$(Z4#`=HN*weM@R0Qor z`g=n}zJ6e_SO|vSE4QyJ((JlQt~7x9X;LQ>OUOTV_q;~0Cm5`sTJt$-se=G$ zizeQ8c~V#9?`RDM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5vxf+%bjAaJ~n0NST_*`p`(1=r4!At^%mICtu)w|@YR3xw*{!x=x!4UP?k6+O~9AZAjQV1QyH z(X(5;QwSb{hBhY*P|oopkT>S2S!K-j0@-$MElF4wMGWQmL+Qk~#rdKa2MW+0kuLmq=?<2f0b&t)Usn&c>4+F1(TxyK zP%YEQ=vY}*ZE98lh%cgFMCK$@5T*1LB&P6Ysa^#+fRg%+fi1VF> +
+
+
+

+ {{ title }} +

+
+
+
+ +
+
+
+ +
+
+
+ + + diff --git a/examples/with-buefy/nuxt.config.js b/examples/with-buefy/nuxt.config.js index 06cc234cad..663560b91f 100644 --- a/examples/with-buefy/nuxt.config.js +++ b/examples/with-buefy/nuxt.config.js @@ -3,8 +3,9 @@ export default { ** Customize the progress bar color */ loading: { color: '#3B8070' }, - mode: 'spa', - plugins: ['~plugins/buefy'], + modules: [ + 'nuxt-buefy' + ], router: { linkActiveClass: 'is-active' } diff --git a/examples/with-buefy/package.json b/examples/with-buefy/package.json index 126b946569..6e5c6241e8 100644 --- a/examples/with-buefy/package.json +++ b/examples/with-buefy/package.json @@ -10,12 +10,7 @@ "post-update": "yarn upgrade --latest" }, "dependencies": { - "buefy": "^0.5.4", "nuxt": "latest", - "vue": "~2.4.4" - }, - "devDependencies": { - "node-sass": "^4.6.0", - "sass-loader": "^6.0.6" + "nuxt-buefy": "latest" } } diff --git a/examples/with-buefy/pages/about.vue b/examples/with-buefy/pages/about.vue deleted file mode 100644 index 484c798b82..0000000000 --- a/examples/with-buefy/pages/about.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/examples/with-buefy/pages/index.vue b/examples/with-buefy/pages/index.vue index 443f64cb5a..dafce719a3 100644 --- a/examples/with-buefy/pages/index.vue +++ b/examples/with-buefy/pages/index.vue @@ -1,28 +1,45 @@ - + diff --git a/examples/with-buefy/plugins/buefy.js b/examples/with-buefy/plugins/buefy.js deleted file mode 100644 index 9fc091d0b9..0000000000 --- a/examples/with-buefy/plugins/buefy.js +++ /dev/null @@ -1,4 +0,0 @@ -import Vue from 'vue' -import Buefy from 'buefy' - -Vue.use(Buefy)