From 4766fac45c7361089fe219ef7ae328336f16a011 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 25 Nov 2026 00:10:13 +0100 Subject: [PATCH 1/2] Load native service design through policy-compatible asset paths --- website/ops/publish-realm-design.py | 6 +++++- website/scripts/realm-page-design.mjs | 1 + website/web/manual.html | 2 +- website/web/realm-design.js | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/website/ops/publish-realm-design.py b/website/ops/publish-realm-design.py index 8c8877f0..54fe67e6 100644 --- a/website/ops/publish-realm-design.py +++ b/website/ops/publish-realm-design.py @@ -14,7 +14,11 @@ def append(old,content): assert old.count(start)==old.count(end)==1 old=old[:old.index(start)]+old[old.index(end)+len(end):] return old.rstrip()+'\n'+start+'\n'+content+'\n'+end+'\n' -changes={'shared-header.html':chrome['header'],'shared-header-head.html':chrome['head']} +native_head=chrome['head'].replace('href="/portal-navigation.css"','href="https://www.dunerealms.com/portal-navigation.css"').replace('src="/portal-navigation.js"','src="https://www.dunerealms.com/portal-navigation.js"') +# Native services execute the compiled same-origin navigation script, which +# already includes realm-design.js. Keep their existing script security policy. +native_head=re.sub(r']*src="[^"]*/realm-design\.js[^>]*>','',native_head) +changes={'shared-header.html':chrome['header'],'shared-header-head.html':native_head} hook=base/'shared-header.php';original_hook=hook.read_text();assert 'v=canonical-362' in original_hook or 'v=realm-design-1' in original_hook changes['shared-header.php']=original_hook.replace('v=canonical-362','v=realm-design-1') for app in ['mybb','osticket']: diff --git a/website/scripts/realm-page-design.mjs b/website/scripts/realm-page-design.mjs index f03ff5c5..ec64b7ab 100644 --- a/website/scripts/realm-page-design.mjs +++ b/website/scripts/realm-page-design.mjs @@ -45,6 +45,7 @@ const esc=s=>s.replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'&q const designHead=''; export function applyRealmPageDesign(html,file){ if(!/]*data-realm-design/.test(html))html=html.replace('',designHead+''); + if(file==='manual.html')html=html.replaceAll('https://www.dunerealms.com/realm-design','/realm-design'); const page=REALM_PAGE_DESIGNS[file];if(!page)return html; if(html.includes('data-realm-layout="2"'))return html; html=html.replace(/
]*>[\s\S]*?<\/section>/g,'').replace(/\sdata-realm-page="[^"]*"/g,''); diff --git a/website/web/manual.html b/website/web/manual.html index 3283096e..9882438e 100644 --- a/website/web/manual.html +++ b/website/web/manual.html @@ -1 +1 @@ -The Field Manual — dunerealms.com
JAVA + BEDROCK · THE CARAVAN ENDURESSupportMy account

The Field Manual

Your guide to the worlds, their services and your first steps.

THE ILLUSTRATED FIELD MANUAL

Your guide to the dunes.

Read current manual →

Loading the illustrated manual…

THE GREAT HOUSES & THE DESERT

Read the heraldry. Discover the homeworlds. Follow the routes of spice and water.

ILLUSTRATED FACTION & PLANET ATLAS
Concept illustration for KaladamKaladamStylised House Aerdrecht emblem

The hawk above the water

House Aerdrecht

Kaladam’s seas and green landscapes give the Aerdrecht card its water-world identity: a contrast to the dry struggle for spice on Arrakduin.

Planet profile
Jungle & water terrain
Environment
Water level 72 · trees enabled
In the plugin
Movement refreshes Speed I; a matching full reclaimer suit adds four hearts.

Base world available · local gameplay guide reserved

Concept illustration for GiedermarkGiedermarkStylised House Harkveen emblem

Iron, shadow and power

House Harkveen

Dark stone, red heraldry and industrial imagery evoke the Harkveen presence. In dunerealms.com, their harsh homeworld complements a faction built around combat.

Planet profile
Swamp · blackstone · deepslate
Environment
Water level 63 · swamp pools
In the plugin
Player-caused combat damage +15%; a matching full suit refreshes Strength II.

Base world available · local gameplay guide reserved

Concept illustration for KaiterhofKaiterhofStylised House Korenholt emblem

The weight of the Concord

House Korenholt

