2020-08-03 17:34:04 +03:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
*
|
|
|
|
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
*
|
|
|
|
* @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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2019-09-25 19:19:42 +03:00
|
|
|
import Vue from 'vue'
|
2019-10-03 11:19:50 +03:00
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
2019-09-25 19:19:42 +03:00
|
|
|
import App from './Accessibility.vue'
|
2018-06-13 14:16:49 +03:00
|
|
|
|
|
|
|
// bind to window
|
2019-09-25 19:19:42 +03:00
|
|
|
Vue.prototype.OC = OC
|
|
|
|
Vue.prototype.t = t
|
2018-06-13 14:16:49 +03:00
|
|
|
|
2019-10-03 11:19:50 +03:00
|
|
|
const availableConfig = loadState('accessibility', 'available-config')
|
|
|
|
const userConfig = loadState('accessibility', 'user-config')
|
|
|
|
|
|
|
|
const View = Vue.extend(App)
|
|
|
|
const accessibility = new View({
|
|
|
|
propsData: {
|
|
|
|
availableConfig,
|
2019-11-13 15:05:10 +03:00
|
|
|
userConfig,
|
|
|
|
},
|
2019-09-25 19:19:42 +03:00
|
|
|
})
|
2019-10-03 11:19:50 +03:00
|
|
|
accessibility.$mount('#accessibility')
|