mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-16 08:33:28 +00:00
Intègre securite/front : polices servies par le site, PostHog sans adresse d'arbre, vie privée à jour
This commit is contained in:
commit
bd4f5856ad
58 files changed
+836
-128
No files matched your search
@@ -51,6 +51,8 @@ Pour ouvrir l'instance à la famille depuis Internet, placez un reverse proxy HT
|
||||
|
||||
Une instance auto-hébergée n'envoie aucune mesure d'audience : le suivi d'usage de parenthese.io ne s'active que si une clé PostHog est fournie au build, ce que cette configuration ne fait pas.
|
||||
|
||||
Les liens d'aide et de vie privée de l'application mènent à parenthese.io. Pour pointer vers vos propres pages, renseignez `VITE_HELP_URL` et `VITE_PRIVACY_URL` quand vous construisez vous-même le front (voir `frontend/.env.example`).
|
||||
|
||||
Commandes utiles :
|
||||
|
||||
```bash
|
||||
|
||||
@@ -57,6 +57,8 @@ To open the instance to your family over the Internet, put an HTTPS reverse prox
|
||||
|
||||
A self-hosted instance sends no analytics. Usage tracking on parenthese.io only turns on when a PostHog key is provided at build time, which this setup does not do.
|
||||
|
||||
The help and privacy links in the app point to parenthese.io. To use your own pages, set `VITE_HELP_URL` and `VITE_PRIVACY_URL` when you build the front end yourself (see `frontend/.env.example`).
|
||||
|
||||
Useful commands:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -3,3 +3,6 @@ VITE_API_BASE_URL=http://localhost:4000
|
||||
VITE_TREE_ID=
|
||||
VITE_POSTHOG_KEY=
|
||||
VITE_POSTHOG_HOST=https://us.i.posthog.com
|
||||
# Optional: your own help and privacy pages (default: the parenthese.io pages, in the interface language)
|
||||
VITE_HELP_URL=
|
||||
VITE_PRIVACY_URL=
|
||||
@@ -8,9 +8,6 @@
|
||||
<meta name="description" content="Parenthèse, l'application. Les arbres partagés sont privés : la vitrine publique est sur parenthese.io." />
|
||||
<!-- Arbres familiaux privés (noms, dates) : l'app ne doit pas être indexée, la vitrine est parenthese.io -->
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&family=DM+Sans:opsz,wght@9..40,400..600&display=swap" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
+2
-21
@@ -430,22 +430,6 @@ function buildContribChangesList(draft = {}) {
|
||||
return items
|
||||
}
|
||||
|
||||
// Anciennes copies locales du mot de passe (avant qu'il soit gardé par le serveur) : on les efface,
|
||||
// elles pouvaient montrer un mot de passe changé depuis un autre appareil.
|
||||
function clearLegacyInvitePasswords(treeId) {
|
||||
if (!treeId) {
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
for (const role of ['share', 'contributor', 'visitor']) {
|
||||
localStorage.removeItem(`invite_password_${treeId}_${role}`)
|
||||
}
|
||||
} catch {
|
||||
// Ignore localStorage failures
|
||||
}
|
||||
}
|
||||
|
||||
function App() {
|
||||
const auth = useAuth()
|
||||
const tree = useTreeAccess()
|
||||
@@ -1283,7 +1267,6 @@ function App() {
|
||||
|
||||
const handleOpenContributionPanel = useCallback(async () => {
|
||||
const treeId = tree.treeContext.treeId
|
||||
clearLegacyInvitePasswords(treeId)
|
||||
await resolveContributionShareUrl()
|
||||
let share = ''
|
||||
const accessToken = auth.userAuth.token || tree.treeContext.accessToken
|
||||
@@ -1873,8 +1856,8 @@ function App() {
|
||||
let resolvedTreeId = TREE_ID_FROM_ENV
|
||||
let resolvedTreeName = ''
|
||||
let resolvedTreeDescription = ''
|
||||
let resolvedTreeOwnerName = ''
|
||||
let resolvedTreeOwnerEmail = ''
|
||||
const resolvedTreeOwnerName = ''
|
||||
const resolvedTreeOwnerEmail = ''
|
||||
|
||||
// Root app:
|
||||
// - not connected => demo by default
|
||||
@@ -1895,8 +1878,6 @@ function App() {
|
||||
resolvedTreeId = treeInfo.id
|
||||
resolvedTreeName = treeInfo.name || ''
|
||||
resolvedTreeDescription = treeInfo.description || ''
|
||||
resolvedTreeOwnerName = treeInfo.ownerName || ''
|
||||
resolvedTreeOwnerEmail = treeInfo.ownerEmail || ''
|
||||
} catch (error) {
|
||||
if (!active) return
|
||||
tree.setBootState('need-access')
|
||||
|
||||
@@ -8,8 +8,6 @@ export async function resolveTreeBySlug(slug) {
|
||||
slug: data?.tree?.slug || '',
|
||||
name: data?.tree?.name || '',
|
||||
description: data?.tree?.description || null,
|
||||
ownerName: data?.tree?.ownerName || null,
|
||||
ownerEmail: data?.tree?.ownerEmail || null,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,77 @@
|
||||
/* Newsreader et DM Sans servies par l'app, sans appel à Google Fonts.
|
||||
Fichiers woff2 de Google Fonts (Newsreader v26, DM Sans v17), licence SIL OFL 1.1 (OFL-*.txt).
|
||||
Axes et découpage identiques à l'ancien lien Google Fonts : Newsreader romain 300-600,
|
||||
italique 300-500, DM Sans 400-600, opsz variable. Le sous-ensemble vietnamien reste pour
|
||||
les noms saisis par les familles, il n'est téléchargé que si un caractère le demande. */
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400 600;
|
||||
font-display: swap;
|
||||
src: url('./dm-sans-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400 600;
|
||||
font-display: swap;
|
||||
src: url('./dm-sans-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 300 500;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-italic-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 300 500;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-italic-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 300 500;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-italic-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 300 600;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-vietnamese.woff2') format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 300 600;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 300 600;
|
||||
font-display: swap;
|
||||
src: url('./newsreader-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -135,15 +135,17 @@ const MediaViewer = ({ media, person, onClose }) => {
|
||||
// Extract YouTube video ID and build embed URL
|
||||
const watchMatch = mediaUrl.match(/[?&]v=([^&]+)/)
|
||||
const shortMatch = mediaUrl.match(/youtu\.be\/([^/?]+)/)
|
||||
const videoId = (watchMatch?.[1] || shortMatch?.[1] || '').split('?')[0]
|
||||
if (!videoId) {
|
||||
const videoId = (watchMatch?.[1] || shortMatch?.[1] || '').split(/[?#]/)[0]
|
||||
// Un identifiant YouTube fait 11 caractères : tout le reste est refusé plutôt qu'intégré
|
||||
if (!/^[A-Za-z0-9_-]{11}$/.test(videoId)) {
|
||||
return (
|
||||
<div className="media-video-container">
|
||||
<div className="media-video-text">{t('Lien YouTube invalide')}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
const embedUrl = `https://www.youtube.com/embed/${videoId}`
|
||||
// youtube-nocookie : pas de cookie YouTube tant que la vidéo n'est pas lancée
|
||||
const embedUrl = `https://www.youtube-nocookie.com/embed/${videoId}`
|
||||
return (
|
||||
<div className="media-video-container media-video-container--youtube">
|
||||
<iframe
|
||||
@@ -273,7 +275,8 @@ const MediaViewer = ({ media, person, onClose }) => {
|
||||
src={openStreetMapEmbedUrl}
|
||||
title={t('Carte OpenStreetMap')}
|
||||
loading="lazy"
|
||||
referrerPolicy="no-referrer-when-downgrade"
|
||||
// Origine seulement : l'adresse complète contient celle de l'arbre
|
||||
referrerPolicy="strict-origin-when-cross-origin"
|
||||
/>
|
||||
) : (
|
||||
<svg
|
||||
|
||||
@@ -11,7 +11,9 @@ export function useImageCache(revisionKey = 0, onImageLoaded = null) {
|
||||
useEffect(() => {
|
||||
const allUrls = new Set()
|
||||
persons.forEach((p) => { if (p.photo) allUrls.add(p.photo) })
|
||||
medias.forEach((m) => { if (m.url) allUrls.add(m.url) })
|
||||
// Seules les photos sont dessinées : une vidéo YouTube chargée ici partait chez youtube.com
|
||||
// dès l'ouverture de l'arbre, sans que personne ait lancé la vidéo.
|
||||
medias.forEach((m) => { if (m.url && m.type === 'photo') allUrls.add(m.url) })
|
||||
|
||||
allUrls.forEach((url) => {
|
||||
if (imageCache.current.has(url) || pendingLoads.current.has(url)) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
import { listTrees } from '../api/treeApi'
|
||||
import * as errorMessages from '../utils/errorMessages'
|
||||
import { t } from '../i18n/index.js'
|
||||
import { clearAccountLocalData } from '../utils/localHygiene.js'
|
||||
|
||||
const USER_TOKEN_STORAGE_KEY = 'user_auth_token'
|
||||
const USER_PROFILE_STORAGE_KEY = 'user_auth_profile'
|
||||
@@ -127,7 +128,8 @@ export function useAuth() {
|
||||
// ignore logout errors and clear local session anyway
|
||||
} finally {
|
||||
localStorage.removeItem(USER_TOKEN_STORAGE_KEY)
|
||||
localStorage.removeItem(USER_PROFILE_STORAGE_KEY)
|
||||
// Brouillons, fiche « c'est moi » et profil : rien du compte ne reste pour la personne suivante
|
||||
clearAccountLocalData()
|
||||
setUserAuth({ token: '', user: null })
|
||||
setAccountTrees([])
|
||||
setLastOpenedTree(null)
|
||||
@@ -159,6 +161,7 @@ export function useAuth() {
|
||||
}
|
||||
|
||||
clearStoredUserToken()
|
||||
clearAccountLocalData()
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import faviconUrl from './assets/Parenthese logo.svg?url'
|
||||
import './assets/fonts/fonts.css'
|
||||
import './index.css'
|
||||
import App from './App.jsx'
|
||||
import ErrorBoundary from './components/ErrorBoundary.jsx'
|
||||
import BootLoader from './components/BootLoader.jsx'
|
||||
import { initAppAnalytics } from './utils/analytics.js'
|
||||
import { sweepLegacyLocalData } from './utils/localHygiene.js'
|
||||
|
||||
const setFavicon = (href) => {
|
||||
if (typeof document === 'undefined') return
|
||||
@@ -22,6 +24,7 @@ const setFavicon = (href) => {
|
||||
upsertLink(`link[rel="apple-touch-icon"]`, 'apple-touch-icon')
|
||||
}
|
||||
|
||||
sweepLegacyLocalData()
|
||||
setFavicon(faviconUrl)
|
||||
initAppAnalytics()
|
||||
|
||||
|
||||
@@ -22,6 +22,36 @@ function flushQueue() {
|
||||
}
|
||||
}
|
||||
|
||||
// L'adresse d'un arbre (/arbre/<slug>) vaut clé d'accès en lecture : elle ne quitte jamais le
|
||||
// navigateur. Toute chaîne envoyée à PostHog ($current_url, $pathname, $referrer,
|
||||
// $initial_current_url, $session_entry_url, propriétés de personne...) est réécrite en /arbre/:slug.
|
||||
const TREE_PATH_RE = /\/arbre\/[^/?#\s]+/g
|
||||
const TREE_PATH_ENCODED_RE = /%2Farbre%2F(?:(?!%2F|%3F|%23)[^&#\s])+/gi
|
||||
|
||||
export function scrubTreeSlug(value) {
|
||||
if (typeof value === 'string') {
|
||||
return value
|
||||
.replace(TREE_PATH_RE, '/arbre/:slug')
|
||||
.replace(TREE_PATH_ENCODED_RE, '%2Farbre%2F%3Aslug')
|
||||
}
|
||||
if (Array.isArray(value)) return value.map(scrubTreeSlug)
|
||||
if (value && typeof value === 'object' && !(value instanceof Date)) {
|
||||
const out = {}
|
||||
for (const [k, v] of Object.entries(value)) out[k] = scrubTreeSlug(v)
|
||||
return out
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
export function scrubAnalyticsEvent(event) {
|
||||
if (!event) return event
|
||||
const next = { ...event }
|
||||
if (next.properties) next.properties = scrubTreeSlug(next.properties)
|
||||
if (next.$set) next.$set = scrubTreeSlug(next.$set)
|
||||
if (next.$set_once) next.$set_once = scrubTreeSlug(next.$set_once)
|
||||
return next
|
||||
}
|
||||
|
||||
function normalizeRole(value) {
|
||||
return String(value || '').trim().toLowerCase()
|
||||
}
|
||||
@@ -43,6 +73,11 @@ export function initAppAnalytics() {
|
||||
person_profiles: 'identified_only',
|
||||
autocapture: false,
|
||||
capture_pageview: false,
|
||||
disable_session_recording: true,
|
||||
// Aucun feature flag dans le code. Sans ça, /flags recevrait les propriétés de personne
|
||||
// ($initial_current_url...), que before_send ne voit pas.
|
||||
advanced_disable_flags: true,
|
||||
before_send: scrubAnalyticsEvent,
|
||||
})
|
||||
ph = posthog
|
||||
flushQueue()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { toInteractionMediaType, toJourneyRole, toOpaqueTreeId } from './analytics'
|
||||
import { scrubAnalyticsEvent, scrubTreeSlug, toInteractionMediaType, toJourneyRole, toOpaqueTreeId } from './analytics'
|
||||
|
||||
describe('analytics helpers', () => {
|
||||
it('maps journey roles for shared visitors', () => {
|
||||
@@ -20,4 +20,22 @@ describe('analytics helpers', () => {
|
||||
expect(toOpaqueTreeId('tree-123')).toBe(toOpaqueTreeId('tree-123'))
|
||||
expect(toOpaqueTreeId('tree-123')).not.toBe(toOpaqueTreeId('tree-456'))
|
||||
})
|
||||
|
||||
it('never lets a tree slug leave the browser', () => {
|
||||
expect(scrubTreeSlug('https://app.parenthese.io/arbre/dupont-x7Kq?ref=1#p')).toBe('https://app.parenthese.io/arbre/:slug?ref=1#p')
|
||||
expect(scrubTreeSlug('/arbre/dupont-x7Kq')).toBe('/arbre/:slug')
|
||||
expect(scrubTreeSlug('https://x.io/?return_url=https%3A%2F%2Fapp.parenthese.io%2Farbre%2Fdupont%2Dx7Kq&a=1'))
|
||||
.toBe('https://x.io/?return_url=https%3A%2F%2Fapp.parenthese.io%2Farbre%2F%3Aslug&a=1')
|
||||
expect(scrubTreeSlug('/aide/')).toBe('/aide/')
|
||||
|
||||
const event = scrubAnalyticsEvent({
|
||||
event: 'tree_viewed',
|
||||
properties: { $current_url: 'https://app.parenthese.io/arbre/abc', $pathname: '/arbre/abc', $referrer: 'https://app.parenthese.io/arbre/abc/', n: 3 },
|
||||
$set_once: { $initial_current_url: 'https://app.parenthese.io/arbre/abc', $initial_pathname: '/arbre/abc' },
|
||||
})
|
||||
expect(JSON.stringify(event)).not.toContain('abc')
|
||||
expect(event.properties.$pathname).toBe('/arbre/:slug')
|
||||
expect(event.properties.n).toBe(3)
|
||||
expect(scrubAnalyticsEvent(null)).toBeNull()
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,45 @@
|
||||
// Ménage du stockage local de l'appareil.
|
||||
//
|
||||
// Ce qui reste volontairement : le prénom de la personne qui contribue, la langue choisie, les
|
||||
// accueils déjà vus, les accès aux arbres partagés.
|
||||
|
||||
// Le mot de passe de partage était autrefois recopié ici (invite_password_<arbre>_<rôle>).
|
||||
// Il est gardé par le serveur désormais : toute copie restante est effacée au démarrage.
|
||||
const LEGACY_PREFIXES = ['invite_password_']
|
||||
|
||||
// Ce qui appartient au compte connecté et ne doit pas rester pour la personne suivante sur
|
||||
// l'appareil : brouillons d'édition, fiche « c'est moi » par arbre, profil du compte.
|
||||
const ACCOUNT_PREFIXES = ['edit-draft-', 'account_self_person_']
|
||||
const ACCOUNT_KEYS = ['user_auth_profile']
|
||||
|
||||
function defaultStorage() {
|
||||
try {
|
||||
return globalThis.localStorage || null
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
function removeMatchingKeys(storage, prefixes, exactKeys = []) {
|
||||
if (!storage) return
|
||||
try {
|
||||
const doomed = []
|
||||
for (let i = 0; i < storage.length; i += 1) {
|
||||
const key = storage.key(i)
|
||||
if (key && (exactKeys.includes(key) || prefixes.some((prefix) => key.startsWith(prefix)))) {
|
||||
doomed.push(key)
|
||||
}
|
||||
}
|
||||
doomed.forEach((key) => storage.removeItem(key))
|
||||
} catch {
|
||||
// Stockage indisponible (navigation privée, quota) : rien à nettoyer
|
||||
}
|
||||
}
|
||||
|
||||
export function sweepLegacyLocalData(storage = defaultStorage()) {
|
||||
removeMatchingKeys(storage, LEGACY_PREFIXES)
|
||||
}
|
||||
|
||||
export function clearAccountLocalData(storage = defaultStorage()) {
|
||||
removeMatchingKeys(storage, ACCOUNT_PREFIXES, ACCOUNT_KEYS)
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { clearAccountLocalData, sweepLegacyLocalData } from './localHygiene'
|
||||
|
||||
function memoryStorage(initial) {
|
||||
const map = new Map(Object.entries(initial))
|
||||
return {
|
||||
get length() { return map.size },
|
||||
key: (i) => [...map.keys()][i] ?? null,
|
||||
getItem: (k) => (map.has(k) ? map.get(k) : null),
|
||||
setItem: (k, v) => map.set(k, String(v)),
|
||||
removeItem: (k) => map.delete(k),
|
||||
keys: () => [...map.keys()].sort(),
|
||||
}
|
||||
}
|
||||
|
||||
const KEPT = {
|
||||
parenthese_contributor_name: 'Camille',
|
||||
'pz-locale': 'en',
|
||||
family_welcome_seen_t1: '1',
|
||||
tree_access_token_t1: 'share-token',
|
||||
user_auth_token: 'tok',
|
||||
}
|
||||
|
||||
describe('local storage hygiene', () => {
|
||||
it('removes every legacy share password copy and nothing else', () => {
|
||||
const storage = memoryStorage({
|
||||
...KEPT,
|
||||
invite_password_t1_share: 'secret',
|
||||
invite_password_t2_contributor: 'secret',
|
||||
invite_password_t3_visitor: 'secret',
|
||||
'edit-draft-t1': '{}',
|
||||
})
|
||||
sweepLegacyLocalData(storage)
|
||||
expect(storage.keys()).toEqual([...Object.keys(KEPT), 'edit-draft-t1'].sort())
|
||||
})
|
||||
|
||||
it('clears account data on logout but keeps device preferences', () => {
|
||||
const storage = memoryStorage({
|
||||
...KEPT,
|
||||
'edit-draft-t1': '{}',
|
||||
'edit-draft-t2': '{}',
|
||||
'account_self_person_a@b.fr_t1': 'p1',
|
||||
user_auth_profile: '{"email":"a@b.fr"}',
|
||||
})
|
||||
clearAccountLocalData(storage)
|
||||
expect(storage.keys()).toEqual(Object.keys(KEPT).sort())
|
||||
})
|
||||
|
||||
it('survives a missing or broken storage', () => {
|
||||
expect(() => sweepLegacyLocalData(null)).not.toThrow()
|
||||
const broken = { get length() { throw new Error('denied') } }
|
||||
expect(() => clearAccountLocalData(broken)).not.toThrow()
|
||||
})
|
||||
})
|
||||
@@ -1,6 +1,12 @@
|
||||
// Pages du site vitrine liées depuis l'app, dans la langue de l'interface.
|
||||
// Une instance auto-hébergée peut pointer vers ses propres pages : VITE_HELP_URL et
|
||||
// VITE_PRIVACY_URL (au build) remplacent alors les liens vers parenthese.io, pour toutes les langues.
|
||||
import { locale } from '../i18n/index.js'
|
||||
|
||||
export const HELP_URL = locale === 'en' ? 'https://parenthese.io/en/help/' : 'https://parenthese.io/aide/'
|
||||
const env = import.meta.env || {}
|
||||
|
||||
export const PRIVACY_URL = locale === 'en' ? 'https://parenthese.io/en/privacy/' : 'https://parenthese.io/donnees-et-vie-privee/'
|
||||
export const HELP_URL = env.VITE_HELP_URL
|
||||
|| (locale === 'en' ? 'https://parenthese.io/en/help/' : 'https://parenthese.io/aide/')
|
||||
|
||||
export const PRIVACY_URL = env.VITE_PRIVACY_URL
|
||||
|| (locale === 'en' ? 'https://parenthese.io/en/privacy/' : 'https://parenthese.io/donnees-et-vie-privee/')
|
||||
+1
-4
@@ -35,10 +35,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
|
||||
<!-- Google Fonts : Newsreader et DM Sans (DA terracotta) -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<style>
|
||||
/* Grille des modèles, propre à cette page. Tokens de guides.css, avec valeurs de repli. */
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
@@ -31,7 +29,7 @@
|
||||
"name": "Données et vie privée",
|
||||
"url": "https://parenthese.io/donnees-et-vie-privee/",
|
||||
"inLanguage": "fr-FR",
|
||||
"dateModified": "2026-09-14",
|
||||
"dateModified": "2026-09-30",
|
||||
"description": "Ce que Parenthèse enregistre, qui peut le voir, où c'est hébergé, et comment exporter ou supprimer vos données.",
|
||||
"isPartOf": { "@type": "WebSite", "name": "Parenthèse", "url": "https://parenthese.io/" },
|
||||
"publisher": { "@type": "Person", "name": "Ilies Allali", "email": "pro.allali.ilies@gmail.com" }
|
||||
@@ -68,7 +66,7 @@
|
||||
<p><strong>Les journaux techniques.</strong> Comme tout serveur web, celui de Parenthèse enregistre les requêtes reçues (adresse IP, page demandée, erreurs) pour faire fonctionner et dépanner le service.</p>
|
||||
|
||||
<h2>Pourquoi</h2>
|
||||
<p>Pour faire fonctionner l'arbre, et rien d'autre. Pas de profilage, pas de publicité, pas de revente, pas de transmission à des tiers en dehors des deux prestataires techniques nommés sur cette page. Consulter un arbre partagé ne demande pas de compte, le lien et un mot de passe suffisent.</p>
|
||||
<p>Pour faire fonctionner l'arbre, et rien d'autre. Pas de profilage, pas de publicité, pas de revente, pas de transmission à des tiers en dehors des prestataires techniques nommés sur cette page. Consulter un arbre partagé ne demande pas de compte, le lien et un mot de passe suffisent.</p>
|
||||
|
||||
<h2>Qui peut voir quoi</h2>
|
||||
<p>Un arbre n'est jamais public. L'application interdit son indexation par les moteurs de recherche, et rien de son contenu n'est visible sans le lien et un mot de passe.</p>
|
||||
@@ -77,6 +75,7 @@
|
||||
<li><strong>Un contributeur</strong> a reçu le lien et le mot de passe contributeur. Il consulte tout et propose des modifications. Par défaut, elles attendent la validation du propriétaire avant d'apparaître.</li>
|
||||
<li><strong>Un visiteur</strong> a reçu le lien et le mot de passe visiteur. Il consulte, sans rien modifier.</li>
|
||||
</ul>
|
||||
<p>Toute personne qui a le lien et un mot de passe voit l'arbre entier, y compris les personnes vivantes avec leurs dates, leurs lieux et leurs notes, et peut l'exporter en fichier GEDCOM.</p>
|
||||
<div class="note">
|
||||
<p><strong>Une précision.</strong> Avant même de saisir le mot de passe, la personne qui ouvre le lien voit le nom de l'arbre et sa description, rien d'autre, et rien sur le propriétaire. Ne mettez donc pas dans la description ce que vous ne voulez pas montrer à qui a le lien.</p>
|
||||
</div>
|
||||
@@ -87,17 +86,21 @@
|
||||
<p>Des sauvegardes de la base et des médias sont conservées 14 jours, puis supprimées. Une donnée effacée dans l'application peut donc encore exister dans une sauvegarde pendant deux semaines.</p>
|
||||
<p>Vos données sont conservées tant que votre compte existe.</p>
|
||||
|
||||
<h2>Ce qui vient d'ailleurs</h2>
|
||||
<p>Les polices du site et de l'application sont servies par Parenthèse, sans appel à Google.</p>
|
||||
<p>Deux services extérieurs ne sont contactés que si l'on ouvre le contenu qui les utilise. Une vidéo YouTube ajoutée à un arbre se charge depuis youtube-nocookie.com, au moment où on l'ouvre. Une carte qui montre un seul lieu s'affiche sur un fond OpenStreetMap, au moment où on l'ouvre (les tracés, eux, sont dessinés par Parenthèse). YouTube ou OpenStreetMap reçoivent alors l'adresse IP de la personne qui regarde, jamais l'adresse de l'arbre.</p>
|
||||
|
||||
<h2>Mesure d'audience</h2>
|
||||
<p>Parenthèse utilise PostHog pour compter les visites et voir ce qui est utilisé. PostHog est hébergé aux États-Unis, les données d'usage décrites ici y sont envoyées.</p>
|
||||
<p>Ce qui est mesuré, et rien de plus. Sur le site, la visite d'une page, le défilement, les clics sur les boutons « Créer mon arbre », avec la provenance (page précédente, mobile ou ordinateur). Dans l'application, l'ouverture de l'écran de compte, la création d'un compte ou d'un arbre, et pour les arbres partagés, l'ouverture, le temps passé et le type de contenu consulté (texte, photo, vidéo), avec le rôle, visiteur ou contributeur. L'arbre y est désigné par un code brouillé, jamais par son nom.</p>
|
||||
<p>Il n'y a pas de capture automatique des clics ni des pages. Aucun contenu d'arbre (nom, personne, photo) n'est envoyé. Quand vous êtes connecté à votre compte, un identifiant technique du compte (jamais votre adresse email) relie vos visites entre elles. Un cookie est posé sur parenthese.io et ses sous-domaines pour reconnaître la même visite entre le site et l'application.</p>
|
||||
<p>Il n'y a pas de capture automatique des clics ni des pages, et pas d'enregistrement des sessions. Aucun contenu d'arbre (nom, personne, photo) n'est envoyé, ni l'adresse de l'arbre, retirée des liens avant tout envoi. Quand vous êtes connecté à votre compte, un identifiant technique du compte (jamais votre adresse email) relie vos visites entre elles. Un cookie est posé sur parenthese.io et ses sous-domaines pour reconnaître la même visite entre le site et l'application.</p>
|
||||
|
||||
<h2>Vos droits</h2>
|
||||
<ul>
|
||||
<li><strong>Consulter.</strong> Tout ce que Parenthèse sait de votre arbre est dans l'application.</li>
|
||||
<li><strong>Exporter.</strong> Paramètres de l'arbre, section Données, bouton « Télécharger .ged ». Le fichier GEDCOM est un standard que lisent les autres logiciels d'arbre généalogique. Il contient les personnes et leurs liens, pas les fichiers médias.</li>
|
||||
<li><strong>Supprimer un arbre.</strong> Paramètres de l'arbre, Paramètres avancés, « Supprimer cet arbre ». L'arbre disparaît aussitôt pour tout le monde, propriétaire compris. Il est effacé définitivement, personnes, liens, médias, contributions et journal, en base comme sur le disque. Seules les sauvegardes le gardent encore, 14 jours au plus.</li>
|
||||
<li><strong>Supprimer votre compte.</strong> Écran « Votre compte », bouton « Supprimer mon compte », puis votre mot de passe pour confirmer. Votre compte et les arbres que vous avez créés sont effacés définitivement, avec leurs médias. Les arbres des autres familles auxquels vous aviez accès restent à leurs propriétaires. Vos contributions y sont conservées, mais votre adresse email en est retirée et remplacée par « Contributeur ». Toutes vos sessions sont fermées, sur tous vos appareils.</li>
|
||||
<li><strong>Supprimer votre compte.</strong> Écran « Votre compte », bouton « Supprimer mon compte », puis votre mot de passe pour confirmer. Votre compte et les arbres que vous avez créés sont effacés définitivement, avec leurs médias. Les arbres des autres familles auxquels vous aviez accès restent à leurs propriétaires. Vos contributions y sont conservées, anonymisées, sans votre nom ni votre adresse email. Toutes vos sessions sont fermées, sur tous vos appareils.</li>
|
||||
<li><strong>Liste d'attente.</strong> Elle est fermée. Si vous vous étiez inscrit avant l'ouverture, votre email, votre prénom et la page d'origine sont encore conservés en base et chez Resend, le prestataire qui a envoyé la confirmation. Un email suffit pour les retirer.</li>
|
||||
<li><strong>Réclamation.</strong> Si vous estimez que vos droits ne sont pas respectés, vous pouvez saisir la <a href="https://www.cnil.fr/" rel="noopener">CNIL</a>.</li>
|
||||
</ul>
|
||||
@@ -106,7 +109,7 @@
|
||||
<p>Le code de Parenthèse est ouvert, sous licence PolyForm Noncommercial 1.0.0. Une famille qui préfère ne rien confier à personne peut installer Parenthèse sur son propre serveur. Elle a alors tout, base, fichiers et sauvegardes, sans passer par moi. Le code et la marche à suivre sont sur <a href="https://github.com/IliesAllali/parenthese">github.com/IliesAllali/parenthese</a>.</p>
|
||||
|
||||
<h2>Mise à jour</h2>
|
||||
<p>14 septembre 2026. Cette page change quand le code change.</p>
|
||||
<p>30 septembre 2026. Cette page change quand le code change.</p>
|
||||
|
||||
<section class="cta">
|
||||
<h2>Un arbre que la famille consulte par un lien</h2>
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<style>
|
||||
/* Template grid, specific to this page. Tokens from guides.css, with fallback values. */
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
@@ -31,7 +29,7 @@
|
||||
"name": "Data and privacy",
|
||||
"url": "https://parenthese.io/en/privacy/",
|
||||
"inLanguage": "en-US",
|
||||
"dateModified": "2026-09-14",
|
||||
"dateModified": "2026-09-30",
|
||||
"description": "What Parenthèse stores, who can see it, where it is hosted, and how to export or delete your data.",
|
||||
"isPartOf": { "@type": "WebSite", "name": "Parenthèse", "url": "https://parenthese.io/en/" },
|
||||
"publisher": { "@type": "Person", "name": "Ilies Allali", "email": "pro.allali.ilies@gmail.com" }
|
||||
@@ -68,7 +66,7 @@
|
||||
<p><strong>Technical logs.</strong> Like any web server, the Parenthèse server records the requests it receives (IP address, page requested, errors) to run and troubleshoot the service.</p>
|
||||
|
||||
<h2>Why</h2>
|
||||
<p>To make the tree work, and nothing else. No profiling, no advertising, no reselling, no sharing with third parties other than the two technical service providers named on this page. Viewing a shared tree does not require an account, the link and a password are enough.</p>
|
||||
<p>To make the tree work, and nothing else. No profiling, no advertising, no reselling, no sharing with third parties other than the technical service providers named on this page. Viewing a shared tree does not require an account, the link and a password are enough.</p>
|
||||
|
||||
<h2>Who can see what</h2>
|
||||
<p>A tree is never public. The app blocks search engines from indexing it, and none of its content is visible without the link and a password.</p>
|
||||
@@ -77,6 +75,7 @@
|
||||
<li><strong>A contributor</strong> has received the link and the contributor password. They can view everything and suggest changes. By default, those changes wait for the owner's approval before they appear.</li>
|
||||
<li><strong>A visitor</strong> has received the link and the visitor password. They can view, without changing anything.</li>
|
||||
</ul>
|
||||
<p>Anyone who has the link and a password sees the whole tree, including living people with their dates, places and notes, and can export it as a GEDCOM file.</p>
|
||||
<div class="note">
|
||||
<p><strong>One detail.</strong> Even before typing the password, the person who opens the link sees the tree's name and its description, nothing else, and nothing about the owner. So don't put anything in the description that you don't want to show to whoever has the link.</p>
|
||||
</div>
|
||||
@@ -87,17 +86,21 @@
|
||||
<p>Backups of the database and the media are kept for 14 days, then deleted. Data you erase in the app can therefore still exist in a backup for two weeks.</p>
|
||||
<p>Your data is kept for as long as your account exists.</p>
|
||||
|
||||
<h2>What comes from elsewhere</h2>
|
||||
<p>The fonts of the site and the app are served by Parenthèse, with no call to Google.</p>
|
||||
<p>Two outside services are only contacted when someone opens the content that uses them. A YouTube video added to a tree loads from youtube-nocookie.com, when it is opened. A map that shows a single place is displayed over an OpenStreetMap background, when it is opened (tracks are drawn by Parenthèse itself). YouTube or OpenStreetMap then receive the IP address of the person watching, never the address of the tree.</p>
|
||||
|
||||
<h2>Audience measurement</h2>
|
||||
<p>Parenthèse uses PostHog to count visits and see what gets used. PostHog is hosted in the United States, and the usage data described here is sent there.</p>
|
||||
<p>Here is what is measured, and nothing more. On the website, page views, scrolling, clicks on the “Start your tree” buttons, with where they came from (previous page, mobile or computer). In the app, opening the account screen, creating an account or a tree, and for shared trees, opening them, the time spent and the type of content viewed (text, photo, video), with the role, visitor or contributor. The tree is identified there by a scrambled code, never by its name.</p>
|
||||
<p>There is no automatic capture of clicks or pages. No tree content (name, person, photo) is sent. When you are logged in to your account, a technical account identifier (never your email address) links your visits together. A cookie is set on parenthese.io and its subdomains to recognize the same visit across the site and the app.</p>
|
||||
<p>There is no automatic capture of clicks or pages, and no session recording. No tree content (name, person, photo) is sent, and neither is the address of the tree, which is removed from links before anything is sent. When you are logged in to your account, a technical account identifier (never your email address) links your visits together. A cookie is set on parenthese.io and its subdomains to recognize the same visit across the site and the app.</p>
|
||||
|
||||
<h2>Your rights</h2>
|
||||
<ul>
|
||||
<li><strong>View.</strong> Everything Parenthèse knows about your tree is in the app.</li>
|
||||
<li><strong>Export.</strong> Tree settings, Data section, “Download .ged” button. GEDCOM is a standard file format that other family tree software can read. It contains the people and their links, not the media files.</li>
|
||||
<li><strong>Delete a tree.</strong> Tree settings, Advanced tab, “Delete this tree”. The tree disappears right away for everyone, the owner included. It is permanently erased (people, links, media, contributions and log) from the database as well as from the disk. Only the backups still hold it, for 14 days at most.</li>
|
||||
<li><strong>Delete your account.</strong> “My account” screen, “Delete my account” button, then your password to confirm. Your account and the trees you created are permanently erased, along with their media. Other families' trees that you had access to stay with their owners. Your contributions to them are kept, but your email address is removed from them and replaced with “Contributor”. All your sessions are closed, on all your devices.</li>
|
||||
<li><strong>Delete your account.</strong> “My account” screen, “Delete my account” button, then your password to confirm. Your account and the trees you created are permanently erased, along with their media. Other families' trees that you had access to stay with their owners. Your contributions to them are kept, anonymized, without your name or your email address. All your sessions are closed, on all your devices.</li>
|
||||
<li><strong>Waiting list.</strong> It is closed. If you signed up before the launch, your email, your first name and the page you signed up from are still stored in the database and at Resend, the service provider that sent the confirmation. Just send an email to have them removed.</li>
|
||||
<li><strong>Complaints.</strong> If you believe your rights are not being respected, you can file a complaint with the <a href="https://www.cnil.fr/" rel="noopener">CNIL</a>, France's data protection authority.</li>
|
||||
</ul>
|
||||
@@ -106,7 +109,7 @@
|
||||
<p>The code of Parenthèse is public, under the PolyForm Noncommercial 1.0.0 license. A family that would rather not entrust anything to anyone can install Parenthèse on its own server. It then has everything (database, files and backups) without going through me. The code and the instructions are on <a href="https://github.com/IliesAllali/parenthese">github.com/IliesAllali/parenthese</a>.</p>
|
||||
|
||||
<h2>Last updated</h2>
|
||||
<p>September 14, 2026. This page changes when the code changes.</p>
|
||||
<p>September 30, 2026. This page changes when the code changes.</p>
|
||||
|
||||
<section class="cta">
|
||||
<h2>A tree your family views through a link</h2>
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,93 @@
|
||||
Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,112 @@
|
||||
/* Newsreader et DM Sans servies par parenthese.io, sans appel à Google Fonts.
|
||||
Fichiers woff2 de Google Fonts (Newsreader v26, DM Sans v17), licence SIL OFL 1.1 (OFL-*.txt).
|
||||
Mêmes graisses que l'ancien lien Google Fonts : Newsreader 300, 400, italique 300,
|
||||
DM Sans 400, 500, 600, opsz variable. Sous-ensembles latin et latin étendu. */
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'DM Sans';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('/fonts/dm-sans-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-italic-300-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-italic-300-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
|
||||
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Newsreader';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('/fonts/newsreader-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
# Photos du site (illustration du hero, « Pour qui », étapes)
|
||||
|
||||
Les prénoms affichés sur le site (Camille, Alex, Lya...) sont fictifs. Les photos sont des photos réelles de banques d'images.
|
||||
|
||||
| Fichier | Provenance | Licence |
|
||||
|---|---|---|
|
||||
| `souvenir-1472162072942.webp` | Unsplash, `https://images.unsplash.com/photo-1472162072942-cd5147eb3902` | Licence Unsplash |
|
||||
| `souvenir-1503919545889.webp` | Unsplash, `https://images.unsplash.com/photo-1503919545889-aef636e10ad4` | Licence Unsplash |
|
||||
| `souvenir-1511895426328.webp` | Unsplash, `https://images.unsplash.com/photo-1511895426328-dc8714191300` | Licence Unsplash |
|
||||
| `souvenir-1519741497674.webp` | Unsplash, `https://images.unsplash.com/photo-1519741497674-611481863552` | Licence Unsplash |
|
||||
| `lya-14.webp`, `marc-56.webp`, `jeanne-85.webp` | Pexels (page source non consignée à l'ajout, le 24/09/2026) | Licence Pexels |
|
||||
| `women-44.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/44.jpg` | Non établie, voir plus bas |
|
||||
| `men-32.webp` | randomuser.me, `https://randomuser.me/api/portraits/men/32.jpg` | Non établie, voir plus bas |
|
||||
| `women-65.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/65.jpg` (plus utilisée par le site) | Non établie, voir plus bas |
|
||||
|
||||
Les URL Unsplash ci-dessus viennent de la première version de la landing (commit fd58488), qui chargeait ces images en direct. Les auteurs ne sont pas notés.
|
||||
|
||||
## Portraits randomuser.me
|
||||
|
||||
randomuser.me indique seulement que ses photos ont été « choisies dans la section autorisée de UI Faces ». UI Faces a depuis retiré ces photos agrégées et précise qu'elles venaient de sources aux licences différentes, à vérifier avant tout usage public. Aucune licence ne couvre donc clairement leur usage sur un site public. À remplacer par des portraits dont la licence est connue (Pexels, Unsplash), avec la page source notée ici.
|
||||
@@ -20,9 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/guides.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://parenthese.io/donnees-et-vie-privee/</loc>
|
||||
<lastmod>2026-09-14</lastmod>
|
||||
<lastmod>2026-09-30</lastmod>
|
||||
<changefreq>yearly</changefreq>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
@@ -98,7 +98,7 @@
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://parenthese.io/en/privacy/</loc>
|
||||
<lastmod>2026-09-29</lastmod>
|
||||
<lastmod>2026-09-30</lastmod>
|
||||
<changefreq>yearly</changefreq>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
|
||||
@@ -894,7 +894,6 @@ const readSource = () => new URLSearchParams(window.location.search).get('source
|
||||
export default function App({ locale = 'fr' }) {
|
||||
const t = COPY[locale]
|
||||
const [headerElevated, setHeaderElevated] = useState(false)
|
||||
const [sharedReturnUrl, setSharedReturnUrl] = useState('')
|
||||
const scrollMilestonesRef = useRef({ half: false, full: false })
|
||||
|
||||
// La page est prérendue à la compilation, sans URL : le premier rendu est toujours la variante
|
||||
@@ -914,28 +913,6 @@ export default function App({ locale = 'fr' }) {
|
||||
analytics.capture('page_viewed', buildEventProps())
|
||||
}, []) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
useEffect(() => {
|
||||
if (source !== 'app-shared') {
|
||||
setSharedReturnUrl('')
|
||||
return
|
||||
}
|
||||
|
||||
const returnUrlFromQuery = new URLSearchParams(window.location.search).get('return_url') || ''
|
||||
|
||||
try {
|
||||
if (returnUrlFromQuery) {
|
||||
sessionStorage.setItem('parenthese_return_url', returnUrlFromQuery)
|
||||
setSharedReturnUrl(returnUrlFromQuery)
|
||||
return
|
||||
}
|
||||
|
||||
const fromSession = sessionStorage.getItem('parenthese_return_url') || ''
|
||||
setSharedReturnUrl(fromSession)
|
||||
} catch {
|
||||
setSharedReturnUrl(returnUrlFromQuery)
|
||||
}
|
||||
}, [source])
|
||||
|
||||
// Bordure du header au défilement + paliers de scroll pour PostHog
|
||||
useEffect(() => {
|
||||
const onScroll = () => {
|
||||
@@ -1112,9 +1089,6 @@ export default function App({ locale = 'fr' }) {
|
||||
<h2 className="t-d2">{t.final.title[0]}<em className="s">{t.final.title[1]}</em></h2>
|
||||
<p className="lede">{t.final.lede}</p>
|
||||
<button type="button" onClick={() => goToSignup('footer')} className="btn p">{t.cta}</button>
|
||||
{source === 'app-shared' && sharedReturnUrl && (
|
||||
<a href={sharedReturnUrl} className="back">{t.final.back}</a>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -11,6 +11,30 @@ let enabled = Boolean(KEY)
|
||||
const queuedEvents = []
|
||||
const MAX_QUEUED_EVENTS = 100
|
||||
|
||||
// Une adresse d'arbre (/arbre/<slug>) peut arriver en referrer : elle ne part jamais chez PostHog.
|
||||
// Même règle que frontend/src/utils/analytics.js.
|
||||
function scrubTreeSlug(value) {
|
||||
if (typeof value === 'string') {
|
||||
return value
|
||||
.replace(/\/arbre\/[^/?#\s]+/g, '/arbre/:slug')
|
||||
.replace(/%2Farbre%2F(?:(?!%2F|%3F|%23)[^&#\s])+/gi, '%2Farbre%2F%3Aslug')
|
||||
}
|
||||
if (Array.isArray(value)) return value.map(scrubTreeSlug)
|
||||
if (value && typeof value === 'object' && !(value instanceof Date)) {
|
||||
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, scrubTreeSlug(v)]))
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
export function scrubAnalyticsEvent(event) {
|
||||
if (!event) return event
|
||||
const next = { ...event }
|
||||
for (const key of ['properties', '$set', '$set_once']) {
|
||||
if (next[key]) next[key] = scrubTreeSlug(next[key])
|
||||
}
|
||||
return next
|
||||
}
|
||||
|
||||
function flushQueue() {
|
||||
if (!ph || typeof ph.capture !== 'function') return
|
||||
while (queuedEvents.length > 0) {
|
||||
@@ -35,6 +59,11 @@ export const analytics = {
|
||||
person_profiles: 'identified_only',
|
||||
autocapture: false,
|
||||
capture_pageview: false,
|
||||
disable_session_recording: true,
|
||||
// Aucun feature flag dans le code. Sans ça, /flags recevrait les propriétés de personne
|
||||
// ($initial_current_url...), que before_send ne voit pas.
|
||||
advanced_disable_flags: true,
|
||||
before_send: scrubAnalyticsEvent,
|
||||
})
|
||||
ph = posthog
|
||||
flushQueue()
|
||||
|
||||
@@ -111,7 +111,6 @@ export const COPY = {
|
||||
final: {
|
||||
title: ['Commencez par ', 'un seul visage'],
|
||||
lede: "Le vôtre, ou celui de quelqu'un que vous aimeriez garder.",
|
||||
back: "Ou retourner explorer l'arbre partagé",
|
||||
},
|
||||
footer: {
|
||||
label: 'Pied de page',
|
||||
@@ -220,7 +219,6 @@ export const COPY = {
|
||||
final: {
|
||||
title: ['Start with ', 'a single face'],
|
||||
lede: "Yours, or the face of someone you'd like to keep close.",
|
||||
back: 'Or go back to the shared tree',
|
||||
},
|
||||
footer: {
|
||||
label: 'Footer',
|
||||
|
||||
@@ -191,7 +191,6 @@ html.logo-intro .lk-nom { animation: lk-nom 700ms var(--ease-out) 380ms both; }
|
||||
/* fin */
|
||||
.final { background: var(--peche-50); text-align: center; padding: clamp(64px, 9vw, 112px) var(--gut); }
|
||||
.final .wrap { display: grid; justify-items: center; gap: 22px; }
|
||||
.final .back { font: 500 14px var(--sans); color: var(--encre2); }
|
||||
|
||||
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; font: 400 13px var(--sans); color: var(--doux); }
|
||||
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
|
||||
|
||||
Reference in new issue
Block a user