Add toolbox spaces and recover from stale asset bundles
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s

This commit is contained in:
Shinuwa 2026-09-29 21:31:49 +02:00
parent 0959c6740b
commit 0acf5ecf21
30 changed files with 1252 additions and 179 deletions

View file

@ -9,10 +9,22 @@ export function mountToolboxTutorialProbe(element, siteContent) {
const writes = [];
const pendingChanges = [];
let setInputs;
function createToolbox(id) {
const defaultSpaceId = `space-${id}`;
return {
id,
name: id,
modules: [],
spaces: [{ id: defaultSpaceId, name: "Défaut", moduleOrder: { one: [], two: [[], []] } }],
defaultSpaceId,
activeSpaceId: defaultSpaceId,
tutorial: id !== "c"
};
}
function Probe() {
const [inputs, updateInputs] = useState({
toolboxId: "a", pendingTutorialToolboxId: "",
toolboxes: ["a", "b", "c"].map((id) => ({ id, name: id, modules: [], tutorial: id !== "c" }))
toolboxes: ["a", "b", "c"].map(createToolbox)
});
setInputs = updateInputs;
return createElement(ToolboxPage, {