|
1 | 1 | (function () { |
2 | 2 | const routeMap = { |
3 | 3 | home: "index.html", |
4 | | - tools: "tools/index.html", |
5 | | - "ai-assistant": "tools/ai-assistant/index.html", |
6 | | - "animation-studio": "tools/animation/index.html", |
7 | | - "asset-studio": "tools/assets/index.html", |
8 | | - "code-studio": "tools/code/index.html", |
9 | | - "game-builder": "tools/game-builder/index.html", |
10 | | - "game-design-studio": "tools/game-design/index.html", |
11 | | - "input-studio": "tools/input/index.html", |
12 | | - "localization-studio": "tools/localization/index.html", |
13 | | - "midi-studio": "tools/midi/index.html", |
14 | | - "object-vector-studio": "tools/object-vector/index.html", |
15 | | - "palette-manager": "tools/palette/index.html", |
16 | | - "particle-studio": "tools/particles/index.html", |
17 | | - publisher: "tools/publish/index.html", |
18 | | - "sound-studio": "tools/sound/index.html", |
19 | | - "storage-inspector": "tools/storage/index.html", |
20 | | - "world-vector-studio": "tools/world-vector/index.html", |
21 | | - "configuration-admin": "tools/configuration-admin/index.html", |
22 | | - cloud: "tools/cloud/index.html", |
| 4 | + toolbox: "toolbox/index.html", |
| 5 | + "ai-assistant": "toolbox/ai-assistant/index.html", |
| 6 | + "animation-studio": "toolbox/animation/index.html", |
| 7 | + "asset-studio": "toolbox/assets/index.html", |
| 8 | + "code-studio": "toolbox/code/index.html", |
| 9 | + "game-builder": "toolbox/game-builder/index.html", |
| 10 | + "game-design-studio": "toolbox/game-design/index.html", |
| 11 | + "input-studio": "toolbox/input/index.html", |
| 12 | + "localization-studio": "toolbox/localization/index.html", |
| 13 | + "midi-studio": "toolbox/midi/index.html", |
| 14 | + "object-vector-studio": "toolbox/object-vector/index.html", |
| 15 | + "palette-manager": "toolbox/palette/index.html", |
| 16 | + "particle-studio": "toolbox/particles/index.html", |
| 17 | + publisher: "toolbox/publish/index.html", |
| 18 | + "sound-studio": "toolbox/sound/index.html", |
| 19 | + "storage-inspector": "toolbox/storage/index.html", |
| 20 | + "world-vector-studio": "toolbox/world-vector/index.html", |
| 21 | + "configuration-admin": "toolbox/configuration-admin/index.html", |
| 22 | + cloud: "toolbox/cloud/index.html", |
23 | 23 | games: "games/index.html", |
24 | 24 | arcade: "games/arcade/index.html", |
25 | 25 | "game-action": "games/action/index.html", |
|
31 | 31 | marketplace: "marketplace/index.html", |
32 | 32 | learn: "learn/index.html", |
33 | 33 | community: "community/index.html", |
34 | | - translations: "tools/localization/index.html", |
| 34 | + translations: "toolbox/localization/index.html", |
35 | 35 | docs: "docs/index.html", |
36 | 36 | about: "company/about.html", |
37 | 37 | faq: "docs/faq.html", |
|
78 | 78 |
|
79 | 79 | const rootSegments = new Set([ |
80 | 80 | "account", "company", "community", "legal", |
81 | | - "admin", "docs", "games", "learn", "marketplace", "tools" |
| 81 | + "admin", "docs", "games", "learn", "marketplace", "toolbox" |
82 | 82 | ]); |
83 | 83 |
|
84 | 84 | const currentScript = document.currentScript || document.querySelector("script[src*='gamefoundry-partials.js']"); |
|
125 | 125 | const pagePath = currentPagePath() || "index.html"; |
126 | 126 | root.querySelectorAll("[data-nav-link]").forEach(function (link) { |
127 | 127 | const route = routeMap[link.dataset.route] || ""; |
128 | | - const isToolChild = pagePath.indexOf("tools/") === 0 && link.dataset.route === "tools"; |
| 128 | + const isToolboxChild = pagePath.indexOf("toolbox/") === 0 && link.dataset.route === "toolbox"; |
129 | 129 | const isGameChild = pagePath.indexOf("games/") === 0 && link.dataset.route === "games"; |
130 | 130 | const isAccountChild = pagePath.indexOf("account/") === 0 && link.dataset.route === "account"; |
131 | 131 | const isAdminChild = pagePath.indexOf("admin/") === 0 && link.dataset.route === "admin"; |
132 | | - if (route === pagePath || isToolChild || isGameChild || isAccountChild || isAdminChild) { |
| 132 | + if (route === pagePath || isToolboxChild || isGameChild || isAccountChild || isAdminChild) { |
133 | 133 | link.classList.add("active"); |
134 | 134 | } |
135 | 135 | }); |
|
0 commit comments