TransfereProjet

This commit is contained in:
Pauline MAROT 2022-01-27 22:28:46 +01:00
parent 5bf4a328d0
commit c6477c5ba3
Signed by untrusted user: linepau
GPG key ID: 0F0ED996BFD1E3D9
10 changed files with 45 additions and 40 deletions

View file

@ -1,7 +1,7 @@
<script setup> <script setup>
import ReloadPWA from './components/ReloadPWA.vue'; import ReloadPWA from './components/ReloadPWA.vue';
import NavMessage from './components/message/NavMessage.vue'; import NavMessage from './components/message/NavMessage.vue';
import NavContact from './components/message/NavContact.vue'; import NavContact from './components/contact/NavContact.vue';
import {useI18n} from 'vue-i18n'; import {useI18n} from 'vue-i18n';
const {t} = useI18n({useScope: 'local'}); const {t} = useI18n({useScope: 'local'});

View file

@ -8,7 +8,7 @@ const {t} = useI18n({useScope: 'local'});
<form id="profil" method="POST" v-on:submit="checkForm"> <form id="profil" method="POST" v-on:submit="checkForm">
<div title="👤"> <div title="👤">
<h1>👤 {{ t ('pwa.profile') }}</h1> <h1>👤 {{ t ('pwa.profile form') }}</h1>
<div> <div>
<label for="avatar">{{ t ('pwa.avatar') }}</label> <label for="avatar">{{ t ('pwa.avatar') }}</label>
<input type="file" id="avatar" /> <input type="file" id="avatar" />
@ -21,7 +21,7 @@ const {t} = useI18n({useScope: 'local'});
<div> <div>
<label for="emailHome">{{ t ('pwa.emailHome') }}:</label> <label for="emailHome">{{ t ('pwa.emailHome') }}:</label>
<input type="email" id="emailHome" v-model="home" placeholder="john.Doe@email.com" required> <input type="email" id="emailHome" v-model="home" placeholder="john.Doe@email.com" aria-required="true">
</div> </div>
</div> </div>
@ -31,7 +31,7 @@ const {t} = useI18n({useScope: 'local'});
<h1>📇 {{ t ('pwa.personalInfo') }}</h1> <h1>📇 {{ t ('pwa.personalInfo') }}</h1>
<div> <div>
<label for="name">{{ t ('pwa.name') }}:</label> <label for="name">{{ t ('pwa.name') }}:</label>
<input type="text" id="name" v-model="home" pattern="{a-zA-Z}{4,25}" placeholder="John Doe" required> <input type="text" id="name" v-model="home" pattern="{a-zA-Z}{4,25}" placeholder="John Doe" aria-required="true">
</div> </div>
<div> <div>
@ -104,7 +104,7 @@ const {t} = useI18n({useScope: 'local'});
</ul> </ul>
</div> </div>
<button type="submit" value="Submit">{{ t ('pwa.save') }}</button> <button type="submit" @click="persist">{{ t ('pwa.save') }}</button>
</div> </div>
<br> <br>
@ -123,7 +123,7 @@ const {t} = useI18n({useScope: 'local'});
</template> </template>
<script> <script>
/*const profil = new Vue ({ // vue n'est pas définie /* const profil = new Vue ({ // vue n'est pas définie
el: '#profil', el: '#profil',
data: { data: {
home: null, home: null,
@ -138,14 +138,14 @@ const {t} = useI18n({useScope: 'local'});
e.preventDefault(); e.preventDefault();
} }
} }
}); */ });*/
/*export default { //home n'est pas déclarer export default {
name: 'profil', name: 'profil',
setup() { setup() {
home = "", home = " ",
work = "" work = " "
}, },
mounted() { mounted() {
if (localStorage.home) { if (localStorage.home) {
@ -162,7 +162,12 @@ const {t} = useI18n({useScope: 'local'});
console.log('ok'); console.log('ok');
} }
} }
}; */ computed: {
profil() {
return this.$contact.getters.getProfil;
}
}
};
</script> </script>

View file

@ -1,7 +1,6 @@
/* jshint -W097 */ // don't warn about "use strict" /* jshint -W097 */ // don't warn about "use strict"
"use strict"; "use strict";
/*Ne fonctionne pas */ /*Ne fonctionne pas */
const router = new VueRouter({
routes: [ routes: [
{ path: '/navContact', component:NavContact , { path: '/navContact', component:NavContact ,
children: [ children: [

View file

@ -1,6 +1,10 @@
{ {
"pwa": { "menu": {
"profile": "Profile", "profile": "Profile",
"contacts list": "contacts list",
},
"pwa": {
"profile form": "Profile Form",
"avatar": "Avatar", "avatar": "Avatar",
"nickname": "Nickname", "nickname": "Nickname",
"emailHome": "Personal Email", "emailHome": "Personal Email",

View file

@ -1,7 +1,10 @@
{ {
"menu": {
"profile ": "Profil",
"contacts list": "Liste des contacts",
},
"pwa": { "pwa": {
"profile form": "Formulaire de Profil",
"profile": "Profil",
"avatar": "Avatar", "avatar": "Avatar",
"nickname": "Pseudonyme", "nickname": "Pseudonyme",
"emailHome": "Email Personnelle", "emailHome": "Email Personnelle",

View file

@ -12,7 +12,6 @@ const {t} = useI18n({useScope: 'local'});
<li><router-link to="/navMessage/videoConferencing">🎥 {{ t('menu.video conferencing') }}</router-link></li> <li><router-link to="/navMessage/videoConferencing">🎥 {{ t('menu.video conferencing') }}</router-link></li>
</ul> </ul>
</template> </template>
<style scoped> <style scoped>

View file

@ -1,7 +1,5 @@
{ {
"menu": { "menu": {
"profile": "Profile",
"contacts list": "contacts list",
"correspondence": "Correspondence", "correspondence": "Correspondence",
"chat": "Chat", "chat": "Chat",
"video conferencing": "Video conferencing" "video conferencing": "Video conferencing"
@ -11,5 +9,4 @@
"send": "Send" "send": "Send"
} }
} }

View file

@ -1,7 +1,5 @@
{ {
"menu": { "menu": {
"profile ": "Profil",
"contacts list": "Liste des contacts",
"correspondence": "Correspondence", "correspondence": "Correspondence",
"chat": "Chat", "chat": "Chat",
"video conferencing": "Visioconférence" "video conferencing": "Visioconférence"

View file

@ -8,7 +8,7 @@ const Dashboard = () => import('./components/Dashboard.vue');
const NavMessage = () => import('./components/message/NavMessage.vue'); const NavMessage = () => import('./components/message/NavMessage.vue');
const Chat = () => import('./components/message/Chat.vue'); const Chat = () => import('./components/message/Chat.vue');
const Correspondance = () => import('./components/message/Correspondance.vue'); const Correspondance = () => import('./components/message/Correspondance.vue');
const NavContact = () => import('./components/message/NavContact.vue'); const NavContact = () => import('./components/contact/NavContact.vue');
const Profile = () => import('./components/contact/Profile.vue'); const Profile = () => import('./components/contact/Profile.vue');
const ContactsList = () => import('./components/contact/ContactsList.vue'); const ContactsList = () => import('./components/contact/ContactsList.vue');