sitero 0.0.19 → 0.0.21

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.
@@ -8,6 +8,8 @@ const POST_LIST_CARD_INCLUDE = {
8
8
  // Use as post, category
9
9
  postsInTopic: true,
10
10
  // Use as topic
11
+ parents: true,
12
+ // Use for prev/next
11
13
  children: true,
12
14
  // Use as category
13
15
  taggedPosts: true,
@@ -32,7 +32,7 @@ function createOrderCompleteAdminEmail(ctx) {
32
32
  url,
33
33
  orderNumber: order.orderNumber ?? "",
34
34
  productItems: order.items.reduce(
35
- (prev, { productName, quantity, unitPriceAmount }) => prev + productItemHtml(productName ?? "", quantity, unitPriceAmount),
35
+ (prev, { productName, quantity, subtotalAmount }) => prev + productItemHtml(productName ?? "", quantity, subtotalAmount),
36
36
  ""
37
37
  ),
38
38
  recipientName: order.recipientName ?? "",
@@ -69,13 +69,13 @@ function createOrderCompleteAdminEmail(ctx) {
69
69
  send
70
70
  };
71
71
  }
72
- const productItemHtml = (name, quantity, price) => `
72
+ const productItemHtml = (name, quantity, subtotalAmount) => `
73
73
  <tr style="text-align: right">
74
74
  <td style="border-bottom: 1px solid #ddd; padding: 2px 6px">
75
75
  ${name}
76
76
  </td>
77
77
  <td style="border-bottom: 1px solid #ddd; padding: 2px 6px">${quantity}</td>
78
- <td style="border-bottom: 1px solid #ddd; padding: 2px 6px">NT $${price}</td>
78
+ <td style="border-bottom: 1px solid #ddd; padding: 2px 6px">NT $${subtotalAmount}</td>
79
79
  </tr>
80
80
  `;
81
81
  const extraHtml = (title, content) => `
@@ -5,6 +5,7 @@ export declare const POST_LIST_CARD_INCLUDE: {
5
5
  };
6
6
  };
7
7
  postsInTopic: true;
8
+ parents: true;
8
9
  children: true;
9
10
  taggedPosts: true;
10
11
  tags: {
@@ -43,6 +44,7 @@ export declare const POST_FULL_INCLUDE: {
43
44
  };
44
45
  };
45
46
  postsInTopic: true;
47
+ parents: true;
46
48
  children: true;
47
49
  taggedPosts: true;
48
50
  tags: {
@@ -66,6 +68,7 @@ export declare const POST_FULL_INCLUDE: {
66
68
  };
67
69
  };
68
70
  postsInTopic: true;
71
+ parents: true;
69
72
  children: true;
70
73
  taggedPosts: true;
71
74
  tags: {
@@ -89,6 +92,7 @@ export declare const POST_FULL_INCLUDE: {
89
92
  };
90
93
  };
91
94
  postsInTopic: true;
95
+ parents: true;
92
96
  children: true;
93
97
  taggedPosts: true;
94
98
  tags: {
@@ -112,6 +116,7 @@ export declare const POST_FULL_INCLUDE: {
112
116
  };
113
117
  };
114
118
  postsInTopic: true;
119
+ parents: true;
115
120
  children: true;
116
121
  taggedPosts: true;
117
122
  tags: {
@@ -135,6 +140,7 @@ export declare const POST_FULL_INCLUDE: {
135
140
  };
136
141
  };
137
142
  postsInTopic: true;
143
+ parents: true;
138
144
  children: true;
139
145
  taggedPosts: true;
140
146
  tags: {
@@ -158,6 +164,7 @@ export declare const POST_FULL_INCLUDE: {
158
164
  };
159
165
  };
160
166
  postsInTopic: true;
167
+ parents: true;
161
168
  children: true;
162
169
  taggedPosts: true;
163
170
  tags: {
@@ -181,6 +188,7 @@ export declare const POST_FULL_INCLUDE: {
181
188
  };
182
189
  };
183
190
  postsInTopic: true;
191
+ parents: true;
184
192
  children: true;
185
193
  taggedPosts: true;
186
194
  tags: {
@@ -204,6 +212,7 @@ export declare const POST_FULL_INCLUDE: {
204
212
  };
205
213
  };
206
214
  postsInTopic: true;
215
+ parents: true;
207
216
  children: true;
208
217
  taggedPosts: true;
209
218
  tags: {
@@ -1 +1 @@
1
- {"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAmBL,CAAC;AAE/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
1
+ {"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;CAoBL,CAAC;AAE/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sitero",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",