@nocobase/preset-nocobase 1.5.0-beta.2 → 1.5.0-beta.4

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Migration } from '@nocobase/server';
10
+ export default class extends Migration {
11
+ on: string;
12
+ up(): Promise<void>;
13
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
15
+ var __export = (target, all) => {
16
+ for (var name in all)
17
+ __defProp(target, name, { get: all[name], enumerable: true });
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var move_sort_field_to_plugin_exports = {};
29
+ __export(move_sort_field_to_plugin_exports, {
30
+ default: () => move_sort_field_to_plugin_default
31
+ });
32
+ module.exports = __toCommonJS(move_sort_field_to_plugin_exports);
33
+ var import_server = require("@nocobase/server");
34
+ const _move_sort_field_to_plugin_default = class _move_sort_field_to_plugin_default extends import_server.Migration {
35
+ on = "beforeLoad";
36
+ // 'beforeLoad' or 'afterLoad'
37
+ async up() {
38
+ const existed = await this.pm.repository.findOne({
39
+ filter: {
40
+ packageName: "@nocobase/plugin-field-sort"
41
+ }
42
+ });
43
+ if (!existed) {
44
+ await this.pm.repository.create({
45
+ values: {
46
+ name: "field-sort",
47
+ packageName: "@nocobase/plugin-field-sort",
48
+ version: this.appVersion,
49
+ enabled: true,
50
+ installed: true,
51
+ builtIn: true
52
+ }
53
+ });
54
+ }
55
+ }
56
+ };
57
+ __name(_move_sort_field_to_plugin_default, "default");
58
+ let move_sort_field_to_plugin_default = _move_sort_field_to_plugin_default;
package/package.json CHANGED
@@ -1,76 +1,77 @@
1
1
  {
2
2
  "name": "@nocobase/preset-nocobase",
3
- "version": "1.5.0-beta.2",
3
+ "version": "1.5.0-beta.4",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "./lib/server/index.js",
6
6
  "dependencies": {
7
7
  "@formily/json-schema": "2.x",
8
- "@nocobase/plugin-acl": "1.5.0-beta.2",
9
- "@nocobase/plugin-action-bulk-edit": "1.5.0-beta.2",
10
- "@nocobase/plugin-action-bulk-update": "1.5.0-beta.2",
11
- "@nocobase/plugin-action-custom-request": "1.5.0-beta.2",
12
- "@nocobase/plugin-action-duplicate": "1.5.0-beta.2",
13
- "@nocobase/plugin-action-export": "1.5.0-beta.2",
14
- "@nocobase/plugin-action-import": "1.5.0-beta.2",
15
- "@nocobase/plugin-action-print": "1.5.0-beta.2",
16
- "@nocobase/plugin-api-doc": "1.5.0-beta.2",
17
- "@nocobase/plugin-api-keys": "1.5.0-beta.2",
18
- "@nocobase/plugin-audit-logs": "1.5.0-beta.2",
19
- "@nocobase/plugin-auth": "1.5.0-beta.2",
20
- "@nocobase/plugin-auth-sms": "1.5.0-beta.2",
21
- "@nocobase/plugin-backup-restore": "1.5.0-beta.2",
22
- "@nocobase/plugin-block-iframe": "1.5.0-beta.2",
23
- "@nocobase/plugin-block-workbench": "1.5.0-beta.2",
24
- "@nocobase/plugin-calendar": "1.5.0-beta.2",
25
- "@nocobase/plugin-charts": "1.5.0-beta.2",
26
- "@nocobase/plugin-client": "1.5.0-beta.2",
27
- "@nocobase/plugin-collection-sql": "1.5.0-beta.2",
28
- "@nocobase/plugin-collection-tree": "1.5.0-beta.2",
29
- "@nocobase/plugin-data-source-main": "1.5.0-beta.2",
30
- "@nocobase/plugin-data-source-manager": "1.5.0-beta.2",
31
- "@nocobase/plugin-data-visualization": "1.5.0-beta.2",
32
- "@nocobase/plugin-error-handler": "1.5.0-beta.2",
33
- "@nocobase/plugin-field-china-region": "1.5.0-beta.2",
34
- "@nocobase/plugin-field-formula": "1.5.0-beta.2",
35
- "@nocobase/plugin-field-m2m-array": "1.5.0-beta.2",
36
- "@nocobase/plugin-field-markdown-vditor": "1.5.0-beta.2",
37
- "@nocobase/plugin-field-sequence": "1.5.0-beta.2",
38
- "@nocobase/plugin-file-manager": "1.5.0-beta.2",
39
- "@nocobase/plugin-gantt": "1.5.0-beta.2",
40
- "@nocobase/plugin-graph-collection-manager": "1.5.0-beta.2",
41
- "@nocobase/plugin-kanban": "1.5.0-beta.2",
42
- "@nocobase/plugin-localization": "1.5.0-beta.2",
43
- "@nocobase/plugin-logger": "1.5.0-beta.2",
44
- "@nocobase/plugin-map": "1.5.0-beta.2",
45
- "@nocobase/plugin-mobile": "1.5.0-beta.2",
46
- "@nocobase/plugin-mobile-client": "1.5.0-beta.2",
47
- "@nocobase/plugin-mock-collections": "1.5.0-beta.2",
48
- "@nocobase/plugin-multi-app-manager": "1.5.0-beta.2",
49
- "@nocobase/plugin-multi-app-share-collection": "1.5.0-beta.2",
50
- "@nocobase/plugin-notification-email": "1.5.0-beta.2",
51
- "@nocobase/plugin-notification-in-app-message": "1.5.0-beta.2",
52
- "@nocobase/plugin-notification-manager": "1.5.0-beta.2",
53
- "@nocobase/plugin-public-forms": "1.5.0-beta.2",
54
- "@nocobase/plugin-snapshot-field": "1.5.0-beta.2",
55
- "@nocobase/plugin-system-settings": "1.5.0-beta.2",
56
- "@nocobase/plugin-theme-editor": "1.5.0-beta.2",
57
- "@nocobase/plugin-ui-schema-storage": "1.5.0-beta.2",
58
- "@nocobase/plugin-user-data-sync": "1.5.0-beta.2",
59
- "@nocobase/plugin-users": "1.5.0-beta.2",
60
- "@nocobase/plugin-verification": "1.5.0-beta.2",
61
- "@nocobase/plugin-workflow": "1.5.0-beta.2",
62
- "@nocobase/plugin-workflow-action-trigger": "1.5.0-beta.2",
63
- "@nocobase/plugin-workflow-aggregate": "1.5.0-beta.2",
64
- "@nocobase/plugin-workflow-delay": "1.5.0-beta.2",
65
- "@nocobase/plugin-workflow-dynamic-calculation": "1.5.0-beta.2",
66
- "@nocobase/plugin-workflow-loop": "1.5.0-beta.2",
67
- "@nocobase/plugin-workflow-mailer": "1.5.0-beta.2",
68
- "@nocobase/plugin-workflow-manual": "1.5.0-beta.2",
69
- "@nocobase/plugin-workflow-notification": "1.5.0-beta.2",
70
- "@nocobase/plugin-workflow-parallel": "1.5.0-beta.2",
71
- "@nocobase/plugin-workflow-request": "1.5.0-beta.2",
72
- "@nocobase/plugin-workflow-sql": "1.5.0-beta.2",
73
- "@nocobase/server": "1.5.0-beta.2",
8
+ "@nocobase/plugin-acl": "1.5.0-beta.4",
9
+ "@nocobase/plugin-action-bulk-edit": "1.5.0-beta.4",
10
+ "@nocobase/plugin-action-bulk-update": "1.5.0-beta.4",
11
+ "@nocobase/plugin-action-custom-request": "1.5.0-beta.4",
12
+ "@nocobase/plugin-action-duplicate": "1.5.0-beta.4",
13
+ "@nocobase/plugin-action-export": "1.5.0-beta.4",
14
+ "@nocobase/plugin-action-import": "1.5.0-beta.4",
15
+ "@nocobase/plugin-action-print": "1.5.0-beta.4",
16
+ "@nocobase/plugin-api-doc": "1.5.0-beta.4",
17
+ "@nocobase/plugin-api-keys": "1.5.0-beta.4",
18
+ "@nocobase/plugin-audit-logs": "1.5.0-beta.4",
19
+ "@nocobase/plugin-auth": "1.5.0-beta.4",
20
+ "@nocobase/plugin-auth-sms": "1.5.0-beta.4",
21
+ "@nocobase/plugin-backup-restore": "1.5.0-beta.4",
22
+ "@nocobase/plugin-block-iframe": "1.5.0-beta.4",
23
+ "@nocobase/plugin-block-workbench": "1.5.0-beta.4",
24
+ "@nocobase/plugin-calendar": "1.5.0-beta.4",
25
+ "@nocobase/plugin-charts": "1.5.0-beta.4",
26
+ "@nocobase/plugin-client": "1.5.0-beta.4",
27
+ "@nocobase/plugin-collection-sql": "1.5.0-beta.4",
28
+ "@nocobase/plugin-collection-tree": "1.5.0-beta.4",
29
+ "@nocobase/plugin-data-source-main": "1.5.0-beta.4",
30
+ "@nocobase/plugin-data-source-manager": "1.5.0-beta.4",
31
+ "@nocobase/plugin-data-visualization": "1.5.0-beta.4",
32
+ "@nocobase/plugin-error-handler": "1.5.0-beta.4",
33
+ "@nocobase/plugin-field-china-region": "1.5.0-beta.4",
34
+ "@nocobase/plugin-field-formula": "1.5.0-beta.4",
35
+ "@nocobase/plugin-field-m2m-array": "1.5.0-beta.4",
36
+ "@nocobase/plugin-field-markdown-vditor": "1.5.0-beta.4",
37
+ "@nocobase/plugin-field-sequence": "1.5.0-beta.4",
38
+ "@nocobase/plugin-field-sort": "1.5.0-beta.4",
39
+ "@nocobase/plugin-file-manager": "1.5.0-beta.4",
40
+ "@nocobase/plugin-gantt": "1.5.0-beta.4",
41
+ "@nocobase/plugin-graph-collection-manager": "1.5.0-beta.4",
42
+ "@nocobase/plugin-kanban": "1.5.0-beta.4",
43
+ "@nocobase/plugin-localization": "1.5.0-beta.4",
44
+ "@nocobase/plugin-logger": "1.5.0-beta.4",
45
+ "@nocobase/plugin-map": "1.5.0-beta.4",
46
+ "@nocobase/plugin-mobile": "1.5.0-beta.4",
47
+ "@nocobase/plugin-mobile-client": "1.5.0-beta.4",
48
+ "@nocobase/plugin-mock-collections": "1.5.0-beta.4",
49
+ "@nocobase/plugin-multi-app-manager": "1.5.0-beta.4",
50
+ "@nocobase/plugin-multi-app-share-collection": "1.5.0-beta.4",
51
+ "@nocobase/plugin-notification-email": "1.5.0-beta.4",
52
+ "@nocobase/plugin-notification-in-app-message": "1.5.0-beta.4",
53
+ "@nocobase/plugin-notification-manager": "1.5.0-beta.4",
54
+ "@nocobase/plugin-public-forms": "1.5.0-beta.4",
55
+ "@nocobase/plugin-snapshot-field": "1.5.0-beta.4",
56
+ "@nocobase/plugin-system-settings": "1.5.0-beta.4",
57
+ "@nocobase/plugin-theme-editor": "1.5.0-beta.4",
58
+ "@nocobase/plugin-ui-schema-storage": "1.5.0-beta.4",
59
+ "@nocobase/plugin-user-data-sync": "1.5.0-beta.4",
60
+ "@nocobase/plugin-users": "1.5.0-beta.4",
61
+ "@nocobase/plugin-verification": "1.5.0-beta.4",
62
+ "@nocobase/plugin-workflow": "1.5.0-beta.4",
63
+ "@nocobase/plugin-workflow-action-trigger": "1.5.0-beta.4",
64
+ "@nocobase/plugin-workflow-aggregate": "1.5.0-beta.4",
65
+ "@nocobase/plugin-workflow-delay": "1.5.0-beta.4",
66
+ "@nocobase/plugin-workflow-dynamic-calculation": "1.5.0-beta.4",
67
+ "@nocobase/plugin-workflow-loop": "1.5.0-beta.4",
68
+ "@nocobase/plugin-workflow-mailer": "1.5.0-beta.4",
69
+ "@nocobase/plugin-workflow-manual": "1.5.0-beta.4",
70
+ "@nocobase/plugin-workflow-notification": "1.5.0-beta.4",
71
+ "@nocobase/plugin-workflow-parallel": "1.5.0-beta.4",
72
+ "@nocobase/plugin-workflow-request": "1.5.0-beta.4",
73
+ "@nocobase/plugin-workflow-sql": "1.5.0-beta.4",
74
+ "@nocobase/server": "1.5.0-beta.4",
74
75
  "cronstrue": "^2.11.0",
75
76
  "fs-extra": "^11.1.1"
76
77
  },
@@ -102,6 +103,7 @@
102
103
  "@nocobase/plugin-error-handler",
103
104
  "@nocobase/plugin-field-formula",
104
105
  "@nocobase/plugin-field-sequence",
106
+ "@nocobase/plugin-field-sort",
105
107
  "@nocobase/plugin-file-manager",
106
108
  "@nocobase/plugin-gantt",
107
109
  "@nocobase/plugin-kanban",
@@ -131,5 +133,5 @@
131
133
  "url": "git+https://github.com/nocobase/nocobase.git",
132
134
  "directory": "packages/presets/nocobase"
133
135
  },
134
- "gitHead": "8a9c29fdac5c6295dcc7abf00c3fa81bd9e01a36"
136
+ "gitHead": "f5ca1548fe8d8eda32699137434306c44a5df84c"
135
137
  }