@heybox/hb-sdk 0.3.3 → 0.4.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/README.md +63 -28
- package/dist/cli-chunks/browser-RAy8e8cV.cjs +635 -0
- package/dist/cli-chunks/create-D1j9UnM7.cjs +1376 -0
- package/dist/cli-chunks/deploy-CknDDoS_.cjs +3730 -0
- package/dist/cli-chunks/dev-BS9h09yG.cjs +955 -0
- package/dist/cli-chunks/doctor-WTl1HCW0.cjs +186 -0
- package/dist/cli-chunks/index-io4h3kr-.cjs +13348 -0
- package/dist/cli-chunks/index-yjJgBEBF.cjs +64023 -0
- package/dist/cli-chunks/login-B-A53Sta.cjs +193 -0
- package/dist/cli-chunks/session-CMBN3o9z.cjs +3040 -0
- package/dist/cli.cjs +19 -77707
- package/dist/devtools/mock-host/index.html +62 -2
- package/dist/devtools/mock-host/main.js +3246 -20
- package/dist/index.cjs.js +20 -0
- package/dist/index.esm.js +20 -0
- package/dist/miniapp-publish.cjs.js +2810 -4
- package/dist/miniapp-publish.esm.js +2809 -4
- package/dist/protocol.cjs.js +15 -0
- package/dist/protocol.esm.js +15 -1
- package/dist/templates/vue3-vite-ts/README.md.ejs +2 -2
- package/dist/vite.cjs.js +2814 -14
- package/dist/vite.esm.js +2814 -14
- package/package.json +6 -1
- package/skill/SKILL.md +19 -13
- package/skill/references/api-protocol.md +7 -2
- package/skill/references/api-root.md +24 -13
- package/skill/references/cli.md +335 -104
- package/skill/scripts/sync-references.mjs +17 -1
- package/skill/skill.json +4 -4
- package/types/index.d.ts +1 -1
- package/types/miniapp-manifest/schema.d.ts +2 -1
- package/types/miniapp-publish/index.d.ts +2 -1
- package/types/modules/viewport/index.d.ts +33 -0
- package/types/protocol/capabilities.d.ts +17 -2
- package/types/protocol.d.ts +2 -2
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
body {
|
|
13
13
|
margin: 0;
|
|
14
|
-
|
|
14
|
+
height: 100vh;
|
|
15
|
+
overflow: hidden;
|
|
15
16
|
color: #1f2933;
|
|
16
17
|
background: #eef2f6;
|
|
17
18
|
font-family:
|
|
@@ -26,16 +27,21 @@
|
|
|
26
27
|
.layout {
|
|
27
28
|
display: grid;
|
|
28
29
|
grid-template-columns: minmax(320px, 400px) minmax(360px, 1fr);
|
|
29
|
-
|
|
30
|
+
height: 100vh;
|
|
31
|
+
min-height: 0;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
.panel {
|
|
33
35
|
display: flex;
|
|
34
36
|
flex-direction: column;
|
|
35
37
|
gap: 16px;
|
|
38
|
+
min-height: 0;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
overscroll-behavior: contain;
|
|
36
41
|
padding: 18px;
|
|
37
42
|
border-right: 1px solid #d7dee8;
|
|
38
43
|
background: #fff;
|
|
44
|
+
scrollbar-gutter: stable;
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.panel h1 {
|
|
@@ -174,6 +180,31 @@
|
|
|
174
180
|
padding: 0 10px;
|
|
175
181
|
}
|
|
176
182
|
|
|
183
|
+
.field select {
|
|
184
|
+
min-height: 36px;
|
|
185
|
+
width: 100%;
|
|
186
|
+
border: 1px solid #cad5e2;
|
|
187
|
+
border-radius: 6px;
|
|
188
|
+
padding: 0 10px;
|
|
189
|
+
color: #1f2933;
|
|
190
|
+
background: #fff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mobile-qr {
|
|
194
|
+
display: grid;
|
|
195
|
+
justify-items: center;
|
|
196
|
+
gap: 8px;
|
|
197
|
+
margin-top: 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.mobile-qr img {
|
|
201
|
+
width: 176px;
|
|
202
|
+
height: 176px;
|
|
203
|
+
border: 1px solid #d7dee8;
|
|
204
|
+
border-radius: 6px;
|
|
205
|
+
background: #fff;
|
|
206
|
+
}
|
|
207
|
+
|
|
177
208
|
.logs {
|
|
178
209
|
display: grid;
|
|
179
210
|
gap: 8px;
|
|
@@ -207,7 +238,10 @@
|
|
|
207
238
|
.stage {
|
|
208
239
|
display: grid;
|
|
209
240
|
place-items: center;
|
|
241
|
+
height: 100vh;
|
|
242
|
+
min-height: 0;
|
|
210
243
|
min-width: 0;
|
|
244
|
+
overflow: hidden;
|
|
211
245
|
padding: 22px;
|
|
212
246
|
}
|
|
213
247
|
|
|
@@ -234,14 +268,28 @@
|
|
|
234
268
|
}
|
|
235
269
|
|
|
236
270
|
@media (max-width: 860px) {
|
|
271
|
+
body {
|
|
272
|
+
height: auto;
|
|
273
|
+
min-height: 100vh;
|
|
274
|
+
overflow: auto;
|
|
275
|
+
}
|
|
276
|
+
|
|
237
277
|
.layout {
|
|
238
278
|
grid-template-columns: 1fr;
|
|
279
|
+
height: auto;
|
|
280
|
+
min-height: 100vh;
|
|
239
281
|
}
|
|
240
282
|
|
|
241
283
|
.panel {
|
|
284
|
+
overflow: visible;
|
|
242
285
|
border-right: 0;
|
|
243
286
|
border-bottom: 1px solid #d7dee8;
|
|
244
287
|
}
|
|
288
|
+
|
|
289
|
+
.stage {
|
|
290
|
+
height: auto;
|
|
291
|
+
min-height: 80vh;
|
|
292
|
+
}
|
|
245
293
|
}
|
|
246
294
|
</style>
|
|
247
295
|
</head>
|
|
@@ -295,6 +343,18 @@
|
|
|
295
343
|
</div>
|
|
296
344
|
</section>
|
|
297
345
|
|
|
346
|
+
<section class="block">
|
|
347
|
+
<span>Mobile App</span>
|
|
348
|
+
<label class="field" style="margin-top: 10px">
|
|
349
|
+
<span>Network</span>
|
|
350
|
+
<select id="mobile-lan-select"></select>
|
|
351
|
+
</label>
|
|
352
|
+
<div class="mobile-qr">
|
|
353
|
+
<img id="mobile-qr-image" alt="手机扫码调试二维码" />
|
|
354
|
+
<div class="copy-status" id="mobile-qr-status"></div>
|
|
355
|
+
</div>
|
|
356
|
+
</section>
|
|
357
|
+
|
|
298
358
|
<section class="block">
|
|
299
359
|
<label class="field">
|
|
300
360
|
<span>Nickname</span>
|