zova-vite 1.1.50 → 1.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -442,6 +442,11 @@ function collectTeleports(html, teleports) {
|
|
|
442
442
|
function renderTeleports(teleports) {
|
|
443
443
|
if (!teleports) return '';
|
|
444
444
|
return Object.entries(teleports).reduce((all, [key, value]) => {
|
|
445
|
+
// This serializer creates dedicated containers, not arbitrary CSS selector targets.
|
|
446
|
+
const target = /^#[a-z_][\w-]*/i.exec(key);
|
|
447
|
+
if (!target || target[0] !== key) {
|
|
448
|
+
throw new Error(`Unsupported SSR Teleport target ${JSON.stringify(key)}. Only simple #id targets are supported (ASCII letter or underscore first, then letters, digits, underscores, or hyphens). Use a dedicated Teleport container, not body.`);
|
|
449
|
+
}
|
|
445
450
|
return `${all}<div id="${key.slice(1)}">${value}</div>`;
|
|
446
451
|
}, '');
|
|
447
452
|
}
|
|
@@ -483,7 +488,7 @@ async function generateEntryFiles(configMeta, configOptions, modulesMeta, env) {
|
|
|
483
488
|
for (let index = 1; index < parts.length - 1; index++) {
|
|
484
489
|
constName += parts[index].charAt(0).toUpperCase() + parts[index].substring(1);
|
|
485
490
|
}
|
|
486
|
-
imports.push(`import ${constName} from '../src/front/config/config/${filename
|
|
491
|
+
imports.push(`import ${constName} from '../src/front/config/config/${filename}';`);
|
|
487
492
|
constNames.push(constName);
|
|
488
493
|
}
|
|
489
494
|
const contentDest = `${imports.join('\n')}\nexport default [${constNames.join(', ')}];`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App, getCurrentInstance } from 'vue';
|
|
2
2
|
import { BeanControllerPageBase, PluginZova, ZovaApplication } from 'zova';
|
|
3
|
-
import { getPluginZovaOptions } from './utils.
|
|
3
|
+
import { getPluginZovaOptions } from './utils.ts';
|
|
4
4
|
|
|
5
5
|
export class ControllerPageApp extends BeanControllerPageBase {
|
|
6
6
|
protected async __init__() {
|
package/templates/app/utils.ts_
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { locales } from '../../src/front/config/locales.
|
|
2
|
-
<%=sysMonkey?"import { SysMonkey } from '../../src/front/config/monkeySys.
|
|
3
|
-
<%=appMonkey?"import { AppMonkey } from '../../src/front/config/monkey.
|
|
4
|
-
import config from '../config.
|
|
5
|
-
import { env } from '../env.
|
|
6
|
-
import { modulesMeta } from '../modules-meta.
|
|
1
|
+
import { locales } from '../../src/front/config/locales.ts';
|
|
2
|
+
<%=sysMonkey?"import { SysMonkey } from '../../src/front/config/monkeySys.ts';":''%>
|
|
3
|
+
<%=appMonkey?"import { AppMonkey } from '../../src/front/config/monkey.ts';":''%>
|
|
4
|
+
import config from '../config.ts';
|
|
5
|
+
import { env } from '../env.ts';
|
|
6
|
+
import { modulesMeta } from '../modules-meta.ts';
|
|
7
7
|
|
|
8
8
|
const options = {
|
|
9
9
|
modulesMeta,
|