Imperial gold and the lion motif frame Korenholt’s seat on Kaiterhof. The artwork imagines courtly grandeur; the released world is a procedural plains profile.

Planet profile
Plains · grass · dirt
Environment
Flower placement enabled · no generated trees
In the plugin
Protection III kit armor; entity-caused incoming combat damage reduced by 15%.

Base world available · local gameplay guide reserved

Concept illustration for ArrakduinArrakduinStylised Vrijduin emblem

Water is life. The maker watches.

Vrijduin

Rockhavens, reclaimer suits and the great sandworms shape the desert identity. Spice draws travelers into the dunes, while water and shelter make survival possible.

Planet profile
Desert · spice fields · rock plateaus
Environment
Heat exposure · finite water · sandworm encounters
In the plugin
Two spice units per harvested deposit; brief Resistance I while moving on Arrakduin.

Complete Arrakduin gameplay guide

Concept illustration for Sigmadraken IVSigmadraken IVStylised House Oordwijk emblem

Secrets beneath the snow

House Oordwijk

Oordwijk adds secrecy and cold-world imagery to dunerealms.com’s setting. Its snowy destination and concealment equipment form this plugin’s interpretation of the House.

Planet profile
Snowy plains · snow blocks · deepslate
Environment
Base height 72 · no custom freezing meter
In the plugin
Matching full suit enables five-second Shadow Step; kit includes an explosive charge.

dunerealms.com continuity · local gameplay guide reserved

Concept illustration for The planetary networkThe planetary networkStylised Vaerkring emblem

Routes among the stars

Vaerkring

The Compact motif connects the worlds through celestial charts and Routekeeper imagery. In the plugin, Compact NPCs connect players to travel; the Compact is not a selectable player faction.

Planet profile
Arrakduin · Kaladam · Giedermark
Environment
Kaiterhof · Sigmadraken IV
In the plugin
DuneEss provides five-world travel. Compact dispatches share recorded Arrakduin sightings after the 15-minute warning.

Travel service · no separate Compact homeworld configured

Concept artwork and stylised heraldry illustrate the setting. Planet profiles and faction traits come from the dunerealms.com field manual. Kaladam, Giedermark, Kaiterhof and Sigmadraken IV have configured terrain and travel destinations; their expanded planet-specific gameplay chapters are reserved for future releases.

\ No newline at end of file +The Field Manual — dunerealms.com
JAVA + BEDROCK · THE CARAVAN ENDURESSupportMy account

The Field Manual

Your guide to the worlds, their services and your first steps.

THE ILLUSTRATED FIELD MANUAL

Your guide to the dunes.

Read current manual →

Loading the illustrated manual…

THE GREAT HOUSES & THE DESERT

Read the heraldry. Discover the homeworlds. Follow the routes of spice and water.

ILLUSTRATED FACTION & PLANET ATLAS
Concept illustration for KaladamKaladamStylised House Aerdrecht emblem

The hawk above the water

House Aerdrecht

Kaladam’s seas and green landscapes give the Aerdrecht card its water-world identity: a contrast to the dry struggle for spice on Arrakduin.

Planet profile
Jungle & water terrain
Environment
Water level 72 · trees enabled
In the plugin
Movement refreshes Speed I; a matching full reclaimer suit adds four hearts.

Base world available · local gameplay guide reserved

Concept illustration for GiedermarkGiedermarkStylised House Harkveen emblem

Iron, shadow and power

House Harkveen

Dark stone, red heraldry and industrial imagery evoke the Harkveen presence. In dunerealms.com, their harsh homeworld complements a faction built around combat.

Planet profile
Swamp · blackstone · deepslate
Environment
Water level 63 · swamp pools
In the plugin
Player-caused combat damage +15%; a matching full suit refreshes Strength II.

Base world available · local gameplay guide reserved

Concept illustration for KaiterhofKaiterhofStylised House Korenholt emblem

The weight of the Concord

House Korenholt

Imperial gold and the lion motif frame Korenholt’s seat on Kaiterhof. The artwork imagines courtly grandeur; the released world is a procedural plains profile.

Planet profile
Plains · grass · dirt
Environment
Flower placement enabled · no generated trees
In the plugin
Protection III kit armor; entity-caused incoming combat damage reduced by 15%.

Base world available · local gameplay guide reserved

Concept illustration for ArrakduinArrakduinStylised Vrijduin emblem

