@tager/admin-blog 0.3.42 → 1.0.1
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/constants/paths.d.ts +6 -14
- package/dist/constants/routes.d.ts +5 -5
- package/dist/dev/App.vue.d.ts +5 -0
- package/dist/dev/config.d.ts +2 -0
- package/dist/dev/env.d.ts +1 -0
- package/dist/dev/main.d.ts +3 -0
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/useFetchCategories.d.ts +3 -6
- package/dist/hooks/useFetchCategory.d.ts +7 -8
- package/dist/hooks/useFetchModuleConfig.d.ts +3 -6
- package/dist/hooks/useFetchPosts.d.ts +3 -6
- package/dist/index.mjs +2313 -0
- package/dist/locales/apply.d.ts +1 -0
- package/dist/locales/en.d.ts +87 -86
- package/dist/locales/ru.d.ts +3 -3
- package/dist/main.d.ts +3 -4
- package/dist/services/requests.d.ts +59 -59
- package/dist/style.css +1 -0
- package/dist/typings/common.d.ts +1 -1
- package/dist/typings/model.d.ts +106 -106
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/paths.d.ts +8 -0
- package/dist/views/Categories/CategoryForm/CategoryForm.helpers.d.ts +7 -7
- package/dist/views/Categories/CategoryForm/CategoryForm.vue.d.ts +53 -116
- package/dist/views/Categories/CategoryForm/index.d.ts +1 -1
- package/dist/views/Categories/CategoryList/CategoryList.helpers.d.ts +7 -7
- package/dist/views/Categories/CategoryList/CategoryList.vue.d.ts +26 -57
- package/dist/views/Categories/CategoryList/hooks/index.d.ts +1 -1
- package/dist/views/Categories/CategoryList/hooks/useAdvancedSearch.d.ts +19 -16
- package/dist/views/Categories/CategoryList/index.d.ts +1 -1
- package/dist/views/Posts/PostForm/PostForm.helpers.d.ts +32 -32
- package/dist/views/Posts/PostForm/PostForm.vue.d.ts +2768 -9398
- package/dist/views/Posts/PostForm/index.d.ts +1 -1
- package/dist/views/Posts/PostList/PostList.helpers.d.ts +7 -7
- package/dist/views/Posts/PostList/PostList.vue.d.ts +38 -78
- package/dist/views/Posts/PostList/hooks/index.d.ts +1 -1
- package/dist/views/Posts/PostList/hooks/useAdvancedSearch.d.ts +27 -24
- package/dist/views/Posts/PostList/index.d.ts +1 -1
- package/package.json +51 -49
- package/src/constants/paths.ts +0 -22
- package/src/constants/routes.ts +9 -9
- package/src/dev/App.vue +56 -0
- package/src/dev/config.ts +23 -0
- package/src/dev/env.ts +17 -0
- package/src/dev/main.ts +49 -0
- package/src/hooks/useFetchCategories.ts +2 -7
- package/src/hooks/useFetchCategory.ts +3 -6
- package/src/hooks/useFetchModuleConfig.ts +2 -7
- package/src/hooks/useFetchPosts.ts +2 -5
- package/src/locales/apply.ts +9 -0
- package/src/locales/en.ts +3 -3
- package/src/locales/ru.ts +4 -2
- package/src/main.ts +3 -8
- package/src/utils/paths.ts +23 -0
- package/src/views/Categories/CategoryForm/CategoryForm.vue +81 -65
- package/src/views/Categories/CategoryList/CategoryList.helpers.ts +1 -1
- package/src/views/Categories/CategoryList/CategoryList.vue +86 -58
- package/src/views/Categories/CategoryList/hooks/useAdvancedSearch.ts +9 -12
- package/src/views/Posts/PostForm/PostForm.vue +259 -224
- package/src/views/Posts/PostList/PostList.helpers.ts +3 -3
- package/src/views/Posts/PostList/PostList.vue +168 -168
- package/src/views/Posts/PostList/hooks/useAdvancedSearch.ts +22 -30
- package/CHANGELOG.md +0 -13
- package/dist/constants/menu.d.ts +0 -5
- package/dist/dev.d.ts +0 -1
- package/dist/index.esm.js +0 -5294
- package/dist/index.umd.js +0 -5321
- package/dist/router/index.d.ts +0 -4
- package/dist/views/Posts/PostForm/components/TabList/TabList.types.d.ts +0 -5
- package/dist/views/Posts/PostForm/components/TabList/index.d.ts +0 -2
- package/src/constants/menu.ts +0 -31
- package/src/dev.ts +0 -34
- package/src/router/index.ts +0 -40
- package/src/typings/sfc.d.ts +0 -12
- package/src/typings/shims-tsx.d.ts +0 -13
- package/src/typings/shims-vue.d.ts +0 -11
- package/src/typings/translate.d.ts +0 -10
- package/src/views/App.vue +0 -22
- package/src/views/Home.vue +0 -31
- package/src/views/Posts/PostForm/components/TabList/TabList.types.ts +0 -5
- package/src/views/Posts/PostForm/components/TabList/TabList.vue +0 -92
- package/src/views/Posts/PostForm/components/TabList/index.ts +0 -2
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
export declare const BLOG_ROUTE_PATHS: {
|
|
2
|
-
readonly POST_LIST: "/blog/posts";
|
|
3
|
-
readonly POST_FORM: "/blog/posts/:postId";
|
|
4
|
-
readonly CATEGORY_LIST: "/blog/categories";
|
|
5
|
-
readonly CATEGORY_FORM: "/blog/categories/:categoryId";
|
|
6
|
-
};
|
|
7
|
-
export declare function getBlogPostListUrl(): "/blog/posts";
|
|
8
|
-
export declare function getBlogPostFormUrl(params: {
|
|
9
|
-
postId: number | string;
|
|
10
|
-
}): string;
|
|
11
|
-
export declare function getBlogCategoryListUrl(): "/blog/categories";
|
|
12
|
-
export declare function getBlogCategoryFormUrl(params: {
|
|
13
|
-
categoryId: number | string;
|
|
14
|
-
}): string;
|
|
1
|
+
export declare const BLOG_ROUTE_PATHS: {
|
|
2
|
+
readonly POST_LIST: "/blog/posts";
|
|
3
|
+
readonly POST_FORM: "/blog/posts/:postId";
|
|
4
|
+
readonly CATEGORY_LIST: "/blog/categories";
|
|
5
|
+
readonly CATEGORY_FORM: "/blog/categories/:categoryId";
|
|
6
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const BLOG_POST_LIST_ROUTE:
|
|
3
|
-
export declare const BLOG_POST_FORM_ROUTE:
|
|
4
|
-
export declare const BLOG_CATEGORY_LIST_ROUTE:
|
|
5
|
-
export declare const BLOG_CATEGORY_FORM_ROUTE:
|
|
1
|
+
import { type RouteRecordRaw } from 'vue-router';
|
|
2
|
+
export declare const BLOG_POST_LIST_ROUTE: RouteRecordRaw;
|
|
3
|
+
export declare const BLOG_POST_FORM_ROUTE: RouteRecordRaw;
|
|
4
|
+
export declare const BLOG_CATEGORY_LIST_ROUTE: RouteRecordRaw;
|
|
5
|
+
export declare const BLOG_CATEGORY_FORM_ROUTE: RouteRecordRaw;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MenuItemType } from '@tager/admin-layout';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
sidebarMenuList: MenuItemType[];
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function populateEnvironment(): void;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useFetchPosts } from './useFetchPosts';
|
|
2
|
-
export { useFetchCategory } from './useFetchCategory';
|
|
3
|
-
export { useFetchCategories } from './useFetchCategories';
|
|
4
|
-
export { useFetchModuleConfig } from './useFetchModuleConfig';
|
|
1
|
+
export { useFetchPosts } from './useFetchPosts';
|
|
2
|
+
export { useFetchCategory } from './useFetchCategory';
|
|
3
|
+
export { useFetchCategories } from './useFetchCategories';
|
|
4
|
+
export { useFetchModuleConfig } from './useFetchModuleConfig';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function useFetchCategories({ context, }: {
|
|
5
|
-
context: SetupContext;
|
|
6
|
-
}): ResourceRef<Category[]>;
|
|
1
|
+
import { ResourceRef } from '@tager/admin-services';
|
|
2
|
+
import { Category } from '../typings/model';
|
|
3
|
+
export declare function useFetchCategories(): ResourceRef<Category[]>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Ref
|
|
2
|
-
import { Nullable, ResourceRef } from '@tager/admin-services';
|
|
3
|
-
import { Category } from '../typings/model';
|
|
4
|
-
export declare function useFetchCategory({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}): ResourceRef<Nullable<Category>>;
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Nullable, ResourceRef } from '@tager/admin-services';
|
|
3
|
+
import { Category } from '../typings/model';
|
|
4
|
+
export declare function useFetchCategory({ categoryId, isCreation, }: {
|
|
5
|
+
categoryId: Ref<string>;
|
|
6
|
+
isCreation: Ref<boolean>;
|
|
7
|
+
}): ResourceRef<Nullable<Category>>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function useFetchModuleConfig({ context, }: {
|
|
5
|
-
context: SetupContext;
|
|
6
|
-
}): ResourceRef<Nullable<ModuleConfig>>;
|
|
1
|
+
import { Nullable, ResourceRef } from '@tager/admin-services';
|
|
2
|
+
import { ModuleConfig } from '../typings/model';
|
|
3
|
+
export declare function useFetchModuleConfig(): ResourceRef<Nullable<ModuleConfig>>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function useFetchPosts(params: {
|
|
5
|
-
context: SetupContext;
|
|
6
|
-
}): ResourceRef<PostShort[]>;
|
|
1
|
+
import { ResourceRef } from '@tager/admin-services';
|
|
2
|
+
import { PostShort } from '../typings/model';
|
|
3
|
+
export declare function useFetchPosts(): ResourceRef<PostShort[]>;
|