@tager/admin-blog 1.0.3 → 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.
Files changed (40) hide show
  1. package/dist/dev/App.vue.d.ts +674 -4
  2. package/dist/hooks/useFetchCategories.d.ts +2 -2
  3. package/dist/hooks/useFetchCategory.d.ts +3 -3
  4. package/dist/hooks/useFetchModuleConfig.d.ts +2 -2
  5. package/dist/hooks/useFetchPosts.d.ts +2 -2
  6. package/dist/index.mjs +1418 -1653
  7. package/dist/services/requests.d.ts +4 -4
  8. package/dist/style.css +1 -1
  9. package/dist/typings/common.d.ts +1 -1
  10. package/dist/typings/model.d.ts +9 -9
  11. package/dist/views/Categories/CategoryForm/CategoryForm.helpers.d.ts +4 -4
  12. package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +3134 -9
  13. package/dist/views/Categories/CategoryList/CategoryList.helpers.d.ts +4 -4
  14. package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +2409 -11
  15. package/dist/views/Categories/CategoryList/hooks/useAdvancedSearch.d.ts +5 -5
  16. package/dist/views/Posts/PostForm/PostForm.helpers.d.ts +6 -6
  17. package/dist/views/Posts/PostForm/PostForm.vue.d.ts +28823 -1809
  18. package/dist/views/Posts/PostList/PostList.helpers.d.ts +4 -4
  19. package/dist/views/Posts/PostList/PostList.vue.d.ts +2512 -17
  20. package/dist/views/Posts/PostList/hooks/useAdvancedSearch.d.ts +5 -5
  21. package/package.json +29 -33
  22. package/src/dev/App.vue +1 -1
  23. package/src/dev/config.ts +0 -1
  24. package/src/dev/env.ts +11 -11
  25. package/src/hooks/useFetchCategories.ts +2 -2
  26. package/src/hooks/useFetchCategory.ts +3 -3
  27. package/src/hooks/useFetchModuleConfig.ts +2 -2
  28. package/src/hooks/useFetchPosts.ts +2 -2
  29. package/src/services/requests.ts +7 -7
  30. package/src/typings/model.ts +10 -10
  31. package/src/views/Categories/CategoryForm/CategoryForm.helpers.ts +6 -6
  32. package/src/views/Categories/CategoryForm/CategoryForm.vue +11 -11
  33. package/src/views/Categories/CategoryList/CategoryList.helpers.ts +4 -4
  34. package/src/views/Categories/CategoryList/CategoryList.vue +1 -1
  35. package/src/views/Categories/CategoryList/hooks/useAdvancedSearch.ts +6 -6
  36. package/src/views/Posts/PostForm/PostForm.helpers.ts +8 -8
  37. package/src/views/Posts/PostForm/PostForm.vue +13 -13
  38. package/src/views/Posts/PostList/PostList.helpers.ts +7 -7
  39. package/src/views/Posts/PostList/PostList.vue +7 -7
  40. package/src/views/Posts/PostList/hooks/useAdvancedSearch.ts +6 -6
@@ -1,6 +1,6 @@
1
- import { Nullable, ResponseBody } from '@tager/admin-services';
2
- import { FieldShortType, OutgoingValueUnion } from '@tager/admin-dynamic-field';
3
- import { Category, ModuleConfig, PostShort, PostFull, CategoryPayload } from '../typings/model';
1
+ import { type Nullable, type ResponseBody } from '@tager/admin-services';
2
+ import { type FieldShortType, type OutgoingValueUnion } from '@tager/admin-dynamic-field';
3
+ import { type Category, type ModuleConfig, type PostShort, type PostFull, type CategoryPayload } from '../typings/model';
4
4
  /** Blog Posts */
