Voeg thematische kleurplaten en creatieve niveaus toe (v0.4.65-beta) #3

Open
bes-r wants to merge 207 commits from bes-r/kleurplaten-v0-4-65 into main AGit
3 changed files with 20 additions and 2 deletions
Showing only changes of commit 4e4aeb4b6d - Show all commits

View file

@ -1 +1 @@
0.4.29-beta
0.4.30-beta

View file

@ -615,6 +615,22 @@
copyAll.type = "button";
copyAll.addEventListener("click", e=>{ e.preventDefault(); copyText(copyAll, all); });
box.appendChild(copyAll);
/* export als uitdeelvel - alleen mogelijk zolang dit scherm openstaat: de
wachtwoorden zijn hierna nergens meer in leesbare vorm te achterhalen
(alleen het gehashte wachtwoord blijft in de database), dus dit is
bewust "exporteer wat nu net gegenereerd is", niet "haal wachtwoorden
van bestaande accounts op". Gebruikersnaam (het echte inlog-veld) staat
er wél bij, ook al toont de schermlijst hierboven alleen de naam. */
const exportBtn = h("button","am-btn", T("amExportCsv"));
exportBtn.type = "button";
exportBtn.addEventListener("click", e=>{
e.preventDefault();
const header = [T("amExportColPupil"), T("amExportColUsername"), T("amResultPw")];
const rows = [header, ...resetResults.entries.map(en=>[en.displayName, en.username, en.password])];
const safeName = resetResults.title.replace(/[^a-z0-9]+/gi, "-");
downloadCsv(`${safeName}.csv`, rows);
});
box.appendChild(exportBtn);
const list = h("div","am-reset-list");
resetResults.entries.forEach(en=>{
const row = h("div","am-reset-row");

View file

@ -2,7 +2,7 @@
"use strict";
/* version shown until /api/version resolves (or if the fetch fails, e.g. offline).
Kept in sync by hand with the VERSION file at the repo root on every release. */
const VERSION = "0.4.29-beta";
const VERSION = "0.4.30-beta";
(function(){
const tag = document.getElementById("verTag");
tag.textContent = "v"+VERSION;
@ -352,6 +352,7 @@ const I18N = {
amExportClass:"Exporteren per klas", amExportCsv:"Exporteer als CSV", amPickClassHint:"Kies eerst een klas.",
amExportColPupil:"Leerling", amExportColWidget:"Widget", amExportColAttempts:"Pogingen",
amExportColCorrect:"Goed", amExportColStars:"Sterren", amExportColDate:"Datum",
amExportColUsername:"Gebruikersnaam",
amExportDone:"Export gedownload ✓",
amConfirmDel:"Weet je zeker dat je deze gebruiker wilt verwijderen?",
amCopy:"kopieer", amCopyAll:"kopieer alles",
@ -690,6 +691,7 @@ const I18N = {
amExportClass:"Export by class", amExportCsv:"Export as CSV", amPickClassHint:"Pick a class first.",
amExportColPupil:"Pupil", amExportColWidget:"Widget", amExportColAttempts:"Attempts",
amExportColCorrect:"Correct", amExportColStars:"Stars", amExportColDate:"Date",
amExportColUsername:"Username",
amExportDone:"Export downloaded ✓",
amConfirmDel:"Are you sure you want to delete this user?",
amCopy:"copy", amCopyAll:"copy all",