whistle.mockbubu 2.2.0-beta.4 → 2.2.0

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/.gitignore CHANGED
@@ -62,6 +62,9 @@ typings/
62
62
  /.history
63
63
  /dist
64
64
 
65
+ # 前端构建产物
66
+ /public
67
+
65
68
  # macOS system files
66
69
  .DS_Store
67
70
  **/.DS_Store
@@ -73,7 +73,7 @@ exports.LockedFilterMap = {
73
73
  */
74
74
  exports.BusinessRules = {
75
75
  // 版本管理
76
- MAX_VERSIONS_PER_FILE: 10, // 每个文件最多10个版本
76
+ MAX_VERSIONS_PER_FILE: 50, // 每个文件最多50个版本
77
77
  MAX_VERSION_NAME_LENGTH: 20, // 版本名最长20字符
78
78
 
79
79
  // 组管理
package/lib/constants.js CHANGED
@@ -37,7 +37,7 @@ const POLLING_CONFIG = {
37
37
  */
38
38
  const FILE_CONFIG = {
39
39
  // 版本数量上限
40
- MAX_VERSIONS: 10,
40
+ MAX_VERSIONS: 50,
41
41
 
42
42
  // 默认版本名称
43
43
  DEFAULT_VERSION_NAME: 'source',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whistle.mockbubu",
3
- "version": "2.2.0-beta.4",
3
+ "version": "2.2.0",
4
4
  "description": "mock response data",
5
5
  "scripts": {
6
6
  "lint": "eslint . --ext .js",
package/public/js/app.js CHANGED
@@ -5818,16 +5818,16 @@ var render = function render() {
5818
5818
  attrs: {
5819
5819
  label: " "
5820
5820
  }
5821
- }, [_setup.responseList.length >= 11 ? _c("el-alert", {
5821
+ }, [_setup.responseList.length >= 51 ? _c("el-alert", {
5822
5822
  attrs: {
5823
- title: "已达版本数量上限(10个),请删除旧版本后再创建",
5823
+ title: "已达版本数量上限(50个),请删除旧版本后再创建",
5824
5824
  type: "warning",
5825
5825
  closable: false,
5826
5826
  "show-icon": ""
5827
5827
  }
5828
5828
  }) : _c("el-alert", {
5829
5829
  attrs: {
5830
- title: `当前版本数量:${_setup.responseList.length - 1}/10(不含 source)`,
5830
+ title: `当前版本数量:${_setup.responseList.length - 1}/50(不含 source)`,
5831
5831
  type: "info",
5832
5832
  closable: false,
5833
5833
  "show-icon": ""
@@ -5850,7 +5850,7 @@ var render = function render() {
5850
5850
  }, [_vm._v("取消")]), _c("el-button", {
5851
5851
  attrs: {
5852
5852
  type: "primary",
5853
- disabled: _setup.versionModal.status === "create" && _setup.responseList.length >= 11,
5853
+ disabled: _setup.versionModal.status === "create" && _setup.responseList.length >= 51,
5854
5854
  size: "medium"
5855
5855
  },
5856
5856
  on: {