mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
Remove the author-mode setting (stray 'null' text in settings); author.html is reached by its URL
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -323,13 +323,6 @@ pre {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.author-link {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-top: 0.5rem;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.setting > .btn:only-child {
|
.setting > .btn:only-child {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ export const DEFAULT_SETTINGS = Object.freeze({
|
|||||||
voiceEnabled: true, // le bouton « Écouter » ne lit jamais automatiquement : un clic à chaque fois
|
voiceEnabled: true, // le bouton « Écouter » ne lit jamais automatiquement : un clic à chaque fois
|
||||||
voiceRate: 1,
|
voiceRate: 1,
|
||||||
guideEnabled: true, // personnage-guide (bulles d'encouragement)
|
guideEnabled: true, // personnage-guide (bulles d'encouragement)
|
||||||
authorMode: false, // affiche le lien vers l'éditeur de niveaux (mode auteur)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export class SettingsStore extends EventTarget {
|
export class SettingsStore extends EventTarget {
|
||||||
|
|||||||
@@ -58,8 +58,6 @@
|
|||||||
"settings.theme.light": "Light",
|
"settings.theme.light": "Light",
|
||||||
"settings.theme.dark": "Dark",
|
"settings.theme.dark": "Dark",
|
||||||
"settings.guide": "Guide character",
|
"settings.guide": "Guide character",
|
||||||
"settings.author": "Author mode",
|
|
||||||
"settings.authorOpen": "Open the level editor",
|
|
||||||
"settings.sound": "Sound effects",
|
"settings.sound": "Sound effects",
|
||||||
"settings.volume": "Volume",
|
"settings.volume": "Volume",
|
||||||
"settings.voice": "Voice",
|
"settings.voice": "Voice",
|
||||||
|
|||||||
@@ -58,8 +58,6 @@
|
|||||||
"settings.theme.light": "Clair",
|
"settings.theme.light": "Clair",
|
||||||
"settings.theme.dark": "Sombre",
|
"settings.theme.dark": "Sombre",
|
||||||
"settings.guide": "Personnage-guide",
|
"settings.guide": "Personnage-guide",
|
||||||
"settings.author": "Mode auteur",
|
|
||||||
"settings.authorOpen": "Ouvrir l'éditeur de niveaux",
|
|
||||||
"settings.sound": "Effets sonores",
|
"settings.sound": "Effets sonores",
|
||||||
"settings.volume": "Volume",
|
"settings.volume": "Volume",
|
||||||
"settings.voice": "Voix",
|
"settings.voice": "Voix",
|
||||||
|
|||||||
@@ -47,10 +47,8 @@ export class SettingsPanel extends EventTarget {
|
|||||||
this.#testButton('settings.testVoice', 'voice'),
|
this.#testButton('settings.testVoice', 'voice'),
|
||||||
this.#voicesRoot,
|
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.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.#backupSection(),
|
||||||
this.#syncRoot,
|
this.#syncRoot,
|
||||||
settings.authorMode ? el('a', { class: 'btn author-link', href: 'author.html', text: t('settings.authorOpen') }) : null,
|
|
||||||
);
|
);
|
||||||
this.#renderSync();
|
this.#renderSync();
|
||||||
this.#renderVoices();
|
this.#renderVoices();
|
||||||
|
|||||||
@@ -5,10 +5,7 @@ A built-in tool to write a level **without hand-writing YAML**, and without a se
|
|||||||
## Opening it
|
## Opening it
|
||||||
|
|
||||||
1. Run `make dev` (or open your instance).
|
1. Run `make dev` (or open your instance).
|
||||||
2. In **Settings**, turn on **Author mode**.
|
2. Open the page `/author.html` (the learners' application has no link to it).
|
||||||
3. Click **Open the level editor** (page `/author.html`).
|
|
||||||
|
|
||||||
Learners do not see this link while author mode is off.
|
|
||||||
|
|
||||||
!!! note "On a protected server"
|
!!! note "On a protected server"
|
||||||
If the instance has the Django backend, opening `/author.html` requires signing in (an account authorised by an
|
If the instance has the Django backend, opening `/author.html` requires signing in (an account authorised by an
|
||||||
|
|||||||
@@ -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" |
|
| 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" |
|
| 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) |
|
| 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
|
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.").
|
also written ("Well done, that's correct!", "Not yet.").
|
||||||
|
|||||||
@@ -5,10 +5,7 @@ Un outil intégré pour écrire un niveau **sans écrire de YAML à la main**, e
|
|||||||
## Y accéder
|
## Y accéder
|
||||||
|
|
||||||
1. Lance `make dev` (ou ouvre ton instance).
|
1. Lance `make dev` (ou ouvre ton instance).
|
||||||
2. Dans **Réglages**, active **Mode auteur**.
|
2. Ouvre la page `/author.html` (aucun lien ne la propose dans l'application des apprenants).
|
||||||
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é.
|
|
||||||
|
|
||||||
!!! note "Sur un serveur protégé"
|
!!! 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
|
Si l'instance a le backend Django, l'accès à `/author.html` demande une connexion (compte autorisé par un
|
||||||
|
|||||||
@@ -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 » |
|
| 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 / 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) |
|
| 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
|
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. »).
|
par la couleur : chaque résultat est aussi écrit (« Bravo, c'est correct ! », « Pas encore. »).
|
||||||
|
|||||||
Reference in New Issue
Block a user