Browse Source
Bump updatenotification
Bump updatenotification
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>pull/9766/head
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
19 changed files with 3429 additions and 5826 deletions
-
11.drone.yml
-
4.gitignore
-
17apps/updatenotification/Makefile
-
54apps/updatenotification/js-src/app.js
-
10apps/updatenotification/js-src/components/root.vue
-
37apps/updatenotification/js-src/init.js
-
28apps/updatenotification/js-src/webpack.common.js
-
56apps/updatenotification/js-src/webpack.config.js
-
12apps/updatenotification/js-src/webpack.dev.js
-
7apps/updatenotification/js-src/webpack.prod.js
-
27apps/updatenotification/js/merged.js
-
1apps/updatenotification/js/merged.js.map
-
5461apps/updatenotification/package-lock.json
-
16apps/updatenotification/package.json
-
11build/vue-builds.sh
-
3456settings/js/main.js
-
2settings/js/main.js.map
-
41settings/package-lock.json
-
4settings/webpack.common.js
@ -1,54 +0,0 @@ |
|||
/** |
|||
* @copyright (c) 2018 Joas Schilling <coding@schilljs.com> |
|||
* |
|||
* @author Joas Schilling <coding@schilljs.com> |
|||
* |
|||
* This file is licensed under the Affero General Public License version 3 or |
|||
* later. See the COPYING file. |
|||
*/ |
|||
|
|||
/* global $, define */ |
|||
|
|||
define(function (require) { |
|||
"use strict"; |
|||
|
|||
return { |
|||
|
|||
/** @type {Vue|null} */ |
|||
vm: null, |
|||
|
|||
/** |
|||
* Initialise the app |
|||
*/ |
|||
initialise: function() { |
|||
var data = JSON.parse($('#updatenotification').attr('data-json')); |
|||
var Vue = require('vue'); |
|||
var vSelect = require('vue-select'); |
|||
Vue.component('v-select', vSelect.VueSelect); |
|||
Vue.mixin({ |
|||
methods: { |
|||
t: function(app, text, vars, count, options) { |
|||
return OC.L10N.translate(app, text, vars, count, options); |
|||
}, |
|||
n: function(app, textSingular, textPlural, count, vars, options) { |
|||
return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options); |
|||
} |
|||
} |
|||
}); |
|||
this.vm = new Vue(require('./components/root.vue')); |
|||
|
|||
this.vm.newVersionString = data.newVersionString; |
|||
this.vm.lastCheckedDate = data.lastChecked; |
|||
this.vm.isUpdateChecked = data.isUpdateChecked; |
|||
this.vm.updaterEnabled = data.updaterEnabled; |
|||
this.vm.downloadLink = data.downloadLink; |
|||
this.vm.isNewVersionAvailable = data.isNewVersionAvailable; |
|||
this.vm.updateServerURL = data.updateServerURL; |
|||
this.vm.currentChannel = data.currentChannel; |
|||
this.vm.channels = data.channels; |
|||
this.vm.notifyGroups = data.notifyGroups; |
|||
this.vm.isDefaultUpdateServerURL = data.isDefaultUpdateServerURL; |
|||
this.vm.versionIsEol = data.versionIsEol; |
|||
} |
|||
}; |
|||
}); |
|||
@ -0,0 +1,28 @@ |
|||
const path = require('path') |
|||
const { VueLoaderPlugin } = require('vue-loader'); |
|||
|
|||
module.exports = { |
|||
entry: './js-src/init.js', |
|||
output: { |
|||
path: path.resolve(__dirname, '../js'), |
|||
publicPath: '/', |
|||
filename: 'merged.js' |
|||
}, |
|||
module: { |
|||
rules: [ |
|||
{ |
|||
test: /\.vue$/, |
|||
loader: 'vue-loader', |
|||
} |
|||
] |
|||
}, |
|||
plugins: [ |
|||
new VueLoaderPlugin() |
|||
], |
|||
resolve: { |
|||
alias: { |
|||
'vue$': 'vue/dist/vue.esm.js' |
|||
}, |
|||
extensions: ['*', '.js', '.vue', '.json'] |
|||
} |
|||
} |
|||
@ -1,56 +0,0 @@ |
|||
var path = require('path'); |
|||
var webpack = require('webpack'); |
|||
|
|||
module.exports = { |
|||
entry: './js-src/init.js', |
|||
output: { |
|||
path: path.resolve(__dirname, '../js'), |
|||
publicPath: '/', |
|||
filename: 'merged.js' |
|||
}, |
|||
module: { |
|||
rules: [ |
|||
{ |
|||
test: /\.vue$/, |
|||
loader: 'vue-loader', |
|||
options: { |
|||
loaders: { |
|||
}, |
|||
esModule: false |
|||
// other vue-loader options go here
|
|||
} |
|||
} |
|||
] |
|||
}, |
|||
resolve: { |
|||
alias: { |
|||
'vue-select': 'vue-select/dist/vue-select.js', |
|||
'vue': process.env.NODE_ENV === 'production' ? 'vue/dist/vue.min.js' : 'vue/dist/vue.js' |
|||
} |
|||
}, |
|||
performance: { |
|||
hints: false |
|||
}, |
|||
devtool: '#eval-source-map' |
|||
}; |
|||
|
|||
if (process.env.NODE_ENV === 'production') { |
|||
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"' |
|||
} |
|||
}), |
|||
new webpack.optimize.UglifyJsPlugin({ |
|||
sourceMap: true, |
|||
compress: { |
|||
warnings: false |
|||
} |
|||
}), |
|||
new webpack.LoaderOptionsPlugin({ |
|||
minimize: true |
|||
}) |
|||
]); |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
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: '#eval-source-map', |
|||
}) |
|||
@ -0,0 +1,7 @@ |
|||
const merge = require('webpack-merge') |
|||
const common = require('./webpack.common.js') |
|||
|
|||
module.exports = merge(common, { |
|||
mode: 'production', |
|||
devtool: '#source-map' |
|||
}) |
|||
27
apps/updatenotification/js/merged.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1
apps/updatenotification/js/merged.js.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
5461
apps/updatenotification/package-lock.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
3456
settings/js/main.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
settings/js/main.js.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue