diff --git a/package.json b/package.json index 84f6008..f70f5cd 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "vue-apitator": "^0.0.16", "vue-class-component": "^7.2.3", "vue-croppa": "^1.3.8", + "vue-input-facade": "^1.3.1", "vue-property-decorator": "^8.4.2", "vue-router": "^3.2.0", "vuetify": "^2.2.11", diff --git a/public/index.html b/public/index.html index 248ddff..8d2513f 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - Forum virtuel des associaitons + Forum virtuel des associations diff --git a/src/components/AvatarEditor.vue b/src/components/AvatarEditor.vue index 667aa83..9ea2871 100644 --- a/src/components/AvatarEditor.vue +++ b/src/components/AvatarEditor.vue @@ -1,7 +1,7 @@ \ No newline at end of file + diff --git a/src/icons/Instagram.vue b/src/icons/Instagram.vue index a15861d..247dd31 100644 --- a/src/icons/Instagram.vue +++ b/src/icons/Instagram.vue @@ -14,4 +14,4 @@ d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" /> - \ No newline at end of file + diff --git a/src/icons/Twitter.vue b/src/icons/Twitter.vue index d19c769..3d629bc 100644 --- a/src/icons/Twitter.vue +++ b/src/icons/Twitter.vue @@ -14,4 +14,4 @@ d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z" /> - \ No newline at end of file + diff --git a/src/layouts/Delegate.vue b/src/layouts/Delegate.vue index f42af02..f69bcab 100644 --- a/src/layouts/Delegate.vue +++ b/src/layouts/Delegate.vue @@ -6,9 +6,9 @@ dark flat > - Gestion de l'association We Robot + {{ $store.state.delegateAdminName }} - + Publier @@ -45,7 +45,7 @@ - +
Sauvegarder @@ -66,7 +66,7 @@

Vous n'êtes pas encore connecté à l'interface de modification de votre association, veuillez copier-coller la clée qui vous a été envoyé par e-mail dans la boîte ci-dessous.

- { setTimeout(this.$refs.tabs.callSlider, 200) setTimeout(this.$refs.tabs.callSlider, 400) @@ -185,6 +200,16 @@ export default { delete i._id return i }) + data.schedule = data.schedule.map(i => { + delete i._id + if (Array.isArray(i.when) && i.when.length > 0) { + i.when = i.when.map(w => { + delete w._id + return w + }) + } + return i + }) this.$apitator.put('/delegate', data, { withAuth: true }).then(() => { this.isSaving = false this.$store.commit('ADD_ALERT', { diff --git a/src/router/index.ts b/src/router/index.ts index a04b600..aac6ed2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -21,7 +21,6 @@ const routes: Array = [ { path: '/admin', - name: 'AdminLayout', component: () => import(/* webpackChunkName: "adminLayout" */ '../layouts/Admin.vue'), children: [ { @@ -39,7 +38,6 @@ const routes: Array = [ { path: '/delegate', - name: 'DelegateLayout', component: () => import(/* webpackChunkName: "delegateLayout" */ '../layouts/Delegate.vue'), children: [ { diff --git a/src/store/index.ts b/src/store/index.ts index 91a709e..c60453c 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -11,6 +11,7 @@ export default new Vuex.Store({ enabled: false }, title: '', + tags: [], data: { name: '', descriptionShort: '', @@ -31,7 +32,9 @@ export default new Vuex.Store({ email: '', phone: '' } - } + }, + delegateAdminName: '', + delegateEmail: '' }, mutations: { SET_TITLE (state, payload) { @@ -51,6 +54,15 @@ export default new Vuex.Store({ if (payload !== null) { state.data = { ...state.data, ...payload } } + }, + SET_TAGS (state, payload) { + state.tags = payload + }, + SET_DELEGATE_ADMIN_NAME (state, payload) { + state.delegateAdminName = payload + }, + SET_DELEGATE_EMAIL (state, payload) { + state.delegateEmail = payload } }, actions: { diff --git a/src/views/Delegate/Contact.vue b/src/views/Delegate/Contact.vue index eea3ce9..55189d8 100644 --- a/src/views/Delegate/Contact.vue +++ b/src/views/Delegate/Contact.vue @@ -1,15 +1,27 @@