@live-change/frontend-base 0.2.19 → 0.2.21
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/client-entry.js +2 -0
- package/package.json +3 -3
- package/server-entry.js +1 -1
- package/vite-config.js +1 -0
package/client-entry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/frontend-base",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.21",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@live-change/password-authentication-service": "0.3.8",
|
|
29
29
|
"@live-change/secret-code-service": "0.3.8",
|
|
30
30
|
"@live-change/secret-link-service": "0.3.8",
|
|
31
|
-
"@live-change/security-frontend": "^0.2.
|
|
31
|
+
"@live-change/security-frontend": "^0.2.21",
|
|
32
32
|
"@live-change/session-service": "0.3.8",
|
|
33
33
|
"@live-change/user-service": "0.3.8",
|
|
34
34
|
"@live-change/vue3-components": "0.2.16",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "BSD-3-Clause",
|
|
72
72
|
"description": "",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "c26408cfdc9dfb20a45127dbee1751258edaf4da"
|
|
74
74
|
}
|
package/server-entry.js
CHANGED
|
@@ -49,7 +49,6 @@ export function serverEntry(App, createRouter, config = {}) {
|
|
|
49
49
|
// components that have been instantiated during this render call.
|
|
50
50
|
const ctx = {}
|
|
51
51
|
const html = await renderToString(app, ctx)
|
|
52
|
-
await renderMetaToString(app, ctx)
|
|
53
52
|
|
|
54
53
|
const data = api.prerenderCache.cacheData()
|
|
55
54
|
|
|
@@ -60,6 +59,7 @@ export function serverEntry(App, createRouter, config = {}) {
|
|
|
60
59
|
const metaManager = app.config.globalProperties.$metaManager
|
|
61
60
|
const activeMeta = metaManager.target.context.active
|
|
62
61
|
console.log("ACTIVE META", activeMeta)
|
|
62
|
+
await renderMetaToString(app, ctx)
|
|
63
63
|
ctx.teleports.head = [
|
|
64
64
|
...(activeMeta.title ? [`<title data-vm-ssr="true">${escapeHtml(activeMeta.title)}</title>`] : []),
|
|
65
65
|
...((activeMeta.meta || []).map(meta => `<meta ${Object.keys(meta).map(
|
package/vite-config.js
CHANGED
|
@@ -89,6 +89,7 @@ module.exports = async ({ command, mode }) => ({
|
|
|
89
89
|
'@live-change/frontend-utils',
|
|
90
90
|
'@live-change/access-control-frontend',
|
|
91
91
|
'@live-change/content-frontend',
|
|
92
|
+
'@live-change/blog-frontend',
|
|
92
93
|
'@live-change/image-frontend',
|
|
93
94
|
'@live-change/security-frontend',
|
|
94
95
|
'@live-change/upload-frontend',
|