@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tager/admin-blog",
3
- "version": "1.0.4",
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": "^1.0.2",
37
- "@tager/admin-layout": "^1.0.11",
38
- "@tager/admin-services": "^1.1.11",
39
- "@tager/admin-ui": "^1.0.54",
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.2.31",
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": "^1.0.0",
66
- "@tager/admin-services": "^1.0.0",
67
- "@tager/admin-ui": "^1.0.1",
68
- "vue": "^3.2.31",
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
@@ -16,7 +16,6 @@ export const OZITAG_CONFIG: AppConfigType = {
16
16
  subtitle: '',
17
17
  },
18
18
  SPLASH_SCREEN: {
19
- enabled: true,
20
19
  logo: 'logo-white.svg',
21
20
  background: '#1e1e1e',
22
21
  },
@@ -10,7 +10,7 @@ import {
10
10
  type SingleFileInputValueType,
11
11
  } from '@tager/admin-ui';
12
12
 
13
- export interface SeoInfo {
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 interface Category extends SeoInfo {
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 interface PostShort {
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 : null
207
+ moduleConfig ? (moduleConfig.fileScenarios.openGraph ?? undefined) : undefined
208
208
  "
209
209
  @change="handleSeoFieldGroupChange"
210
210
  />