TransfereProjet
This commit is contained in:
parent
5bf4a328d0
commit
c6477c5ba3
10 changed files with 45 additions and 40 deletions
|
@ -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'});
|
||||||
|
|
|
@ -8,12 +8,12 @@ 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" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="nickname">{{ t ('pwa.nickname') }}:</label>
|
<label for="nickname">{{ t ('pwa.nickname') }}:</label>
|
||||||
<input type="text" id="nickname" v-model="home">
|
<input type="text" id="nickname" v-model="home">
|
||||||
|
@ -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,14 +31,14 @@ 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>
|
||||||
<label for="bday">{{ t ('pwa.bday') }}:</label>
|
<label for="bday">{{ t ('pwa.bday') }}:</label>
|
||||||
<input type="date" id="bday" v-model="home">
|
<input type="date" id="bday" v-model="home">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="nbrHome">{{ t ('pwa.nbrHome') }}:</label>
|
<label for="nbrHome">{{ t ('pwa.nbrHome') }}:</label>
|
||||||
<input type="tel" id="nbrHome" v-model="home" placeholder="+32(0)15738490" >
|
<input type="tel" id="nbrHome" v-model="home" placeholder="+32(0)15738490" >
|
||||||
|
@ -49,16 +49,16 @@ const {t} = useI18n({useScope: 'local'});
|
||||||
<ul>
|
<ul>
|
||||||
<li><label for="street">{{ t ('pwa.street') }}:</label></li>
|
<li><label for="street">{{ t ('pwa.street') }}:</label></li>
|
||||||
<input type="text" id="street" v-model="home">
|
<input type="text" id="street" v-model="home">
|
||||||
|
|
||||||
<li><label for="locality">{{ t ('pwa.locality') }}:</label></li>
|
<li><label for="locality">{{ t ('pwa.locality') }}:</label></li>
|
||||||
<input type="text" id="locality" v-model="home">
|
<input type="text" id="locality" v-model="home">
|
||||||
|
|
||||||
<li><label for="pcode">{{ t ('pwa.pcode') }}:</label></li>
|
<li><label for="pcode">{{ t ('pwa.pcode') }}:</label></li>
|
||||||
<input type="text" id="pcode" v-model="home">
|
<input type="text" id="pcode" v-model="home">
|
||||||
|
|
||||||
<li><label for="ctry">{{ t ('pwa.ctry') }}:</label></li>
|
<li><label for="ctry">{{ t ('pwa.ctry') }}:</label></li>
|
||||||
<input type="text" id="ctry" v-model="home">
|
<input type="text" id="ctry" v-model="home">
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -92,19 +92,19 @@ const {t} = useI18n({useScope: 'local'});
|
||||||
<ul>
|
<ul>
|
||||||
<li><label for="street">{{ t ('pwa.street') }}:</label></li>
|
<li><label for="street">{{ t ('pwa.street') }}:</label></li>
|
||||||
<input type="text" id="street" v-model="work">
|
<input type="text" id="street" v-model="work">
|
||||||
|
|
||||||
<li><label for="locality">{{ t ('pwa.locality') }}:</label></li>
|
<li><label for="locality">{{ t ('pwa.locality') }}:</label></li>
|
||||||
<input type="text" id="locality" v-model="work">
|
<input type="text" id="locality" v-model="work">
|
||||||
|
|
||||||
<li><label for="pcode">{{ t ('pwa.pcode') }}:</label></li>
|
<li><label for="pcode">{{ t ('pwa.pcode') }}:</label></li>
|
||||||
<input type="text" id="pcode" v-model="work">
|
<input type="text" id="pcode" v-model="work">
|
||||||
|
|
||||||
<li><label for="ctry">{{ t ('pwa.ctry') }}:</label></li>
|
<li><label for="ctry">{{ t ('pwa.ctry') }}:</label></li>
|
||||||
<input type="text" id="ctry" v-model="work">
|
<input type="text" id="ctry" v-model="work">
|
||||||
</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,12 +123,12 @@ 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,
|
||||||
work: null
|
work: null
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
checkForm: function (e) {
|
checkForm: function (e) {
|
||||||
|
@ -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) {
|
||||||
|
@ -153,7 +153,7 @@ const {t} = useI18n({useScope: 'local'});
|
||||||
}
|
}
|
||||||
if (localStorage.work) {
|
if (localStorage.work) {
|
||||||
this.work = localStorage.work;
|
this.work = localStorage.work;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
persist() {
|
persist() {
|
||||||
|
@ -162,8 +162,13 @@ const {t} = useI18n({useScope: 'local'});
|
||||||
console.log('ok');
|
console.log('ok');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}; */
|
computed: {
|
||||||
|
profil() {
|
||||||
|
return this.$contact.getters.getProfil;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -185,4 +190,4 @@ const {t} = useI18n({useScope: 'local'});
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<i18n lang="json" locale="en" src="./locale/en.json"/>
|
<i18n lang="json" locale="en" src="./locale/en.json"/>
|
||||||
<i18n lang="json" locale="fr" src="./locale/fr.json"/>
|
<i18n lang="json" locale="fr" src="./locale/fr.json"/>
|
||||||
|
|
|
@ -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: [
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
{
|
{
|
||||||
|
"menu": {
|
||||||
|
"profile": "Profile",
|
||||||
|
"contacts list": "contacts list",
|
||||||
|
},
|
||||||
"pwa": {
|
"pwa": {
|
||||||
"profile": "Profile",
|
"profile form": "Profile Form",
|
||||||
"avatar": "Avatar",
|
"avatar": "Avatar",
|
||||||
"nickname": "Nickname",
|
"nickname": "Nickname",
|
||||||
"emailHome": "Personal Email",
|
"emailHome": "Personal Email",
|
||||||
"personalInfo": "Personal information",
|
"personalInfo": "Personal information",
|
||||||
"name": "Full name",
|
"name": "Full name",
|
||||||
"bday": "Date of birth",
|
"bday": "Date of birth",
|
||||||
"nbrHome": "Phone number",
|
"nbrHome": "Phone number",
|
||||||
"home": "Personal Address",
|
"home": "Personal Address",
|
||||||
"street": "Street",
|
"street": "Street",
|
||||||
|
@ -23,4 +27,4 @@
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"comments": "About / Comments"
|
"comments": "About / Comments"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{
|
{
|
||||||
|
"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",
|
||||||
"personalInfo": "Informations Personnelles",
|
"personalInfo": "Informations Personnelles",
|
||||||
"name": "Nom complet",
|
"name": "Nom complet",
|
||||||
"bday": "Date de naissance",
|
"bday": "Date de naissance",
|
||||||
"nbrHome" : "Numéro de téléphone",
|
"nbrHome" : "Numéro de téléphone",
|
||||||
"home": "Adresse Personnelle",
|
"home": "Adresse Personnelle",
|
||||||
"street": "Rue",
|
"street": "Rue",
|
||||||
|
@ -24,4 +27,4 @@
|
||||||
"save": "Enregistrer",
|
"save": "Enregistrer",
|
||||||
"comments": "À propos / Commentaires"
|
"comments": "À propos / Commentaires"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue