@live-change/blog-frontend 0.2.26 → 0.2.27
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 +6 -0
- package/front/src/config.js +8 -6
- package/package.json +3 -3
- package/server/init.js +2 -2
- package/server/page.documentType.js +25 -4
package/front/src/App.vue
CHANGED
|
@@ -39,4 +39,10 @@
|
|
|
39
39
|
api.validators.email = emailValidator
|
|
40
40
|
api.validators.password = passwordValidator
|
|
41
41
|
|
|
42
|
+
import { defaultHighlightStyle } from "@codemirror/language"
|
|
43
|
+
import { StyleModule } from "style-mod"
|
|
44
|
+
if(typeof window != 'undefined') {
|
|
45
|
+
StyleModule.mount(window.document, defaultHighlightStyle.module)
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
</script>
|
package/front/src/config.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import deepmerge from 'deepmerge';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import blogEn from "../locales/en.json"
|
|
4
4
|
import { locales as autoFormLocales } from "@live-change/frontend-auto-form"
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
i18n: {
|
|
8
|
+
messages: {
|
|
9
|
+
en: deepmerge.all([
|
|
10
|
+
blogEn,
|
|
11
|
+
autoFormLocales.en
|
|
12
|
+
])
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/blog-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@fortawesome/fontawesome-free": "^6.2.0",
|
|
24
24
|
"@live-change/blog-service": "0.3.11",
|
|
25
25
|
"@live-change/cli": "0.7.10",
|
|
26
|
-
"@live-change/content-frontend": "^0.2.
|
|
26
|
+
"@live-change/content-frontend": "^0.2.27",
|
|
27
27
|
"@live-change/dao": "0.5.8",
|
|
28
28
|
"@live-change/dao-vue3": "0.5.8",
|
|
29
29
|
"@live-change/dao-websocket": "0.5.8",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"author": "",
|
|
66
66
|
"license": "ISC",
|
|
67
67
|
"description": "",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "b37e73f127df32ddccf8e9cb4baa21f79d11a487"
|
|
69
69
|
}
|
package/server/init.js
CHANGED
|
@@ -40,8 +40,8 @@ module.exports = async function(services) {
|
|
|
40
40
|
id: documentId,
|
|
41
41
|
ownerType: 'blog_Post',
|
|
42
42
|
owner: postId,
|
|
43
|
-
type: '
|
|
44
|
-
purpose: '
|
|
43
|
+
type: 'page',
|
|
44
|
+
purpose: 'blog_Post',
|
|
45
45
|
version: 1,
|
|
46
46
|
content: documentContent,
|
|
47
47
|
created: documentTime,
|
|
@@ -32,11 +32,13 @@ module.exports = {
|
|
|
32
32
|
"content": "text*",
|
|
33
33
|
"marks": "",
|
|
34
34
|
"group": "block",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"inline": false,
|
|
36
|
+
"atom": false,
|
|
37
|
+
"selectable": true,
|
|
38
|
+
"draggable": true,
|
|
37
39
|
"attrs": {
|
|
38
40
|
"language": {
|
|
39
|
-
"default":
|
|
41
|
+
"default": "text"
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
},
|
|
@@ -83,7 +85,7 @@ module.exports = {
|
|
|
83
85
|
"selectable": false
|
|
84
86
|
},
|
|
85
87
|
"component": {
|
|
86
|
-
"content": "block*",
|
|
88
|
+
"content": "(block | slot)*",
|
|
87
89
|
"marks": "",
|
|
88
90
|
"group": "block",
|
|
89
91
|
"inline": false,
|
|
@@ -97,6 +99,25 @@ module.exports = {
|
|
|
97
99
|
"default": {}
|
|
98
100
|
}
|
|
99
101
|
}
|
|
102
|
+
},
|
|
103
|
+
"slot": {
|
|
104
|
+
"content": "block*",
|
|
105
|
+
"marks": "",
|
|
106
|
+
"group": "slot",
|
|
107
|
+
"inline": false,
|
|
108
|
+
"selectable": false,
|
|
109
|
+
"draggable": false,
|
|
110
|
+
"attrs": {
|
|
111
|
+
"name": {
|
|
112
|
+
"default": "default"
|
|
113
|
+
},
|
|
114
|
+
"tag": {
|
|
115
|
+
"default": "div"
|
|
116
|
+
},
|
|
117
|
+
"attrs": {
|
|
118
|
+
"default": {}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
100
121
|
}
|
|
101
122
|
},
|
|
102
123
|
"topNode": "doc"
|