@nocobase/app-plugin-office-flows-example 0.0.0-stage → 0.1.0-beta.1
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/CHANGELOG.md +76 -0
- package/README.md +55 -2
- package/dist/client/components/flow-ui.d.ts +111 -0
- package/dist/client/components/flow-ui.d.ts.map +1 -0
- package/dist/client/components/flow-ui.js +175 -0
- package/dist/client/components/flow-ui.js.map +1 -0
- package/dist/client/components/page-container.d.ts +4 -0
- package/dist/client/components/page-container.d.ts.map +1 -0
- package/dist/client/components/page-container.js +6 -0
- package/dist/client/components/page-container.js.map +1 -0
- package/dist/client/components/page-header.d.ts +8 -0
- package/dist/client/components/page-header.d.ts.map +1 -0
- package/dist/client/components/page-header.js +5 -0
- package/dist/client/components/page-header.js.map +1 -0
- package/dist/client/components/ui/badge.d.ts +7 -0
- package/dist/client/components/ui/badge.d.ts.map +1 -0
- package/dist/client/components/ui/badge.js +19 -0
- package/dist/client/components/ui/badge.js.map +1 -0
- package/dist/client/components/ui/button.d.ts +8 -0
- package/dist/client/components/ui/button.d.ts.map +1 -0
- package/dist/client/components/ui/button.js +25 -0
- package/dist/client/components/ui/button.js.map +1 -0
- package/dist/client/components/ui/card.d.ts +11 -0
- package/dist/client/components/ui/card.d.ts.map +1 -0
- package/dist/client/components/ui/card.js +19 -0
- package/dist/client/components/ui/card.js.map +1 -0
- package/dist/client/components/ui/input.d.ts +4 -0
- package/dist/client/components/ui/input.d.ts.map +1 -0
- package/dist/client/components/ui/input.js +8 -0
- package/dist/client/components/ui/input.js.map +1 -0
- package/dist/client/components/ui/select.d.ts +16 -0
- package/dist/client/components/ui/select.d.ts.map +1 -0
- package/dist/client/components/ui/select.js +36 -0
- package/dist/client/components/ui/select.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/lib/api.d.ts +93 -0
- package/dist/client/lib/api.d.ts.map +1 -0
- package/dist/client/lib/api.js +67 -0
- package/dist/client/lib/api.js.map +1 -0
- package/dist/client/lib/format.d.ts +4 -0
- package/dist/client/lib/format.d.ts.map +1 -0
- package/dist/client/lib/format.js +8 -0
- package/dist/client/lib/format.js.map +1 -0
- package/dist/client/lib/labels.d.ts +5 -0
- package/dist/client/lib/labels.d.ts.map +1 -0
- package/dist/client/lib/labels.js +38 -0
- package/dist/client/lib/labels.js.map +1 -0
- package/dist/client/lib/use-loader.d.ts +10 -0
- package/dist/client/lib/use-loader.d.ts.map +1 -0
- package/dist/client/lib/use-loader.js +43 -0
- package/dist/client/lib/use-loader.js.map +1 -0
- package/dist/client/lib/utils.d.ts +2 -0
- package/dist/client/lib/utils.d.ts.map +1 -0
- package/dist/client/lib/utils.js +2 -0
- package/dist/client/lib/utils.js.map +1 -0
- package/dist/client/locales/en-US.d.ts +99 -0
- package/dist/client/locales/en-US.d.ts.map +1 -0
- package/dist/client/locales/en-US.js +92 -0
- package/dist/client/locales/en-US.js.map +1 -0
- package/dist/client/locales/index.d.ts +4 -0
- package/dist/client/locales/index.d.ts.map +1 -0
- package/dist/client/locales/index.js +7 -0
- package/dist/client/locales/index.js.map +1 -0
- package/dist/client/locales/zh-CN.d.ts +4 -0
- package/dist/client/locales/zh-CN.d.ts.map +1 -0
- package/dist/client/locales/zh-CN.js +92 -0
- package/dist/client/locales/zh-CN.js.map +1 -0
- package/dist/client/pages/configuration.d.ts +4 -0
- package/dist/client/pages/configuration.d.ts.map +1 -0
- package/dist/client/pages/configuration.js +34 -0
- package/dist/client/pages/configuration.js.map +1 -0
- package/dist/client/pages/data-requests.d.ts +3 -0
- package/dist/client/pages/data-requests.d.ts.map +1 -0
- package/dist/client/pages/data-requests.js +216 -0
- package/dist/client/pages/data-requests.js.map +1 -0
- package/dist/client/pages/incoming.d.ts +3 -0
- package/dist/client/pages/incoming.d.ts.map +1 -0
- package/dist/client/pages/incoming.js +128 -0
- package/dist/client/pages/incoming.js.map +1 -0
- package/dist/client/pages/tasks.d.ts +3 -0
- package/dist/client/pages/tasks.d.ts.map +1 -0
- package/dist/client/pages/tasks.js +116 -0
- package/dist/client/pages/tasks.js.map +1 -0
- package/dist/client/plugin.d.ts +4 -0
- package/dist/client/plugin.d.ts.map +1 -0
- package/dist/client/plugin.js +10 -0
- package/dist/client/plugin.js.map +1 -0
- package/dist/client/routes.d.ts +4 -0
- package/dist/client/routes.d.ts.map +1 -0
- package/dist/client/routes.js +51 -0
- package/dist/client/routes.js.map +1 -0
- package/dist/database/migrations/.manifest.json +9 -0
- package/dist/database/migrations/202610010001_office_flows_example_create_collections.d.ts +4 -0
- package/dist/database/migrations/202610010001_office_flows_example_create_collections.d.ts.map +1 -0
- package/dist/database/migrations/202610010001_office_flows_example_create_collections.js +280 -0
- package/dist/database/migrations/202610010001_office_flows_example_create_collections.js.map +1 -0
- package/dist/database/seeds/.manifest.json +9 -0
- package/dist/database/seeds/202610010002_office_flows_example_seed_configuration.d.ts +10 -0
- package/dist/database/seeds/202610010002_office_flows_example_seed_configuration.d.ts.map +1 -0
- package/dist/database/seeds/202610010002_office_flows_example_seed_configuration.js +104 -0
- package/dist/database/seeds/202610010002_office_flows_example_seed_configuration.js.map +1 -0
- package/dist/server/calendar.d.ts +35 -0
- package/dist/server/calendar.d.ts.map +1 -0
- package/dist/server/calendar.js +103 -0
- package/dist/server/calendar.js.map +1 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +2 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/lifecycles/data-request.d.ts +36 -0
- package/dist/server/lifecycles/data-request.d.ts.map +1 -0
- package/dist/server/lifecycles/data-request.js +182 -0
- package/dist/server/lifecycles/data-request.js.map +1 -0
- package/dist/server/lifecycles/extraction.d.ts +21 -0
- package/dist/server/lifecycles/extraction.d.ts.map +1 -0
- package/dist/server/lifecycles/extraction.js +60 -0
- package/dist/server/lifecycles/extraction.js.map +1 -0
- package/dist/server/lifecycles/incoming.d.ts +27 -0
- package/dist/server/lifecycles/incoming.d.ts.map +1 -0
- package/dist/server/lifecycles/incoming.js +177 -0
- package/dist/server/lifecycles/incoming.js.map +1 -0
- package/dist/server/lifecycles/index.d.ts +8 -0
- package/dist/server/lifecycles/index.d.ts.map +1 -0
- package/dist/server/lifecycles/index.js +20 -0
- package/dist/server/lifecycles/index.js.map +1 -0
- package/dist/server/lifecycles/tasks.d.ts +63 -0
- package/dist/server/lifecycles/tasks.d.ts.map +1 -0
- package/dist/server/lifecycles/tasks.js +259 -0
- package/dist/server/lifecycles/tasks.js.map +1 -0
- package/dist/server/plugin.d.ts +4 -0
- package/dist/server/plugin.d.ts.map +1 -0
- package/dist/server/plugin.js +16 -0
- package/dist/server/plugin.js.map +1 -0
- package/dist/server/providers/index.d.ts +4 -0
- package/dist/server/providers/index.d.ts.map +1 -0
- package/dist/server/providers/index.js +6 -0
- package/dist/server/providers/index.js.map +1 -0
- package/dist/server/providers/office-flows.d.ts +23 -0
- package/dist/server/providers/office-flows.d.ts.map +1 -0
- package/dist/server/providers/office-flows.js +90 -0
- package/dist/server/providers/office-flows.js.map +1 -0
- package/dist/server/routes/index.d.ts +8 -0
- package/dist/server/routes/index.d.ts.map +1 -0
- package/dist/server/routes/index.js +553 -0
- package/dist/server/routes/index.js.map +1 -0
- package/dist/server/routes/schemas.d.ts +157 -0
- package/dist/server/routes/schemas.d.ts.map +1 -0
- package/dist/server/routes/schemas.js +188 -0
- package/dist/server/routes/schemas.js.map +1 -0
- package/dist/server/scope.d.ts +23 -0
- package/dist/server/scope.d.ts.map +1 -0
- package/dist/server/scope.js +23 -0
- package/dist/server/scope.js.map +1 -0
- package/dist/server/services/office-flows.d.ts +151 -0
- package/dist/server/services/office-flows.d.ts.map +1 -0
- package/dist/server/services/office-flows.js +603 -0
- package/dist/server/services/office-flows.js.map +1 -0
- package/dist/server/services/store.d.ts +119 -0
- package/dist/server/services/store.d.ts.map +1 -0
- package/dist/server/services/store.js +389 -0
- package/dist/server/services/store.js.map +1 -0
- package/dist/server/tokens.d.ts +4 -0
- package/dist/server/tokens.d.ts.map +1 -0
- package/dist/server/tokens.js +3 -0
- package/dist/server/tokens.js.map +1 -0
- package/dist/shared/data-request.d.ts +73 -0
- package/dist/shared/data-request.d.ts.map +1 -0
- package/dist/shared/data-request.js +182 -0
- package/dist/shared/data-request.js.map +1 -0
- package/dist/shared/fields.d.ts +12 -0
- package/dist/shared/fields.d.ts.map +1 -0
- package/dist/shared/fields.js +48 -0
- package/dist/shared/fields.js.map +1 -0
- package/dist/shared/people.d.ts +29 -0
- package/dist/shared/people.d.ts.map +1 -0
- package/dist/shared/people.js +54 -0
- package/dist/shared/people.js.map +1 -0
- package/dist/shared/routes.d.ts +7 -0
- package/dist/shared/routes.d.ts.map +1 -0
- package/dist/shared/routes.js +7 -0
- package/dist/shared/routes.js.map +1 -0
- package/dist/shared/text.d.ts +3 -0
- package/dist/shared/text.d.ts.map +1 -0
- package/dist/shared/text.js +9 -0
- package/dist/shared/text.js.map +1 -0
- package/package.json +72 -3
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { LocaleResource } from '@nocobase/i18n';
|
|
2
|
+
declare const enUS: {
|
|
3
|
+
navigation: {
|
|
4
|
+
group: string;
|
|
5
|
+
dataRequests: string;
|
|
6
|
+
incoming: string;
|
|
7
|
+
tasks: string;
|
|
8
|
+
configuration: string;
|
|
9
|
+
};
|
|
10
|
+
dataRequests: {
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
list: string;
|
|
14
|
+
create: string;
|
|
15
|
+
submit: string;
|
|
16
|
+
};
|
|
17
|
+
extractions: {
|
|
18
|
+
create: string;
|
|
19
|
+
};
|
|
20
|
+
incoming: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
list: string;
|
|
24
|
+
create: string;
|
|
25
|
+
submit: string;
|
|
26
|
+
};
|
|
27
|
+
tasks: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
mine: string;
|
|
31
|
+
none: string;
|
|
32
|
+
pick: string;
|
|
33
|
+
notices: string;
|
|
34
|
+
noticesNote: string;
|
|
35
|
+
noNotices: string;
|
|
36
|
+
};
|
|
37
|
+
configuration: {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
common: {
|
|
42
|
+
created: string;
|
|
43
|
+
actAs: string;
|
|
44
|
+
save: string;
|
|
45
|
+
delete: string;
|
|
46
|
+
reason: string;
|
|
47
|
+
notAllowed: string;
|
|
48
|
+
final: string;
|
|
49
|
+
history: string;
|
|
50
|
+
noHistory: string;
|
|
51
|
+
empty: string;
|
|
52
|
+
pick: string;
|
|
53
|
+
loading: string;
|
|
54
|
+
remove: string;
|
|
55
|
+
};
|
|
56
|
+
rows: {
|
|
57
|
+
department: string;
|
|
58
|
+
clerks: string;
|
|
59
|
+
heads: string;
|
|
60
|
+
leaders: string;
|
|
61
|
+
dispatched: string;
|
|
62
|
+
yes: string;
|
|
63
|
+
no: string;
|
|
64
|
+
empty: string;
|
|
65
|
+
pickDepartment: string;
|
|
66
|
+
assist: string;
|
|
67
|
+
assistOther: string;
|
|
68
|
+
add: string;
|
|
69
|
+
addAssist: string;
|
|
70
|
+
};
|
|
71
|
+
processing: {
|
|
72
|
+
number: string;
|
|
73
|
+
node: string;
|
|
74
|
+
assignees: string;
|
|
75
|
+
feedback: string;
|
|
76
|
+
attachments: string;
|
|
77
|
+
empty: string;
|
|
78
|
+
};
|
|
79
|
+
trace: {
|
|
80
|
+
departments: string;
|
|
81
|
+
groups: string;
|
|
82
|
+
notified: string;
|
|
83
|
+
skipped: string;
|
|
84
|
+
};
|
|
85
|
+
runs: {
|
|
86
|
+
queued: string;
|
|
87
|
+
running: string;
|
|
88
|
+
succeeded: string;
|
|
89
|
+
failed: string;
|
|
90
|
+
dead: string;
|
|
91
|
+
cancelled: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* English is the source of truth for this plugin's locale shape.
|
|
96
|
+
*/
|
|
97
|
+
export type OfficeFlowsExampleResource = LocaleResource<typeof enUS>;
|
|
98
|
+
export default enUS;
|
|
99
|
+
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../client/locales/en-US.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FT,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;AAErE,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const enUS = {
|
|
2
|
+
navigation: {
|
|
3
|
+
group: 'Workflow: Lightweight Approval',
|
|
4
|
+
dataRequests: 'Data usage requests',
|
|
5
|
+
incoming: 'Incoming documents',
|
|
6
|
+
tasks: 'My tasks',
|
|
7
|
+
configuration: 'Configuration',
|
|
8
|
+
},
|
|
9
|
+
dataRequests: {
|
|
10
|
+
title: 'Data usage requests',
|
|
11
|
+
description: 'An applicant asks to use data; three managers approve; acceptance follows the extraction tasks, which a schedule creates for each period, moved off weekends and public holidays.',
|
|
12
|
+
list: 'Requests',
|
|
13
|
+
create: 'New request',
|
|
14
|
+
submit: 'Save and submit',
|
|
15
|
+
},
|
|
16
|
+
extractions: { create: 'Create extraction task' },
|
|
17
|
+
incoming: {
|
|
18
|
+
title: 'Incoming documents',
|
|
19
|
+
description: 'The office records a document; its head and leader approve; the registrar distributes it to departments, whose clerks may hand it on to execution teams and executors. Each person is reminded once per level.',
|
|
20
|
+
list: 'Documents',
|
|
21
|
+
create: 'Record a document',
|
|
22
|
+
submit: 'Save and submit',
|
|
23
|
+
},
|
|
24
|
+
tasks: {
|
|
25
|
+
title: 'My tasks',
|
|
26
|
+
description: 'Clerk, execution-team and executor tasks of the person you act as, and the reminders they received.',
|
|
27
|
+
mine: 'Tasks',
|
|
28
|
+
none: 'No tasks for this person.',
|
|
29
|
+
pick: 'Pick a task to work on it.',
|
|
30
|
+
notices: 'Reminders',
|
|
31
|
+
noticesNote: 'One reminder per document and level, however many rows name the person.',
|
|
32
|
+
noNotices: 'No reminders yet.',
|
|
33
|
+
},
|
|
34
|
+
configuration: {
|
|
35
|
+
title: 'Configuration',
|
|
36
|
+
description: 'Demonstration data the processes read: the people a department row brings in, management groups, and the 2026 holiday calendar.',
|
|
37
|
+
},
|
|
38
|
+
common: {
|
|
39
|
+
created: 'Created',
|
|
40
|
+
actAs: 'Act as',
|
|
41
|
+
save: 'Save',
|
|
42
|
+
delete: 'Delete',
|
|
43
|
+
reason: 'Reason',
|
|
44
|
+
notAllowed: 'This person may not do this now.',
|
|
45
|
+
final: 'No transition leaves this state.',
|
|
46
|
+
history: 'History',
|
|
47
|
+
noHistory: 'Nothing has happened yet.',
|
|
48
|
+
empty: 'Nothing here yet.',
|
|
49
|
+
pick: 'Pick a record, or create one.',
|
|
50
|
+
loading: 'Loading…',
|
|
51
|
+
remove: 'Remove {{name}}',
|
|
52
|
+
},
|
|
53
|
+
rows: {
|
|
54
|
+
department: 'Department',
|
|
55
|
+
clerks: 'Clerks',
|
|
56
|
+
heads: 'Copy: heads and others',
|
|
57
|
+
leaders: 'Copy: supervising leaders',
|
|
58
|
+
dispatched: 'Dispatched',
|
|
59
|
+
yes: 'Yes',
|
|
60
|
+
no: 'No',
|
|
61
|
+
empty: 'No rows yet.',
|
|
62
|
+
pickDepartment: 'Pick a department',
|
|
63
|
+
assist: '(assisting)',
|
|
64
|
+
assistOther: 'Assist from another department',
|
|
65
|
+
add: 'Add row',
|
|
66
|
+
addAssist: 'Save and create the assisting task',
|
|
67
|
+
},
|
|
68
|
+
processing: {
|
|
69
|
+
number: 'Number',
|
|
70
|
+
node: 'Node',
|
|
71
|
+
assignees: 'Assignees',
|
|
72
|
+
feedback: 'Feedback',
|
|
73
|
+
attachments: 'Attachments',
|
|
74
|
+
empty: 'No tasks at this level.',
|
|
75
|
+
},
|
|
76
|
+
trace: {
|
|
77
|
+
departments: 'Departments',
|
|
78
|
+
groups: 'Groups',
|
|
79
|
+
notified: 'Reminded',
|
|
80
|
+
skipped: 'Already reminded, skipped',
|
|
81
|
+
},
|
|
82
|
+
runs: {
|
|
83
|
+
queued: 'Queued',
|
|
84
|
+
running: 'Running',
|
|
85
|
+
succeeded: 'Succeeded',
|
|
86
|
+
failed: 'Failed',
|
|
87
|
+
dead: 'Gave up',
|
|
88
|
+
cancelled: 'Cancelled',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export default enUS;
|
|
92
|
+
//# sourceMappingURL=en-US.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.js","sourceRoot":"","sources":["../../../client/locales/en-US.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG;IACX,UAAU,EAAE;QACV,KAAK,EAAE,gCAAgC;QACvC,YAAY,EAAE,qBAAqB;QACnC,QAAQ,EAAE,oBAAoB;QAC9B,KAAK,EAAE,UAAU;QACjB,aAAa,EAAE,eAAe;KAC/B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,mLAAmL;QACrL,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,iBAAiB;KAC1B;IACD,WAAW,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE;IACjD,QAAQ,EAAE;QACR,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EACT,gNAAgN;QAClN,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,iBAAiB;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AAE,QAAQ;QAChB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,2BAA2B;KACrC;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,WAAW;QACtB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,WAAW;KACvB;CACF,CAAC;AAOF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../client/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,QAAA,MAAM,OAAO,EAAE,aAGd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../client/locales/index.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,MAAM,OAAO,GAAkB;IAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;IACnC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC;CACpC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../client/locales/zh-CN.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAE7D,QAAA,MAAM,IAAI,EAAE,0BA4FX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const zhCN = {
|
|
2
|
+
navigation: {
|
|
3
|
+
group: '工作流:轻量审批',
|
|
4
|
+
dataRequests: '数据使用申请',
|
|
5
|
+
incoming: '收文',
|
|
6
|
+
tasks: '我的待办',
|
|
7
|
+
configuration: '配置',
|
|
8
|
+
},
|
|
9
|
+
dataRequests: {
|
|
10
|
+
title: '数据使用申请',
|
|
11
|
+
description: '申请人提交数据使用申请,经一级、二级、三级主管审批后进入抽数受理分析和分派。抽数子单按频次定期生成,遇周末和法定节假日顺延。',
|
|
12
|
+
list: '申请',
|
|
13
|
+
create: '新建申请',
|
|
14
|
+
submit: '保存并提交',
|
|
15
|
+
},
|
|
16
|
+
extractions: { create: '创建抽数子流程' },
|
|
17
|
+
incoming: {
|
|
18
|
+
title: '收文',
|
|
19
|
+
description: '办公室录入收文,经办公室部门主管、分管领导审批后由申请人派发到各部门;办事人员可再派发执行团队和执行人。每个人在每一层只收到一次提醒。',
|
|
20
|
+
list: '收文',
|
|
21
|
+
create: '录入收文',
|
|
22
|
+
submit: '保存并提交',
|
|
23
|
+
},
|
|
24
|
+
tasks: {
|
|
25
|
+
title: '我的待办',
|
|
26
|
+
description: '所扮演人员的办事人员、执行团队、执行人子单,以及收到的提醒。',
|
|
27
|
+
mine: '待办',
|
|
28
|
+
none: '这个人员没有待办。',
|
|
29
|
+
pick: '选择一张子单开始处理。',
|
|
30
|
+
notices: '提醒',
|
|
31
|
+
noticesNote: '同一收文的同一层,无论出现在多少行,只提醒一次。',
|
|
32
|
+
noNotices: '还没有提醒。',
|
|
33
|
+
},
|
|
34
|
+
configuration: {
|
|
35
|
+
title: '配置',
|
|
36
|
+
description: '流程读取的演示数据:各部门带入的人员、公司管理层群组,以及 2026 年工作日历。',
|
|
37
|
+
},
|
|
38
|
+
common: {
|
|
39
|
+
created: '创建',
|
|
40
|
+
actAs: '扮演',
|
|
41
|
+
save: '保存',
|
|
42
|
+
delete: '删除',
|
|
43
|
+
reason: '原因',
|
|
44
|
+
notAllowed: '当前人员现在不能执行此操作。',
|
|
45
|
+
final: '当前环节没有可执行的操作。',
|
|
46
|
+
history: '审批记录',
|
|
47
|
+
noHistory: '还没有记录。',
|
|
48
|
+
empty: '还没有记录。',
|
|
49
|
+
pick: '选择一条记录,或新建一条。',
|
|
50
|
+
loading: '加载中…',
|
|
51
|
+
remove: '移除 {{name}}',
|
|
52
|
+
},
|
|
53
|
+
rows: {
|
|
54
|
+
department: '分发部门',
|
|
55
|
+
clerks: '办事人员',
|
|
56
|
+
heads: '抄送人员(部门主管及其他)',
|
|
57
|
+
leaders: '抄送人员(分管领导)',
|
|
58
|
+
dispatched: '是否派发',
|
|
59
|
+
yes: '是',
|
|
60
|
+
no: '否',
|
|
61
|
+
empty: '暂无办事人员',
|
|
62
|
+
pickDepartment: '选择部门',
|
|
63
|
+
assist: '(协助)',
|
|
64
|
+
assistOther: '派发其他部门协助',
|
|
65
|
+
add: '添加行',
|
|
66
|
+
addAssist: '保存并创建协助子单',
|
|
67
|
+
},
|
|
68
|
+
processing: {
|
|
69
|
+
number: '单据号',
|
|
70
|
+
node: '节点',
|
|
71
|
+
assignees: '审批人',
|
|
72
|
+
feedback: '反馈信息',
|
|
73
|
+
attachments: '反馈附件',
|
|
74
|
+
empty: '这一层还没有子单。',
|
|
75
|
+
},
|
|
76
|
+
trace: {
|
|
77
|
+
departments: '派发部门',
|
|
78
|
+
groups: '群组',
|
|
79
|
+
notified: '已提醒',
|
|
80
|
+
skipped: '已提醒过,本次跳过',
|
|
81
|
+
},
|
|
82
|
+
runs: {
|
|
83
|
+
queued: '排队中',
|
|
84
|
+
running: '执行中',
|
|
85
|
+
succeeded: '成功',
|
|
86
|
+
failed: '失败',
|
|
87
|
+
dead: '已放弃',
|
|
88
|
+
cancelled: '已取消',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export default zhCN;
|
|
92
|
+
//# sourceMappingURL=zh-CN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.js","sourceRoot":"","sources":["../../../client/locales/zh-CN.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAA+B;IACvC,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE,QAAQ;QACtB,QAA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cAAc,EAAE,MAAM;QACtB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,UAAU;QACvB,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,WAAW;KACvB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,MAAM;QAChB,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,WAAW;KACnB;IACD,KAAK,EAAE;QACL,WAAW,EAAE,MAAM;QACnB,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,WAAW;KACrB;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,KAAK;QACX,SAAS,EAAE,KAAK;KACjB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../client/pages/configuration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA8C1C,sFAAsF;AACtF,MAAM,CAAC,OAAO,UAAU,iBAAiB,IAAI,YAAY,CA4CxD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useApiClient } from '@nocobase/app-client';
|
|
3
|
+
import { useTranslation } from '@nocobase/i18n/client';
|
|
4
|
+
import { Section } from '../components/flow-ui.js';
|
|
5
|
+
import { NAMESPACE, names } from '../lib/format.js';
|
|
6
|
+
import { PageContainer } from '../components/page-container.js';
|
|
7
|
+
import { PageHeader } from '../components/page-header.js';
|
|
8
|
+
import { api } from '../lib/api.js';
|
|
9
|
+
import { useLoader } from '../lib/use-loader.js';
|
|
10
|
+
function Table({ headers, rows, }) {
|
|
11
|
+
return (_jsx("div", { className: 'overflow-x-auto rounded-lg border', children: _jsxs("table", { className: 'w-full text-sm', children: [_jsx("thead", { className: 'bg-muted/50 text-left text-xs text-muted-foreground', children: _jsx("tr", { children: headers.map((header) => (_jsx("th", { className: 'px-3 py-2 font-medium', children: header }, header))) }) }), _jsx("tbody", { children: rows.map((row) => (_jsx("tr", { className: 'border-t', children: row.map((cell, index) => (_jsx("td", { className: 'px-3 py-2', children: cell }, headers[index]))) }, row.join('|')))) })] }) }));
|
|
12
|
+
}
|
|
13
|
+
/** The configuration the processes read: departments, management groups, holidays. */
|
|
14
|
+
export default function ConfigurationPage() {
|
|
15
|
+
const { t } = useTranslation(NAMESPACE);
|
|
16
|
+
const client = api(useApiClient());
|
|
17
|
+
const { data } = useLoader(() => client.get('config'), 'config');
|
|
18
|
+
return (_jsxs(PageContainer, { children: [_jsx(PageHeader, { title: t('configuration.title'), description: t('configuration.description') }), _jsx(Section, { title: '\u90E8\u95E8\u914D\u7F6E', children: _jsx(Table, { headers: ['分发部门', '办事人员', '部门主管及其他', '分管领导'], rows: (data?.departments ?? []).map((item) => [
|
|
19
|
+
item.name,
|
|
20
|
+
names(item.clerks),
|
|
21
|
+
names(item.heads),
|
|
22
|
+
names(item.leaders),
|
|
23
|
+
]) }) }), _jsx(Section, { title: '\u516C\u53F8\u7BA1\u7406\u5C42\u7FA4\u7EC4', children: _jsx(Table, { headers: ['群组', '抄送人员'], rows: (data?.managementGroups ?? []).map((item) => [
|
|
24
|
+
item.name,
|
|
25
|
+
names(item.members),
|
|
26
|
+
]) }) }), _jsx(Section, { title: '\u5DE5\u4F5C\u65E5\u5386\uFF08\u6CD5\u5B9A\u8282\u5047\u65E5\u4E0E\u8C03\u4F11\u4E0A\u73ED\uFF09', children: _jsx(Table, { headers: ['日期', '类型', '说明'], rows: [...(data?.holidays ?? [])]
|
|
27
|
+
.sort((left, right) => left.date.localeCompare(right.date))
|
|
28
|
+
.map((item) => [
|
|
29
|
+
item.date,
|
|
30
|
+
item.kind === 'workday' ? '调休上班' : '放假',
|
|
31
|
+
item.name,
|
|
32
|
+
]) }) })] }));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../client/pages/configuration.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAe,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,SAAS,KAAK,CAAC,EACb,OAAO,EACP,IAAI,GAIL;IACC,OAAO,CACL,cAAK,SAAS,EAAC,mCAAmC,YAChD,iBAAO,SAAS,EAAC,gBAAgB,aAC/B,gBAAO,SAAS,EAAC,qDAAqD,YACpE,uBACG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,aAAiB,SAAS,EAAC,uBAAuB,YAC/C,MAAM,IADA,MAAM,CAEV,CACN,CAAC,GACC,GACC,EACR,0BACG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjB,aAAwB,SAAS,EAAC,UAAU,YACzC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,aAAyB,SAAS,EAAC,WAAW,YAC3C,IAAI,IADE,OAAO,CAAC,KAAK,CAAC,CAElB,CACN,CAA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