From 16fb4c2973d4c14201e22fe42edbd779c8cbe806 Mon Sep 17 00:00:00 2001 From: Aleksei Tsybin Date: Tue, 22 Feb 2022 18:56:54 +0300 Subject: [PATCH 1/3] feature: init --- .eslintrc.js | 14 ++-- .prettierrc.js | 6 ++ babel.config.js | 4 +- package.json | 1 + public/index.html | 2 + src/App.vue | 118 ++++++++++++++++++++++++++++++-- src/components/HelloWorld.vue | 122 ---------------------------------- src/main.js | 13 ++-- src/router/index.js | 41 ++++++------ src/views/AboutView.vue | 5 -- src/views/HomeView.vue | 18 ----- vue.config.js | 4 +- yarn.lock | 12 ++++ 13 files changed, 173 insertions(+), 187 deletions(-) create mode 100644 .prettierrc.js delete mode 100644 src/components/HelloWorld.vue delete mode 100644 src/views/AboutView.vue delete mode 100644 src/views/HomeView.vue diff --git a/.eslintrc.js b/.eslintrc.js index 61a2e85..ed6d110 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,15 +4,15 @@ module.exports = { node: true, }, extends: [ - "plugin:vue/essential", - "eslint:recommended", - "plugin:prettier/recommended", + 'plugin:vue/essential', + 'eslint:recommended', + 'plugin:prettier/recommended', ], parserOptions: { - parser: "@babel/eslint-parser", + parser: '@babel/eslint-parser', }, rules: { - "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', }, -}; +} diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..0614ee7 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +module.exports = { + trailingComma: 'es5', + tabWidth: 2, + semi: false, + singleQuote: true, +} diff --git a/babel.config.js b/babel.config.js index 162a3ea..c1b783e 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], -}; + presets: ['@vue/cli-plugin-babel/preset'], +} diff --git a/package.json b/package.json index f2fe373..6244465 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "buefy": "^0.9.17", "core-js": "^3.8.3", "vue": "^2.6.14", "vue-router": "^3.5.1" diff --git a/public/index.html b/public/index.html index 3e5a139..48c498e 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,8 @@ + + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index 6774530..3e0499c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,121 @@ + + diff --git a/src/main.js b/src/main.js index 71702ed..3eb88be 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,13 @@ -import Vue from "vue"; -import App from "./App.vue"; -import router from "./router"; +import Vue from 'vue' +import App from './App.vue' +import router from './router' +import Buefy from 'buefy' +import 'buefy/dist/buefy.css' -Vue.config.productionTip = false; +Vue.config.productionTip = false +Vue.use(Buefy) new Vue({ router, render: (h) => h(App), -}).$mount("#app"); +}).$mount('#app') diff --git a/src/router/index.js b/src/router/index.js index b8d77d3..808e9d6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,28 +1,27 @@ -import Vue from "vue"; -import VueRouter from "vue-router"; -import HomeView from "../views/HomeView.vue"; +import Vue from 'vue' +import VueRouter from 'vue-router' -Vue.use(VueRouter); +Vue.use(VueRouter) const routes = [ - { - path: "/", - name: "home", - component: HomeView, - }, - { - path: "/about", - name: "about", - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => - import(/* webpackChunkName: "about" */ "../views/AboutView.vue"), - }, -]; + // { + // path: '/', + // name: 'home', + // component: HomeView, + // }, + // { + // path: '/about', + // name: 'about', + // // route level code-splitting + // // this generates a separate chunk (about.[hash].js) for this route + // // which is lazy-loaded when the route is visited. + // component: () => + // import(/* webpackChunkName: "about" */ '../views/AboutView.vue'), + // }, +] const router = new VueRouter({ routes, -}); +}) -export default router; +export default router diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/AboutView.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue deleted file mode 100644 index 318e397..0000000 --- a/src/views/HomeView.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/vue.config.js b/vue.config.js index 0aed899..523a634 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,4 @@ -const { defineConfig } = require("@vue/cli-service"); +const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, -}); +}) diff --git a/yarn.lock b/yarn.lock index dd98568..7f3f303 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1975,6 +1975,13 @@ browserslist@^4.0.0, browserslist@^4.14.5, browserslist@^4.16.3, browserslist@^4 node-releases "^2.0.2" picocolors "^1.0.0" +buefy@^0.9.17: + version "0.9.17" + resolved "https://registry.yarnpkg.com/buefy/-/buefy-0.9.17.tgz#ac5857a1413f253cbb9beb0d87a48021e5b21c78" + integrity sha512-+rERzamvkflMsoE6GDqGdj5vpDUmdm5MnCnwjK2O8pdnwr8Pmab94cO//0Vd8ys539qWoeqsjh+B7vPg/lT/nQ== + dependencies: + bulma "0.9.3" + buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -1993,6 +2000,11 @@ buffer@^5.5.0: base64-js "^1.3.1" ieee754 "^1.1.13" +bulma@0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.3.tgz#ddccb7436ebe3e21bf47afe01d3c43a296b70243" + integrity sha512-0d7GNW1PY4ud8TWxdNcP6Cc8Bu7MxcntD/RRLGWuiw/s0a9P+XlH/6QoOIrmbj6o8WWJzJYhytiu9nFjTszk1g== + bytes@3.0.0: version "3.0.0" resolved "https://registry.npmmirror.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" From 87301667a2eae0f23bbeb8cea362db1d99a76dad Mon Sep 17 00:00:00 2001 From: Aleksei Tsybin Date: Tue, 22 Feb 2022 19:12:06 +0300 Subject: [PATCH 2/3] feature: fix prettier problems --- .eslintrc.js | 6 +++ .prettierrc.js | 1 + src/App.vue | 141 +------------------------------------------------ 3 files changed, 8 insertions(+), 140 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index ed6d110..ce1a92e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,5 +14,11 @@ module.exports = { rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'prettier/prettier': [ + 'error', + { + endOfLine: 'auto', + }, + ], }, } diff --git a/.prettierrc.js b/.prettierrc.js index 0614ee7..2f44711 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,4 +3,5 @@ module.exports = { tabWidth: 2, semi: false, singleQuote: true, + endOfLine: 'auto', } diff --git a/src/App.vue b/src/App.vue index 3e0499c..df72cf7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,140 +1 @@ - - - - - + \ No newline at end of file From 01b4017f9a53b9dfe236b2f0c63a31f7785e8aef Mon Sep 17 00:00:00 2001 From: Aleksei Tsybin Date: Tue, 22 Feb 2022 20:46:12 +0300 Subject: [PATCH 3/3] feature: test transfer --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index df72cf7..935a866 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file