efront 4.23.8 → 4.24.0
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/#/345/233/275/351/231/205/345/214/226.yml +237 -0
- package/apps/pivot/#/345/233/275/351/231/205/345/214/226.yml +2 -0
- package/apps/pivot/auth/login.html +2 -1
- package/apps/pivot/auth/login.js +1 -0
- package/apps/pivot/auth/login.less +1 -0
- package/apps/pivot/cert/edit.js +1 -1
- package/apps/pivot/cert/list.js +1 -1
- package/apps/pivot/cert/main.xht +6 -6
- package/apps/pivot/cert/orders.xht +8 -8
- package/apps/pivot/cert/update.xht +3 -3
- package/apps/pivot/db/config.xht +1 -1
- package/apps/pivot/db/edit.xht +4 -5
- package/apps/pivot/db/list.xht +4 -4
- package/apps/pivot/dht/list.js +4 -4
- package/apps/pivot/dict/edit.js +1 -1
- package/apps/pivot/dict/list.js +1 -1
- package/apps/pivot/home/welcome.html +12 -9
- package/apps/pivot/home/welcome.js +3 -3
- package/apps/pivot/link/index.js +7 -4
- package/apps/pivot/link/list.html +2 -2
- package/apps/pivot/link/room.js +2 -2
- package/apps/pivot/main.js +2 -0
- package/apps/pivot/menu-en.yml +16 -0
- package/apps/pivot/proxy/edit.js +1 -1
- package/apps/pivot/proxy/list.js +2 -2
- package/apps/pivot/share/edit.html +3 -3
- package/apps/pivot/share/list.js +3 -3
- package/apps/pivot/task/edit.js +1 -1
- package/apps/pivot/task/invoke.html +1 -1
- package/apps/pivot/task/invoke.js +2 -2
- package/apps/pivot/task/list.js +3 -3
- package/apps/pivot/task/rsync.html +3 -3
- package/apps/pivot/task/rsync.js +1 -1
- package/apps/pivot/token/edit.js +1 -1
- package/apps/pivot/token/list.js +1 -1
- package/apps/pivot/wow/root.js +1 -1
- package/apps/pivot//344/270/273/351/241/265.html +1 -1
- package/coms/basic/#loader.js +7 -0
- package/coms/basic/cross_.js +4 -3
- package/coms/basic/i18n-chooser.xht +17 -0
- package/coms/basic/i18n-supports.js +30 -0
- package/coms/basic/i18n.js +25 -1
- package/coms/basic_/Promise.js +21 -18
- package/coms/basic_/WeakMap.js +12 -6
- package/coms/compile/Program.js +4 -4
- package/coms/compile/translate.js +11 -3
- package/coms/frame/list.html +1 -1
- package/coms/frame/list.js +1 -1
- package/coms/frame/route.js +22 -9
- package/coms/pivot/left-footer.xht +4 -1
- package/coms/zimoli/chooseFile.js +1 -1
- package/coms/zimoli/cless.js +2 -2
- package/coms/zimoli/confirm.js +7 -1
- package/coms/zimoli/createUploadURL.js +1 -1
- package/coms/zimoli/field.html +1 -1
- package/coms/zimoli/field.js +1 -0
- package/coms/zimoli/field.less +3 -1
- package/coms/zimoli/getCursorPosition.js +1 -1
- package/coms/zimoli/menu.js +1 -1
- package/coms/zimoli/menuItem.js +3 -1
- package/coms/zimoli/prompt.js +19 -26
- package/coms/zimoli/prompt.less +20 -7
- package/coms/zimoli/render.js +17 -8
- package/coms/zimoli/selectList.js +3 -3
- package/coms/zimoli/selectListEdit.html +5 -5
- package/coms/zimoli/yousure.js +2 -2
- package/coms/zimoli/zimoli.js +47 -14
- package/coms//350/214/250/350/217/260/tab.js +1 -0
- package/coms//350/214/250/350/217/260//347/274/226/350/276/221/346/241/206.xht +50 -11
- package/docs/main.xht +19 -6
- package/docs//345/267/245/345/205/267//345/233/275/351/231/205/345/214/226.xht +3 -36
- package/docs//347/273/204/344/273/266.xht +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
- package/public/pivot/api.yml +0 -46
- package/public/pivot/menu.yml +0 -16
- package/public/pivot/page/auth/login.txt +0 -1
- package/public/pivot/page/cert/main.txt +0 -1
- package/public/pivot/page/cert/orders.txt +0 -1
- package/public/pivot/page/cert/update.txt +0 -1
- package/public/pivot/page/db/act.txt +0 -1
- package/public/pivot/page/db/config.txt +0 -1
- package/public/pivot/page/db/edit.txt +0 -1
- package/public/pivot/page/db/list.txt +0 -1
- package/public/pivot//344/270/273/351/241/265.html +0 -46
|
@@ -371,47 +371,14 @@
|
|
|
371
371
|
// "庄,庄": ["za", "Zhuang, Chuang"],
|
|
372
372
|
// 祖鲁语: ["zu", "Zulu"]
|
|
373
373
|
// };
|
|
374
|
-
var supports =
|
|
375
|
-
{ name: `汉语`/*中文简体*/, id: "zh", lang: "zh-CN" },
|
|
376
|
-
{ name: `漢語`/*中文繁体*/, id: "cht", lang: "zh-TW" },
|
|
377
|
-
{ name: `English`/*英文*/, id: "en", lang: "en" },
|
|
378
|
-
// { name: i18n`文言文`, id: "wyw" },
|
|
379
|
-
// { name: i18n`粤语`, id: "yue" },
|
|
380
|
-
{ name: `日本語`/*日语*/, id: "jp", lang: "ja" },
|
|
381
|
-
{ name: `Français`/*法语*/, id: "fra", lang: 'fr' },
|
|
382
|
-
{ name: `Русский язык`/*俄语*/, id: "ru", lang: 'ru' },
|
|
383
|
-
{ name: `한국어`/*韩语*/, id: "kor", lang: "ko" },
|
|
384
|
-
{ name: `Deutsch`/*德语*/, id: "de", lang: "de" },
|
|
385
|
-
{ name: `Italiano`/*意大利语*/, id: "it", lang: 'it' },
|
|
386
|
-
{ name: `ภาษาไทย`/*泰语*/, id: "th", lang: "th" },
|
|
387
|
-
{ name: `Tiếng Việt`/*越南语*/, id: "vie", lang: 'vi' },
|
|
388
|
-
{ name: `بالعربية`/*阿拉伯语*/, id: "ara", lang: "ar" },
|
|
389
|
-
{ name: `Nederlands`/*荷兰语*/, id: "nl", lang: "nl" },
|
|
390
|
-
{ name: `suomi`/*芬兰语*/, id: "fin", lang: "fi" },
|
|
391
|
-
{ name: `Ελληνικά`/*希腊语*/, id: "el", lang: "el" },
|
|
392
|
-
{ name: `Español`/*西班牙语*/, id: "spa", lang: "es" },
|
|
393
|
-
{ name: `Português`/*葡萄牙语*/, id: "pt", lang: /pt\-(BR|PT)/ },
|
|
394
|
-
{ name: `Húngaro`/*匈牙利语*/, id: "hu", lang: 'hu' },
|
|
395
|
-
{ name: `Svenska`/*瑞典语*/, id: "swe", lang: 'sv' },
|
|
396
|
-
{ name: `Dansk`/*丹麦语*/, id: "dan", lang: 'da' },
|
|
397
|
-
{ name: `Čeština`/*捷克语*/, id: "cs", lang: 'cs' },
|
|
398
|
-
{ name: `Polski`/*波兰语*/, id: "pl" },
|
|
399
|
-
{ name: `Български`/*保加利亚语*/, id: "bul", lang: "bg" },
|
|
400
|
-
{ name: `Eesti keel`/*爱沙尼亚语*/, id: "est", lang: 'et' },
|
|
401
|
-
{ name: `Română`/*罗马尼亚语*/, id: "rom", lang: 'ro' },
|
|
402
|
-
{ name: `slovenski jezik`/*斯洛文尼亚语*/, id: "slo", lang: 'sl' },
|
|
403
|
-
];
|
|
404
|
-
supports.forEach(s => s.key = s.id);
|
|
374
|
+
var supports = i18nSupports;
|
|
405
375
|
var getAllText = function (data, f) {
|
|
406
376
|
try {
|
|
407
377
|
if (/^\s*(\<\!--[\s\S]*?--\>\s*)*<!doctype\s/i.test(data)) return [];
|
|
408
|
-
if (/\.(xht|vue)$/i.test(f.name)) {
|
|
378
|
+
if (/\.(xht|html?|jsp|asp|php|vue)$/i.test(f.name)) {
|
|
409
379
|
var { scripts, innerHTML, outerHTML: htmltext = innerHTML, attributes = '', tagName, styles } = compile$scanner2(data, 'html').scoped;
|
|
410
380
|
data = compile$wraphtml(htmltext) + ";\r\n" + scripts.join("\r\n");
|
|
411
381
|
}
|
|
412
|
-
else if (/\.html?$/i.test(f.name)) {
|
|
413
|
-
data = compile$wraphtml(data);
|
|
414
|
-
}
|
|
415
382
|
var code = compile$scanner2(String(data));
|
|
416
383
|
return compile$translate.getI18nPrefixed(code);
|
|
417
384
|
}
|
|
@@ -598,7 +565,7 @@
|
|
|
598
565
|
}
|
|
599
566
|
else {
|
|
600
567
|
if (/^[\.]|^node_modules|_test\.js$/i.test(name)) continue;
|
|
601
|
-
if (e.kind === "file" && !/\.([mc]?[tj]sx?|xht|vue
|
|
568
|
+
if (e.kind === "file" && !/\.([mc]?[tj]sx?|xht|html?|jsp|asp|php|vue)$/i.test(name)) continue;
|
|
602
569
|
}
|
|
603
570
|
e.path = path + e.name;
|
|
604
571
|
if (e.kind === 'directory') {
|