Files
nextcloud-server-mirror/core/src/update.ts
Ferdinand Thiessen d809d995c5 refactor(core): migrate the login flow, updater and unsupported browser pages to Vue 3
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
2026-10-06 12:18:31 +02:00

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')