Welcome to mirror list, hosted at ThFree Co, Russian Federation.

main.js « src - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1aed86f45982bfb9b2148fe3e84031043e7993b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
__webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line

if (document.getElementById('app-content')) {
	Promise.all([
		import(/* webpackChunkName: "editor" */'vue'),
		import(/* webpackChunkName: "editor" */'./views/DirectEditing'),
	]).then((imports) => {
		const Vue = imports[0].default
		Vue.prototype.t = window.t
		Vue.prototype.OCA = window.OCA
		const DirectEditing = imports[1].default
		const vm = new Vue({
			render: h => h(DirectEditing),
		})
		vm.$mount(document.getElementById('app-content'))
	})
}