@nocobase/plugin-field-sort 1.5.6 → 1.5.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/dist/externalVersion.js +6 -6
- package/dist/server/plugin.js +3 -3
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.5.
|
|
11
|
+
"@nocobase/client": "1.5.8",
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
|
-
"@nocobase/database": "1.5.
|
|
14
|
-
"@nocobase/actions": "1.5.
|
|
15
|
-
"@nocobase/server": "1.5.
|
|
16
|
-
"@nocobase/data-source-manager": "1.5.
|
|
13
|
+
"@nocobase/database": "1.5.8",
|
|
14
|
+
"@nocobase/actions": "1.5.8",
|
|
15
|
+
"@nocobase/server": "1.5.8",
|
|
16
|
+
"@nocobase/data-source-manager": "1.5.8",
|
|
17
17
|
"sequelize": "6.35.2",
|
|
18
|
-
"@nocobase/lock-manager": "1.5.
|
|
18
|
+
"@nocobase/lock-manager": "1.5.8"
|
|
19
19
|
};
|
package/dist/server/plugin.js
CHANGED
|
@@ -42,11 +42,11 @@ class PluginFieldSortServer extends import_server.Plugin {
|
|
|
42
42
|
class SortFieldClass extends import_sort_field.SortField {
|
|
43
43
|
}
|
|
44
44
|
SortFieldClass.lockManager = lockManager;
|
|
45
|
-
this.app.db.registerFieldTypes({
|
|
46
|
-
sort: SortFieldClass
|
|
47
|
-
});
|
|
48
45
|
this.app.dataSourceManager.beforeAddDataSource((dataSource) => {
|
|
49
46
|
if (dataSource.collectionManager instanceof import_data_source_manager.SequelizeCollectionManager) {
|
|
47
|
+
dataSource.collectionManager.db.registerFieldTypes({
|
|
48
|
+
sort: SortFieldClass
|
|
49
|
+
});
|
|
50
50
|
dataSource.resourceManager.registerActionHandlers({ move: import_action.move });
|
|
51
51
|
}
|
|
52
52
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-field-sort",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"displayName": "Collection field: Sort",
|
|
6
6
|
"displayName.zh-CN": "数据表字段:排序",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"keywords": [
|
|
21
21
|
"Collection fields"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "901eb9f8f67a811933841763a05767ca85e1422b"
|
|
24
24
|
}
|