bizydraft 0.1.19__py3-none-any.whl → 0.1.20__py3-none-any.whl
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.
Potentially problematic release.
This version of bizydraft might be problematic. Click here for more details.
- bizydraft/static/js/hookLoadImage.js +4 -2
- bizydraft/static/js/tool.js +18 -0
- {bizydraft-0.1.19.dist-info → bizydraft-0.1.20.dist-info}/METADATA +1 -1
- {bizydraft-0.1.19.dist-info → bizydraft-0.1.20.dist-info}/RECORD +6 -6
- {bizydraft-0.1.19.dist-info → bizydraft-0.1.20.dist-info}/WHEEL +0 -0
- {bizydraft-0.1.19.dist-info → bizydraft-0.1.20.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { app } from "../../scripts/app.js";
|
|
2
2
|
import { fileToOss } from "./uploadFile.js";
|
|
3
|
-
import { getCookie } from './tool.js';
|
|
3
|
+
import { getCookie, hideWidget } from './tool.js';
|
|
4
4
|
|
|
5
5
|
app.registerExtension({
|
|
6
6
|
name: "bizyair.image.to.oss",
|
|
@@ -51,11 +51,13 @@ app.registerExtension({
|
|
|
51
51
|
serialize: true
|
|
52
52
|
});
|
|
53
53
|
image_path_widget.type = "hidden";
|
|
54
|
+
// image_path_widget.style = "hidden";
|
|
54
55
|
image_path_widget.computeSize = () => [0, 0]; // 隐藏显示
|
|
55
56
|
}
|
|
57
|
+
hideWidget(this, 'image_path')
|
|
56
58
|
|
|
57
59
|
image_widget.options.values = image_list.map(item => item.name);
|
|
58
|
-
console.log(image_widget.value)
|
|
60
|
+
// console.log(image_widget.value)
|
|
59
61
|
// image_widget.value = image_list[0].url;
|
|
60
62
|
// image_widget.value = image_list[0];
|
|
61
63
|
if (image_list[0] && image_list[0].url) {
|
bizydraft/static/js/tool.js
CHANGED
|
@@ -3,4 +3,22 @@ export function getCookie(name) {
|
|
|
3
3
|
const parts = value.split(`; ${name}=`);
|
|
4
4
|
if (parts.length === 2) return parts.pop().split(';').shift();
|
|
5
5
|
return null;
|
|
6
|
+
}
|
|
7
|
+
export const hideWidget = (node, widget_name) => {
|
|
8
|
+
const widget = node.widgets.find(widget => widget.name === widget_name)
|
|
9
|
+
if (!widget) {
|
|
10
|
+
return
|
|
11
|
+
}
|
|
12
|
+
const originalComputeSize = widget.computeSize;
|
|
13
|
+
const originalType = widget.type;
|
|
14
|
+
|
|
15
|
+
widget.computeSize = () => [0, -4];
|
|
16
|
+
widget.type = "hidden";
|
|
17
|
+
widget.hidden = true
|
|
18
|
+
widget.options = widget.options || {};
|
|
19
|
+
widget.show = () => {
|
|
20
|
+
widget.computeSize = originalComputeSize;
|
|
21
|
+
widget.type = originalType;
|
|
22
|
+
widget.height = undefined;
|
|
23
|
+
};
|
|
6
24
|
}
|
|
@@ -5,13 +5,13 @@ bizydraft/monkey_patch.py,sha256=n4KVPkG8v-2avX6MTLhLFgQhHhadNSFJi1sEUr0-m1w,312
|
|
|
5
5
|
bizydraft/resp.py,sha256=8INvKOe5Dgai3peKfqKjrhUoYeuXWXn358w30-_cY-A,369
|
|
6
6
|
bizydraft/server.py,sha256=ES1fBYr_Ufv_YWsynLck1ln9bXTGjK3KXas1CK9WBqM,1358
|
|
7
7
|
bizydraft/static/js/handleStyle.js,sha256=vIR_W3GLKn-saIPhKfLeuJ7QbeNI4PhjAkjGjJpxVcA,1461
|
|
8
|
-
bizydraft/static/js/hookLoadImage.js,sha256=
|
|
8
|
+
bizydraft/static/js/hookLoadImage.js,sha256=C-iGxCoCLuEk3_TwjagmTLyZISedJaXkXK4Vfyoe1RY,5536
|
|
9
9
|
bizydraft/static/js/main.js,sha256=cZ-7wR9T8aNLzIrTjc-g9xVZf7z6TXWl1zhP_wXSSVo,150
|
|
10
10
|
bizydraft/static/js/postEvent.js,sha256=B879Dl5hTUqddll58stY5TFYxpFtQbI1KtMqfgrWg3E,27980
|
|
11
11
|
bizydraft/static/js/socket.js,sha256=vewGQLgdJSrjvqptEDxLirZRXZUjWTJDmDdjs4mbf4k,2436
|
|
12
|
-
bizydraft/static/js/tool.js,sha256=
|
|
12
|
+
bizydraft/static/js/tool.js,sha256=Ejyb5GiFhuoCp5_dBvu2suagbxGHCkR2Lg_4rMKN2ls,756
|
|
13
13
|
bizydraft/static/js/uploadFile.js,sha256=J04ppZ5UemNJcb6HMWusn13ytBofE7XOCKtX_A-Zaw8,4967
|
|
14
|
-
bizydraft-0.1.
|
|
15
|
-
bizydraft-0.1.
|
|
16
|
-
bizydraft-0.1.
|
|
17
|
-
bizydraft-0.1.
|
|
14
|
+
bizydraft-0.1.20.dist-info/METADATA,sha256=4xloDux7eEfDu6QaSj3yUjK9fq6h363mElV7ROtPpM0,73
|
|
15
|
+
bizydraft-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
bizydraft-0.1.20.dist-info/top_level.txt,sha256=XtoBq6hjZhXIM7aas4GtPDtAiKo8FdLzMABXW8qqQ8M,10
|
|
17
|
+
bizydraft-0.1.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|