Water is life. The maker watches.

Vrijduin

Rockhavens, reclaimer suits and the great sandworms shape the desert identity. Spice draws travelers into the dunes, while water and shelter make survival possible.

Planet profile
Desert · spice fields · rock plateaus
Environment
Heat exposure · finite water · sandworm encounters
In the plugin
Two spice units per harvested deposit; brief Resistance I while moving on Arrakduin.

Complete Arrakduin gameplay guide

Concept illustration for Sigmadraken IVSigmadraken IVStylised House Oordwijk emblem

Secrets beneath the snow

House Oordwijk

Oordwijk adds secrecy and cold-world imagery to dunerealms.com’s setting. Its snowy destination and concealment equipment form this plugin’s interpretation of the House.

Planet profile
Snowy plains · snow blocks · deepslate
Environment
Base height 72 · no custom freezing meter
In the plugin
Matching full suit enables five-second Shadow Step; kit includes an explosive charge.

dunerealms.com continuity · local gameplay guide reserved

Concept illustration for The planetary networkThe planetary networkStylised Vaerkring emblem

Routes among the stars

Vaerkring

The Compact motif connects the worlds through celestial charts and Routekeeper imagery. In the plugin, Compact NPCs connect players to travel; the Compact is not a selectable player faction.

Planet profile
Arrakduin · Kaladam · Giedermark
Environment
Kaiterhof · Sigmadraken IV
In the plugin
DuneEss provides five-world travel. Compact dispatches share recorded Arrakduin sightings after the 15-minute warning.

Travel service · no separate Compact homeworld configured

Concept artwork and stylised heraldry illustrate the setting. Planet profiles and faction traits come from the dunerealms.com field manual. Kaladam, Giedermark, Kaiterhof and Sigmadraken IV have configured terrain and travel destinations; their expanded planet-specific gameplay chapters are reserved for future releases.

\ No newline at end of file diff --git a/website/web/realm-design.js b/website/web/realm-design.js index afc9f181..4db64bc1 100644 --- a/website/web/realm-design.js +++ b/website/web/realm-design.js @@ -1,7 +1,7 @@ (()=>{ 'use strict';if(window.__duneRealmDesign)return;window.__duneRealmDesign=true; const root='https://www.dunerealms.com'; - if(!document.querySelector('link[data-realm-design],link[href*="/realm-design.css"]')){const css=document.createElement('link');css.rel='stylesheet';css.href=root+'/realm-design.css?v=every-page-1';css.dataset.realmDesign='';document.head.append(css);} + if(!document.querySelector('link[data-realm-design],link[href*="/realm-design.css"]')){const css=document.createElement('link');css.rel='stylesheet';css.href=(location.hostname==='wiki.dunerealms.com'?'':root)+'/realm-design.css?v=every-page-1';css.dataset.realmDesign='';document.head.append(css);} const embedded=window.top!==window.self;if(embedded)document.documentElement.classList.add('dune-embedded'); document.body.classList.add('dr-design');const workspace=!!document.querySelector('#portals')&&!!document.querySelector('#content');if(workspace)document.body.classList.add('dr-workspace'); const nativeHost=({'forums.dunerealms.com':'boards','support.dunerealms.com':'support','shop.dunerealms.com':'shop','wiki.dunerealms.com':'wiki','mail.dunerealms.com':'mail'})[location.hostname]||(location.pathname.startsWith('/git/')?'git':null);if(nativeHost){document.body.classList.add('dr-native','dr-native-'+nativeHost);document.body.dataset.realmPage=nativeHost;} From f983b3cc5d21f996896245a45f29aa2078c2a41e Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 25 Nov 2026 00:10:36 +0100 Subject: [PATCH 2/2] Guard wiki design assets against cross-origin policy regressions --- website/tests/realm-page-design.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/tests/realm-page-design.test.mjs b/website/tests/realm-page-design.test.mjs index 39097d1a..63f2f21e 100644 --- a/website/tests/realm-page-design.test.mjs +++ b/website/tests/realm-page-design.test.mjs @@ -8,7 +8,7 @@ test('every public document opts into the common design and every legacy page ow }); test('page migration preserves functional element identities and keeps the banner outside a nested manual grid',()=>{ const source='Manual
Old navigation
',next=applyRealmPageDesign(source,'manual.html'); - assert(next.indexOf('class="dr-page-banner"')/);assert.match(next,/