mirror of
https://github.com/nextcloud/server.git
synced 2026-11-26 16:15:53 +01:00
The entries mount their view with createApp(). The views of the login flow and of the updater were already written for Vue 3; the updater only needed the renamed transition class. The unsupported browser warning uses `<script setup>` and decodes the redirect target with atob(), as Node's Buffer was only available through the polyfills of the legacy build. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Assisted-by: ClaudeCode:claude-opus-5-5
14 lines
545 B
TypeScript
14 lines
545 B
TypeScript
/*!
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
|
import { createApp, defineAsyncComponent } from 'vue'
|
|
|
|
const UpdaterAdmin = defineAsyncComponent(() => import('./views/UpdaterAdmin.vue'))
|
|
const UpdaterAdminCli = defineAsyncComponent(() => import('./views/UpdaterAdminCli.vue'))
|
|
|
|
const view = loadState('core', 'updaterView')
|
|
createApp(view === 'adminCli' ? UpdaterAdminCli : UpdaterAdmin).mount('#core-updater')
|