tasmota-webserial-esptool 6.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/.github/dependabot.yml +10 -0
- package/.github/workflows/build_upload.yml +31 -0
- package/.github/workflows/ci.yml +22 -0
- package/.prettierignore +1 -0
- package/README.md +18 -0
- package/css/dark.css +91 -0
- package/css/light.css +79 -0
- package/css/style.css +383 -0
- package/dist/const.d.ts +159 -0
- package/dist/const.js +252 -0
- package/dist/esp_loader.d.ts +166 -0
- package/dist/esp_loader.js +931 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12 -0
- package/dist/struct.d.ts +2 -0
- package/dist/struct.js +105 -0
- package/dist/stubs/esp32.json +1 -0
- package/dist/stubs/esp32c3.json +1 -0
- package/dist/stubs/esp32s2.json +1 -0
- package/dist/stubs/esp32s3.json +1 -0
- package/dist/stubs/esp8266.json +1 -0
- package/dist/stubs/index.d.ts +10 -0
- package/dist/stubs/index.js +26 -0
- package/dist/util.d.ts +14 -0
- package/dist/util.js +46 -0
- package/dist/web/esp32-a2dcbc2e.js +1 -0
- package/dist/web/esp32c3-18e9678b.js +1 -0
- package/dist/web/esp32s2-3109ccc6.js +1 -0
- package/dist/web/esp32s3-c1dbd867.js +1 -0
- package/dist/web/esp8266-144419c0.js +1 -0
- package/dist/web/index.js +1 -0
- package/index.html +196 -0
- package/js/esptool.js +1292 -0
- package/js/modules/esp32-a2dcbc2e.js +1 -0
- package/js/modules/esp32c3-18e9678b.js +1 -0
- package/js/modules/esp32s2-3109ccc6.js +1 -0
- package/js/modules/esp32s3-c1dbd867.js +1 -0
- package/js/modules/esp8266-144419c0.js +1 -0
- package/js/modules/esptool.js +1 -0
- package/js/script.js +447 -0
- package/js/utilities.js +148 -0
- package/license.md +12 -0
- package/package.json +36 -0
- package/rollup.config.js +27 -0
- package/script/build +8 -0
- package/script/develop +17 -0
- package/script/stubgen.py +47 -0
- package/src/const.ts +315 -0
- package/src/esp_loader.ts +1204 -0
- package/src/index.ts +27 -0
- package/src/struct.ts +115 -0
- package/src/stubs/esp32.json +1 -0
- package/src/stubs/esp32c2.json +1 -0
- package/src/stubs/esp32c3.json +1 -0
- package/src/stubs/esp32h2.json +1 -0
- package/src/stubs/esp32s2.json +1 -0
- package/src/stubs/esp32s3.json +1 -0
- package/src/stubs/esp8266.json +1 -0
- package/src/stubs/index.ts +48 -0
- package/src/util.ts +49 -0
- package/stubs/esp32c2.json +1 -0
- package/stubs/esp32c3.json +1 -0
- package/stubs/esp32h2.json +1 -0
- package/stubs/esp32s3.json +1 -0
- package/tsconfig.json +19 -0
package/index.html
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>ESPTool</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<script>
|
|
9
|
+
// Redirect to HTTPS if HTTP is requested.
|
|
10
|
+
if (
|
|
11
|
+
window.location.hostname !== "localhost" &&
|
|
12
|
+
window.location.protocol === "http:"
|
|
13
|
+
) {
|
|
14
|
+
window.location.href = "https:" + window.location.href.substring(5);
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<!-- import the web page's stylesheets along with the themes -->
|
|
19
|
+
<link rel="stylesheet" href="https://use.typekit.net/qtk5kiq.css" />
|
|
20
|
+
<link rel="stylesheet" href="css/style.css" />
|
|
21
|
+
<link
|
|
22
|
+
rel="stylesheet"
|
|
23
|
+
href="css/light.css"
|
|
24
|
+
id="light"
|
|
25
|
+
class="alternate"
|
|
26
|
+
disabled
|
|
27
|
+
/>
|
|
28
|
+
<link
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
href="css/dark.css"
|
|
31
|
+
id="dark"
|
|
32
|
+
class="alternate"
|
|
33
|
+
disabled
|
|
34
|
+
/>
|
|
35
|
+
|
|
36
|
+
<!-- import the webpage's javascript file -->
|
|
37
|
+
<script module>
|
|
38
|
+
window.esptoolPackage = import(
|
|
39
|
+
// In development we import locally.
|
|
40
|
+
window.location.hostname === "localhost"
|
|
41
|
+
? "/dist/web/index.js"
|
|
42
|
+
: "./js/modules/esptool.js"
|
|
43
|
+
);
|
|
44
|
+
</script>
|
|
45
|
+
<script src="js/script.js" module defer></script>
|
|
46
|
+
</head>
|
|
47
|
+
<body>
|
|
48
|
+
<header class="header">
|
|
49
|
+
<div class="right">
|
|
50
|
+
<select id="baudRate"></select>
|
|
51
|
+
<button id="butConnect" type="button">Connect</button>
|
|
52
|
+
</div>
|
|
53
|
+
</header>
|
|
54
|
+
<main class="main">
|
|
55
|
+
<div id="notSupported" class="notSupported">
|
|
56
|
+
Sorry, <b>Web Serial</b> is not supported on this device, make sure
|
|
57
|
+
you're running Chrome 89 or later.
|
|
58
|
+
</div>
|
|
59
|
+
<div class="subheader">
|
|
60
|
+
<div class="title left">Webserial ESPTool</div>
|
|
61
|
+
<div class="right">
|
|
62
|
+
<label for="darkmode"> Dark Mode </label>
|
|
63
|
+
<div class="onoffswitch">
|
|
64
|
+
<input
|
|
65
|
+
type="checkbox"
|
|
66
|
+
name="darkmode"
|
|
67
|
+
class="onoffswitch-checkbox"
|
|
68
|
+
id="darkmode"
|
|
69
|
+
/>
|
|
70
|
+
<label class="onoffswitch-label" for="darkmode">
|
|
71
|
+
<span class="onoffswitch-inner"></span>
|
|
72
|
+
<span class="onoffswitch-switch"></span>
|
|
73
|
+
</label>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
<div id="app">
|
|
78
|
+
<div id="commands">
|
|
79
|
+
<div class="upload">
|
|
80
|
+
<label
|
|
81
|
+
>Offset: 0x
|
|
82
|
+
<input class="offset" type="text" value="0" />
|
|
83
|
+
</label>
|
|
84
|
+
<label class="firmware">
|
|
85
|
+
<input type="file" accept=".bin" />
|
|
86
|
+
<svg
|
|
87
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
88
|
+
width="20"
|
|
89
|
+
height="17"
|
|
90
|
+
viewbox="0 0 20 17"
|
|
91
|
+
>
|
|
92
|
+
<path
|
|
93
|
+
d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
|
|
94
|
+
/>
|
|
95
|
+
</svg>
|
|
96
|
+
<span>Choose a file…</span>
|
|
97
|
+
</label>
|
|
98
|
+
<div class="progress-bar hidden"><div></div></div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="upload">
|
|
101
|
+
<label
|
|
102
|
+
>Offset: 0x
|
|
103
|
+
<input class="offset" type="text" value="0" />
|
|
104
|
+
</label>
|
|
105
|
+
<label class="firmware">
|
|
106
|
+
<input type="file" accept=".bin" />
|
|
107
|
+
<svg
|
|
108
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
109
|
+
width="20"
|
|
110
|
+
height="17"
|
|
111
|
+
viewbox="0 0 20 17"
|
|
112
|
+
>
|
|
113
|
+
<path
|
|
114
|
+
d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
|
|
115
|
+
/>
|
|
116
|
+
</svg>
|
|
117
|
+
<span>Choose a file…</span>
|
|
118
|
+
</label>
|
|
119
|
+
<div class="progress-bar hidden"><div></div></div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="upload">
|
|
122
|
+
<label
|
|
123
|
+
>Offset: 0x
|
|
124
|
+
<input class="offset" type="text" value="0" />
|
|
125
|
+
</label>
|
|
126
|
+
<label class="firmware">
|
|
127
|
+
<input type="file" accept=".bin" />
|
|
128
|
+
<svg
|
|
129
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
130
|
+
width="20"
|
|
131
|
+
height="17"
|
|
132
|
+
viewbox="0 0 20 17"
|
|
133
|
+
>
|
|
134
|
+
<path
|
|
135
|
+
d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
|
|
136
|
+
/>
|
|
137
|
+
</svg>
|
|
138
|
+
<span>Choose a file…</span>
|
|
139
|
+
</label>
|
|
140
|
+
<div class="progress-bar hidden"><div></div></div>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="upload">
|
|
143
|
+
<label
|
|
144
|
+
>Offset: 0x
|
|
145
|
+
<input class="offset" type="text" value="0" />
|
|
146
|
+
</label>
|
|
147
|
+
<label class="firmware">
|
|
148
|
+
<input type="file" accept=".bin" />
|
|
149
|
+
<svg
|
|
150
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
151
|
+
width="20"
|
|
152
|
+
height="17"
|
|
153
|
+
viewbox="0 0 20 17"
|
|
154
|
+
>
|
|
155
|
+
<path
|
|
156
|
+
d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
|
|
157
|
+
/>
|
|
158
|
+
</svg>
|
|
159
|
+
<span>Choose a file…</span>
|
|
160
|
+
</label>
|
|
161
|
+
<div class="progress-bar hidden"><div></div></div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="buttons">
|
|
164
|
+
<button id="butErase" type="button" disabled="disabled">
|
|
165
|
+
Erase
|
|
166
|
+
</button>
|
|
167
|
+
<button id="butProgram" type="button" disabled="disabled">
|
|
168
|
+
Program
|
|
169
|
+
</button>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
<div id="log"></div>
|
|
173
|
+
</div>
|
|
174
|
+
</main>
|
|
175
|
+
<footer class="footer">
|
|
176
|
+
<div class="justify controls">
|
|
177
|
+
<div>
|
|
178
|
+
<label for="autoscroll">Autoscroll </label>
|
|
179
|
+
<div class="onoffswitch">
|
|
180
|
+
<input
|
|
181
|
+
type="checkbox"
|
|
182
|
+
name="autoscroll"
|
|
183
|
+
class="onoffswitch-checkbox"
|
|
184
|
+
id="autoscroll"
|
|
185
|
+
/>
|
|
186
|
+
<label class="onoffswitch-label" for="autoscroll">
|
|
187
|
+
<span class="onoffswitch-inner"></span>
|
|
188
|
+
<span class="onoffswitch-switch"></span>
|
|
189
|
+
</label>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
<button id="butClear" type="button">Clear Text</button>
|
|
193
|
+
</div>
|
|
194
|
+
</footer>
|
|
195
|
+
</body>
|
|
196
|
+
</html>
|