js-dos 7.2.7 → 7.3.3
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 +74 -13
- package/dist/js-dos.css +80 -8
- package/dist/js-dos.js +2 -2
- package/dist/js-dos.js.map +1 -1
- package/dist/types/src/backend/{jj → v7}/latency.d.ts +0 -0
- package/dist/types/src/backend/v7/v7-config.d.ts +12 -4
- package/dist/types/src/components/action-save-or-exit.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token-add-time.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token-select.d.ts +2 -0
- package/dist/types/src/components/sidebar/token/token.d.ts +15 -0
- package/dist/types/src/icons.d.ts +3 -0
- package/dist/types/src/player-app.d.ts +3 -4
- package/dist/types/src/request.d.ts +1 -0
- package/dist/wdosbox.js +2 -2
- package/dist/wdosbox.js.symbols +3128 -3132
- package/dist/wdosbox.wasm +0 -0
- package/examples/digger/index.html +2 -1
- package/package.json +2 -2
- package/.github/workflows/codeql-analysis.yml +0 -70
- package/.github/workflows/yarn-gulp.yml +0 -30
- package/dist/types/src/backend/jj/jj-config.d.ts +0 -6
- package/dist/types/src/components/action-exit.d.ts +0 -2
- package/dist/types/src/components/sidebar/active-token.d.ts +0 -2
- package/dist/types/src/components/sidebar/create-token.d.ts +0 -2
- package/v7-services/.env +0 -6
- package/v7-services/ok.yaml +0 -24
- package/v7-services/package.json +0 -17
- package/v7-services/redeploy-ok.sh +0 -25
- package/v7-services/serverless.yml +0 -140
- package/v7-services/src/networking/day.ts +0 -5
- package/v7-services/src/networking/get-free-token.ts +0 -33
- package/v7-services/src/networking/get-token-cost.ts +0 -31
- package/v7-services/src/networking/get-token-info.ts +0 -16
- package/v7-services/src/networking/ipx/put-ipx-ip.ts +0 -20
- package/v7-services/src/networking/ipx/start-ipx.ts +0 -16
- package/v7-services/src/networking/ipx/stop-ipx.ts +0 -19
- package/v7-services/src/networking/limits.ts +0 -3
- package/v7-services/src/networking/token.ts +0 -238
- package/v7-services/src/ok.ts +0 -7
- package/v7-services/src/personal-acl.ts +0 -33
- package/v7-services/src/personal-put.ts +0 -35
- package/v7-services/src/personal.ts +0 -18
- package/v7-services/src/responses.ts +0 -28
- package/v7-services/src/user.ts +0 -3
- package/v7-services/yarn.lock +0 -4400
- package/yarn-error.log +0 -6344
package/README.md
CHANGED
|
@@ -1,15 +1,81 @@
|
|
|
1
1
|
# js-dos 7.xx
|
|
2
2
|
[](https://github.com/caiiiycuk/js-dos/actions/workflows/yarn-gulp.yml)
|
|
3
3
|
|
|
4
|
-
js-dos is a javascript library that allows you to run DOS programs in browser.
|
|
4
|
+
js-dos is a javascript library that allows you to run DOS programs in browser. It was designed from the ground up to be easily installed and used to get your DOS program up and running in browser quickly.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
```js
|
|
7
|
+
Dos(element).run("game.jsdos")
|
|
8
|
+
```
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
[Documentation](https://js-dos.com/)
|
|
11
|
+
|
|
12
|
+
## Quick start with create-dosbox
|
|
13
|
+
|
|
14
|
+
Create js-dos web page with no build configuration.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npx create-dosbox my-app
|
|
18
|
+
cd my-app
|
|
19
|
+
npm install
|
|
20
|
+
npm start
|
|
21
|
+
---
|
|
22
|
+
Open localhost:8080 in browser
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
You will be prompted to select game that you want bootstrap.
|
|
26
|
+
|
|
27
|
+
If you've previously installed `create-dosbox` globally via `npm install -g create-dosbox`, we recommend you uninstall the package using `npm uninstall -g create-dosbox` or `yarn global remove create-dosbox` to ensure that npx always uses the latest version.
|
|
28
|
+
|
|
29
|
+
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
|
|
30
|
+
|
|
31
|
+
Then open [http://localhost:8080/](http://localhost:8080/) to see your app.<br>
|
|
32
|
+
|
|
33
|
+
<p align='center'>
|
|
34
|
+
<img src='https://github.com/js-dos/create-dosbox/raw/master/npx-create-dosbox.gif' width='600' alt='npm start'>
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
It will create a directory called `my-app` inside the current folder.<br>
|
|
38
|
+
Inside that directory, it will generate the initial project structure:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
my-app
|
|
42
|
+
├── package.json
|
|
43
|
+
└── _site
|
|
44
|
+
├── js-dos
|
|
45
|
+
├── bundle.jsdos
|
|
46
|
+
└── index.html
|
|
47
|
+
```
|
|
9
48
|
|
|
10
|
-
|
|
49
|
+
No configuration or complicated folder structures, only the files you need to build your app.<br>
|
|
11
50
|
|
|
12
|
-
|
|
51
|
+
* **js-dos** - contains last release version of js-dos that you can download from [Releases](https://github.com/caiiiycuk/js-dos/releases) page
|
|
52
|
+
* **bundle.jsdos** - is a bundle with game to start [read more](https://js-dos.com/v7/build/docs/jsdos-bundle)
|
|
53
|
+
* **index.html** - is a web page template
|
|
54
|
+
|
|
55
|
+
So, you can host `_site `on static web server no other dependincies is needed.
|
|
56
|
+
|
|
57
|
+
Once the installation is done, you can open your project folder:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
cd my-app
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Inside the newly created project, you can run some built-in commands:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
npm install
|
|
67
|
+
npm start
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Open [http://localhost:8080](http://localhost:8080) to view it in the browser.
|
|
71
|
+
|
|
72
|
+
## Community
|
|
73
|
+
|
|
74
|
+
Ask a technical question in [Q&A](https://talks.dos.zone/c/questions-answers/).
|
|
75
|
+
|
|
76
|
+
* [Discord](https://discord.com/invite/hMVYEbG)
|
|
77
|
+
* [Twitter](https://twitter.com/intent/user?screen_name=doszone_db)
|
|
78
|
+
* [Telegram](https://t.me/doszone)
|
|
13
79
|
|
|
14
80
|
## Building
|
|
15
81
|
|
|
@@ -35,12 +101,7 @@ hs .
|
|
|
35
101
|
firefox examples/digger/index.html
|
|
36
102
|
```
|
|
37
103
|
|
|
38
|
-
#
|
|
39
|
-
|
|
40
|
-
## js-dos 6.22
|
|
41
|
-
|
|
42
|
-
[Documentation](https://js-dos.com/index_6.22.html) of previous version js-dos.
|
|
43
|
-
|
|
44
|
-
## js-dos 3.xx
|
|
104
|
+
# Older releases
|
|
45
105
|
|
|
46
|
-
[
|
|
106
|
+
* [js-dos 6.22](https://js-dos.com/index_6.22.html)
|
|
107
|
+
* [js-dos 3.xx](https://js-dos.com/index_v3.html)
|
package/dist/js-dos.css
CHANGED
|
@@ -887,6 +887,16 @@ video {
|
|
|
887
887
|
margin-right: 0.5rem;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
+
.-mx-6 {
|
|
891
|
+
margin-left: -1.5rem;
|
|
892
|
+
margin-right: -1.5rem;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.my-2 {
|
|
896
|
+
margin-top: 0.5rem;
|
|
897
|
+
margin-bottom: 0.5rem;
|
|
898
|
+
}
|
|
899
|
+
|
|
890
900
|
.my-4 {
|
|
891
901
|
margin-top: 1rem;
|
|
892
902
|
margin-bottom: 1rem;
|
|
@@ -900,6 +910,10 @@ video {
|
|
|
900
910
|
margin-top: 0.5rem;
|
|
901
911
|
}
|
|
902
912
|
|
|
913
|
+
.mt-4 {
|
|
914
|
+
margin-top: 1rem;
|
|
915
|
+
}
|
|
916
|
+
|
|
903
917
|
.-mt-1 {
|
|
904
918
|
margin-top: -0.25rem;
|
|
905
919
|
}
|
|
@@ -1000,6 +1014,10 @@ video {
|
|
|
1000
1014
|
width: 2.5rem;
|
|
1001
1015
|
}
|
|
1002
1016
|
|
|
1017
|
+
.w-14 {
|
|
1018
|
+
width: 3.5rem;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1003
1021
|
.w-24 {
|
|
1004
1022
|
width: 6rem;
|
|
1005
1023
|
}
|
|
@@ -1120,10 +1138,6 @@ video {
|
|
|
1120
1138
|
cursor: pointer;
|
|
1121
1139
|
}
|
|
1122
1140
|
|
|
1123
|
-
.cursor-not-allowed {
|
|
1124
|
-
cursor: not-allowed;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
1141
|
.grid-cols-2 {
|
|
1128
1142
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1129
1143
|
}
|
|
@@ -1164,10 +1178,6 @@ video {
|
|
|
1164
1178
|
gap: 1rem;
|
|
1165
1179
|
}
|
|
1166
1180
|
|
|
1167
|
-
.self-center {
|
|
1168
|
-
align-self: center;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
1181
|
.overflow-auto {
|
|
1172
1182
|
overflow: auto;
|
|
1173
1183
|
}
|
|
@@ -1196,6 +1206,10 @@ video {
|
|
|
1196
1206
|
overflow-wrap: break-word;
|
|
1197
1207
|
}
|
|
1198
1208
|
|
|
1209
|
+
.break-all {
|
|
1210
|
+
word-break: break-all;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1199
1213
|
.rounded {
|
|
1200
1214
|
border-radius: 0.25rem;
|
|
1201
1215
|
}
|
|
@@ -1218,6 +1232,10 @@ video {
|
|
|
1218
1232
|
border-width: 2px;
|
|
1219
1233
|
}
|
|
1220
1234
|
|
|
1235
|
+
.border {
|
|
1236
|
+
border-width: 1px;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1221
1239
|
.border-t-2 {
|
|
1222
1240
|
border-top-width: 2px;
|
|
1223
1241
|
}
|
|
@@ -1244,6 +1262,11 @@ video {
|
|
|
1244
1262
|
border-color: rgba(31, 41, 55, var(--tw-border-opacity));
|
|
1245
1263
|
}
|
|
1246
1264
|
|
|
1265
|
+
.border-red-600 {
|
|
1266
|
+
--tw-border-opacity: 1;
|
|
1267
|
+
border-color: rgba(220, 38, 38, var(--tw-border-opacity));
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1247
1270
|
.border-green-200 {
|
|
1248
1271
|
--tw-border-opacity: 1;
|
|
1249
1272
|
border-color: rgba(167, 243, 208, var(--tw-border-opacity));
|
|
@@ -1264,6 +1287,11 @@ video {
|
|
|
1264
1287
|
background-color: rgba(229, 231, 235, var(--tw-bg-opacity));
|
|
1265
1288
|
}
|
|
1266
1289
|
|
|
1290
|
+
.bg-gray-800 {
|
|
1291
|
+
--tw-bg-opacity: 1;
|
|
1292
|
+
background-color: rgba(31, 41, 55, var(--tw-bg-opacity));
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1267
1295
|
.bg-red-200 {
|
|
1268
1296
|
--tw-bg-opacity: 1;
|
|
1269
1297
|
background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
|
|
@@ -1326,6 +1354,10 @@ video {
|
|
|
1326
1354
|
text-align: right;
|
|
1327
1355
|
}
|
|
1328
1356
|
|
|
1357
|
+
.font-mono {
|
|
1358
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1329
1361
|
.text-xs {
|
|
1330
1362
|
font-size: 0.75rem;
|
|
1331
1363
|
line-height: 1rem;
|
|
@@ -1341,6 +1373,11 @@ video {
|
|
|
1341
1373
|
line-height: 1.75rem;
|
|
1342
1374
|
}
|
|
1343
1375
|
|
|
1376
|
+
.text-2xl {
|
|
1377
|
+
font-size: 1.5rem;
|
|
1378
|
+
line-height: 2rem;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1344
1381
|
.font-bold {
|
|
1345
1382
|
font-weight: 700;
|
|
1346
1383
|
}
|
|
@@ -1384,6 +1421,11 @@ video {
|
|
|
1384
1421
|
color: rgba(52, 211, 153, var(--tw-text-opacity));
|
|
1385
1422
|
}
|
|
1386
1423
|
|
|
1424
|
+
.text-green-600 {
|
|
1425
|
+
--tw-text-opacity: 1;
|
|
1426
|
+
color: rgba(5, 150, 105, var(--tw-text-opacity));
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1387
1429
|
.text-blue-400 {
|
|
1388
1430
|
--tw-text-opacity: 1;
|
|
1389
1431
|
color: rgba(96, 165, 250, var(--tw-text-opacity));
|
|
@@ -1404,6 +1446,11 @@ video {
|
|
|
1404
1446
|
color: rgba(31, 41, 55, var(--tw-text-opacity));
|
|
1405
1447
|
}
|
|
1406
1448
|
|
|
1449
|
+
.hover\:text-green-600:hover {
|
|
1450
|
+
--tw-text-opacity: 1;
|
|
1451
|
+
color: rgba(5, 150, 105, var(--tw-text-opacity));
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1407
1454
|
.underline {
|
|
1408
1455
|
text-decoration: underline;
|
|
1409
1456
|
}
|
|
@@ -1412,6 +1459,10 @@ video {
|
|
|
1412
1459
|
opacity: 0.8;
|
|
1413
1460
|
}
|
|
1414
1461
|
|
|
1462
|
+
.opacity-95 {
|
|
1463
|
+
opacity: 0.95;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1415
1466
|
*, ::before, ::after {
|
|
1416
1467
|
--tw-shadow: 0 0 #0000;
|
|
1417
1468
|
}
|
|
@@ -1475,6 +1526,27 @@ video {
|
|
|
1475
1526
|
color: rgba(75, 85, 99, var(--tw-text-opacity));
|
|
1476
1527
|
}
|
|
1477
1528
|
|
|
1529
|
+
input:focus {
|
|
1530
|
+
outline: 2px solid transparent;
|
|
1531
|
+
outline-offset: 2px;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
select {
|
|
1535
|
+
border-radius: 0.25rem;
|
|
1536
|
+
border-width: 1px;
|
|
1537
|
+
--tw-border-opacity: 1;
|
|
1538
|
+
border-color: rgba(167, 243, 208, var(--tw-border-opacity));
|
|
1539
|
+
--tw-bg-opacity: 1;
|
|
1540
|
+
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
1541
|
+
padding-left: 0.5rem;
|
|
1542
|
+
padding-right: 0.5rem;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
select:focus {
|
|
1546
|
+
outline: 2px solid transparent;
|
|
1547
|
+
outline-offset: 2px;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1478
1550
|
@media (min-width: 640px) {
|
|
1479
1551
|
.sm\:w-80 {
|
|
1480
1552
|
width: 20rem;
|