mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
refactor(build): place the views in the page instead of expanding templates
index.html now lists each view's host and the loading screen itself, so the gev:template expansion plugin, its view list, the loading-screen template and the ./build/html export are gone. createApplication takes omitViews for views an application leaves out; their hosts are removed, and a view an earlier call rendered is unmounted.
This commit is contained in:
1 parent
f279200af5
commit
5bf797ef71
18 files changed
+176
-174
No files matched your search
+3
-8
@@ -8,8 +8,7 @@
|
||||
// lists it.
|
||||
//
|
||||
// Messages are the English literals passed to t(), tn() and msg() in src/,
|
||||
// plus the markup opted in with data-i18n* in index.html, src/ui/templates and
|
||||
// the Vue views.
|
||||
// plus the markup opted in with data-i18n* in index.html and the Vue views.
|
||||
// It also lists UI text that is not marked at all (see findUnmarked).
|
||||
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
@@ -422,13 +421,9 @@ export function findUnmarked() {
|
||||
});
|
||||
}
|
||||
|
||||
/** Static markup opted in with data-i18n*: the page, its templates and views. */
|
||||
/** Static markup opted in with data-i18n*: the page and its views. */
|
||||
function markupFiles() {
|
||||
return trackedFiles(
|
||||
'index.html',
|
||||
'src/ui/templates/*.html',
|
||||
'src/ui/views/*.vue',
|
||||
);
|
||||
return trackedFiles('index.html', 'src/ui/views/*.vue');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user