@live-change/db-admin 0.6.14 → 0.6.16
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/front/src/App.vue +5 -4
- package/front/src/entry-server.js +9 -21
- package/front/vite.config.js +19 -4
- package/package.json +21 -25
package/front/src/App.vue
CHANGED
|
@@ -42,11 +42,12 @@
|
|
|
42
42
|
|
|
43
43
|
import ProgressSpinner from 'primevue/progressspinner'
|
|
44
44
|
|
|
45
|
-
import { useMeta } from 'vue-meta'
|
|
46
45
|
import Page from "./Page.vue"
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
import { computed } from 'vue'
|
|
48
|
+
import { useHead } from '@vueuse/head'
|
|
49
|
+
useHead(computed(() => ({
|
|
50
|
+
title: 'DB Admin',
|
|
50
51
|
meta: [
|
|
51
52
|
{ charset: 'utf-8' },
|
|
52
53
|
{ name: 'viewport',
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
lang: 'en',
|
|
58
59
|
amp: true
|
|
59
60
|
}
|
|
60
|
-
})
|
|
61
|
+
})))
|
|
61
62
|
|
|
62
63
|
import { onMounted } from 'vue'
|
|
63
64
|
import isClientSide from "./isClientSide.js"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { renderToString } from 'vue/server-renderer'
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { renderHeadToString } from "@vueuse/head"
|
|
3
4
|
|
|
4
5
|
import { serverApi } from '@live-change/vue3-ssr/serverApi.js'
|
|
5
6
|
|
|
@@ -34,26 +35,13 @@ export async function render({ url, dao, windowId }) {
|
|
|
34
35
|
// components that have been instantiated during this render call.
|
|
35
36
|
const ctx = {}
|
|
36
37
|
const html = await renderToString(app, ctx)
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
|
|
39
40
|
const data = api.prerenderCache.cacheData()
|
|
40
|
-
console.log("PRERENDER CACHE", Array.from(api.prerenderCache.cache.keys()))
|
|
41
|
-
console.log("PRERENDER CACHE EXTENDED", Array.from(api.prerenderCache.extendedCache.keys()))
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const metaManager = app.config.globalProperties.$metaManager
|
|
48
|
-
const activeMeta = metaManager.target.context.active
|
|
49
|
-
console.log("ACTIVE META", activeMeta)
|
|
50
|
-
console.log("TELEPORTS", ctx.teleports)
|
|
51
|
-
ctx.teleports.head = [
|
|
52
|
-
...(activeMeta.title ? [`<title data-vm-ssr="true">${escapeHtml(activeMeta.title)}</title>`] : []),
|
|
53
|
-
...((activeMeta.meta || []).map(meta => `<meta ${Object.keys(meta).map(
|
|
54
|
-
key => `${escapeHtml(key)}="${escapeHtml(meta[key])}"`
|
|
55
|
-
).join(' ')}>`))
|
|
56
|
-
].join('\n')
|
|
57
|
-
|
|
58
|
-
return { html, data, meta: ctx.teleports, modules: ctx.modules }
|
|
41
|
+
//console.log("PRERENDER CACHE", Array.from(api.prerenderCache.cache.keys()))
|
|
42
|
+
//console.log("PRERENDER CACHE EXTENDED", Array.from(api.prerenderCache.extendedCache.keys()))
|
|
43
|
+
|
|
44
|
+
const renderedHead = await renderHeadToString(head)
|
|
45
|
+
|
|
46
|
+
return { html, data, meta: renderedHead, modules: ctx.modules }
|
|
59
47
|
}
|
package/front/vite.config.js
CHANGED
|
@@ -14,6 +14,7 @@ const ssrTransformCustomDir = () => {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export default defineConfig(async ({ command, mode }) => {
|
|
17
|
+
console.log("VITE CONFIG", command, mode)
|
|
17
18
|
return {
|
|
18
19
|
define: {
|
|
19
20
|
ENV_BASE_HREF: JSON.stringify(process.env.BASE_HREF || 'http://localhost:8001')
|
|
@@ -68,7 +69,10 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
68
69
|
},
|
|
69
70
|
ssr: {
|
|
70
71
|
external: [
|
|
71
|
-
'
|
|
72
|
+
...(command == 'build' ? [
|
|
73
|
+
]: [
|
|
74
|
+
'@live-change/dao'
|
|
75
|
+
]),
|
|
72
76
|
'@live-change/uid',
|
|
73
77
|
'@live-change/framework',
|
|
74
78
|
'@live-change/framework/lib/utils/validators.js',
|
|
@@ -76,11 +80,18 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
76
80
|
'vite'
|
|
77
81
|
],
|
|
78
82
|
noExternal: [
|
|
79
|
-
'
|
|
83
|
+
...(command == 'build' ? [
|
|
84
|
+
'@live-change/dao',
|
|
85
|
+
]: [
|
|
86
|
+
]),
|
|
80
87
|
'@live-change/vue3-components',
|
|
81
88
|
'@live-change/dao-vue3',
|
|
82
89
|
'@live-change/vue3-ssr',
|
|
83
|
-
'vue3-scroll-border'
|
|
90
|
+
'vue3-scroll-border',
|
|
91
|
+
'primevue',
|
|
92
|
+
'primevue/usetoast',
|
|
93
|
+
'primevue/useconfirm',
|
|
94
|
+
'primevue/usedialog'
|
|
84
95
|
]
|
|
85
96
|
},
|
|
86
97
|
optimizeDeps: {
|
|
@@ -92,7 +103,11 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
92
103
|
'@live-change/uid',
|
|
93
104
|
'@live-change/framework',
|
|
94
105
|
'@live-change/framework/lib/utils/validators.js',
|
|
95
|
-
'debug'
|
|
106
|
+
'debug',
|
|
107
|
+
'primevue',
|
|
108
|
+
'primevue/usetoast',
|
|
109
|
+
'primevue/useconfirm',
|
|
110
|
+
'primevue/usedialog'
|
|
96
111
|
]
|
|
97
112
|
},
|
|
98
113
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-admin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --initScript ./init.js --dbAccess",
|
|
@@ -17,51 +17,47 @@
|
|
|
17
17
|
"debug": "node --inspect-brk server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@live-change/cli": "0.7.
|
|
20
|
+
"@live-change/cli": "0.7.31",
|
|
21
21
|
"@live-change/dao": "0.5.20",
|
|
22
22
|
"@live-change/dao-vue3": "0.5.20",
|
|
23
23
|
"@live-change/dao-websocket": "0.5.20",
|
|
24
|
-
"@live-change/framework": "0.7.
|
|
25
|
-
"@live-change/vue3-components": "0.2.
|
|
26
|
-
"@live-change/vue3-ssr": "0.2.
|
|
27
|
-
"@vitejs/plugin-vue": "^
|
|
28
|
-
"@
|
|
29
|
-
"@vueuse/core": "^9.1.0",
|
|
24
|
+
"@live-change/framework": "0.7.31",
|
|
25
|
+
"@live-change/vue3-components": "0.2.28",
|
|
26
|
+
"@live-change/vue3-ssr": "0.2.28",
|
|
27
|
+
"@vitejs/plugin-vue": "^4.3.4",
|
|
28
|
+
"@vueuse/core": "^10.4.1",
|
|
30
29
|
"codeceptjs-assert": "^0.0.5",
|
|
31
30
|
"compression": "^1.7.4",
|
|
32
31
|
"cross-env": "^7.0.3",
|
|
33
|
-
"find-free-ports": "^3.
|
|
32
|
+
"find-free-ports": "^3.1.1",
|
|
34
33
|
"javascript-stringify": "^2.1.0",
|
|
35
|
-
"primeflex": "^3.3.
|
|
34
|
+
"primeflex": "^3.3.1",
|
|
36
35
|
"primeicons": "^6.0.1",
|
|
37
|
-
"primevue": "^3.
|
|
36
|
+
"primevue": "^3.34.1",
|
|
38
37
|
"prism-es6": "^1.2.0",
|
|
39
38
|
"prismjs": "^1.28.0",
|
|
40
39
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
41
|
-
"rollup-plugin-visualizer": "5.
|
|
42
|
-
"serialize-javascript": "^6.0.
|
|
40
|
+
"rollup-plugin-visualizer": "5.9.2",
|
|
41
|
+
"serialize-javascript": "^6.0.1",
|
|
43
42
|
"serve-static": "^1.15.0",
|
|
44
|
-
"v-shared-element": "3.1.
|
|
45
|
-
"vite-plugin-compression": "0.5.1",
|
|
46
|
-
"vite-plugin-vue-images": "^0.6.1",
|
|
43
|
+
"v-shared-element": "3.1.1",
|
|
47
44
|
"vue": "^3.2.47",
|
|
48
|
-
"vue-meta": "^3.0.0-alpha.9",
|
|
49
45
|
"vue-prism-editor": "2.0.0-alpha.2",
|
|
50
|
-
"vue-router": "^4.
|
|
46
|
+
"vue-router": "^4.2.4",
|
|
51
47
|
"vue3-scroll-border": "0.1.5"
|
|
52
48
|
},
|
|
53
49
|
"devDependencies": {
|
|
54
|
-
"@live-change/codeceptjs-helper": "0.7.
|
|
55
|
-
"@wdio/selenium-standalone-service": "^
|
|
56
|
-
"codeceptjs": "^3.
|
|
50
|
+
"@live-change/codeceptjs-helper": "0.7.31",
|
|
51
|
+
"@wdio/selenium-standalone-service": "^8.15.0",
|
|
52
|
+
"codeceptjs": "^3.5.4",
|
|
57
53
|
"generate-password": "1.7.0",
|
|
58
|
-
"playwright": "^1.
|
|
54
|
+
"playwright": "^1.37.1",
|
|
59
55
|
"random-profile-generator": "^2.3.0",
|
|
60
|
-
"txtgen": "^3.0.
|
|
61
|
-
"webdriverio": "^
|
|
56
|
+
"txtgen": "^3.0.6",
|
|
57
|
+
"webdriverio": "^8.16.6"
|
|
62
58
|
},
|
|
63
59
|
"author": "",
|
|
64
60
|
"license": "ISC",
|
|
65
61
|
"description": "",
|
|
66
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "94139feb257c24aa24e80ac85c4490a1c87665ed"
|
|
67
63
|
}
|