-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathexternal.ts
More file actions
27 lines (20 loc) · 668 Bytes
/
external.ts
File metadata and controls
27 lines (20 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* SPDX-FileCopyrightText: 2026 LibreCode coop and LibreCode contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import App from './ExternalApp.vue'
import router from './router/router'
if (window.OCA && !window.OCA.LibreSign) {
Object.assign(window.OCA, { LibreSign: {} })
}
const app = createApp(App)
app.config.globalProperties.t = t
app.config.globalProperties.n = n
app.config.globalProperties.OC = OC
app.config.globalProperties.OCA = OCA
app.use(createPinia())
app.use(router)
app.mount('#content')