2016-02-09 21:58:29 +03:00
|
|
|
/**
|
2018-01-18 14:25:52 +03:00
|
|
|
* @copyright (c) 2018 Joas Schilling <coding@schilljs.com>
|
2016-02-09 21:58:29 +03:00
|
|
|
*
|
2018-01-18 14:25:52 +03:00
|
|
|
* @author Joas Schilling <coding@schilljs.com>
|
2016-02-09 21:58:29 +03:00
|
|
|
*
|
2018-01-18 14:25:52 +03:00
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later. See the COPYING file.
|
2016-02-09 21:58:29 +03:00
|
|
|
*/
|
|
|
|
|
2018-01-30 19:06:40 +03:00
|
|
|
/* global $, define */
|
2017-05-10 14:03:15 +03:00
|
|
|
|
2018-01-30 19:06:40 +03:00
|
|
|
define(function (require) {
|
|
|
|
"use strict";
|
2017-05-10 14:03:15 +03:00
|
|
|
|
2018-01-30 19:06:40 +03:00
|
|
|
return {
|
2016-09-23 14:08:18 +03:00
|
|
|
|
2018-01-18 14:25:52 +03:00
|
|
|
/** @type {Vue|null} */
|
|
|
|
vm: null,
|
2016-05-09 10:43:06 +03:00
|
|
|
|
2018-01-18 14:25:52 +03:00
|
|
|
/**
|
|
|
|
* Initialise the app
|
|
|
|
*/
|
|
|
|
initialise: function() {
|
|
|
|
var data = JSON.parse($('#updatenotification').attr('data-json'));
|
2018-01-30 19:06:40 +03:00
|
|
|
var Vue = require('vue');
|
2018-01-31 12:54:22 +03:00
|
|
|
var vSelect = require('vue-select');
|
|
|
|
Vue.component('v-select', vSelect.VueSelect);
|
2018-01-30 19:06:40 +03:00
|
|
|
this.vm = new Vue(require('./components/root.vue'));
|
2016-05-09 10:43:06 +03:00
|
|
|
|
2018-01-18 14:25:52 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
};
|
2016-02-09 21:58:29 +03:00
|
|
|
});
|