From a21b1c9e8040c0777e3684d0c7a78de70a2543ef Mon Sep 17 00:00:00 2001 From: Troplo Date: Thu, 8 Apr 2021 21:29:44 +1000 Subject: [PATCH] Register guided wizard (Unfinished) --- src/assets/js/errorHandler.js | 2 +- src/locales/en.json | 29 ++++ src/router/index.js | 10 ++ src/views/Login.vue | 13 ++ src/views/Register.vue | 241 ++++++++++++++++++++++++++++++++++ 5 files changed, 294 insertions(+), 1 deletion(-) create mode 100644 src/views/Login.vue create mode 100644 src/views/Register.vue diff --git a/src/assets/js/errorHandler.js b/src/assets/js/errorHandler.js index 31b0e00..71dff6f 100644 --- a/src/assets/js/errorHandler.js +++ b/src/assets/js/errorHandler.js @@ -18,7 +18,7 @@ export default function (vuex) { } if(errors.length) { vuex.commit('setAjaxErrors', errors) - Snackbar.open({message: ' ' + vuex.state.errors.errors, type: 'is-danger'}) + Snackbar.open({message: ' ' + vuex.state.errors.errors + ' ', type: 'is-danger'}) } } diff --git a/src/locales/en.json b/src/locales/en.json index 5a8c7f0..23ee7b8 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -304,6 +304,35 @@ "text": "How can we improve?", "submit": "Submit" }, + "guided": { + "registration": { + "title": "Welcome to Kaverti", + "desc": "Let's get started...", + "account": "Account", + "information": "Info", + "customization": "Customization", + "finish": "Finish", + "continue": "Continue", + "init": { + "login": "Login" + }, + "info": { + "description": "Your chosen description:" + }, + "customize": { + "light": "Light", + "dark": "Dark", + "amoled": "AMOLED", + "highContrast": "High Contrast", + "theme": "Select your preferred theme:" + }, + "finishing": { + "home": "Start using Kaverti" + } + }, + "tCreate": { + } + }, "currency": "Koins", "close": "Close", "tos": "Terms of Service", diff --git a/src/router/index.js b/src/router/index.js index 91c6f5f..d846ce7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -66,6 +66,16 @@ const routes = [{ name: 'Avatar', component: route('Avatar') }, + { + path: '/register', + name: 'Register', + component: route('Register') + }, + { + path: '/login', + name: 'Login', + component: route('Login') + }, { path: '/t/:username', component: route('Team'), diff --git a/src/views/Login.vue b/src/views/Login.vue new file mode 100644 index 0000000..fc02e4f --- /dev/null +++ b/src/views/Login.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/views/Register.vue b/src/views/Register.vue new file mode 100644 index 0000000..89f5f40 --- /dev/null +++ b/src/views/Register.vue @@ -0,0 +1,241 @@ + + + + + \ No newline at end of file