@hed-hog/tag 0.0.278 → 0.0.279
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/README.md +0 -2
- package/hedhog/frontend/app/page.tsx.ejs +5 -11
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -69,10 +69,9 @@ export default function TagPage() {
|
|
|
69
69
|
const [pageSize, setPageSize] = useState(10);
|
|
70
70
|
const { request } = useApp();
|
|
71
71
|
|
|
72
|
-
const {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} = useQuery<PaginationResult<Tag>>({
|
|
72
|
+
const { data: tagResult, refetch: refetchTag } = useQuery<
|
|
73
|
+
PaginationResult<Tag>
|
|
74
|
+
>({
|
|
76
75
|
queryKey: ['tag', debouncedSearch, page, pageSize],
|
|
77
76
|
queryFn: async () => {
|
|
78
77
|
const response = await request({
|
|
@@ -85,13 +84,8 @@ export default function TagPage() {
|
|
|
85
84
|
});
|
|
86
85
|
return response.data as PaginationResult<Tag>;
|
|
87
86
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
total: 0,
|
|
91
|
-
page: 1,
|
|
92
|
-
pageSize: 10,
|
|
93
|
-
},
|
|
94
|
-
});
|
|
87
|
+
});
|
|
88
|
+
const { data = [], total = 0 } = tagResult ?? {};
|
|
95
89
|
|
|
96
90
|
const { data: statsData, refetch: refetchStats } = useQuery<any>({
|
|
97
91
|
queryKey: ['tag-stats'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/tag",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.279",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@nestjs/mapped-types": "*",
|
|
12
12
|
"@hed-hog/api-prisma": "0.0.5",
|
|
13
13
|
"@hed-hog/api-pagination": "0.0.6",
|
|
14
|
-
"@hed-hog/core": "0.0.
|
|
15
|
-
"@hed-hog/api": "0.0.
|
|
16
|
-
"@hed-hog/api
|
|
14
|
+
"@hed-hog/core": "0.0.279",
|
|
15
|
+
"@hed-hog/api-locale": "0.0.13",
|
|
16
|
+
"@hed-hog/api": "0.0.4"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|