diff --git a/.env b/.env
index bb2a290..17cb3be 100644
--- a/.env
+++ b/.env
@@ -1,5 +1,16 @@
-VUE_APP_URL = "PROVA ENV! FUNZIONA"
-PROVA_PAOLO = "PROVA ENV FUNZIONA!"
+## SVILUPPO !!!
-PAO_APP_ID = ''
-MASTER_KEY = ''
+VUE_APP_URL = "prova SVILUPPO!"
+PROVA_PAOLO = "PROVA SVILUPPO"
+
+MONGODB_HOST = 'http://localhost:3000'
+
+PAO_APP_ID = 'KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF'
+MASTER_KEY = 'KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T'
+
+LOGO_REG = quasar-logo-full.svg
+
+
+TEST_EMAIL=paolo@prova.com
+TEST_USERNAME = paoloar77
+TEST_PASSWORD = mypassword
diff --git a/.env.development b/.env.development
deleted file mode 100644
index fea5918..0000000
--- a/.env.development
+++ /dev/null
@@ -1,5 +0,0 @@
-VUE_APP_URL = "prova SVILUPPO!"
-PROVA_PAOLO = "PROVA SVILUPPO"
-
-PAO_APP_ID = 'KKPPAA5KJK435J3KSS9F9D8S9F8SD98F9SDF'
-MASTER_KEY = 'KKPPSS5KJK435J3KSS9F9D8S9F8SD3CR3T'
diff --git a/.env.production b/.env.production
new file mode 100644
index 0000000..0a84f4e
--- /dev/null
+++ b/.env.production
@@ -0,0 +1,13 @@
+VUE_APP_URL = "PROVA ENV! FUNZIONA"
+PROVA_PAOLO = "PROVA ENV FUNZIONA!"
+
+PAO_APP_ID = ''
+MASTER_KEY = ''
+
+MONGODB_HOST = 'http://localhost:3000'
+
+LOGO_REG = 'quasar-logo-full.svg'
+
+TEST_EMAIL=
+TEST_USERNAME =
+TEST_PASSWORD =
diff --git a/quasar.conf.js b/quasar.conf.js
index 9849354..3d80cb3 100644
--- a/quasar.conf.js
+++ b/quasar.conf.js
@@ -80,6 +80,7 @@ module.exports = function (ctx) {
'QChip',
'QCollapsible',
'QInput',
+ 'QCheckbox',
],
directives: [
diff --git a/src/components/views/login/signup.vue b/src/components/views/login/signup.vue
index cfb6b6b..027e1cd 100644
--- a/src/components/views/login/signup.vue
+++ b/src/components/views/login/signup.vue
@@ -1,76 +1,168 @@
-
+
+
+
+
+
+
+
-
-
+
- Submit
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Submit
+
diff --git a/src/i18n.js b/src/i18n.js
index fb8a9a8..38925e2 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -1,19 +1,52 @@
const messages = {
- enUs: {
- msg: {
- hello: 'Hello!',
- myAppName: 'FreePlanet',
- myDescriz: 'The first Free app for Everyone'
-
- }
- },
it: {
msg: {
hello: 'Buongiorno!',
myAppName: 'FreePlanet',
myDescriz: 'La prima App Libera e per Tutti'
- }
- }
+ },
+ reg: {
+ richiesto: '* Richiesto',
+ email: 'Email',
+ username : 'Nome Utente',
+ password: 'Password',
+ confirmpassword: 'Ripeti password',
+ terms: "Accetti i termini e le condizioni?",
+ err: {
+ required: 'è richiesto',
+ email: 'dev\'essere una email valida',
+ errore_generico: 'Si prega di compilare correttamente i campi',
+ atleast: 'dev\'essere lungo almeno di',
+ notmore: 'non dev\'essere lungo più di',
+ char: 'caratteri',
+ terms: 'Devi accettare le condizioni, per continuare.'
+ }
+ },
+ },
+ enUs: {
+ msg: {
+ hello: 'Hello!',
+ myAppName: 'FreePlanet',
+ myDescriz: 'The first Free app for Everyone'
+ },
+ reg: {
+ richiesto: '* Required',
+ email: 'Email',
+ username : 'Username',
+ password: 'Password',
+ confirmpassword: 'Repeat password',
+ terms: "Do you agree with the terms & conditions?",
+ err: {
+ required: 'is required',
+ email: 'must be a valid email',
+ errore_generico: 'Please review fields again',
+ atleast: 'must be at least',
+ notmore: 'must not be more than',
+ char: 'characters long',
+ terms: 'You need to agree with the terms & conditions.'
+ }
+ },
+ },
};
export default messages;
diff --git a/src/store/index.js b/src/store/index.js
index 9eb44c4..5cfe4af 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -3,6 +3,7 @@ import Vuex from 'vuex'
import example from './module-example/index'
import glob from './modules/glob';
+import user from './modules/user';
import types from './mutation-types'
Vue.use(Vuex);
@@ -16,6 +17,7 @@ Vue.filter('time', timestamp => {
export default new Vuex.Store({
modules: {
glob,
+ user,
example
},
diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js
index 1b1e068..c2bad87 100644
--- a/src/store/mutation-types.js
+++ b/src/store/mutation-types.js
@@ -14,6 +14,8 @@ export const USER_EMAIL = 'email';
export const USER_PASSWORD = 'password';
export const USER_DATEOFBIRTH = 'dateofbirth';
+export const USER_SIGNUP = 'signup';
+
diff --git a/tools/tools.js b/tools/tools.js
new file mode 100644
index 0000000..8178f3e
--- /dev/null
+++ b/tools/tools.js
@@ -0,0 +1,13 @@
+var sendRequest = function (url, method, body)
+{
+ const options = {
+ method: method,
+ mode: 'no-cors',
+ headers: new Headers({'content-type': 'application/json'}),
+ mode: 'no-cors'
+ };
+
+ options.body = JSON.stringify(body);
+
+ return fetch(url, options);
+}();