diff options
Diffstat (limited to 'core/src/install.ts')
-rw-r--r-- | core/src/install.ts | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/core/src/install.ts b/core/src/install.ts new file mode 100644 index 00000000000..61c3747d02a --- /dev/null +++ b/core/src/install.ts @@ -0,0 +1,49 @@ +/** + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +import Vue from 'vue' +import Setup from './views/Setup.vue' + +type Error = { + error: string + hint: string +} + +export type DbType = 'sqlite' | 'mysql' | 'pgsql' | 'oci' + +export type SetupConfig = { + adminlogin: string + adminpass: string + dbuser: string + dbpass: string + dbname: string + dbtablespace: string + dbhost: string + dbtype: DbType | '' + + hasSQLite: boolean + hasMySQL: boolean + hasPostgreSQL: boolean + hasOracle: boolean + databases: Record<DbType, string> + + dbIsSet: boolean + directory: string + directoryIsSet: boolean + hasAutoconfig: boolean + htaccessWorking: boolean + serverRoot: string + + errors: string[]|Error[] +} + +export type SetupLinks = { + adminInstall: string + adminSourceInstall: string + adminDBConfiguration: string +} + +const SetupVue = Vue.extend(Setup) +new SetupVue().$mount('#content') |