5
5
  export declare function getPosts(params?: {
6
6
  query?: string;
@@ -35,7 +35,7 @@ export interface PostCreationPayload {
35
35
  publishAt: Nullable<string>;
36
36
  }
37
37
  export declare function createBlogPost(payload: PostCreationPayload): Promise<ResponseBody<PostFull>>;
38
- export declare type PostUpdatePayload = PostCreationPayload & {
38
+ export type PostUpdatePayload = PostCreationPayload & {
39
39
  urlAlias: string;
40
40
  };
41
41
  export declare function updateBlogPost(postId: number | string, payload: PostUpdatePayload): Promise<ResponseBody<PostFull>>;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .filters[data-v-02162423]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-02162423]:not(:first-child){margin-top:1rem}.status span[data-v-02162423]{display:block}.status span[data-v-02162423]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-02162423]{display:block}.status[data-v-15dc5eec]{display:flex;align-items:flex-end}.status-value[data-v-15dc5eec]{flex-basis:50%}.status-checkbox[data-v-15dc5eec]{margin-left:20px;padding-bottom:8px}.status-date[data-v-15dc5eec]{margin-left:20px;flex:1 1 1px}
1
+ .filters[data-v-7b6e97da]{margin-bottom:1rem;width:100%;display:grid;gap:1rem;grid-template-columns:1fr 1fr}.filters[data-v-7b6e97da]:not(:first-child){margin-top:1rem}.status span[data-v-7b6e97da]{display:block}.status span[data-v-7b6e97da]:nth-child(2){display:block;margin-top:5px;font-size:.8rem}.status span:nth-child(2) i[data-v-7b6e97da]{display:block}.status[data-v-66887350]{display:flex;align-items:flex-end}.status-value[data-v-66887350]{flex-basis:50%}.status-checkbox[data-v-66887350]{margin-left:20px;padding-bottom:8px}.status-date[data-v-66887350]{margin-left:20px;flex:1 1 1px}
@@ -1 +1 @@
1
- export declare type Values<T> = T[keyof T];
1
+ export type Values<T> = T[keyof T];
@@ -1,15 +1,15 @@
1
- import { Nullable, FileType } from '@tager/admin-services';
2
- import { FieldConfigUnion, FieldShortType, IncomingValueUnion } from '@tager/admin-dynamic-field';
3
- import { OptionType, ShortCodeItemType, SingleFileInputValueType } from '@tager/admin-ui';
4
- export interface SeoInfo {
1
+ import { type Nullable, type FileType } from '@tager/admin-services';
2
+ import { type FieldConfigUnion, type FieldShortType, type IncomingValueUnion } from '@tager/admin-dynamic-field';
3
+ import { type OptionType, type ShortCodeItemType, type SingleFileInputValueType } from '@tager/admin-ui';
4
+ export type SeoInfo = {
5
5
  readonly pageTitle: Nullable<string>;
6
6
  readonly pageDescription: Nullable<string>;
7
7
  readonly pageKeywords: Nullable<string>;
8
8
  readonly openGraphTitle: Nullable<string>;
9
9
  readonly openGraphDescription: Nullable<string>;
10
10
  readonly openGraphImage: Nullable<FileType>;
11
- }
12
- export interface Category extends SeoInfo {
11
+ };
12
+ export type Category = SeoInfo & {
13
13
  readonly id: number;
14
14
  readonly name: string;
15
15
  readonly isDefault: boolean;
@@ -23,8 +23,8 @@ export interface Category extends SeoInfo {
23
23
  name: string;
24
24
  }>;
25
25
  readonly depth: number;
26
- }
27
- export interface PostShort {
26
+ };
27
+ export type PostShort = {
28
28
  readonly id: number;
29
29
  readonly title: string;
30
30
  readonly url: string;
@@ -34,7 +34,7 @@ export interface PostShort {
34
34
  readonly categories: Category[];
35
35
  readonly datetime: string;
36
36
  readonly image: Nullable<FileType>;
37
- }
37
+ };
38
38
  export interface PostFull extends SeoInfo {
39
39
  readonly id: number;
40
40
  readonly language: string;
@@ -1,7 +1,7 @@
1
- import { TFunction } from 'i18next';
2
- import { Nullable } from '@tager/admin-services';
3
- import { OptionType } from '@tager/admin-ui';
4
- import { Category, CategoryFormValues, CategoryPayload } from '../../../typings/model';
1
+ import { type TFunction } from 'i18next';
2
+ import { type Nullable } from '@tager/admin-services';
3
+ import { type OptionType } from '@tager/admin-ui';
4
+ import { type Category, type CategoryFormValues, type CategoryPayload } from '../../../typings/model';
5
5
  export declare function convertCategoryToFormValues(category: Nullable<Category>, languageOptionList: OptionType[], t: TFunction): CategoryFormValues;
6
6
  export declare function convertCategoryFormValuesToPayload(values: CategoryFormValues): CategoryPayload;
7
7
  export declare function convertCategoryListToOptions(categoryList: Category[], languageId: Nullable<string>, t: TFunction): OptionType<Nullable<number>>[];