From 8c4d70ac2810ced607d068d66867cc040c69da96 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sat, 26 Aug 2023 15:01:57 +0200 Subject: [PATCH] more progress on setup --- src/server/setup/homePageCompiler.js | 0 src/webapp/main/src/views/user/SignupView.vue | 7 +++++-- src/webapp/setup/src/views/BasicSetupView.vue | 6 ++++++ src/webapp/setup/src/views/SetupPageView.vue | 12 ++++++------ src/webapp/setup/src/views/SetupRootView.vue | 4 +++- 5 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 src/server/setup/homePageCompiler.js diff --git a/src/server/setup/homePageCompiler.js b/src/server/setup/homePageCompiler.js new file mode 100644 index 0000000..e69de29 diff --git a/src/webapp/main/src/views/user/SignupView.vue b/src/webapp/main/src/views/user/SignupView.vue index a6be8d7..f6de975 100644 --- a/src/webapp/main/src/views/user/SignupView.vue +++ b/src/webapp/main/src/views/user/SignupView.vue @@ -157,6 +157,11 @@ this.$refs.notification.createNotification( 'Please provide your first and last name!', 5, 'error', 'normal' ); return; } + + if ( !this.checkEmail() ) { + this.$refs.notification.createNotification( 'This email address is not an email address', 5, 'error', 'normal' ); + return; + } let progress = this.$refs.notification.createNotification( 'Signing up...', 20, 'progress', 'normal' ); let fetchOptions = { method: 'post', @@ -166,9 +171,7 @@ 'charset': 'utf-8' } }; - console.log( 'signup initiated' ) fetch( localStorage.getItem( 'url' ) + '/user/signup', fetchOptions ).then( res => { - console.log( res ) res.text().then( status => { if ( status === 'ok' ) { this.$refs.notification.cancelNotification( progress ); diff --git a/src/webapp/setup/src/views/BasicSetupView.vue b/src/webapp/setup/src/views/BasicSetupView.vue index cfb7ec8..3ac6337 100644 --- a/src/webapp/setup/src/views/BasicSetupView.vue +++ b/src/webapp/setup/src/views/BasicSetupView.vue @@ -13,6 +13,12 @@

Basic Setup

To make setting up the database and email accounts easier, you can enter the required values below.

You may find more infos about this part here

+ +

General information

+
+
+ +

Database

A database is a piece of software that specializes in storing data. libreevent can use most SQL based databases as well as a custom JSON-based database. You are strongly encouraged to use a SQL based database, as they perform significantly better. Read more here diff --git a/src/webapp/setup/src/views/SetupPageView.vue b/src/webapp/setup/src/views/SetupPageView.vue index ce77872..4e84b92 100644 --- a/src/webapp/setup/src/views/SetupPageView.vue +++ b/src/webapp/setup/src/views/SetupPageView.vue @@ -15,13 +15,10 @@

You may find more infos about this part here


- +
-
-
- @@ -34,7 +31,10 @@ export default { data () { return { - options: { 'default': { 'id': 'default', 'name': 'Default' } }, + options: { + 'default': { 'id': 'default', 'name': 'Default' }, + 'none': { 'id': 'none', 'name': 'Configure later (will show an empty page)' }, + }, websiteName: 'libreevent', } }, diff --git a/src/webapp/setup/src/views/SetupRootView.vue b/src/webapp/setup/src/views/SetupRootView.vue index c0d3222..7a65027 100644 --- a/src/webapp/setup/src/views/SetupRootView.vue +++ b/src/webapp/setup/src/views/SetupRootView.vue @@ -156,7 +156,9 @@ } } } else { - this.proceed(); + if ( confirm( 'Do you really want to proceed without having your password checked?' ) ) { + this.proceed(); + } } } else { this.$refs.notification.createNotification( 'Passwords do not match', 10, 'error', 'normal' );