feat: onglet À suivre (marqueur manuel sans limite de date, groupes par catégorie, retrait réversible) et couleur propre à chaque catégorie
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XGaEeUbVSdKNfpFRgWfCXa
This commit is contained in:
1 parent
4c9f0c55b5
commit
a4e7ed1f00
9 files changed
+556
-17
No files matched your search
+148
-9
@@ -12,18 +12,19 @@
|
||||
recherche: 'm21 21-4.34-4.34|M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16',
|
||||
courses: 'M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z|M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6',
|
||||
suivi: 'M12 6v6l4 2|M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0',
|
||||
asuivre: 'm19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z',
|
||||
pj: 'm21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48',
|
||||
groupes: 'M3 7h7v7H3z|M14 7h7v7h-7z|M3 17h18',
|
||||
telecharger: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4|m7 10 5 5 5-5|M12 15V3', fermer: 'M18 6 6 18|m6 6 12 12', gauche: 'm15 18-6-6 6-6', droite: 'm9 18 6-6-6-6', bas: 'm6 9 6 6 6-6', fleche: 'M5 12h14|m12 5 7 7-7 7'
|
||||
};
|
||||
var NAV = [
|
||||
['tri', 'Tri du jour', true], ['categories', 'Catégories', true], ['groupes', 'Groupes', true], ['recherche', 'Recherche', true], ['courses', 'Courses pour Tunis', true], ['suivi', 'Suivi des demandes', true], ['regles', 'Règles', true]
|
||||
['tri', 'Tri du jour', true], ['asuivre', 'À suivre', true], ['categories', 'Catégories', true], ['groupes', 'Groupes', true], ['recherche', 'Recherche', true], ['courses', 'Courses pour Tunis', true], ['suivi', 'Suivi des demandes', true], ['regles', 'Règles', true]
|
||||
];
|
||||
var BIENTOT = {};
|
||||
var COULEUR_NOM = { 'Tunis': 1, 'Demande FB': 2, 'CI': 3, 'Câbles': 4, 'Sans objet': 5, 'À classer': 0 };
|
||||
var SYSTEME = 'À classer';
|
||||
|
||||
var S = { chargeA: 0, chargeJour: '', vue: 'tri', jour: auj(), filtre: null, cats: [], mails: [], etat: 'chargement', banniere: null, notif: null, regles: [], reglesEtat: 'ok', miroirErreur: false, majHeure: '', groupe: { jours: 7, cat: null, etq: null, mails: [], etat: 'chargement' }, courses: { liste: [], filtre: 'a_faire', etat: 'chargement' }, suivi: { items: [], jours: 14, filtre: 'attente', compte: {}, etat: 'chargement' }, recherche: { q: '', periode: 'tout', avecPj: false, etat: 'repos', resultats: [], plafond: false, cherche: '' } };
|
||||
var S = { chargeA: 0, chargeJour: '', vue: 'tri', jour: auj(), filtre: null, cats: [], mails: [], etat: 'chargement', banniere: null, notif: null, regles: [], reglesEtat: 'ok', miroirErreur: false, majHeure: '', groupe: { jours: 7, cat: null, etq: null, mails: [], etat: 'chargement' }, courses: { liste: [], filtre: 'a_faire', etat: 'chargement' }, asuivre: { items: [], compte: { actif: 0, termine: 0 }, filtre: 'actif', etat: 'chargement', annuler: null }, suivreSet: {}, suivi: { items: [], jours: 14, filtre: 'attente', compte: {}, etat: 'chargement' }, recherche: { q: '', periode: 'tout', avecPj: false, etat: 'repos', resultats: [], plafond: false, cherche: '' } };
|
||||
|
||||
/* ---------- Utilitaires ---------- */
|
||||
function auj() { return new Intl.DateTimeFormat('en-CA', { timeZone: TZ }).format(new Date()); }
|
||||
@@ -39,6 +40,9 @@
|
||||
return new Intl.DateTimeFormat('fr-FR', { hour: '2-digit', minute: '2-digit', hour12: false, timeZone: TZ }).format(d);
|
||||
}
|
||||
function couleur(nom, id) {
|
||||
/* Chaque catégorie a sa couleur, enregistrée avec elle (jamais deux catégories sur la même teinte). */
|
||||
var cat = S.cats.find(function (x) { return x.nom === nom; });
|
||||
if (cat && typeof cat.couleur === 'number') return cat.couleur;
|
||||
if (Object.prototype.hasOwnProperty.call(COULEUR_NOM, nom)) return COULEUR_NOM[nom];
|
||||
return 6 + ((id || 0) % 3);
|
||||
}
|
||||
@@ -101,7 +105,7 @@
|
||||
}
|
||||
function chargerCats() {
|
||||
return api('/categories').then(function (r) {
|
||||
var l = (r.categories || []).map(function (c) { return { id: c.id, nom: c.name }; });
|
||||
var l = (r.categories || []).map(function (c) { return { id: c.id, nom: c.name, couleur: c.couleur }; });
|
||||
l.sort(function (a, b) { return (a.nom === SYSTEME) - (b.nom === SYSTEME) || a.id - b.id; });
|
||||
S.cats = l;
|
||||
});
|
||||
@@ -150,6 +154,7 @@
|
||||
else if (vue === 'regles') chargerRegles();
|
||||
else if (vue === 'courses') chargerCourses();
|
||||
else if (vue === 'suivi') chargerSuivi();
|
||||
else if (vue === 'asuivre') chargerASuivre();
|
||||
else if (vue === 'recherche') { rendre(); var ch = document.getElementById('rech-q'); if (ch) ch.focus(); return; }
|
||||
else rendre();
|
||||
document.getElementById('principal').focus();
|
||||
@@ -277,7 +282,7 @@
|
||||
var bureau = document.getElementById('nav-bureau'), mobile = document.getElementById('nav-mobile');
|
||||
bureau.textContent = ''; mobile.textContent = '';
|
||||
function bouton(n) {
|
||||
return h('button', { type: 'button', class: 'nav-btn', 'aria-current': S.vue === n[0] ? 'page' : null, onclick: function () { allerA(n[0]); } }, icone(n[0]), h('span', null, n[1]));
|
||||
return h('button', { type: 'button', class: 'nav-btn', 'aria-current': S.vue === n[0] ? 'page' : null, onclick: function () { allerA(n[0]); } }, icone(n[0]), h('span', null, n[1]), n[0] === 'asuivre' && S.asuivre.compte.actif > 0 ? h('span', { class: 'nav-n', text: String(S.asuivre.compte.actif) }) : null);
|
||||
}
|
||||
var liste = h('div', { class: 'nav-liste' });
|
||||
NAV.forEach(function (n, i) {
|
||||
@@ -410,6 +415,7 @@
|
||||
while (principal.length && /^[\s_\-=]*$/.test(principal[principal.length - 1])) principal.pop();
|
||||
}
|
||||
var corps = principal.join('\n').trim() ? blocsTexte(principal.join('\n')) : h('p', { class: 'lect-vide', text: 'Ce mail ne contient pas de texte à afficher.' });
|
||||
badges.appendChild(boutonSuivreLecture(m));
|
||||
badges.appendChild(h('button', { type: 'button', class: 'btn-ligne lect-course', onclick: function () { dialogueCourse(null, { message_id: r.message_id || m.id, objet_mail: m.objet || r.objet || '', expediteur: m.expBrut || r.de || '', date_mail: m.date || '' }); } }, icone('courses', 18), 'Ajouter aux courses'));
|
||||
cont.appendChild(badges); cont.appendChild(meta); cont.appendChild(corps);
|
||||
if (histo && histo.join('\n').trim()) {
|
||||
@@ -492,7 +498,8 @@
|
||||
h('button', { type: 'button', class: 'lire', 'aria-label': libLire, onclick: function () { lireMail(m); } },
|
||||
h('span', { class: 'exp coupe', title: m.expBrut, text: m.exp }), h('span', { class: 'objet coupe' + (m.objet ? '' : ' sans'), text: objetAff }),
|
||||
h('span', { class: 'm-meta' }, h('span', { class: 'heure', text: heureTunis(m.date) }), ' · ', h('span', { class: 'o' + (orig === 'manuel' ? ' manuel' : ''), text: orig }))), reperes(m)),
|
||||
selecteur(m));
|
||||
selecteur(m),
|
||||
boutonSuivre(m));
|
||||
}
|
||||
function vueTri() {
|
||||
var frag = document.createDocumentFragment();
|
||||
@@ -532,7 +539,7 @@
|
||||
var visibles = tous.filter(function (m) { return !S.filtre || m.cat === S.filtre; });
|
||||
var liste = h('div', { role: 'list' });
|
||||
var carte = h('section', { class: 'carte', 'aria-label': 'Mails du jour' });
|
||||
carte.appendChild(h('div', { class: 'liste-entete', 'aria-hidden': 'true' }, h('span'), h('span', null, 'Expéditeur'), h('span', null, 'Objet'), h('span', null, 'Heure'), h('span', null, 'Origine'), h('span', null, 'Catégorie')));
|
||||
carte.appendChild(h('div', { class: 'liste-entete', 'aria-hidden': 'true' }, h('span'), h('span', null, 'Expéditeur'), h('span', null, 'Objet'), h('span', null, 'Heure'), h('span', null, 'Origine'), h('span', null, 'Catégorie'), h('span')));
|
||||
visibles.forEach(function (m) { liste.appendChild(ligneMail(m)); });
|
||||
carte.appendChild(liste);
|
||||
if (tous.length === 0) carte.appendChild(h('div', { class: 'etat' }, icone('tri', 28), h('h2', null, 'Aucun mail ce jour'), h('p', null, 'Rien n\'est arrivé le ' + fr(S.jour) + '.')));
|
||||
@@ -781,6 +788,137 @@
|
||||
});
|
||||
carte.appendChild(liste); frag.appendChild(carte); return frag;
|
||||
}
|
||||
/* ---------- À suivre : mails marqués à la main, sans limite de date ---------- */
|
||||
/* Le marqueur reste dans Courrier : la messagerie O365 n'est jamais modifiée. */
|
||||
function estSuivi(id) { return !!S.suivreSet[id]; }
|
||||
function majSuivreSet() {
|
||||
var s = {};
|
||||
S.asuivre.items.forEach(function (i) { if (i.statut === 'actif') s[i.message_id] = 1; });
|
||||
S.suivreSet = s;
|
||||
}
|
||||
function infoSuivi(m) {
|
||||
return { message_id: m.id, expediteur: m.expBrut || m.exp || '', objet: m.objet || '', date_mail: m.date || '', categorie: m.cat || '' };
|
||||
}
|
||||
function chargerASuivre(silencieux) {
|
||||
var V = S.asuivre;
|
||||
if (!silencieux) { V.etat = 'chargement'; rendre(); }
|
||||
return Promise.all([silencieux ? Promise.resolve() : chargerCats(), api('/a-suivre')]).then(function (rs) {
|
||||
V.items = rs[1].items || []; V.compte = rs[1].compte || { actif: 0, termine: 0 }; V.etat = 'ok'; majSuivreSet(); rendre();
|
||||
}).catch(function (e) { if (e.message === 'session' || silencieux) return; V.etat = 'erreur'; rendre(); });
|
||||
}
|
||||
function basculerASuivre(m) {
|
||||
var id = m.id, ajout = !estSuivi(id);
|
||||
if (ajout) S.suivreSet[id] = 1; else delete S.suivreSet[id];
|
||||
rendre();
|
||||
var req = ajout ? api('/a-suivre/marquer', { method: 'POST', body: infoSuivi(m) }) : api('/a-suivre/retirer', { method: 'POST', body: { ids: [id] } });
|
||||
return req.then(function () {
|
||||
flash(ajout ? 'Ajouté à « À suivre ».' : 'Retiré de « À suivre » : le mail reste dans « Terminés ».');
|
||||
return chargerASuivre(true);
|
||||
}).catch(function (e) {
|
||||
if (e.message === 'session') return;
|
||||
if (ajout) delete S.suivreSet[id]; else S.suivreSet[id] = 1;
|
||||
rendre(); flash('Le suivi n\'a pas pu être enregistré. Réessayez.');
|
||||
});
|
||||
}
|
||||
function retirerDuSuivi(ids, texte) {
|
||||
var V = S.asuivre;
|
||||
return api('/a-suivre/retirer', { method: 'POST', body: { ids: ids } }).then(function (r) {
|
||||
var faits = r.ids || [];
|
||||
clearTimeout(V.annulerT);
|
||||
V.annuler = faits.length ? { ids: faits, texte: texte } : null;
|
||||
if (V.annuler) V.annulerT = setTimeout(function () { V.annuler = null; rendre(); }, 30000);
|
||||
annoncer(texte);
|
||||
return chargerASuivre(true);
|
||||
}).catch(function (e) { if (e.message !== 'session') flash('Le retrait n\'a pas pu être enregistré. Réessayez.'); });
|
||||
}
|
||||
function remettreAuSuivi(ids, texte) {
|
||||
return api('/a-suivre/remettre', { method: 'POST', body: { ids: ids } }).then(function () {
|
||||
if (texte) flash(texte);
|
||||
return chargerASuivre(true);
|
||||
}).catch(function (e) { if (e.message !== 'session') flash('L\'opération n\'a pas pu être enregistrée. Réessayez.'); });
|
||||
}
|
||||
function annulerRetrait() {
|
||||
var V = S.asuivre, a = V.annuler;
|
||||
if (!a) return;
|
||||
clearTimeout(V.annulerT); V.annuler = null;
|
||||
remettreAuSuivi(a.ids, 'Retrait annulé.');
|
||||
}
|
||||
function boutonSuivre(m) {
|
||||
var on = estSuivi(m.id);
|
||||
return h('button', { type: 'button', class: 'btn-icone btn-suivre', 'aria-pressed': on ? 'true' : 'false', 'aria-label': 'À suivre : ' + m.exp + ', ' + (m.objet || 'sans objet'),
|
||||
title: on ? 'Retirer de « À suivre »' : 'Ajouter à « À suivre »', onclick: function () { basculerASuivre(m); } }, icone('asuivre'));
|
||||
}
|
||||
function boutonSuivreLecture(m) {
|
||||
var lib = h('span');
|
||||
var b = h('button', { type: 'button', class: 'btn-ligne lect-suivre' }, icone('asuivre', 18), lib);
|
||||
function etat() { var on = estSuivi(m.id); b.setAttribute('aria-pressed', on ? 'true' : 'false'); lib.textContent = on ? 'Retirer de « À suivre »' : 'Ajouter à « À suivre »'; }
|
||||
b.addEventListener('click', function () { var p = basculerASuivre(m); etat(); p.then(etat); });
|
||||
etat();
|
||||
return b;
|
||||
}
|
||||
function boutonSuivreRecherche(x) {
|
||||
var m = { id: x.message_id, exp: nomExp(x.expediteur), expBrut: x.expediteur, objet: x.objet, date: x.date, cat: '' };
|
||||
var on = estSuivi(m.id);
|
||||
return h('button', { type: 'button', class: 'btn-petit btn-suivre-txt', 'aria-pressed': on ? 'true' : 'false', 'aria-label': 'À suivre : ' + (x.objet || 'sans objet'),
|
||||
onclick: function () { basculerASuivre(m); } }, on ? 'Suivi' : 'À suivre');
|
||||
}
|
||||
function vueASuivre() {
|
||||
var V = S.asuivre, frag = document.createDocumentFragment();
|
||||
frag.appendChild(h('header', { class: 'entete' }, h('div', null, h('h1', null, 'À suivre'), h('div', { class: 'maj' }, 'Les mails que vous avez marqués, sans limite de date'))));
|
||||
if (S.notif) frag.appendChild(h('div', { class: 'notif', role: 'status', text: S.notif }));
|
||||
if (V.etat === 'erreur') {
|
||||
frag.appendChild(h('div', { class: 'erreur', role: 'alert' }, h('h2', null, 'Lecture de la liste impossible'), h('p', null, 'La liste « À suivre » n\'a pas pu être chargée.'), h('button', { type: 'button', class: 'btn-plein', onclick: function () { chargerASuivre(); } }, 'Réessayer')));
|
||||
return frag;
|
||||
}
|
||||
if (V.etat === 'chargement') { frag.appendChild(h('section', { class: 'carte squelette', 'aria-busy': 'true' }, h('div', { class: 'sq-statut', role: 'status', text: 'Chargement de votre liste…' }))); return frag; }
|
||||
if (V.annuler) frag.appendChild(h('div', { class: 'bandeau', role: 'status' }, h('div', { class: 'txt', text: V.annuler.texte }), h('div', { class: 'acts' }, h('button', { type: 'button', class: 'btn-ligne', onclick: annulerRetrait }, 'Annuler'))));
|
||||
var pc = h('div', { class: 'puces', role: 'group', 'aria-label': 'Afficher' });
|
||||
[['actif', 'À suivre'], ['termine', 'Terminés']].forEach(function (o) {
|
||||
pc.appendChild(h('button', { type: 'button', class: 'puce', 'aria-pressed': V.filtre === o[0] ? 'true' : 'false', onclick: function () { V.filtre = o[0]; rendre(); } }, h('span', { text: o[1] }), h('span', { class: 'n', text: d2(V.compte[o[0]] || 0) })));
|
||||
});
|
||||
frag.appendChild(h('section', { class: 'carte repartition', 'aria-label': 'Filtre de la liste' }, h('h2', null, 'Afficher'), pc));
|
||||
var actif = V.filtre === 'actif';
|
||||
var vis = V.items.filter(function (i) { return i.statut === V.filtre; });
|
||||
if (!vis.length) {
|
||||
frag.appendChild(h('section', { class: 'carte' }, h('div', { class: 'etat' }, icone('asuivre', 28),
|
||||
h('h2', { text: actif ? 'Rien à suivre pour le moment' : 'Aucun mail terminé' }),
|
||||
h('p', { text: actif ? 'Utilisez le marque-page d\'une ligne, ou le bouton dans un mail ouvert : le mail restera ici quelle que soit sa date.' : 'Les mails retirés de la liste apparaissent ici ; vous pouvez les remettre à tout moment.' }))));
|
||||
return frag;
|
||||
}
|
||||
var par = {}, ordre = [], rang = {};
|
||||
S.cats.forEach(function (c, i) { rang[c.nom] = i; });
|
||||
vis.forEach(function (i) { var c = i.categorie || SYSTEME; if (!par[c]) { par[c] = []; ordre.push(c); } par[c].push(i); });
|
||||
ordre.sort(function (a, b) { return (a === SYSTEME) - (b === SYSTEME) || par[b].length - par[a].length || (rang[a] === undefined ? 99 : rang[a]) - (rang[b] === undefined ? 99 : rang[b]); });
|
||||
ordre.forEach(function (cat) {
|
||||
var liste = par[cat], k = couleur(cat);
|
||||
var ids = liste.map(function (i) { return i.message_id; });
|
||||
var nb = liste.length + (liste.length > 1 ? ' mails' : ' mail');
|
||||
var txtTout = actif ? 'Tout retirer' : 'Tout remettre';
|
||||
var entete = h('div', { class: 'groupe-tete' }, pastille(k), h('h2', { text: cat }), h('span', { class: 'nb', text: nb }),
|
||||
h('button', { type: 'button', class: 'btn-ligne', 'aria-label': txtTout + ' : ' + cat + ', ' + nb, onclick: function () {
|
||||
if (actif) retirerDuSuivi(ids, liste.length + (liste.length > 1 ? ' mails retirés' : ' mail retiré') + ' de « ' + cat + ' ».');
|
||||
else remettreAuSuivi(ids, liste.length + (liste.length > 1 ? ' mails remis' : ' mail remis') + ' dans « À suivre ».');
|
||||
} }, txtTout));
|
||||
var corps = h('div', { role: 'list' });
|
||||
liste.forEach(function (it) {
|
||||
var exp = nomExp(it.expediteur), objet = it.objet || '(sans objet)';
|
||||
var quand = it.date_mail ? fr(String(it.date_mail).slice(0, 10)) + ' · ' + heureTunis(it.date_mail) : '';
|
||||
var vieux = actif && it.jours >= 7;
|
||||
var badges = h('div', { class: 'course-badges' }, h('span', { class: 'etq' + (vieux ? ' relance' : ''), text: actif ? 'Marqué ' + dureeLisible(it.jours) : 'Terminé' }));
|
||||
var mm = { id: it.message_id, exp: exp, expBrut: it.expediteur || exp, objet: it.objet || '', date: it.date_mail || '', cat: it.categorie, etiquettes: [] };
|
||||
corps.appendChild(h('div', { class: 'course', role: 'listitem' },
|
||||
h('div', { class: 'course-corps' }, h('div', { class: 'dem', text: objet }), h('div', { class: 'meta', text: [exp, quand].filter(Boolean).join(' · ') }), badges),
|
||||
h('div', { class: 'course-actions' },
|
||||
h('button', { type: 'button', class: 'btn-petit', 'aria-label': 'Lire le mail : ' + objet, onclick: function () { lireMail(mm); } }, 'Lire le mail'),
|
||||
actif
|
||||
? h('button', { type: 'button', class: 'btn-petit', 'aria-label': 'Retirer de la liste : ' + objet, onclick: function () { retirerDuSuivi([it.message_id], 'Mail retiré : ' + objet); } }, 'Retirer')
|
||||
: h('button', { type: 'button', class: 'btn-petit', 'aria-label': 'Remettre dans la liste : ' + objet, onclick: function () { remettreAuSuivi([it.message_id], 'Remis dans « À suivre ».'); } }, 'Remettre'))));
|
||||
});
|
||||
var carte = h('section', { class: 'carte groupe-suivi t' + k, 'aria-label': cat });
|
||||
carte.appendChild(entete); carte.appendChild(corps); frag.appendChild(carte);
|
||||
});
|
||||
return frag;
|
||||
}
|
||||
/* ---------- Recherche ---------- */
|
||||
var PERIODES = [['tout', 'Tout le courrier'], ['30', '30 jours'], ['90', '90 jours'], ['annee', 'Cette année']];
|
||||
function lancerRecherche() {
|
||||
@@ -829,7 +967,7 @@
|
||||
var meta = [nomExp(x.expediteur), x.dossier].filter(Boolean).join(' · ');
|
||||
liste.appendChild(h('div', { class: 'course', role: 'listitem' },
|
||||
h('div', { class: 'course-corps' }, h('div', { class: 'dem', text: x.objet || '(sans objet)' }), h('div', { class: 'meta', text: meta + (x.pj ? ' · avec pièce jointe' : '') })),
|
||||
h('div', { class: 'course-actions' }, h('button', { type: 'button', class: 'btn-petit', 'aria-label': 'Lire le mail : ' + (x.objet || 'sans objet'), onclick: function () { lireMail({ id: x.message_id, objet: x.objet, exp: nomExp(x.expediteur), expBrut: x.expediteur, date: x.date, cat: '', etiquettes: x.etiquettes || [] }); } }, 'Lire le mail'))));
|
||||
h('div', { class: 'course-actions' }, h('button', { type: 'button', class: 'btn-petit', 'aria-label': 'Lire le mail : ' + (x.objet || 'sans objet'), onclick: function () { lireMail({ id: x.message_id, objet: x.objet, exp: nomExp(x.expediteur), expBrut: x.expediteur, date: x.date, cat: '', etiquettes: x.etiquettes || [] }); } }, 'Lire le mail'), boutonSuivreRecherche(x))));
|
||||
});
|
||||
carte.appendChild(liste); frag.appendChild(carte);
|
||||
});
|
||||
@@ -845,13 +983,14 @@
|
||||
var ancre = document.activeElement && document.activeElement.getAttribute && document.activeElement.getAttribute('aria-label');
|
||||
rendreNav();
|
||||
var p = document.getElementById('principal'); p.textContent = '';
|
||||
var v = S.vue === 'tri' ? vueTri() : S.vue === 'categories' ? vueCategories() : S.vue === 'regles' ? vueRegles() : S.vue === 'groupes' ? vueGroupes() : S.vue === 'courses' ? vueCourses() : S.vue === 'suivi' ? vueSuivi() : S.vue === 'recherche' ? vueRecherche() : vueBientot(S.vue);
|
||||
var v = S.vue === 'tri' ? vueTri() : S.vue === 'categories' ? vueCategories() : S.vue === 'regles' ? vueRegles() : S.vue === 'groupes' ? vueGroupes() : S.vue === 'courses' ? vueCourses() : S.vue === 'suivi' ? vueSuivi() : S.vue === 'asuivre' ? vueASuivre() : S.vue === 'recherche' ? vueRecherche() : vueBientot(S.vue);
|
||||
p.appendChild(v); p.scrollTop = pos;
|
||||
var titre = S.vue === 'tri' ? 'Tri du jour' : S.vue === 'categories' ? 'Catégories' : S.vue === 'regles' ? 'Règles' : S.vue === 'groupes' ? 'Groupes' : S.vue === 'courses' ? 'Courses pour Tunis' : S.vue === 'suivi' ? 'Suivi des demandes' : S.vue === 'recherche' ? 'Recherche' : BIENTOT[S.vue][0];
|
||||
var titre = S.vue === 'tri' ? 'Tri du jour' : S.vue === 'categories' ? 'Catégories' : S.vue === 'regles' ? 'Règles' : S.vue === 'groupes' ? 'Groupes' : S.vue === 'courses' ? 'Courses pour Tunis' : S.vue === 'suivi' ? 'Suivi des demandes' : S.vue === 'asuivre' ? 'À suivre' : S.vue === 'recherche' ? 'Recherche' : BIENTOT[S.vue][0];
|
||||
document.title = titre + ' · Courrier';
|
||||
if (ancre && !dialogue) { var r = p.querySelector('[aria-label="' + ancre.replace(/"/g, '\\"') + '"]'); if (r && document.activeElement === document.body) r.focus(); }
|
||||
}
|
||||
|
||||
rendre();
|
||||
chargerMails();
|
||||
chargerASuivre(true);
|
||||
})();
|
||||
Reference in new issue
Block a user