From 2f63be0a13c4388f7625c87078849abcf10e89d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 3 Sep 2020 16:35:02 +0200 Subject: Some code refactoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/App.vue | 390 ++++++++++++++++++++------------------- src/components/AppSelector.vue | 70 +++++++ src/components/DetailSection.vue | 92 +++++++++ src/components/appselector.vue | 65 ------- src/components/detailsection.vue | 85 --------- src/main.js | 18 +- src/webpack.config.js | 42 ++--- 7 files changed, 391 insertions(+), 371 deletions(-) create mode 100644 src/components/AppSelector.vue create mode 100644 src/components/DetailSection.vue delete mode 100644 src/components/appselector.vue delete mode 100644 src/components/detailsection.vue (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 2509d77..a3ff23a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,204 +1,212 @@ diff --git a/src/components/AppSelector.vue b/src/components/AppSelector.vue new file mode 100644 index 0000000..a831ef6 --- /dev/null +++ b/src/components/AppSelector.vue @@ -0,0 +1,70 @@ + + + + diff --git a/src/components/DetailSection.vue b/src/components/DetailSection.vue new file mode 100644 index 0000000..e6998fe --- /dev/null +++ b/src/components/DetailSection.vue @@ -0,0 +1,92 @@ + + + + diff --git a/src/components/appselector.vue b/src/components/appselector.vue deleted file mode 100644 index 2a70660..0000000 --- a/src/components/appselector.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/detailsection.vue b/src/components/detailsection.vue deleted file mode 100644 index af89a4c..0000000 --- a/src/components/detailsection.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/main.js b/src/main.js index 48e5202..f88aa1f 100644 --- a/src/main.js +++ b/src/main.js @@ -20,21 +20,21 @@ * */ -import Vue from 'vue'; -import VueFormWizard from 'vue-form-wizard'; -import VueFormGenerator from 'vue-form-generator'; -import VueClipboard from 'vue-clipboard2'; +import Vue from 'vue' +import VueFormWizard from 'vue-form-wizard' +import VueFormGenerator from 'vue-form-generator' +import VueClipboard from 'vue-clipboard2' import App from './App.vue' +// eslint-disable-next-line +__webpack_nonce__ = btoa(OC.requestToken) -/* global __webpack_nonce__ OC */ -__webpack_nonce__ = btoa(OC.requestToken); // eslint-disable-line no-native-reassign Vue.prototype.t = t Vue.prototype.OCA = OCA -Vue.use(VueFormWizard); -Vue.use(VueFormGenerator); -Vue.use(VueClipboard); +Vue.use(VueFormWizard) +Vue.use(VueFormGenerator) +Vue.use(VueClipboard) new Vue({ render: h => h(App), diff --git a/src/webpack.config.js b/src/webpack.config.js index 8e0ecd8..8984c09 100644 --- a/src/webpack.config.js +++ b/src/webpack.config.js @@ -1,56 +1,56 @@ -var path = require('path'); -var webpack = require('webpack'); -const { VueLoaderPlugin } = require('vue-loader'); +const path = require('path') +const webpack = require('webpack') +const { VueLoaderPlugin } = require('vue-loader') module.exports = { entry: './js/init.js', output: { path: path.resolve(__dirname, './build'), publicPath: '/build/', - filename: 'build.js' + filename: 'build.js', }, module: { rules: [ { test: /\.vue$/, - loader: 'vue-loader' + loader: 'vue-loader', }, { test: /\.js$/, loader: 'babel-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { test: /\.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { - name: '[name].[ext]?[hash]' - } - } - ] + name: '[name].[ext]?[hash]', + }, + }, + ], }, plugins: [ - new VueLoaderPlugin() + new VueLoaderPlugin(), ], resolve: { alias: { - 'vue$': 'vue/dist/vue.esm.js' - } + vue$: 'vue/dist/vue.esm.js', + }, }, performance: { - hints: false + hints: false, }, - devtool: '#eval-source-map' -}; + devtool: '#eval-source-map', +} if (process.env.NODE_ENV === 'production') { - module.exports.devtool = '#source-map'; + module.exports.devtool = '#source-map' // http://vue-loader.vuejs.org/en/workflow/production.html module.exports.plugins = (module.exports.plugins || []).concat([ new webpack.DefinePlugin({ 'process.env': { - NODE_ENV: '"production"' - } - }) - ]); + NODE_ENV: '"production"', + }, + }), + ]) } -- cgit v1.2.3