mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
feat(ui): render application templates as Vue views mounted before wiring
Templates listed in build/applicationViews.js expand to mount hosts, and mountApplicationViews() renders them before translation and wiring. Markup tests read the page through a server-side render helper, the i18n scanner reads view templates, and Vue preserves whitespace so views keep the exact DOM. No template is converted yet.
This commit is contained in:
1 parent
b7e7058a5c
commit
9d24945143
32 files changed
+243
-63
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { createNamedMarkers } from '../layers/installations/namedMarkers.js';
|
||||
import { expandApplicationHtml } from '../../build/application-html.js';
|
||||
import { renderApplicationHtml } from '../testSupport/applicationHtml.mjs';
|
||||
import { readStylesheet } from '../testSupport/readStylesheet.mjs';
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
@@ -447,7 +447,7 @@ test('destroying before the first init leaves pre-init buffering intact', () =>
|
||||
env.cleanup();
|
||||
});
|
||||
|
||||
test('lifecycle is idempotent and teardown removes listeners, observers, and DOM', () => {
|
||||
test('lifecycle is idempotent and teardown removes listeners, observers, and DOM', async () => {
|
||||
const env = installMockEnvironment();
|
||||
assert.equal(env.document.getElementById('world-overlay-detection-surface'), null);
|
||||
initWorldOverlay(env.viewer);
|
||||
@@ -465,7 +465,7 @@ test('lifecycle is idempotent and teardown removes listeners, observers, and DOM
|
||||
assert.deepEqual(root.children, [canvas],
|
||||
'the overlay root carries only the shared card canvas');
|
||||
assert.doesNotMatch(
|
||||
expandApplicationHtml(readFileSync(new URL('../../index.html', import.meta.url), 'utf8')),
|
||||
await renderApplicationHtml(readFileSync(new URL('../../index.html', import.meta.url), 'utf8')),
|
||||
/world-overlay-detection-surface/,
|
||||
'the surface is runtime host-owned, not static markup',
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user