@jiangzhongxi0322/messagechannel 1.0.0 → 1.0.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.
- package/README.md +181 -0
- package/dist/messageChannel.d.ts +10 -0
- package/dist/{messageChennel.js → messageChannel.js} +25 -8
- package/examples/command-webview-sample/.eslintrc.js +23 -0
- package/examples/command-webview-sample/.vscode/extensions.json +9 -0
- package/examples/command-webview-sample/.vscode/launch.json +18 -0
- package/examples/command-webview-sample/.vscode/settings.json +3 -0
- package/examples/command-webview-sample/.vscode/tasks.json +20 -0
- package/examples/command-webview-sample/README.md +47 -0
- package/examples/command-webview-sample/demo.gif +0 -0
- package/examples/command-webview-sample/media/cat.gif +0 -0
- package/examples/command-webview-sample/media/jsconfig.json +22 -0
- package/examples/command-webview-sample/media/main.js +41 -0
- package/examples/command-webview-sample/media/reset.css +30 -0
- package/examples/command-webview-sample/media/vscode.css +91 -0
- package/examples/command-webview-sample/package-lock.json +2764 -0
- package/examples/command-webview-sample/package.json +51 -0
- package/examples/command-webview-sample/src/extension.ts +227 -0
- package/{src/messageChennel.ts → examples/command-webview-sample/src/messageChannel.ts} +34 -21
- package/examples/command-webview-sample/tsconfig.json +12 -0
- package/examples/publish-webview-sample/.eslintrc.js +20 -0
- package/examples/publish-webview-sample/.vscode/extensions.json +9 -0
- package/examples/publish-webview-sample/.vscode/launch.json +18 -0
- package/examples/publish-webview-sample/.vscode/settings.json +3 -0
- package/examples/publish-webview-sample/.vscode/tasks.json +20 -0
- package/examples/publish-webview-sample/README.md +24 -0
- package/examples/publish-webview-sample/media/main.css +54 -0
- package/examples/publish-webview-sample/media/main.js +100 -0
- package/examples/publish-webview-sample/media/reset.css +30 -0
- package/examples/publish-webview-sample/media/vscode.css +91 -0
- package/examples/publish-webview-sample/package-lock.json +2720 -0
- package/examples/publish-webview-sample/package.json +71 -0
- package/examples/publish-webview-sample/src/extension.ts +170 -0
- package/examples/publish-webview-sample/src/messageChannel.ts +264 -0
- package/examples/publish-webview-sample/tsconfig.json +12 -0
- package/examples/url-webview-sample/.eslintignore +1 -0
- package/examples/url-webview-sample/.eslintrc.js +20 -0
- package/examples/url-webview-sample/.vscode/extensions.json +9 -0
- package/examples/url-webview-sample/.vscode/launch.json +18 -0
- package/examples/url-webview-sample/.vscode/settings.json +3 -0
- package/examples/url-webview-sample/.vscode/tasks.json +20 -0
- package/examples/url-webview-sample/README.md +25 -0
- package/examples/url-webview-sample/documentation/example.png +0 -0
- package/examples/url-webview-sample/exampleFiles/example.cscratch +14 -0
- package/examples/url-webview-sample/exampleFiles/example.pawDraw +0 -0
- package/examples/url-webview-sample/exampleFiles/log/python-kaleido-case-api.exe.log +1 -0
- package/examples/url-webview-sample/exampleFiles/log/python-request.exe.log +1 -0
- package/examples/url-webview-sample/exampleFiles/pump/config/default.json +1 -0
- package/examples/url-webview-sample/exampleFiles/test_cases/log/output_202511181702.log +6 -0
- package/examples/url-webview-sample/media/catScratch.css +65 -0
- package/examples/url-webview-sample/media/catScratch.js +100 -0
- package/examples/url-webview-sample/media/paw-color.svg +21 -0
- package/examples/url-webview-sample/media/paw-outline.svg +21 -0
- package/examples/url-webview-sample/media/pawDraw.css +83 -0
- package/examples/url-webview-sample/media/pawDraw.js +266 -0
- package/examples/url-webview-sample/media/reset.css +30 -0
- package/examples/url-webview-sample/media/sand-dark.jpg +0 -0
- package/examples/url-webview-sample/media/sand.jpg +0 -0
- package/examples/url-webview-sample/media/vscode.css +91 -0
- package/examples/url-webview-sample/package-lock.json +2751 -0
- package/examples/url-webview-sample/package.json +64 -0
- package/examples/url-webview-sample/src/catScratchEditor.ts +215 -0
- package/examples/url-webview-sample/src/dispose.ts +37 -0
- package/examples/url-webview-sample/src/extension.ts +7 -0
- package/examples/url-webview-sample/src/messageChannel.ts +264 -0
- package/examples/url-webview-sample/src/util.ts +8 -0
- package/examples/url-webview-sample/tsconfig.json +13 -0
- package/package.json +1 -1
- package/src/messageChannel.ts +264 -0
- package/dist/messageChennel.d.ts +0 -15
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
html {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
font-size: 13px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*,
|
|
7
|
+
*:before,
|
|
8
|
+
*:after {
|
|
9
|
+
box-sizing: inherit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
body,
|
|
13
|
+
h1,
|
|
14
|
+
h2,
|
|
15
|
+
h3,
|
|
16
|
+
h4,
|
|
17
|
+
h5,
|
|
18
|
+
h6,
|
|
19
|
+
p,
|
|
20
|
+
ol,
|
|
21
|
+
ul {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
img {
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
height: auto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--container-paddding: 20px;
|
|
3
|
+
--input-padding-vertical: 6px;
|
|
4
|
+
--input-padding-horizontal: 4px;
|
|
5
|
+
--input-margin-vertical: 4px;
|
|
6
|
+
--input-margin-horizontal: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
padding: 0 var(--container-paddding);
|
|
11
|
+
color: var(--vscode-foreground);
|
|
12
|
+
font-size: var(--vscode-font-size);
|
|
13
|
+
font-weight: var(--vscode-font-weight);
|
|
14
|
+
font-family: var(--vscode-font-family);
|
|
15
|
+
background-color: var(--vscode-editor-background);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ol,
|
|
19
|
+
ul {
|
|
20
|
+
padding-left: var(--container-paddding);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body > *,
|
|
24
|
+
form > * {
|
|
25
|
+
margin-block-start: var(--input-margin-vertical);
|
|
26
|
+
margin-block-end: var(--input-margin-vertical);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
*:focus {
|
|
30
|
+
outline-color: var(--vscode-focusBorder) !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
a {
|
|
34
|
+
color: var(--vscode-textLink-foreground);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
a:hover,
|
|
38
|
+
a:active {
|
|
39
|
+
color: var(--vscode-textLink-activeForeground);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
code {
|
|
43
|
+
font-size: var(--vscode-editor-font-size);
|
|
44
|
+
font-family: var(--vscode-editor-font-family);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
button {
|
|
48
|
+
border: none;
|
|
49
|
+
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
|
|
50
|
+
width: 100%;
|
|
51
|
+
text-align: center;
|
|
52
|
+
outline: 1px solid transparent;
|
|
53
|
+
outline-offset: 2px !important;
|
|
54
|
+
color: var(--vscode-button-foreground);
|
|
55
|
+
background: var(--vscode-button-background);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
button:hover {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
background: var(--vscode-button-hoverBackground);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
button:focus {
|
|
64
|
+
outline-color: var(--vscode-focusBorder);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
button.secondary {
|
|
68
|
+
color: var(--vscode-button-secondaryForeground);
|
|
69
|
+
background: var(--vscode-button-secondaryBackground);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
button.secondary:hover {
|
|
73
|
+
background: var(--vscode-button-secondaryHoverBackground);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
input:not([type='checkbox']),
|
|
77
|
+
textarea {
|
|
78
|
+
display: block;
|
|
79
|
+
width: 100%;
|
|
80
|
+
border: none;
|
|
81
|
+
font-family: var(--vscode-font-family);
|
|
82
|
+
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
|
|
83
|
+
color: var(--vscode-input-foreground);
|
|
84
|
+
outline-color: var(--vscode-input-border);
|
|
85
|
+
background-color: var(--vscode-input-background);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
input::placeholder,
|
|
89
|
+
textarea::placeholder {
|
|
90
|
+
color: var(--vscode-input-placeholderForeground);
|
|
91
|
+
}
|