@nocobase/plugin-system-settings 0.18.0-alpha.8 → 0.19.0-alpha.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.
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.18.0-alpha.8",
3
- "@nocobase/server": "0.18.0-alpha.8",
4
- "@nocobase/database": "0.18.0-alpha.8"
2
+ "@nocobase/client": "0.19.0-alpha.1",
3
+ "@nocobase/server": "0.19.0-alpha.1",
4
+ "@nocobase/database": "0.19.0-alpha.1"
5
5
  };
@@ -22,8 +22,7 @@ __export(systemSettings_exports, {
22
22
  module.exports = __toCommonJS(systemSettings_exports);
23
23
  var import_database = require("@nocobase/database");
24
24
  var systemSettings_default = (0, import_database.defineCollection)({
25
- namespace: "system-settings.systemSettings",
26
- duplicator: "optional",
25
+ dumpRules: "required",
27
26
  name: "systemSettings",
28
27
  fields: [
29
28
  {
@@ -1,4 +1,5 @@
1
1
  import { Migration } from '@nocobase/server';
2
- export default class UpdateEnabledLanguagesMigration extends Migration {
2
+ export default class extends Migration {
3
+ appVersion: string;
3
4
  up(): Promise<void>;
4
5
  }
@@ -17,11 +17,12 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var update_enabled_languages_exports = {};
19
19
  __export(update_enabled_languages_exports, {
20
- default: () => UpdateEnabledLanguagesMigration
20
+ default: () => update_enabled_languages_default
21
21
  });
22
22
  module.exports = __toCommonJS(update_enabled_languages_exports);
23
23
  var import_server = require("@nocobase/server");
24
- class UpdateEnabledLanguagesMigration extends import_server.Migration {
24
+ class update_enabled_languages_default extends import_server.Migration {
25
+ appVersion = "<0.7.3-alpha.1";
25
26
  async up() {
26
27
  const result = await this.app.version.satisfies("<=0.7.2-alpha.7");
27
28
  if (!result) {
@@ -55,9 +55,7 @@ class SystemSettingsPlugin extends import_server.Plugin {
55
55
  });
56
56
  }
57
57
  async load() {
58
- await this.app.db.import({
59
- directory: (0, import_path.resolve)(__dirname, "collections")
60
- });
58
+ await this.importCollections((0, import_path.resolve)(__dirname, "collections"));
61
59
  this.app.acl.addFixedParams("systemSettings", "destroy", () => {
62
60
  return {
63
61
  "id.$ne": 1
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "系统设置",
5
5
  "description": "Used to adjust the system title, logo, etc",
6
6
  "description.zh-CN": "用于调整系统的标题、LOGO 等",
7
- "version": "0.18.0-alpha.8",
7
+ "version": "0.19.0-alpha.1",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "peerDependencies": {
@@ -13,5 +13,5 @@
13
13
  "@nocobase/server": "0.x",
14
14
  "@nocobase/test": "0.x"
15
15
  },
16
- "gitHead": "727d42f6f14e5f863831da3dbf3255ba1165b567"
16
+ "gitHead": "64601944412fc4d2e2bd05f4b982118dd28247dc"
17
17
  }