oipage 1.9.0-alpha.0 → 1.9.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/CHANGELOG +9 -2
- package/bin/tools/deleteEmptyFolder.js +13 -3
- package/bin/website-htmls/components/ui-select-file/index.html +2 -1
- package/bin/website-htmls/components/ui-select-file/index.js +6 -1
- package/bin/website-htmls/images/video-player.jpeg +0 -0
- package/bin/website-htmls/pages/home/index.scss +1 -1
- package/nodejs/animation/index.js +0 -4
- package/nodejs/cmdlog/index.js +0 -4
- package/nodejs/disk/index.js +0 -4
- package/nodejs/format/index.js +0 -4
- package/nodejs/json/index.js +0 -4
- package/nodejs/logform/index.js +0 -4
- package/nodejs/reader/index.js +0 -4
- package/nodejs/throttle/index.js +0 -4
- package/package.json +1 -1
- package/web/XMLHttpRequest/index.js +0 -4
- package/web/animation/index.js +0 -4
- package/web/format/index.js +0 -4
- package/web/json/index.js +0 -4
- package/web/onReady/index.js +0 -4
- package/web/performChunk/index.js +0 -4
- package/web/reader/index.js +0 -4
- package/web/style/index.js +0 -4
- package/web/throttle/index.js +0 -4
package/CHANGELOG
CHANGED
|
@@ -169,8 +169,15 @@ v1.8.1:
|
|
|
169
169
|
changes:
|
|
170
170
|
- 修复bug
|
|
171
171
|
1、开发服务器删除多余的打印语句
|
|
172
|
+
v1.8.2:
|
|
173
|
+
date:2026-02-07
|
|
174
|
+
changes:
|
|
175
|
+
- 修复bug
|
|
176
|
+
1、修复oipage-cli disk --delempty 命令错误
|
|
172
177
|
v1.9.0:
|
|
173
|
-
date:
|
|
178
|
+
date:2026-03-04
|
|
174
179
|
changes:
|
|
175
180
|
- 优化改造
|
|
176
|
-
1
|
|
181
|
+
1、调整打包若干细节
|
|
182
|
+
2、针对应用市场优化UI设计
|
|
183
|
+
3、优化oipage-cli disk --delempty 命令路径不存在时提示
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
const { readdirSync, lstatSync, rmdirSync } = require("fs");
|
|
1
|
+
const { readdirSync, lstatSync, rmdirSync, existsSync } = require("fs");
|
|
2
2
|
const { join } = require("path");
|
|
3
3
|
|
|
4
4
|
module.exports = function (rootPath) {
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// 命令地方已经确保是全路径
|
|
7
|
+
// rootPath = path.resolve(rootPath);
|
|
8
|
+
|
|
9
|
+
// 路径不存在,什么也不用干
|
|
10
|
+
if (!existsSync(rootPath)) {
|
|
11
|
+
console.log("路径不存在:\x1b[31m" + rootPath + "\x1b[0m");
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
; (function deleteEmptyFolder(folderPath) {
|
|
6
16
|
let subItems = readdirSync(folderPath);
|
|
7
17
|
if (subItems.length > 0) {
|
|
8
18
|
for (let i = 0; i < subItems.length; i++) {
|
|
@@ -20,5 +30,5 @@ module.exports = function (rootPath) {
|
|
|
20
30
|
folderPath = join(folderPath, "..");
|
|
21
31
|
}
|
|
22
32
|
}
|
|
23
|
-
})(
|
|
33
|
+
})(rootPath);
|
|
24
34
|
};
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<h2 class="title" z-bind="_props.title"></h2>
|
|
3
3
|
<div class="tips" z-bind="_props.tips"></div>
|
|
4
4
|
<div class="file">
|
|
5
|
-
<input type="file" multiple id="input" z-on:change.stop="doChange"
|
|
5
|
+
<input type="file" :multiple="_props.multiple?'multiple':'none'" id="input" z-on:change.stop="doChange"
|
|
6
|
+
z-bind:accept="accept" />
|
|
6
7
|
<label for="input" z-bind="'选择'+_props.type+'文件'"></label>
|
|
7
8
|
</div>
|
|
8
9
|
</div>
|
|
@@ -18,12 +18,17 @@ export default defineElement({
|
|
|
18
18
|
type: String,
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
|
+
multiple: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
}
|
|
21
25
|
},
|
|
22
26
|
data() {
|
|
23
27
|
return {
|
|
24
28
|
accept: {
|
|
25
29
|
pdf: "application/pdf",
|
|
26
|
-
image: "image/*"
|
|
30
|
+
image: "image/*",
|
|
31
|
+
video: "video/*",
|
|
27
32
|
}[this._props.type]
|
|
28
33
|
};
|
|
29
34
|
},
|
|
Binary file
|
package/nodejs/cmdlog/index.js
CHANGED
package/nodejs/disk/index.js
CHANGED
package/nodejs/format/index.js
CHANGED
package/nodejs/json/index.js
CHANGED
package/nodejs/logform/index.js
CHANGED
package/nodejs/reader/index.js
CHANGED
package/nodejs/throttle/index.js
CHANGED
package/package.json
CHANGED
package/web/animation/index.js
CHANGED
package/web/format/index.js
CHANGED
package/web/json/index.js
CHANGED
package/web/onReady/index.js
CHANGED
package/web/reader/index.js
CHANGED
package/web/style/index.js
CHANGED