@rxdrag/website-lib-core 0.0.95 → 0.0.97
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.97",
|
|
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/
|
|
28
|
-
"@rxdrag/
|
|
29
|
-
"@rxdrag/
|
|
27
|
+
"@rxdrag/tsconfig": "0.2.0",
|
|
28
|
+
"@rxdrag/slate-preview": "1.2.62",
|
|
29
|
+
"@rxdrag/eslint-config-custom": "0.2.12"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@iconify/utils": "^3.0.2",
|
|
@@ -46,6 +46,18 @@ export async function queryFeaturedProducts(
|
|
|
46
46
|
_eq: envVariables.language,
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
|
+
_or: [
|
|
50
|
+
{
|
|
51
|
+
[ProductFields.isDeleted]: {
|
|
52
|
+
_eq: false,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
[ProductFields.isDeleted]: {
|
|
57
|
+
_isNull: true,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
49
61
|
},
|
|
50
62
|
orderBy: [{ [ProductFields.seqValue]: "asc" }],
|
|
51
63
|
}
|
|
@@ -53,6 +53,18 @@ export async function queryLatestPosts(
|
|
|
53
53
|
_eq: envVariables.language,
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
|
+
_or: [
|
|
57
|
+
{
|
|
58
|
+
[PostFields.isDeleted]: {
|
|
59
|
+
_eq: false,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
[PostFields.isDeleted]: {
|
|
64
|
+
_isNull: true,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
56
68
|
},
|
|
57
69
|
}
|
|
58
70
|
)
|
|
@@ -64,8 +76,7 @@ export async function queryLatestPosts(
|
|
|
64
76
|
.cover(
|
|
65
77
|
new MediaQueryOptions().file([
|
|
66
78
|
"thumbnail",
|
|
67
|
-
`resize(width:${coverSize?.width || 480}, height:${
|
|
68
|
-
coverSize?.height || 180
|
|
79
|
+
`resize(width:${coverSize?.width || 480}, height:${coverSize?.height || 180
|
|
69
80
|
})`,
|
|
70
81
|
])
|
|
71
82
|
)
|
|
@@ -112,6 +112,18 @@ export async function queryPosts(
|
|
|
112
112
|
_eq: envVariables.language,
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
|
+
_or: [
|
|
116
|
+
{
|
|
117
|
+
[PostFields.isDeleted]: {
|
|
118
|
+
_eq: false,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
[PostFields.isDeleted]: {
|
|
123
|
+
_isNull: true,
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
],
|
|
115
127
|
...where,
|
|
116
128
|
},
|
|
117
129
|
orderBy: [
|
|
@@ -108,6 +108,18 @@ export async function queryProducts(
|
|
|
108
108
|
_eq: envVariables.language,
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
_or: [
|
|
112
|
+
{
|
|
113
|
+
[ProductFields.isDeleted]: {
|
|
114
|
+
_eq: false,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
[ProductFields.isDeleted]: {
|
|
119
|
+
_isNull: true,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
111
123
|
...where,
|
|
112
124
|
},
|
|
113
125
|
orderBy: orderBy || [
|
|
@@ -18,6 +18,18 @@ export async function queryProductsInMenu(envVariables: EnvVariables) {
|
|
|
18
18
|
_eq: envVariables.language,
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
|
+
_or: [
|
|
22
|
+
{
|
|
23
|
+
[ProductFields.isDeleted]: {
|
|
24
|
+
_eq: false,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
[ProductFields.isDeleted]: {
|
|
29
|
+
_isNull: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
21
33
|
showInNavMenu: {
|
|
22
34
|
_eq: true,
|
|
23
35
|
},
|