@rxdrag/website-lib-core 0.0.80 → 0.0.81
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": "@rxdrag/website-lib-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.81",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@types/react-dom": "^19.1.0",
|
|
25
25
|
"eslint": "^7.32.0",
|
|
26
26
|
"typescript": "^5",
|
|
27
|
-
"@rxdrag/
|
|
27
|
+
"@rxdrag/tsconfig": "0.2.0",
|
|
28
28
|
"@rxdrag/slate-preview": "1.2.61",
|
|
29
|
-
"@rxdrag/
|
|
29
|
+
"@rxdrag/eslint-config-custom": "0.2.12"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@iconify/utils": "^3.0.2",
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
UserFields,
|
|
13
13
|
ProductOrderBy,
|
|
14
14
|
ImageSize,
|
|
15
|
+
PostCategoryFields,
|
|
15
16
|
} from "@rxdrag/rxcms-models";
|
|
16
17
|
import { queryEntityList } from "./queryEntityList";
|
|
17
18
|
import { ListResult } from "@rxdrag/entify-lib";
|
|
@@ -75,10 +76,16 @@ export async function queryPosts(
|
|
|
75
76
|
},
|
|
76
77
|
orderBy: [
|
|
77
78
|
{
|
|
78
|
-
[PostFields.
|
|
79
|
+
[PostFields.pinToTop]: "desc",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
[PostFields.seqValue]: "asc",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
[PostFields.updatedAt]: "desc",
|
|
79
86
|
},
|
|
80
87
|
],
|
|
81
|
-
});
|
|
88
|
+
}).category([PostCategoryFields.id, PostCategoryFields.name, PostCategoryFields.slug]);
|
|
82
89
|
|
|
83
90
|
// 只有在需要查询封面图时才添加封面图查询
|
|
84
91
|
if (!selectFields || selectFields.includes("cover" as keyof Post)) {
|