@tager/admin-blog 1.0.4 → 2.0.0
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/dist/dev/App.vue.d.ts +670 -1
- package/dist/index.mjs +106 -106
- package/dist/style.css +1 -1
- package/dist/typings/model.d.ts +6 -6
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +3129 -5
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +2404 -7
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +28422 -2889
- package/dist/views/Posts/PostList/PostList.vue.d.ts +2506 -12
- package/package.json +10 -10
- package/src/dev/config.ts +0 -1
- package/src/typings/model.ts +3 -3
- package/src/views/Categories/CategoryForm/CategoryForm.vue +4 -4
- package/src/views/Posts/PostForm/PostForm.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tager/admin-blog",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.39.5",
|
|
36
|
-
"@tager/admin-dynamic-field": "^
|
|
37
|
-
"@tager/admin-layout": "^
|
|
38
|
-
"@tager/admin-services": "^
|
|
39
|
-
"@tager/admin-ui": "^
|
|
36
|
+
"@tager/admin-dynamic-field": "^2.0.0",
|
|
37
|
+
"@tager/admin-layout": "^2.0.0",
|
|
38
|
+
"@tager/admin-services": "^2.0.1",
|
|
39
|
+
"@tager/admin-ui": "^2.0.8",
|
|
40
40
|
"@types/filesize": "^5.0.0",
|
|
41
41
|
"@types/lodash.isequal": "^4.5.6",
|
|
42
42
|
"@types/lodash.pick": "^4.4.7",
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"sass-loader": "^12.6.0",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
58
|
"vite": "^6.4.5",
|
|
59
|
-
"vue": "^3.
|
|
59
|
+
"vue": "^3.5.0",
|
|
60
60
|
"vue-eslint-parser": "^10.4.1",
|
|
61
61
|
"vue-router": "^4.0.14",
|
|
62
62
|
"vue-tsc": "^3.3.14"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@tager/admin-layout": "^
|
|
66
|
-
"@tager/admin-services": "^
|
|
67
|
-
"@tager/admin-ui": "^
|
|
68
|
-
"vue": "^3.
|
|
65
|
+
"@tager/admin-layout": "^2.0.0",
|
|
66
|
+
"@tager/admin-services": "^2.0.0",
|
|
67
|
+
"@tager/admin-ui": "^2.0.0",
|
|
68
|
+
"vue": "^3.4.0",
|
|
69
69
|
"vue-router": "^4.0.14"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
package/src/dev/config.ts
CHANGED
package/src/typings/model.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
type SingleFileInputValueType,
|
|
11
11
|
} from '@tager/admin-ui';
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export type SeoInfo = {
|
|
14
14
|
readonly pageTitle: Nullable<string>;
|
|
15
15
|
readonly pageDescription: Nullable<string>;
|
|
16
16
|
readonly pageKeywords: Nullable<string>;
|
|
@@ -19,7 +19,7 @@ export interface SeoInfo {
|
|
|
19
19
|
readonly openGraphImage: Nullable<FileType>;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export
|
|
22
|
+
export type Category = SeoInfo & {
|
|
23
23
|
readonly id: number;
|
|
24
24
|
readonly name: string;
|
|
25
25
|
readonly isDefault: boolean;
|
|
@@ -32,7 +32,7 @@ export interface Category extends SeoInfo {
|
|
|
32
32
|
readonly depth: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export
|
|
35
|
+
export type PostShort = {
|
|
36
36
|
readonly id: number;
|
|
37
37
|
readonly title: string;
|
|
38
38
|
readonly url: string;
|
|
@@ -95,15 +95,15 @@
|
|
|
95
95
|
|
|
96
96
|
<template v-if="selectedTabId === 'seo'">
|
|
97
97
|
<SeoFieldGroup
|
|
98
|
-
:title="values.pageTitle"
|
|
98
|
+
:title="values.pageTitle ?? ''"
|
|
99
99
|
:title-error-message="errors.pageTitle"
|
|
100
|
-
:description="values.pageDescription"
|
|
100
|
+
:description="values.pageDescription ?? ''"
|
|
101
101
|
:description-error-message="errors.pageDescription"
|
|
102
102
|
:should-display-keywords="false"
|
|
103
|
-
:keywords="values.pageKeywords"
|
|
103
|
+
:keywords="values.pageKeywords ?? ''"
|
|
104
104
|
:keywords-error-message="errors.pageKeywords"
|
|
105
105
|
:image="values.openGraphImage"
|
|
106
|
-
:image-scenario="imageScenario"
|
|
106
|
+
:image-scenario="imageScenario ?? undefined"
|
|
107
107
|
:image-error-message="errors.openGraphImage"
|
|
108
108
|
@change="handleSeoFieldGroupChange"
|
|
109
109
|
/>
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
:image-error-message="errors.openGraphImage"
|
|
205
205
|
:image-label="$i18n.t('blog:openGraphImage')"
|
|
206
206
|
:image-scenario="
|
|
207
|
-
moduleConfig ? moduleConfig.fileScenarios.openGraph :
|
|
207
|
+
moduleConfig ? (moduleConfig.fileScenarios.openGraph ?? undefined) : undefined
|
|
208
208
|
"
|
|
209
209
|
@change="handleSeoFieldGroupChange"
|
|
210
210
|
/>
|