diff --git a/app/css/base.css b/app/css/base.css index dd4fb90..09dcba5 100644 --- a/app/css/base.css +++ b/app/css/base.css @@ -323,13 +323,6 @@ pre { display: none; } -.author-link { - display: inline-flex; - align-items: center; - margin-top: 0.5rem; - text-decoration: none; -} - .setting > .btn:only-child { grid-column: 1 / -1; } diff --git a/app/js/core/SettingsStore.js b/app/js/core/SettingsStore.js index 714b349..c7114cb 100644 --- a/app/js/core/SettingsStore.js +++ b/app/js/core/SettingsStore.js @@ -11,7 +11,6 @@ export const DEFAULT_SETTINGS = Object.freeze({ voiceEnabled: true, // le bouton « Écouter » ne lit jamais automatiquement : un clic à chaque fois voiceRate: 1, guideEnabled: true, // personnage-guide (bulles d'encouragement) - authorMode: false, // affiche le lien vers l'éditeur de niveaux (mode auteur) }); export class SettingsStore extends EventTarget { diff --git a/app/js/i18n/en.json b/app/js/i18n/en.json index e0ac695..afd1504 100644 --- a/app/js/i18n/en.json +++ b/app/js/i18n/en.json @@ -58,8 +58,6 @@ "settings.theme.light": "Light", "settings.theme.dark": "Dark", "settings.guide": "Guide character", - "settings.author": "Author mode", - "settings.authorOpen": "Open the level editor", "settings.sound": "Sound effects", "settings.volume": "Volume", "settings.voice": "Voice", diff --git a/app/js/i18n/fr.json b/app/js/i18n/fr.json index 7bef1dd..009c1b1 100644 --- a/app/js/i18n/fr.json +++ b/app/js/i18n/fr.json @@ -58,8 +58,6 @@ "settings.theme.light": "Clair", "settings.theme.dark": "Sombre", "settings.guide": "Personnage-guide", - "settings.author": "Mode auteur", - "settings.authorOpen": "Ouvrir l'éditeur de niveaux", "settings.sound": "Effets sonores", "settings.volume": "Volume", "settings.voice": "Voix", diff --git a/app/js/ui/SettingsPanel.js b/app/js/ui/SettingsPanel.js index 57f5bc8..3ff77ff 100644 --- a/app/js/ui/SettingsPanel.js +++ b/app/js/ui/SettingsPanel.js @@ -47,10 +47,8 @@ export class SettingsPanel extends EventTarget { this.#testButton('settings.testVoice', 'voice'), this.#voicesRoot, this.#field('settings.voiceRate', 'range', { value: settings.voiceRate, min: 0.5, max: 2, step: 0.1, key: 'voiceRate', number: true }), - this.#field('settings.author', 'checkbox', { value: settings.authorMode, key: 'authorMode' }), this.#backupSection(), this.#syncRoot, - settings.authorMode ? el('a', { class: 'btn author-link', href: 'author.html', text: t('settings.authorOpen') }) : null, ); this.#renderSync(); this.#renderVoices(); diff --git a/docs/site/en/contribute/author-editor.md b/docs/site/en/contribute/author-editor.md index 83b6b0d..90c2fa8 100644 --- a/docs/site/en/contribute/author-editor.md +++ b/docs/site/en/contribute/author-editor.md @@ -5,10 +5,7 @@ A built-in tool to write a level **without hand-writing YAML**, and without a se ## Opening it 1. Run `make dev` (or open your instance). -2. In **Settings**, turn on **Author mode**. -3. Click **Open the level editor** (page `/author.html`). - -Learners do not see this link while author mode is off. +2. Open the page `/author.html` (the learners' application has no link to it). !!! note "On a protected server" If the instance has the Django backend, opening `/author.html` requires signing in (an account authorised by an diff --git a/docs/site/en/learn/accessibility.md b/docs/site/en/learn/accessibility.md index a9e02e4..13ed248 100644 --- a/docs/site/en/learn/accessibility.md +++ b/docs/site/en/learn/accessibility.md @@ -13,7 +13,6 @@ PyQuest aims at **WCAG 2.2 AA**. The **Settings** button opens the following pan | Sound effects / Volume | success and error sounds, can be turned off; "Test the sound" | | Voice / Speed | the "Listen" button of explanations, can be turned off; "Test the voice" | | Offline voices | downloads the quality voices so you can hear them without a connection (see below) | -| Author mode | shows the link to the [level editor](../contribute/author-editor.md) | Sound and voice **never** start on their own. No information is conveyed by sound or colour alone: every result is also written ("Well done, that's correct!", "Not yet."). diff --git a/docs/site/fr/contribute/author-editor.md b/docs/site/fr/contribute/author-editor.md index bcf1438..4453047 100644 --- a/docs/site/fr/contribute/author-editor.md +++ b/docs/site/fr/contribute/author-editor.md @@ -5,10 +5,7 @@ Un outil intégré pour écrire un niveau **sans écrire de YAML à la main**, e ## Y accéder 1. Lance `make dev` (ou ouvre ton instance). -2. Dans **Réglages**, active **Mode auteur**. -3. Clique sur **Ouvrir l'éditeur de niveaux** (page `/author.html`). - -Les apprenants ne voient pas ce lien tant que le mode auteur est désactivé. +2. Ouvre la page `/author.html` (aucun lien ne la propose dans l'application des apprenants). !!! note "Sur un serveur protégé" Si l'instance a le backend Django, l'accès à `/author.html` demande une connexion (compte autorisé par un diff --git a/docs/site/fr/learn/accessibility.md b/docs/site/fr/learn/accessibility.md index 54c7546..2321518 100644 --- a/docs/site/fr/learn/accessibility.md +++ b/docs/site/fr/learn/accessibility.md @@ -13,7 +13,6 @@ PyQuest vise le niveau **WCAG 2.2 AA**. Le bouton **Réglages** ouvre le panneau | Effets sonores / Volume | sons de réussite et d'erreur, désactivables ; « Tester le son » | | Voix / Vitesse | bouton « Écouter » des explications, désactivable ; « Tester la voix » | | Voix hors ligne | télécharge les voix de qualité pour les entendre sans connexion (voir ci-dessous) | -| Mode auteur | affiche le lien vers l'[éditeur de niveaux](../contribute/author-editor.md) | Le son et la voix ne démarrent **jamais** tout seuls. Aucune information n'est transmise uniquement par le son ou par la couleur : chaque résultat est aussi écrit (« Bravo, c'est correct ! », « Pas encore. »).