@live-change/frontend-base 0.3.2 → 0.3.4
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/lezer.js +2 -0
- package/main.js +2 -2
- package/package.json +20 -18
- package/vite-config.js +3 -1
package/lezer.js
CHANGED
|
@@ -9,6 +9,7 @@ const { parser: javaParser } = require("@lezer/java")
|
|
|
9
9
|
const { parser: pythonParser } = require("@lezer/python")
|
|
10
10
|
const { parser: phpParser } = require("@lezer/php")
|
|
11
11
|
const { parser: rustParser } = require("@lezer/rust")
|
|
12
|
+
const { parser: xmlParser } = require("@lezer/xml")
|
|
12
13
|
|
|
13
14
|
const { highlightTree } = require("@lezer/highlight")
|
|
14
15
|
const { defaultHighlightStyle } = require("@codemirror/language")
|
|
@@ -32,6 +33,7 @@ const parsers = {
|
|
|
32
33
|
tsx: javascriptParser,
|
|
33
34
|
jsx: javascriptParser,
|
|
34
35
|
vue: htmlParser,
|
|
36
|
+
xml: xmlParser,
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
function hightlight(code, language) {
|
package/main.js
CHANGED
|
@@ -24,10 +24,10 @@ export async function createApp(config, api, App, createRouter, host, headers, r
|
|
|
24
24
|
const isSSR = response !== undefined
|
|
25
25
|
const isSPA = (typeof window !== 'undefined') && !window.__DAO_CACHE__
|
|
26
26
|
console.log("IS SPA", isSPA)
|
|
27
|
+
console.log("IS SSR", isSSR)
|
|
27
28
|
const app = isSPA ? createSPAApp(App) : createSSRApp(App)
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
app.config.devtools = true
|
|
30
|
+
app.config.devtools = !isSSR//true
|
|
31
31
|
|
|
32
32
|
app.config.globalProperties.$response = response
|
|
33
33
|
app.config.globalProperties.$host = host
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/frontend-base",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --templatePath ../../base-frontend/index.html",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -31,21 +31,22 @@
|
|
|
31
31
|
"@lezer/python": "^1.1.8",
|
|
32
32
|
"@lezer/rust": "^1.0.1",
|
|
33
33
|
"@lezer/sass": "^1.0.3",
|
|
34
|
-
"@
|
|
35
|
-
"@live-change/
|
|
36
|
-
"@live-change/dao
|
|
37
|
-
"@live-change/dao-
|
|
38
|
-
"@live-change/dao-
|
|
39
|
-
"@live-change/dao-
|
|
40
|
-
"@live-change/
|
|
41
|
-
"@live-change/
|
|
42
|
-
"@live-change/
|
|
43
|
-
"@live-change/secret-
|
|
44
|
-
"@live-change/
|
|
45
|
-
"@live-change/
|
|
46
|
-
"@live-change/
|
|
47
|
-
"@live-change/
|
|
48
|
-
"@live-change/vue3-
|
|
34
|
+
"@lezer/xml": "^1.0.2",
|
|
35
|
+
"@live-change/cli": "0.7.34",
|
|
36
|
+
"@live-change/dao": "0.5.22",
|
|
37
|
+
"@live-change/dao-message": "0.5.22",
|
|
38
|
+
"@live-change/dao-sockjs": "0.5.22",
|
|
39
|
+
"@live-change/dao-vue3": "0.5.22",
|
|
40
|
+
"@live-change/dao-websocket": "0.5.22",
|
|
41
|
+
"@live-change/email-service": "0.3.32",
|
|
42
|
+
"@live-change/password-authentication-service": "0.3.32",
|
|
43
|
+
"@live-change/secret-code-service": "0.3.32",
|
|
44
|
+
"@live-change/secret-link-service": "0.3.32",
|
|
45
|
+
"@live-change/security-frontend": "^0.3.4",
|
|
46
|
+
"@live-change/session-service": "0.3.32",
|
|
47
|
+
"@live-change/user-service": "0.3.32",
|
|
48
|
+
"@live-change/vue3-components": "0.2.30",
|
|
49
|
+
"@live-change/vue3-ssr": "0.2.30",
|
|
49
50
|
"@unhead/ssr": "^1.6.2",
|
|
50
51
|
"@vitejs/plugin-vue": "^4.3.4",
|
|
51
52
|
"@vue/compiler-sfc": "^3.3.4",
|
|
@@ -89,11 +90,12 @@
|
|
|
89
90
|
"vue-i18n": "^9.4.0",
|
|
90
91
|
"vue-meta": "^3.0.0-alpha.9",
|
|
91
92
|
"vue-router": "^4.2.4",
|
|
93
|
+
"vue-shadow-dom": "4.2.0",
|
|
92
94
|
"vue3-lazyload": "0.3.8",
|
|
93
95
|
"vue3-scroll-border": "0.1.5"
|
|
94
96
|
},
|
|
95
97
|
"devDependencies": {
|
|
96
|
-
"@live-change/codeceptjs-helper": "0.7.
|
|
98
|
+
"@live-change/codeceptjs-helper": "0.7.34",
|
|
97
99
|
"@wdio/selenium-standalone-service": "^8.15.0",
|
|
98
100
|
"codeceptjs": "^3.5.4",
|
|
99
101
|
"generate-password": "1.7.0",
|
|
@@ -105,5 +107,5 @@
|
|
|
105
107
|
"author": "",
|
|
106
108
|
"license": "BSD-3-Clause",
|
|
107
109
|
"description": "",
|
|
108
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "74b3e14aeac867652b39517a861b6d93c46ad2e2"
|
|
109
111
|
}
|
package/vite-config.js
CHANGED
|
@@ -38,7 +38,9 @@ module.exports = async ({ command, mode }) => {
|
|
|
38
38
|
//console.log("VITE CONFIG", command, mode)
|
|
39
39
|
return {
|
|
40
40
|
define: {
|
|
41
|
-
ENV_BASE_HREF: JSON.stringify(process.env.BASE_HREF || 'http://localhost:8001')
|
|
41
|
+
ENV_BASE_HREF: JSON.stringify(process.env.BASE_HREF || 'http://localhost:8001'),
|
|
42
|
+
ENV_BRAND_NAME: JSON.stringify("Example"),
|
|
43
|
+
ENV_BRAND_DOMAIN: JSON.stringify("example.com"),
|
|
42
44
|
},
|
|
43
45
|
server: {
|
|
44
46
|
hmr: {
|