@tachybase/plugin-audit-logs 0.23.8
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/.turbo/turbo-build.log +14 -0
- package/LICENSE +201 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/AuditLogsBlockInitializer.d.ts +2 -0
- package/dist/client/AuditLogsBlockProvider.d.ts +5 -0
- package/dist/client/AuditLogsProvider.d.ts +2 -0
- package/dist/client/collections.d.ts +167 -0
- package/dist/client/components/AuditLogsField.d.ts +2 -0
- package/dist/client/components/AuditLogsValue.d.ts +2 -0
- package/dist/client/components/AuditLogsViewActionInitializer.d.ts +2 -0
- package/dist/client/deplicated/AuditLogs.d.ts +1 -0
- package/dist/client/deplicated/AuditLogsDesigner.d.ts +2 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.js +1 -0
- package/dist/client/initializers/AuditLogsTableActionColumnInitializer.d.ts +2 -0
- package/dist/client/initializers/AuditLogsTableActionColumnInitializers.d.ts +2 -0
- package/dist/client/initializers/AuditLogsTableActionInitializers.d.ts +3 -0
- package/dist/client/initializers/AuditLogsTableColumnInitializers.d.ts +2 -0
- package/dist/client/locale/index.d.ts +4 -0
- package/dist/client/utils.d.ts +363 -0
- package/dist/externalVersion.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +44 -0
- package/dist/locale/zh-CN.json +44 -0
- package/dist/server/collections/auditChanges.d.ts +2 -0
- package/dist/server/collections/auditChanges.js +55 -0
- package/dist/server/collections/auditLogs.d.ts +2 -0
- package/dist/server/collections/auditLogs.js +72 -0
- package/dist/server/constants.d.ts +3 -0
- package/dist/server/constants.js +33 -0
- package/dist/server/hooks/after-create.d.ts +1 -0
- package/dist/server/hooks/after-create.js +70 -0
- package/dist/server/hooks/after-destroy.d.ts +1 -0
- package/dist/server/hooks/after-destroy.js +63 -0
- package/dist/server/hooks/after-update.d.ts +1 -0
- package/dist/server/hooks/after-update.js +72 -0
- package/dist/server/hooks/index.d.ts +3 -0
- package/dist/server/hooks/index.js +25 -0
- package/dist/server/index.d.ts +5 -0
- package/dist/server/index.js +52 -0
- package/package.json +30 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
export declare const createSchema: () => {
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
'x-decorator': string;
|
|
5
|
+
'x-decorator-props': {
|
|
6
|
+
collection: string;
|
|
7
|
+
dragSort: boolean;
|
|
8
|
+
request: {
|
|
9
|
+
resource: string;
|
|
10
|
+
action: string;
|
|
11
|
+
params: {
|
|
12
|
+
pageSize: number;
|
|
13
|
+
filter: {};
|
|
14
|
+
appends: any[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
'x-designer': string;
|
|
19
|
+
'x-component': string;
|
|
20
|
+
properties: {
|
|
21
|
+
actions: {
|
|
22
|
+
type: string;
|
|
23
|
+
'x-component': string;
|
|
24
|
+
'x-component-props': {
|
|
25
|
+
layout: string;
|
|
26
|
+
style: {
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
properties: {
|
|
31
|
+
[x: string]: {
|
|
32
|
+
'x-component': string;
|
|
33
|
+
'x-component-props': {
|
|
34
|
+
popover: boolean;
|
|
35
|
+
};
|
|
36
|
+
type: string;
|
|
37
|
+
title: string;
|
|
38
|
+
properties: {
|
|
39
|
+
popover: {
|
|
40
|
+
type: string;
|
|
41
|
+
'x-decorator': string;
|
|
42
|
+
'x-decorator-props': {};
|
|
43
|
+
'x-component': string;
|
|
44
|
+
'x-component-props': {
|
|
45
|
+
trigger: string;
|
|
46
|
+
placement: string;
|
|
47
|
+
};
|
|
48
|
+
properties: {
|
|
49
|
+
filter: {
|
|
50
|
+
type: string;
|
|
51
|
+
default: {
|
|
52
|
+
$and: {}[];
|
|
53
|
+
};
|
|
54
|
+
'x-component': string;
|
|
55
|
+
'x-component-props': {
|
|
56
|
+
useDataSource: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
footer: {
|
|
60
|
+
type: string;
|
|
61
|
+
'x-component': string;
|
|
62
|
+
properties: {
|
|
63
|
+
actions: {
|
|
64
|
+
type: string;
|
|
65
|
+
'x-component': string;
|
|
66
|
+
properties: {
|
|
67
|
+
saveDefault: {
|
|
68
|
+
type: string;
|
|
69
|
+
'x-component': string;
|
|
70
|
+
'x-component-props': {};
|
|
71
|
+
};
|
|
72
|
+
cancel: {
|
|
73
|
+
type: string;
|
|
74
|
+
title: string;
|
|
75
|
+
'x-component': string;
|
|
76
|
+
'x-component-props': {
|
|
77
|
+
useAction: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
submit: {
|
|
81
|
+
type: string;
|
|
82
|
+
title: string;
|
|
83
|
+
'x-component': string;
|
|
84
|
+
'x-component-props': {
|
|
85
|
+
type: string;
|
|
86
|
+
useAction: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
table: {
|
|
100
|
+
type: string;
|
|
101
|
+
'x-component': string;
|
|
102
|
+
'x-component-props': {
|
|
103
|
+
rowKey: string;
|
|
104
|
+
useDataSource: string;
|
|
105
|
+
};
|
|
106
|
+
properties: {
|
|
107
|
+
[x: string]: {
|
|
108
|
+
type: string;
|
|
109
|
+
title: string;
|
|
110
|
+
'x-component': string;
|
|
111
|
+
properties: {
|
|
112
|
+
created_at: {
|
|
113
|
+
type: string;
|
|
114
|
+
'x-component': string;
|
|
115
|
+
'x-read-pretty': boolean;
|
|
116
|
+
'x-component-props': {
|
|
117
|
+
format: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
'user.nickname'?: undefined;
|
|
121
|
+
'collection.title'?: undefined;
|
|
122
|
+
type?: undefined;
|
|
123
|
+
};
|
|
124
|
+
'x-component-props'?: undefined;
|
|
125
|
+
} | {
|
|
126
|
+
type: string;
|
|
127
|
+
title: string;
|
|
128
|
+
'x-component': string;
|
|
129
|
+
properties: {
|
|
130
|
+
'user.nickname': {
|
|
131
|
+
type: string;
|
|
132
|
+
'x-component': string;
|
|
133
|
+
'x-read-pretty': boolean;
|
|
134
|
+
};
|
|
135
|
+
created_at?: undefined;
|
|
136
|
+
'collection.title'?: undefined;
|
|
137
|
+
type?: undefined;
|
|
138
|
+
};
|
|
139
|
+
'x-component-props'?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
type: string;
|
|
142
|
+
title: string;
|
|
143
|
+
'x-component': string;
|
|
144
|
+
properties: {
|
|
145
|
+
'collection.title': {
|
|
146
|
+
type: string;
|
|
147
|
+
'x-component': string;
|
|
148
|
+
'x-read-pretty': boolean;
|
|
149
|
+
};
|
|
150
|
+
created_at?: undefined;
|
|
151
|
+
'user.nickname'?: undefined;
|
|
152
|
+
type?: undefined;
|
|
153
|
+
};
|
|
154
|
+
'x-component-props'?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
type: string;
|
|
157
|
+
title: string;
|
|
158
|
+
'x-component': string;
|
|
159
|
+
properties: {
|
|
160
|
+
type: {
|
|
161
|
+
type: string;
|
|
162
|
+
'x-component': string;
|
|
163
|
+
'x-read-pretty': boolean;
|
|
164
|
+
enum: {
|
|
165
|
+
label: string;
|
|
166
|
+
value: string;
|
|
167
|
+
color: string;
|
|
168
|
+
}[];
|
|
169
|
+
};
|
|
170
|
+
created_at?: undefined;
|
|
171
|
+
'user.nickname'?: undefined;
|
|
172
|
+
'collection.title'?: undefined;
|
|
173
|
+
};
|
|
174
|
+
'x-component-props'?: undefined;
|
|
175
|
+
} | {
|
|
176
|
+
type: string;
|
|
177
|
+
title: string;
|
|
178
|
+
'x-component': string;
|
|
179
|
+
'x-component-props': {
|
|
180
|
+
width: number;
|
|
181
|
+
align: string;
|
|
182
|
+
};
|
|
183
|
+
properties: {
|
|
184
|
+
[x: string]: {
|
|
185
|
+
title: string;
|
|
186
|
+
type: string;
|
|
187
|
+
'x-action': string;
|
|
188
|
+
'x-component': string;
|
|
189
|
+
'x-component-props': {
|
|
190
|
+
openMode: string;
|
|
191
|
+
};
|
|
192
|
+
properties: {
|
|
193
|
+
drawer: {
|
|
194
|
+
type: string;
|
|
195
|
+
'x-component': string;
|
|
196
|
+
'x-component-props': {
|
|
197
|
+
className: string;
|
|
198
|
+
};
|
|
199
|
+
title: string;
|
|
200
|
+
properties: {
|
|
201
|
+
created_at: {
|
|
202
|
+
type: string;
|
|
203
|
+
title: string;
|
|
204
|
+
'x-decorator': string;
|
|
205
|
+
'x-component': string;
|
|
206
|
+
'x-read-pretty': boolean;
|
|
207
|
+
'x-component-props': {
|
|
208
|
+
format: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
'user.nickname': {
|
|
212
|
+
type: string;
|
|
213
|
+
title: string;
|
|
214
|
+
'x-decorator': string;
|
|
215
|
+
'x-component': string;
|
|
216
|
+
'x-read-pretty': boolean;
|
|
217
|
+
};
|
|
218
|
+
'collection.title': {
|
|
219
|
+
type: string;
|
|
220
|
+
title: string;
|
|
221
|
+
'x-decorator': string;
|
|
222
|
+
'x-component': string;
|
|
223
|
+
'x-read-pretty': boolean;
|
|
224
|
+
};
|
|
225
|
+
type: {
|
|
226
|
+
type: string;
|
|
227
|
+
title: string;
|
|
228
|
+
'x-decorator': string;
|
|
229
|
+
'x-component': string;
|
|
230
|
+
'x-read-pretty': boolean;
|
|
231
|
+
enum: {
|
|
232
|
+
label: string;
|
|
233
|
+
value: string;
|
|
234
|
+
color: string;
|
|
235
|
+
}[];
|
|
236
|
+
};
|
|
237
|
+
changes: {
|
|
238
|
+
type: string;
|
|
239
|
+
title: string;
|
|
240
|
+
'x-decorator': string;
|
|
241
|
+
'x-component': string;
|
|
242
|
+
'x-component-props': {
|
|
243
|
+
pagination: boolean;
|
|
244
|
+
showIndex: boolean;
|
|
245
|
+
};
|
|
246
|
+
items: {
|
|
247
|
+
type: string;
|
|
248
|
+
properties: {
|
|
249
|
+
column1: {
|
|
250
|
+
type: string;
|
|
251
|
+
'x-component': string;
|
|
252
|
+
'x-component-props': {
|
|
253
|
+
title: string;
|
|
254
|
+
};
|
|
255
|
+
properties: {
|
|
256
|
+
field: {
|
|
257
|
+
type: string;
|
|
258
|
+
'x-decorator': string;
|
|
259
|
+
'x-component': string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
column2: {
|
|
264
|
+
type: string;
|
|
265
|
+
'x-component': string;
|
|
266
|
+
'x-component-props': {
|
|
267
|
+
title: string;
|
|
268
|
+
};
|
|
269
|
+
properties: {
|
|
270
|
+
before: {
|
|
271
|
+
type: string;
|
|
272
|
+
'x-decorator': string;
|
|
273
|
+
'x-component': string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
column3: {
|
|
278
|
+
type: string;
|
|
279
|
+
'x-component': string;
|
|
280
|
+
'x-component-props': {
|
|
281
|
+
title: string;
|
|
282
|
+
};
|
|
283
|
+
properties: {
|
|
284
|
+
after: {
|
|
285
|
+
type: string;
|
|
286
|
+
'x-decorator': string;
|
|
287
|
+
'x-component': string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
created_at?: undefined;
|
|
299
|
+
'user.nickname'?: undefined;
|
|
300
|
+
'collection.title'?: undefined;
|
|
301
|
+
type?: undefined;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
column1: {
|
|
305
|
+
type: string;
|
|
306
|
+
title: string;
|
|
307
|
+
'x-component': string;
|
|
308
|
+
properties: {
|
|
309
|
+
created_at: {
|
|
310
|
+
type: string;
|
|
311
|
+
'x-component': string;
|
|
312
|
+
'x-read-pretty': boolean;
|
|
313
|
+
'x-component-props': {
|
|
314
|
+
format: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
column2: {
|
|
320
|
+
type: string;
|
|
321
|
+
title: string;
|
|
322
|
+
'x-component': string;
|
|
323
|
+
properties: {
|
|
324
|
+
'user.nickname': {
|
|
325
|
+
type: string;
|
|
326
|
+
'x-component': string;
|
|
327
|
+
'x-read-pretty': boolean;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
column3: {
|
|
332
|
+
type: string;
|
|
333
|
+
title: string;
|
|
334
|
+
'x-component': string;
|
|
335
|
+
properties: {
|
|
336
|
+
'collection.title': {
|
|
337
|
+
type: string;
|
|
338
|
+
'x-component': string;
|
|
339
|
+
'x-read-pretty': boolean;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
column4: {
|
|
344
|
+
type: string;
|
|
345
|
+
title: string;
|
|
346
|
+
'x-component': string;
|
|
347
|
+
properties: {
|
|
348
|
+
type: {
|
|
349
|
+
type: string;
|
|
350
|
+
'x-component': string;
|
|
351
|
+
'x-read-pretty': boolean;
|
|
352
|
+
enum: {
|
|
353
|
+
label: string;
|
|
354
|
+
value: string;
|
|
355
|
+
color: string;
|
|
356
|
+
}[];
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"react": "18.3.1",
|
|
3
|
+
"@tachybase/client": "0.23.8",
|
|
4
|
+
"@tachybase/schema": "0.23.8",
|
|
5
|
+
"@ant-design/icons": "5.3.7",
|
|
6
|
+
"@tachybase/server": "0.23.8",
|
|
7
|
+
"@tachybase/utils": "0.23.8",
|
|
8
|
+
"@tachybase/components": "0.23.8",
|
|
9
|
+
"react-i18next": "15.2.0",
|
|
10
|
+
"@tachybase/database": "0.23.8"
|
|
11
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var src_exports = {};
|
|
30
|
+
__export(src_exports, {
|
|
31
|
+
default: () => import_server.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(src_exports);
|
|
34
|
+
__reExport(src_exports, require("./server"), module.exports);
|
|
35
|
+
var import_server = __toESM(require("./server"));
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
...require("./server")
|
|
39
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Action column": "Action column",
|
|
3
|
+
"Action type": "Action type",
|
|
4
|
+
"Actions": "Actions",
|
|
5
|
+
"Add new": "Add new",
|
|
6
|
+
"After change": "After change",
|
|
7
|
+
"Audit Changes": "Audit Changes",
|
|
8
|
+
"Audit Logs": "Audit Logs",
|
|
9
|
+
"Audit logs": "Audit logs",
|
|
10
|
+
"Before change": "Before change",
|
|
11
|
+
"Cancel": "Cancel",
|
|
12
|
+
"Collection": "Collection",
|
|
13
|
+
"Collection display name": "Collection display name",
|
|
14
|
+
"Collection name": "Collection name",
|
|
15
|
+
"Collections": "Collections",
|
|
16
|
+
"Column width": "Column width",
|
|
17
|
+
"Configure actions": "Configure actions",
|
|
18
|
+
"Configure columns": "Configure columns",
|
|
19
|
+
"Create record": "Create record",
|
|
20
|
+
"Created at": "Created at",
|
|
21
|
+
"Created by": "Created by",
|
|
22
|
+
"Data changes": "Data changes",
|
|
23
|
+
"Delete": "Delete",
|
|
24
|
+
"Delete record": "Delete record",
|
|
25
|
+
"Details": "Details",
|
|
26
|
+
"Details of changes": "Details of changes",
|
|
27
|
+
"Display association fields": "Display association fields",
|
|
28
|
+
"Display fields": "Display fields",
|
|
29
|
+
"Enable actions": "Enable actions",
|
|
30
|
+
"Field": "Field",
|
|
31
|
+
"Field display name": "Field display name",
|
|
32
|
+
"Field value changes": "Field value changes",
|
|
33
|
+
"Filter": "Filter",
|
|
34
|
+
"Insert": "Insert",
|
|
35
|
+
"Record ID": "Record ID",
|
|
36
|
+
"Records per page": "Records per page",
|
|
37
|
+
"Refresh": "Refresh",
|
|
38
|
+
"Submit": "Submit",
|
|
39
|
+
"Update": "Update",
|
|
40
|
+
"Update record": "Update record",
|
|
41
|
+
"User": "User",
|
|
42
|
+
"View": "View",
|
|
43
|
+
"View record": "View record"
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Action column": "操作列",
|
|
3
|
+
"Action type": "操作类型",
|
|
4
|
+
"Actions": "操作",
|
|
5
|
+
"Add new": "添加",
|
|
6
|
+
"After change": "变化后",
|
|
7
|
+
"Audit Changes": "审计变化",
|
|
8
|
+
"Audit Logs": "审计日志",
|
|
9
|
+
"Audit logs": "审计日志",
|
|
10
|
+
"Before change": "变化前",
|
|
11
|
+
"Cancel": "取消",
|
|
12
|
+
"Collection": "数据集",
|
|
13
|
+
"Collection display name": "数据集显示名称",
|
|
14
|
+
"Collection name": "数据集名称",
|
|
15
|
+
"Collections": "数据集",
|
|
16
|
+
"Column width": "列宽",
|
|
17
|
+
"Configure actions": "操作配置",
|
|
18
|
+
"Configure columns": "列配置",
|
|
19
|
+
"Create record": "新增数据",
|
|
20
|
+
"Created at": "创建于",
|
|
21
|
+
"Created by": "由创建",
|
|
22
|
+
"Data changes": "数据变化",
|
|
23
|
+
"Delete": "删除",
|
|
24
|
+
"Delete record": "删除数据",
|
|
25
|
+
"Details": "详情",
|
|
26
|
+
"Details of changes": "变化详情",
|
|
27
|
+
"Display association fields": "显示关联字段",
|
|
28
|
+
"Display fields": "显示字段",
|
|
29
|
+
"Enable actions": "启用的操作",
|
|
30
|
+
"Field": "字段",
|
|
31
|
+
"Field display name": "字段显示名称",
|
|
32
|
+
"Field value changes": "字段值变化",
|
|
33
|
+
"Filter": "过滤",
|
|
34
|
+
"Insert": "插入",
|
|
35
|
+
"Record ID": "数据 ID",
|
|
36
|
+
"Records per page": "每页数据",
|
|
37
|
+
"Refresh": "刷新",
|
|
38
|
+
"Submit": "提交",
|
|
39
|
+
"Update": "编辑",
|
|
40
|
+
"Update record": "编辑数据",
|
|
41
|
+
"User": "用户",
|
|
42
|
+
"View": "查看",
|
|
43
|
+
"View record": "查看数据"
|
|
44
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var auditChanges_exports = {};
|
|
19
|
+
__export(auditChanges_exports, {
|
|
20
|
+
default: () => auditChanges_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(auditChanges_exports);
|
|
23
|
+
var import_database = require("@tachybase/database");
|
|
24
|
+
var auditChanges_default = (0, import_database.defineCollection)({
|
|
25
|
+
dumpRules: {
|
|
26
|
+
group: "log"
|
|
27
|
+
},
|
|
28
|
+
name: "auditChanges",
|
|
29
|
+
title: "\u53D8\u52A8\u503C",
|
|
30
|
+
createdBy: false,
|
|
31
|
+
updatedBy: false,
|
|
32
|
+
createdAt: false,
|
|
33
|
+
updatedAt: false,
|
|
34
|
+
shared: true,
|
|
35
|
+
fields: [
|
|
36
|
+
{
|
|
37
|
+
type: "json",
|
|
38
|
+
name: "field"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "json",
|
|
42
|
+
name: "before"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "json",
|
|
46
|
+
name: "after"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: "belongsTo",
|
|
50
|
+
name: "log",
|
|
51
|
+
target: "auditLogs",
|
|
52
|
+
foreignKey: "auditLogId"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var auditLogs_exports = {};
|
|
19
|
+
__export(auditLogs_exports, {
|
|
20
|
+
default: () => auditLogs_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(auditLogs_exports);
|
|
23
|
+
var import_database = require("@tachybase/database");
|
|
24
|
+
var auditLogs_default = (0, import_database.defineCollection)({
|
|
25
|
+
dumpRules: {
|
|
26
|
+
group: "log"
|
|
27
|
+
},
|
|
28
|
+
name: "auditLogs",
|
|
29
|
+
createdBy: false,
|
|
30
|
+
updatedBy: false,
|
|
31
|
+
updatedAt: false,
|
|
32
|
+
shared: true,
|
|
33
|
+
fields: [
|
|
34
|
+
{
|
|
35
|
+
type: "date",
|
|
36
|
+
name: "createdAt"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "string",
|
|
40
|
+
name: "type"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "string",
|
|
44
|
+
name: "recordId",
|
|
45
|
+
index: true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "string",
|
|
49
|
+
name: "collectionName"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
type: "belongsTo",
|
|
53
|
+
name: "collection",
|
|
54
|
+
target: "collections",
|
|
55
|
+
targetKey: "name",
|
|
56
|
+
sourceKey: "id",
|
|
57
|
+
foreignKey: "collectionName",
|
|
58
|
+
constraints: false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: "hasMany",
|
|
62
|
+
name: "changes",
|
|
63
|
+
target: "auditChanges",
|
|
64
|
+
foreignKey: "auditLogId"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "belongsTo",
|
|
68
|
+
name: "user",
|
|
69
|
+
target: "users"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
});
|