- * @copyright 2019
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
-
-import Vue from 'vue'
-import Polling from './components/Polling.vue'
-
-// eslint-disable-next-line
-__webpack_public_path__ = OC.linkTo('push', 'js/')
-
-Vue.prototype.t = t
-Vue.prototype.n = n
-Vue.prototype.OC = OC
-Vue.prototype.OCA = OCA
-Vue.prototype.OCP = OCP
-
-// eslint-disable-next-line
-$('#app-content').prepend($('', {id: 'vue-push-app'}))
-
-// eslint-disable-next-line no-new
-new Vue({
- el: '#vue-push-app',
- render: h => h(Polling)
-})
diff --git a/webpack.common.js b/webpack.common.js
deleted file mode 100644
index 0de0764..0000000
--- a/webpack.common.js
+++ /dev/null
@@ -1,82 +0,0 @@
-
-/*
- * Push - Nextcloud Push Service
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Maxence Lange
- * @copyright 2019
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
-
-const path = require('path')
-const VueLoaderPlugin = require('vue-loader/lib/plugin')
-
-module.exports = {
- entry: {
- polling: path.join(__dirname, 'src', 'polling.js')
- },
- output: {
- path: path.resolve(__dirname, './js'),
- publicPath: '/js/',
- filename: '[name].js',
- chunkFilename: '[name].[chunkhash].js'
- },
- module: {
- rules: [
- {
- test: /\.css$/,
- use: [
- 'vue-style-loader',
- 'css-loader'
- ]
- },
- {
- test: /\.scss$/,
- use: [
- 'vue-style-loader',
- 'css-loader',
- 'sass-loader'
- ]
- },
- {
- test: /\.vue$/,
- loader: 'vue-loader'
- },
- {
- test: /\.js$/,
- loader: 'babel-loader',
- exclude: /node_modules/
- },
- {
- test: /\.(png|jpg|gif|svg)$/,
- loader: 'file-loader',
- options: {
- name: '[name].[ext]?[hash]'
- }
- }
- ]
- },
- plugins: [new VueLoaderPlugin()],
- resolve: {
- alias: {
- vue$: 'vue/dist/vue.esm.js'
- },
- extensions: ['*', '.js', '.vue', '.json']
- }
-}
diff --git a/webpack.dev.js b/webpack.dev.js
deleted file mode 100644
index e6cd214..0000000
--- a/webpack.dev.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const merge = require('webpack-merge')
-const common = require('./webpack.common.js')
-
-module.exports = merge(common, {
- mode: 'development',
- devServer: {
- historyApiFallback: true,
- noInfo: true,
- overlay: true
- },
- devtool: 'source-map'
-})
diff --git a/webpack.prod.js b/webpack.prod.js
deleted file mode 100644
index 7e63371..0000000
--- a/webpack.prod.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const merge = require('webpack-merge')
-const common = require('./webpack.common.js')
-
-module.exports = merge(common, {
- mode: 'production',
- devtool: '#source-map'
-})