ts-glitter 16.1.4 → 16.1.6
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/lowcode/Entry.js +12 -10
- package/lowcode/Entry.ts +18 -15
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -79,7 +79,7 @@ export class Entry {
|
|
|
79
79
|
}
|
|
80
80
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
81
81
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
82
|
-
glitter.share.editerVersion = 'V_16.1.
|
|
82
|
+
glitter.share.editerVersion = 'V_16.1.6';
|
|
83
83
|
glitter.share.start = new Date();
|
|
84
84
|
const vm = {
|
|
85
85
|
appConfig: [],
|
|
@@ -265,10 +265,6 @@ export class Entry {
|
|
|
265
265
|
}
|
|
266
266
|
static toBackendEditor(glitter, callback) {
|
|
267
267
|
const css = String.raw;
|
|
268
|
-
if (localStorage.getItem('on-pos') === 'true' && glitter.getUrlParameter('page') !== 'pos') {
|
|
269
|
-
localStorage.removeItem('on-pos');
|
|
270
|
-
location.href = glitter.root_path + 'pos?app-id=' + window.appName;
|
|
271
|
-
}
|
|
272
268
|
glitter.addStyle(css `
|
|
273
269
|
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|
|
274
270
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -331,11 +327,17 @@ export class Entry {
|
|
|
331
327
|
min-height: ${window.innerHeight}px !important;
|
|
332
328
|
}
|
|
333
329
|
`);
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
330
|
+
if (localStorage.getItem('on-pos') === 'true' && glitter.getUrlParameter('page') !== 'pos' && (glitter.getUrlParameter('type') === 'editor')) {
|
|
331
|
+
localStorage.removeItem('on-pos');
|
|
332
|
+
location.href = glitter.root_path + 'pos?app-id=' + window.appName;
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
glitter.setHome('jspage/main.js', glitter.getUrlParameter('page'), {
|
|
336
|
+
appName: config.appName,
|
|
337
|
+
}, {
|
|
338
|
+
backGroundColor: `transparent;`,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
339
341
|
}
|
|
340
342
|
}));
|
|
341
343
|
}
|
package/lowcode/Entry.ts
CHANGED
|
@@ -78,7 +78,7 @@ export class Entry {
|
|
|
78
78
|
}
|
|
79
79
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
80
80
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
81
|
-
glitter.share.editerVersion = 'V_16.1.
|
|
81
|
+
glitter.share.editerVersion = 'V_16.1.6';
|
|
82
82
|
glitter.share.start = new Date();
|
|
83
83
|
const vm: {
|
|
84
84
|
appConfig: any;
|
|
@@ -273,10 +273,7 @@ export class Entry {
|
|
|
273
273
|
// 跳轉至頁面編輯器
|
|
274
274
|
public static toBackendEditor(glitter: Glitter, callback: () => void) {
|
|
275
275
|
const css = String.raw
|
|
276
|
-
|
|
277
|
-
localStorage.removeItem('on-pos');
|
|
278
|
-
location.href = glitter.root_path + 'pos?app-id='+(window as any).appName;
|
|
279
|
-
}
|
|
276
|
+
|
|
280
277
|
glitter.addStyle(css`
|
|
281
278
|
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
|
|
282
279
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -346,16 +343,22 @@ export class Entry {
|
|
|
346
343
|
min-height: ${window.innerHeight}px !important;
|
|
347
344
|
}
|
|
348
345
|
`)
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
346
|
+
|
|
347
|
+
if (localStorage.getItem('on-pos') === 'true' && glitter.getUrlParameter('page') !== 'pos' && (glitter.getUrlParameter('type')==='editor')) {
|
|
348
|
+
localStorage.removeItem('on-pos');
|
|
349
|
+
location.href = glitter.root_path + 'pos?app-id='+(window as any).appName;
|
|
350
|
+
}else{
|
|
351
|
+
glitter.setHome(
|
|
352
|
+
'jspage/main.js',
|
|
353
|
+
glitter.getUrlParameter('page'),
|
|
354
|
+
{
|
|
355
|
+
appName: config.appName,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
backGroundColor: `transparent;`,
|
|
359
|
+
}
|
|
360
|
+
);
|
|
361
|
+
}
|
|
359
362
|
}
|
|
360
363
|
});
|
|
361
364
|
}
|