diff --git a/VERSION b/VERSION index cce16a2..978c14e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.44-beta +0.5.45-beta diff --git a/server-up/templates/index.html b/server-up/templates/index.html index cb9324e..a516a33 100644 --- a/server-up/templates/index.html +++ b/server-up/templates/index.html @@ -482,6 +482,23 @@ tailwind.config = { + +
+
+ + Setup Wizard +
+
+

+ + +
+
+
@@ -1273,7 +1290,8 @@ tailwind.config = {

We synchroniseren nu de repos en zijn klaar voor gebruik.

- + +
@@ -2100,21 +2118,31 @@ function app() { this.toast(this.t('restart_slow'), 'wr'); }, + // Bij het opstarten: alleen openen als de wizard nog niet is afgerond. async checkWizard() { const d = await this.rpc('/api/wizard'); - if (!d.done) { - this.wizard.steps = [ - { title: 'Welkom bij Server Up 🚀', subtitle: 'Beheer je Docker stacks via een eenvoudige web-UI.' }, - { title: 'Paden', subtitle: 'Waar moeten stacks en data komen?' }, - { title: 'Repositories', subtitle: 'Server Up start met een ingebouwde stacks-repo en de ChristianLempa Boilerplates.' }, - { title: 'Eigen Git Server', subtitle: 'Optioneel: gebruik een zelfgehoste git voor eigen boilerplates.' }, - { title: 'Klaar!', subtitle: 'We synchroniseren nu de repos en zijn klaar voor gebruik.' }, - ]; - this.wizard.LIBRARY_DIR = d.defaults?.LIBRARY_DIR || '/opt/serverup/stacks'; - this.wizard.DATA_DIR = d.defaults?.DATA_DIR || '/opt/serverup/appdata'; - this.wizard.BACKUP_DIR = d.defaults?.BACKUP_DIR || '/opt/serverup/backups'; - this.wizard.open = true; - } + if (!d.done) await this.openWizard(); + }, + // Handmatig openen vanuit Instellingen, ongeacht of hij al gedraaid heeft. + async openWizard() { + const d = await this.rpc('/api/wizard'); + this.wizard.steps = [ + { title: this.t('wizard_welcome') + ' 🚀', subtitle: this.t('wizard_welcome_sub') }, + { title: this.t('wizard_paths'), subtitle: this.t('wizard_paths_sub') }, + { title: this.t('module_repos'), subtitle: 'Server Up start met een ingebouwde stacks-repo en de ChristianLempa Boilerplates.' }, + { title: this.t('wizard_git'), subtitle: this.t('wizard_git_sub') }, + { title: this.t('wizard_done'), subtitle: this.t('wizard_done_sub') }, + ]; + this.wizard.step = 0; + this.wizard.LIBRARY_DIR = d.defaults?.LIBRARY_DIR || '/opt/serverup/stacks'; + this.wizard.DATA_DIR = d.defaults?.DATA_DIR || '/opt/serverup/appdata'; + this.wizard.BACKUP_DIR = d.defaults?.BACKUP_DIR || '/opt/serverup/backups'; + this.wizard.open = true; + }, + // Opnieuw uitvoeren: markeer als niet-afgerond en open hem. + async resetWizard() { + await this.rpc('/api/wizard/reset', {}); + await this.openWizard(); }, async wizardNext() { if (this.wizard.step < this.wizard.steps.length - 1) { diff --git a/server-up/translations/en.json b/server-up/translations/en.json index 03db41f..2101f7c 100644 --- a/server-up/translations/en.json +++ b/server-up/translations/en.json @@ -241,5 +241,6 @@ "range_krap": "fits inside", "range_count": "{count} addresses", "already_added": "already added", - "detect_empty": "No network with a default route was found on this server. Fill in the details below manually." + "detect_empty": "No network with a default route was found on this server. Fill in the details below manually.", + "wizard_hint": "Run the wizard again to adjust paths and repositories. Your existing stacks are left untouched." } diff --git a/server-up/translations/nl.json b/server-up/translations/nl.json index b84aa8b..2076161 100644 --- a/server-up/translations/nl.json +++ b/server-up/translations/nl.json @@ -241,5 +241,6 @@ "range_krap": "past binnen", "range_count": "{count} adressen", "already_added": "al toegevoegd", - "detect_empty": "Er is geen netwerk met een default route gevonden op deze server. Vul de gegevens hieronder handmatig in." + "detect_empty": "Er is geen netwerk met een default route gevonden op deze server. Vul de gegevens hieronder handmatig in.", + "wizard_hint": "Doorloop de wizard opnieuw om paden en repositories aan te passen. Je bestaande stacks blijven staan." }