@yimingliao/cms 0.0.154 → 0.0.156
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/export/client/components/resources/index.js +46 -0
- package/dist/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.js +54 -0
- package/dist/src/client/applications/resources/seo-metadata/use-upsert-form-data.js +15 -0
- package/dist/src/client/interfaces/components/resources/category/category-relations-section.js +3 -11
- package/dist/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.js +115 -0
- package/dist/src/client/interfaces/components/resources/folder/file-manager-list.js +127 -0
- package/dist/src/client/interfaces/components/resources/folder/folder-card.js +62 -0
- package/dist/src/client/interfaces/components/resources/folder/folder-full-path.js +40 -0
- package/dist/src/client/interfaces/components/resources/folder/folder-list.js +156 -0
- package/dist/src/client/interfaces/components/resources/folder/folder-relations-section.js +75 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.js +187 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.js +78 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.js +441 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.js +85 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.js +56 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.js +186 -0
- package/dist/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.js +69 -0
- package/dist/src/client/interfaces/components/resources/tag/tag-card.js +78 -0
- package/dist/src/client/interfaces/components/resources/tag/tag-list.js +139 -0
- package/dist/src/client/interfaces/components/resources/tag/tag-relations-section.js +70 -0
- package/dist/src/client/interfaces/components/resources/topic/topic-card.js +91 -0
- package/dist/src/client/interfaces/components/resources/topic/topic-list.js +138 -0
- package/dist/src/client/interfaces/components/resources/topic/topic-relations-section.js +104 -0
- package/dist/src/server/infrastructure/database/post/query/create-post-query-repository.js +15 -15
- package/dist/types/export/client/components/resources/index.d.ts +1 -1
- package/dist/types/export/client/components/resources/index.d.ts.map +1 -1
- package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts +2 -0
- package/dist/types/src/client/applications/resources/seo-metadata/index.d.ts.map +1 -0
- package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts +34 -0
- package/dist/types/src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.d.ts.map +1 -0
- package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts +79 -0
- package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/category/category-relations-section.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts +1 -1
- package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.d.ts +8 -0
- package/dist/types/src/client/interfaces/components/resources/folder/file-manager/file-manager-header.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/file-manager-list.d.ts +28 -0
- package/dist/types/src/client/interfaces/components/resources/folder/file-manager-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-card.d.ts +13 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-full-path.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-full-path.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-list.d.ts +26 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-relations-section.d.ts +10 -0
- package/dist/types/src/client/interfaces/components/resources/folder/folder-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/folder/index.d.ts +6 -0
- package/dist/types/src/client/interfaces/components/resources/folder/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/index.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts +3 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/base-tags.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts +5 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/json-ld-tags.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts +13 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/open-graph-tags.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/fields/twitter-tags.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts +3 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/reference-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts +8 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form-side-fields.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts +28 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-form/seo-form.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/resources/seo-metadata/seo-metadata-dialog.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/tag/index.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/resources/tag/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-card.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-list.d.ts +17 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/tag/tag-relations-section.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/topic/index.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/resources/topic/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-card.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-list.d.ts +16 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts +12 -0
- package/dist/types/src/client/interfaces/components/resources/topic/topic-relations-section.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useMemo, useEffect } from 'react';
|
|
3
|
+
import '../../../../../constants/paths/auth.js';
|
|
4
|
+
import '../../../../../constants/paths/main.js';
|
|
5
|
+
import '../../../../../constants/paths/resources.js';
|
|
6
|
+
import { CACHE_KEYS } from '../../../../../constants/cache-keys.js';
|
|
7
|
+
import '../../../../../constants/redirect-paths.js';
|
|
8
|
+
import '../../../../../domain/resources/admin/constants.js';
|
|
9
|
+
import { POST_TYPES } from '../../../../../domain/resources/post/props.js';
|
|
10
|
+
import 'mime-types';
|
|
11
|
+
import { debounce } from '../../../../../shared/utils/debounce.js';
|
|
12
|
+
import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
|
|
13
|
+
import 'ua-parser-js';
|
|
14
|
+
import { cn } from '../../../../applications/shadcn/utils.js';
|
|
15
|
+
import 'next/navigation';
|
|
16
|
+
import 'intor/react';
|
|
17
|
+
import 'lucide-react';
|
|
18
|
+
import '@radix-ui/react-avatar';
|
|
19
|
+
import '../../shadcn/badge.js';
|
|
20
|
+
import '../../shadcn/button.js';
|
|
21
|
+
import '@radix-ui/react-collapsible';
|
|
22
|
+
import '@radix-ui/react-dialog';
|
|
23
|
+
import '@radix-ui/react-dropdown-menu';
|
|
24
|
+
import '../../shadcn/input-group.js';
|
|
25
|
+
import '../../shadcn/item.js';
|
|
26
|
+
import '@radix-ui/react-label';
|
|
27
|
+
import '@radix-ui/react-select';
|
|
28
|
+
import '@radix-ui/react-separator';
|
|
29
|
+
import '../../shadcn/sidebar.js';
|
|
30
|
+
import 'next-themes';
|
|
31
|
+
import 'sonner';
|
|
32
|
+
import '@radix-ui/react-tabs';
|
|
33
|
+
import '@radix-ui/react-tooltip';
|
|
34
|
+
import { ListCardsContainer } from '../../ui/blocks/list-cards-container/list-cards-container.js';
|
|
35
|
+
import 'next/link';
|
|
36
|
+
import 'next/image';
|
|
37
|
+
import { Tick } from '../../ui/features/tick.js';
|
|
38
|
+
import { ControlFieldsButtons } from '../post/control-fields-buttons.js';
|
|
39
|
+
import { TopicCard } from './topic-card.js';
|
|
40
|
+
|
|
41
|
+
function createTopicList({
|
|
42
|
+
useQuery,
|
|
43
|
+
postFindListCardsAction
|
|
44
|
+
}) {
|
|
45
|
+
return function TopicList({
|
|
46
|
+
setItemStates,
|
|
47
|
+
// Pick Mode
|
|
48
|
+
pickedItems,
|
|
49
|
+
handleClick
|
|
50
|
+
}) {
|
|
51
|
+
const [page, setPage] = useState(1);
|
|
52
|
+
const [pageSize, setPageSize] = useState(20);
|
|
53
|
+
const [searchString, setSearchString] = useState("");
|
|
54
|
+
const debouncedSetSearchString = useMemo(
|
|
55
|
+
() => debounce((v) => setSearchString(v), 300),
|
|
56
|
+
[]
|
|
57
|
+
);
|
|
58
|
+
const [controlFields, setControlFields] = useState({
|
|
59
|
+
isActive: false,
|
|
60
|
+
isIndexActive: false,
|
|
61
|
+
isSlugActive: false
|
|
62
|
+
});
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
queueMicrotask(() => setPage(1));
|
|
65
|
+
}, [controlFields, setPage]);
|
|
66
|
+
const { data, isFetching } = useQuery(
|
|
67
|
+
() => postFindListCardsAction({
|
|
68
|
+
type: POST_TYPES.TOPIC,
|
|
69
|
+
page,
|
|
70
|
+
pageSize,
|
|
71
|
+
searchString,
|
|
72
|
+
...controlFields
|
|
73
|
+
}),
|
|
74
|
+
[
|
|
75
|
+
CACHE_KEYS.findListCards("topic"),
|
|
76
|
+
page,
|
|
77
|
+
pageSize,
|
|
78
|
+
searchString,
|
|
79
|
+
JSON.stringify(controlFields)
|
|
80
|
+
]
|
|
81
|
+
);
|
|
82
|
+
const topics = useMemo(() => ensureArray(data?.items), [data?.items]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
setItemStates?.({
|
|
85
|
+
items: topics,
|
|
86
|
+
count: data?.total ?? 0,
|
|
87
|
+
isFetching
|
|
88
|
+
});
|
|
89
|
+
}, [topics, data?.total, isFetching, setItemStates]);
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
ListCardsContainer,
|
|
92
|
+
{
|
|
93
|
+
page,
|
|
94
|
+
setPage,
|
|
95
|
+
pageSize,
|
|
96
|
+
setPageSize,
|
|
97
|
+
total: data?.total ?? 0,
|
|
98
|
+
searchString,
|
|
99
|
+
setSearchString: debouncedSetSearchString,
|
|
100
|
+
isFetching,
|
|
101
|
+
headerChildren: /* @__PURE__ */ jsx(
|
|
102
|
+
ControlFieldsButtons,
|
|
103
|
+
{
|
|
104
|
+
controlFields,
|
|
105
|
+
setControlFields
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
children: topics.map((topic) => {
|
|
109
|
+
const isPicked = pickedItems?.some((item) => item.id === topic.id);
|
|
110
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
111
|
+
/* @__PURE__ */ jsx(
|
|
112
|
+
TopicCard,
|
|
113
|
+
{
|
|
114
|
+
topic,
|
|
115
|
+
className: cn(pickedItems && !isPicked && "opacity-50"),
|
|
116
|
+
anchorProps: handleClick && {
|
|
117
|
+
onClick: (e) => {
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
handleClick(topic);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
pickedItems && /* @__PURE__ */ jsx(
|
|
125
|
+
Tick,
|
|
126
|
+
{
|
|
127
|
+
isPicked: isPicked ?? false,
|
|
128
|
+
className: "absolute top-2 right-2"
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
] }, topic.id);
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { createTopicList };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { useTranslator } from 'intor/react';
|
|
4
|
+
import '../../../../../domain/resources/admin/constants.js';
|
|
5
|
+
import { POST_TYPES } from '../../../../../domain/resources/post/props.js';
|
|
6
|
+
import 'mime-types';
|
|
7
|
+
import { ensureArray } from '../../../../../shared/utils/ensure-array.js';
|
|
8
|
+
import 'lucide-react';
|
|
9
|
+
import 'react';
|
|
10
|
+
import 'ua-parser-js';
|
|
11
|
+
import 'clsx';
|
|
12
|
+
import 'tailwind-merge';
|
|
13
|
+
import 'next/navigation';
|
|
14
|
+
import '@radix-ui/react-avatar';
|
|
15
|
+
import '../../shadcn/badge.js';
|
|
16
|
+
import '../../shadcn/button.js';
|
|
17
|
+
import '@radix-ui/react-collapsible';
|
|
18
|
+
import '@radix-ui/react-dialog';
|
|
19
|
+
import '@radix-ui/react-dropdown-menu';
|
|
20
|
+
import '../../shadcn/input-group.js';
|
|
21
|
+
import '../../shadcn/item.js';
|
|
22
|
+
import '@radix-ui/react-label';
|
|
23
|
+
import '@radix-ui/react-select';
|
|
24
|
+
import '@radix-ui/react-separator';
|
|
25
|
+
import '../../shadcn/sidebar.js';
|
|
26
|
+
import 'next-themes';
|
|
27
|
+
import 'sonner';
|
|
28
|
+
import '@radix-ui/react-tabs';
|
|
29
|
+
import '@radix-ui/react-tooltip';
|
|
30
|
+
import 'next/link';
|
|
31
|
+
import '../../../../../constants/paths/auth.js';
|
|
32
|
+
import '../../../../../constants/paths/main.js';
|
|
33
|
+
import '../../../../../constants/paths/resources.js';
|
|
34
|
+
import '../../../../../constants/redirect-paths.js';
|
|
35
|
+
import { Accordion } from '../../ui/features/accordion/accordion.js';
|
|
36
|
+
import { AccordionContainer } from '../../ui/features/accordion/accordion-container.js';
|
|
37
|
+
import 'next/image';
|
|
38
|
+
|
|
39
|
+
function createTopicRelationsSection({
|
|
40
|
+
CategoryList,
|
|
41
|
+
PostList
|
|
42
|
+
}) {
|
|
43
|
+
return function TopicRelationsSection({
|
|
44
|
+
topic,
|
|
45
|
+
categoryUsableFields = ["isActive", "isIndexActive", "isSlugActive"],
|
|
46
|
+
postUsableFields = [
|
|
47
|
+
"isActive",
|
|
48
|
+
"isIndexActive",
|
|
49
|
+
"isSlugActive",
|
|
50
|
+
"isFeatured",
|
|
51
|
+
"isShownOnHome"
|
|
52
|
+
]
|
|
53
|
+
}) {
|
|
54
|
+
const { t } = useTranslator();
|
|
55
|
+
const postsInTopic = ensureArray(topic?.postsInTopic);
|
|
56
|
+
const categories = postsInTopic.filter(
|
|
57
|
+
(p) => p.type === POST_TYPES.CATEGORY
|
|
58
|
+
);
|
|
59
|
+
const posts = postsInTopic.filter((p) => p.type === POST_TYPES.POST);
|
|
60
|
+
return /* @__PURE__ */ jsxs(AccordionContainer, { children: [
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
62
|
+
Accordion,
|
|
63
|
+
{
|
|
64
|
+
hasBorder: true,
|
|
65
|
+
accordionHeaderProps: {
|
|
66
|
+
count: categories.length,
|
|
67
|
+
isRelated: true,
|
|
68
|
+
children: t("resources.category.text")
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ jsx(
|
|
71
|
+
CategoryList,
|
|
72
|
+
{
|
|
73
|
+
postIds: categories.map((p) => p.id),
|
|
74
|
+
openNewTab: true,
|
|
75
|
+
usableFields: categoryUsableFields
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
Accordion,
|
|
82
|
+
{
|
|
83
|
+
hasBorder: true,
|
|
84
|
+
accordionHeaderProps: {
|
|
85
|
+
count: posts.length,
|
|
86
|
+
isRelated: true,
|
|
87
|
+
children: t("resources.post.text")
|
|
88
|
+
},
|
|
89
|
+
children: /* @__PURE__ */ jsx(
|
|
90
|
+
PostList,
|
|
91
|
+
{
|
|
92
|
+
postIds: posts.map((p) => p.id),
|
|
93
|
+
openNewTab: true,
|
|
94
|
+
type: null,
|
|
95
|
+
usableFields: postUsableFields
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] });
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { createTopicRelationsSection };
|
|
@@ -61,21 +61,21 @@ function createPostQueryRepository(prisma) {
|
|
|
61
61
|
// type
|
|
62
62
|
...type ? { type } : {},
|
|
63
63
|
// states
|
|
64
|
-
...isActive
|
|
65
|
-
...isIndexActive
|
|
66
|
-
...isSlugActive
|
|
67
|
-
...isFeatured
|
|
68
|
-
...isShownOnHome
|
|
69
|
-
...state1
|
|
70
|
-
...state2
|
|
71
|
-
...state3
|
|
72
|
-
...state4
|
|
73
|
-
...state5
|
|
74
|
-
...state6
|
|
75
|
-
...state7
|
|
76
|
-
...state8
|
|
77
|
-
...state9
|
|
78
|
-
...state10
|
|
64
|
+
...isActive ? { isActive: true } : {},
|
|
65
|
+
...isIndexActive ? { isIndexActive: true } : {},
|
|
66
|
+
...isSlugActive ? { isSlugActive: true } : {},
|
|
67
|
+
...isFeatured ? { isFeatured: true } : {},
|
|
68
|
+
...isShownOnHome ? { isShownOnHome: true } : {},
|
|
69
|
+
...state1 ? { state1: true } : {},
|
|
70
|
+
...state2 ? { state2: true } : {},
|
|
71
|
+
...state3 ? { state3: true } : {},
|
|
72
|
+
...state4 ? { state4: true } : {},
|
|
73
|
+
...state5 ? { state5: true } : {},
|
|
74
|
+
...state6 ? { state6: true } : {},
|
|
75
|
+
...state7 ? { state7: true } : {},
|
|
76
|
+
...state8 ? { state8: true } : {},
|
|
77
|
+
...state9 ? { state9: true } : {},
|
|
78
|
+
...state10 ? { state10: true } : {},
|
|
79
79
|
// relations
|
|
80
80
|
...topicId ? { topicId } : {},
|
|
81
81
|
...topicSlug ? { topic: { slug: topicSlug } } : {},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, } from "../../../../src/client/interfaces/components/resources";
|
|
1
|
+
export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, createFileCard, createFileList, createFileRelationsSection, FolderCard, createFolderList, FolderFullPath, createFileManagerList, createFolderRelationsSection, createPostCard, createPostList, createPostRelationsSection, PostTypeGate, CategoryCard, createCategoryList, createCategoryRelationsSection, TopicCard, createTopicList, createTopicRelationsSection, TagCard, createTagList, createTagRelationsSection, createBaseTags, createJsonLdTags, createOpenGraphTags, createSeoForm, createSeoMetadataDialog, } from "../../../../src/client/interfaces/components/resources";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../export/client/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,cAAc,EACd,0BAA0B,EAE1B,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,EAE5B,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,EAEZ,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,EAE9B,SAAS,EACT,eAAe,EACf,2BAA2B,EAE3B,OAAO,EACP,aAAa,EACb,yBAAyB,EAEzB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,uBAAuB,GACxB,MAAM,wDAAwD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { createBuildTranslations } from "../../../../shared";
|
|
2
|
+
import type { Alternate } from "@yimingliao/cms";
|
|
3
|
+
export declare function createSeoMetadataEmptyTranslation(buildTranslations: ReturnType<typeof createBuildTranslations>): ({
|
|
4
|
+
locale: string;
|
|
5
|
+
} & {
|
|
6
|
+
title: null;
|
|
7
|
+
description: null;
|
|
8
|
+
author: null;
|
|
9
|
+
canonical: null;
|
|
10
|
+
alternate: Alternate[];
|
|
11
|
+
robots: null;
|
|
12
|
+
ogTitle: null;
|
|
13
|
+
ogDescription: null;
|
|
14
|
+
ogUrl: null;
|
|
15
|
+
ogType: null;
|
|
16
|
+
ogSiteName: null;
|
|
17
|
+
ogImage: null;
|
|
18
|
+
ogImageAlt: null;
|
|
19
|
+
ogImageType: null;
|
|
20
|
+
ogImageWidth: 0;
|
|
21
|
+
ogImageHeight: 0;
|
|
22
|
+
ogLocale: null;
|
|
23
|
+
ogLocaleAlternate: [];
|
|
24
|
+
ogArticlePublishedTime: null;
|
|
25
|
+
ogArticleModifiedTime: null;
|
|
26
|
+
ogArticleAuthor: null;
|
|
27
|
+
ogArticleSection: null;
|
|
28
|
+
ogArticleTag: [];
|
|
29
|
+
twitterCard: null;
|
|
30
|
+
twitterSite: null;
|
|
31
|
+
twitterCreator: null;
|
|
32
|
+
jsonLd: [];
|
|
33
|
+
})[];
|
|
34
|
+
//# sourceMappingURL=seo-metadata-empty-translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo-metadata-empty-translation.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/seo-metadata-empty-translation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wBAAgB,iCAAiC,CAC/C,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgE9D"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { createBuildTranslations } from "../../../../shared";
|
|
2
|
+
export declare function useSeoMetadataUpsertFormData({ id, buildTranslations, }: {
|
|
3
|
+
id?: string;
|
|
4
|
+
buildTranslations: ReturnType<typeof createBuildTranslations>;
|
|
5
|
+
}): {
|
|
6
|
+
formData: {
|
|
7
|
+
postId: string;
|
|
8
|
+
translations: {
|
|
9
|
+
locale: string;
|
|
10
|
+
title: string | null;
|
|
11
|
+
description: string | null;
|
|
12
|
+
author: string | null;
|
|
13
|
+
canonical: string | null;
|
|
14
|
+
alternate: {
|
|
15
|
+
hreflang: string;
|
|
16
|
+
href: string;
|
|
17
|
+
}[];
|
|
18
|
+
robots: string | null;
|
|
19
|
+
ogTitle: string | null;
|
|
20
|
+
ogDescription: string | null;
|
|
21
|
+
ogUrl: string | null;
|
|
22
|
+
ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
|
|
23
|
+
ogSiteName: string | null;
|
|
24
|
+
ogImage: string | null;
|
|
25
|
+
ogImageAlt: string | null;
|
|
26
|
+
ogImageType: string | null;
|
|
27
|
+
ogImageWidth: number | null;
|
|
28
|
+
ogImageHeight: number | null;
|
|
29
|
+
ogLocale: string | null;
|
|
30
|
+
ogLocaleAlternate: string[];
|
|
31
|
+
ogArticlePublishedTime: string | null;
|
|
32
|
+
ogArticleModifiedTime: string | null;
|
|
33
|
+
ogArticleAuthor: string | null;
|
|
34
|
+
ogArticleSection: string | null;
|
|
35
|
+
ogArticleTag: string[];
|
|
36
|
+
twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
|
|
37
|
+
twitterSite: string | null;
|
|
38
|
+
twitterCreator: string | null;
|
|
39
|
+
jsonLd: any[];
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
setFormData: import("react").Dispatch<import("react").SetStateAction<{
|
|
43
|
+
postId: string;
|
|
44
|
+
translations: {
|
|
45
|
+
locale: string;
|
|
46
|
+
title: string | null;
|
|
47
|
+
description: string | null;
|
|
48
|
+
author: string | null;
|
|
49
|
+
canonical: string | null;
|
|
50
|
+
alternate: {
|
|
51
|
+
hreflang: string;
|
|
52
|
+
href: string;
|
|
53
|
+
}[];
|
|
54
|
+
robots: string | null;
|
|
55
|
+
ogTitle: string | null;
|
|
56
|
+
ogDescription: string | null;
|
|
57
|
+
ogUrl: string | null;
|
|
58
|
+
ogType: "article" | "book" | "music.song" | "music.album" | "music.playlist" | "music.radio_station" | "profile" | "website" | "video.tv_show" | "video.other" | "video.movie" | "video.episode" | null;
|
|
59
|
+
ogSiteName: string | null;
|
|
60
|
+
ogImage: string | null;
|
|
61
|
+
ogImageAlt: string | null;
|
|
62
|
+
ogImageType: string | null;
|
|
63
|
+
ogImageWidth: number | null;
|
|
64
|
+
ogImageHeight: number | null;
|
|
65
|
+
ogLocale: string | null;
|
|
66
|
+
ogLocaleAlternate: string[];
|
|
67
|
+
ogArticlePublishedTime: string | null;
|
|
68
|
+
ogArticleModifiedTime: string | null;
|
|
69
|
+
ogArticleAuthor: string | null;
|
|
70
|
+
ogArticleSection: string | null;
|
|
71
|
+
ogArticleTag: string[];
|
|
72
|
+
twitterCard: "summary" | "summary_large_image" | "player" | "app" | null;
|
|
73
|
+
twitterSite: string | null;
|
|
74
|
+
twitterCreator: string | null;
|
|
75
|
+
jsonLd: any[];
|
|
76
|
+
}[];
|
|
77
|
+
}>>;
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=use-upsert-form-data.d.ts.map
|
package/dist/types/src/client/applications/resources/seo-metadata/use-upsert-form-data.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-upsert-form-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/applications/resources/seo-metadata/use-upsert-form-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAKlE,wBAAgB,4BAA4B,CAAC,EAC3C,EAAE,EACF,iBAAiB,GAClB,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;CAC/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"category-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/category/category-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0C,6BAGtC;IACD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,6CAuBF"}
|
|
@@ -6,7 +6,7 @@ import type { createUseQuery } from "../../../../infrastructure";
|
|
|
6
6
|
import type { Dispatch, SetStateAction } from "react";
|
|
7
7
|
import { type ListItemsState } from "../../../../../shared";
|
|
8
8
|
interface FileListProps {
|
|
9
|
-
setItemStates?: Dispatch<SetStateAction<ListItemsState<FileFull
|
|
9
|
+
setItemStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>> | undefined;
|
|
10
10
|
folderId?: string;
|
|
11
11
|
isDeleted?: boolean;
|
|
12
12
|
fileIds?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,aAAa;IACrB,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"file-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,aAAa;IACrB,aAAa,CAAC,EACV,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,GAClD,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,uBAAuB,EACvB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0B,wFAWtB,aAAa,6CAgHjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FolderFull } from "../../../../../../domain/resources/folder/full";
|
|
2
|
+
interface FileManagerHeaderProps {
|
|
3
|
+
folder?: FolderFull | null;
|
|
4
|
+
folderKey: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function FileManagerHeader({ folder, folderKey, }: FileManagerHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=file-manager-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-manager-header.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/resources/folder/file-manager/file-manager-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAQjF,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,GACV,EAAE,sBAAsB,2CAkFxB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { createFolderList } from "./folder-list";
|
|
2
|
+
import type { FileFull } from "../../../../../domain/resources/file/full";
|
|
3
|
+
import type { FolderFull } from "../../../../../domain/resources/folder/full";
|
|
4
|
+
import type { createFolderFindFullAction } from "../../../../../server";
|
|
5
|
+
import type { createUseQuery } from "../../../../infrastructure";
|
|
6
|
+
import type { createFileList } from "../file";
|
|
7
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
8
|
+
import { type MultiItems, type SingleItem } from "../../../../../domain";
|
|
9
|
+
import { type ListItemsState } from "../../../../../shared";
|
|
10
|
+
interface FileManagerListProps {
|
|
11
|
+
folderStates?: ListItemsState;
|
|
12
|
+
setFolderStates?: Dispatch<SetStateAction<ListItemsState<FolderFull>>>;
|
|
13
|
+
showFiles?: boolean;
|
|
14
|
+
fileStates?: ListItemsState;
|
|
15
|
+
setFileStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>>;
|
|
16
|
+
pickedItems?: MultiItems;
|
|
17
|
+
handleClick?: (item: SingleItem) => void;
|
|
18
|
+
isInModal?: boolean;
|
|
19
|
+
excludeId?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function createFileManagerList({ useQuery, folderFindFullAction, FolderList, FileList, }: {
|
|
22
|
+
useQuery: ReturnType<typeof createUseQuery>;
|
|
23
|
+
folderFindFullAction: ReturnType<typeof createFolderFindFullAction>;
|
|
24
|
+
FolderList: ReturnType<typeof createFolderList>;
|
|
25
|
+
FileList: ReturnType<typeof createFileList>;
|
|
26
|
+
}): ({ folderStates, setFolderStates, showFiles, fileStates, setFileStates, pickedItems, handleClick, isInModal, excludeId, }: FileManagerListProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=file-manager-list.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/folder/file-manager-list.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-manager-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/file-manager-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI9E,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnE,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,oBAAoB,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;IACpE,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACiC,0HAa7B,oBAAoB,6CAwExB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FolderFull } from "../../../../../domain/resources/folder/full";
|
|
2
|
+
import type { AnchorHTMLAttributes } from "react";
|
|
3
|
+
import { type Folder } from "../../../../../domain";
|
|
4
|
+
interface FolderCardProps {
|
|
5
|
+
folder?: FolderFull | Folder;
|
|
6
|
+
openNewTab?: boolean;
|
|
7
|
+
anchorProps?: AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
8
|
+
isInFileManager?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function FolderCard({ folder, openNewTab, anchorProps, isInFileManager, className, }: FolderCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=folder-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAIpE,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACtD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,wBAAgB,UAAU,CAAC,EACzB,MAAM,EAEN,UAAkB,EAClB,WAAW,EACX,eAAuB,EAEvB,SAAc,GACf,EAAE,eAAe,2CAqBjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Folder } from "../../../../../domain";
|
|
2
|
+
interface Props {
|
|
3
|
+
parentFolder: Folder | null;
|
|
4
|
+
name: string;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function FolderFullPath({ parentFolder, name, isLoading }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=folder-full-path.d.ts.map
|
package/dist/types/src/client/interfaces/components/resources/folder/folder-full-path.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-full-path.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-full-path.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGpD,UAAU,KAAK;IACb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,2CAgBtE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FolderFull } from "../../../../../domain/resources/folder/full";
|
|
2
|
+
import type { createFolderFindListCardsAction } from "../../../../../server";
|
|
3
|
+
import type { createUseQuery } from "../../../../infrastructure";
|
|
4
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
5
|
+
import { type MultiItems, type SingleItem } from "../../../../../domain";
|
|
6
|
+
import { type ListItemsState } from "../../../../../shared";
|
|
7
|
+
type FoldersListProps = {
|
|
8
|
+
setItemStates?: Dispatch<SetStateAction<ListItemsState<FolderFull>>> | undefined;
|
|
9
|
+
parentFolderId?: string;
|
|
10
|
+
folderIds?: string[];
|
|
11
|
+
openNewTab?: boolean;
|
|
12
|
+
isInFileManager?: boolean;
|
|
13
|
+
pickedItems?: MultiItems | undefined;
|
|
14
|
+
handleClick?: ((item: SingleItem) => void) | undefined;
|
|
15
|
+
isInModal?: boolean | undefined;
|
|
16
|
+
handleDoubleClick?: (item: {
|
|
17
|
+
key: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
excludeId?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare function createFolderList({ useQuery, folderFindListCardsAction, }: {
|
|
22
|
+
useQuery: ReturnType<typeof createUseQuery>;
|
|
23
|
+
folderFindListCardsAction: ReturnType<typeof createFolderFindListCardsAction>;
|
|
24
|
+
}): ({ setItemStates, parentFolderId, folderIds, openNewTab, isInFileManager, pickedItems, handleClick, isInModal, handleDoubleClick, excludeId, }: FoldersListProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=folder-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAItD,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAK/B,KAAK,gBAAgB,GAAG;IACtB,aAAa,CAAC,EACV,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,GACpD,SAAS,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACvD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,yBAAyB,GAC1B,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,yBAAyB,EAAE,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;CAC/E,IAC4B,+IAcxB,gBAAgB,6CA8GpB"}
|
package/dist/types/src/client/interfaces/components/resources/folder/folder-relations-section.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { createFolderList } from "./folder-list";
|
|
2
|
+
import type { FolderFull } from "../../../../../domain/resources/folder/full";
|
|
3
|
+
import type { createFileList } from "../file";
|
|
4
|
+
export declare function createFolderRelationsSection({ FolderList, FileList, }: {
|
|
5
|
+
FolderList: ReturnType<typeof createFolderList>;
|
|
6
|
+
FileList: ReturnType<typeof createFileList>;
|
|
7
|
+
}): ({ folder }: {
|
|
8
|
+
folder?: FolderFull;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=folder-relations-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-relations-section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/folder-relations-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAgB,4BAA4B,CAAC,EAC3C,UAAU,EACV,QAAQ,GACT,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IACwC,YAAY;IAAE,MAAM,CAAC,EAAE,UAAU,CAAA;CAAE,6CAkC3E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FolderCard } from "./folder-card";
|
|
2
|
+
export { createFolderList } from "./folder-list";
|
|
3
|
+
export { createFolderRelationsSection } from "./folder-relations-section";
|
|
4
|
+
export { createFileManagerList } from "./file-manager-list";
|
|
5
|
+
export { FolderFullPath } from "./folder-full-path";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/folder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { AdminCard, createAdminList, createAdminRelationsSection, ActiveSessionsBadge, AdminRefreshTokenCard, } from "./admin";
|
|
2
2
|
export { createFileCard, createFileList, createFileRelationsSection, } from "./file";
|
|
3
|
+
export { FolderCard, createFolderList, FolderFullPath, createFileManagerList, createFolderRelationsSection, } from "./folder";
|
|
3
4
|
export { createPostCard, createPostList, createPostRelationsSection, PostTypeGate, } from "./post";
|
|
4
5
|
export { CategoryCard, createCategoryList, createCategoryRelationsSection, } from "./category";
|
|
6
|
+
export { TopicCard, createTopicList, createTopicRelationsSection, } from "./topic";
|
|
7
|
+
export { TagCard, createTagList, createTagRelationsSection } from "./tag";
|
|
8
|
+
export { createBaseTags, createJsonLdTags, createOpenGraphTags, createSeoForm, createSeoMetadataDialog, } from "./seo-metadata";
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,GAC3B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,cAAc,EACd,0BAA0B,EAC1B,YAAY,GACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,8BAA8B,GAC/B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,SAAS,EACT,eAAe,EACf,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,uBAAuB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/seo-metadata/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SeoMetadataUpsertFormData } from "../../../../../../../server";
|
|
2
|
+
import type { FormFieldController } from "../../../../../../../shared";
|
|
3
|
+
import type { createI18nInput, createI18nObjectArrayInput, createI18nTextarea } from "../../../../ui/i18n";
|
|
4
|
+
export declare function createBaseTags({ I18nInput, I18nTextarea, I18nObjectArrayInput, }: {
|
|
5
|
+
I18nInput: ReturnType<typeof createI18nInput>;
|
|
6
|
+
I18nTextarea: ReturnType<typeof createI18nTextarea>;
|
|
7
|
+
I18nObjectArrayInput: ReturnType<typeof createI18nObjectArrayInput>;
|
|
8
|
+
}): ({ formData, setFormData, errors, }: FormFieldController<SeoMetadataUpsertFormData> & {
|
|
9
|
+
errors: string[];
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=base-tags.d.ts.map
|