js-dos 7.2.6 → 7.3.2

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.
Files changed (46) hide show
  1. package/README.md +75 -13
  2. package/dist/js-dos.css +111 -9
  3. package/dist/js-dos.js +2 -2
  4. package/dist/js-dos.js.map +1 -1
  5. package/dist/types/src/backend/{jj → v7}/latency.d.ts +0 -0
  6. package/dist/types/src/backend/v7/v7-config.d.ts +12 -4
  7. package/dist/types/src/components/action-save-or-exit.d.ts +2 -0
  8. package/dist/types/src/components/sidebar/token/token-add-time.d.ts +2 -0
  9. package/dist/types/src/components/sidebar/token/token-select.d.ts +2 -0
  10. package/dist/types/src/components/sidebar/token/token.d.ts +15 -0
  11. package/dist/types/src/icons.d.ts +3 -0
  12. package/dist/types/src/player-app.d.ts +3 -4
  13. package/dist/types/src/request.d.ts +1 -0
  14. package/dist/wdosbox.js +2 -2
  15. package/dist/wdosbox.js.symbols +3128 -3132
  16. package/dist/wdosbox.wasm +0 -0
  17. package/examples/digger/index.html +10 -9
  18. package/package.json +3 -3
  19. package/.github/workflows/codeql-analysis.yml +0 -70
  20. package/.github/workflows/yarn-gulp.yml +0 -30
  21. package/dist/types/src/backend/jj/jj-config.d.ts +0 -6
  22. package/dist/types/src/components/action-exit.d.ts +0 -2
  23. package/dist/types/src/components/sidebar/active-token.d.ts +0 -2
  24. package/dist/types/src/components/sidebar/create-token.d.ts +0 -2
  25. package/v7-services/.env +0 -6
  26. package/v7-services/ok.yaml +0 -24
  27. package/v7-services/package.json +0 -17
  28. package/v7-services/redeploy-ok.sh +0 -25
  29. package/v7-services/serverless.yml +0 -140
  30. package/v7-services/src/networking/day.ts +0 -5
  31. package/v7-services/src/networking/get-free-token.ts +0 -33
  32. package/v7-services/src/networking/get-token-cost.ts +0 -31
  33. package/v7-services/src/networking/get-token-info.ts +0 -16
  34. package/v7-services/src/networking/ipx/put-ipx-ip.ts +0 -20
  35. package/v7-services/src/networking/ipx/start-ipx.ts +0 -16
  36. package/v7-services/src/networking/ipx/stop-ipx.ts +0 -19
  37. package/v7-services/src/networking/limits.ts +0 -3
  38. package/v7-services/src/networking/token.ts +0 -238
  39. package/v7-services/src/ok.ts +0 -7
  40. package/v7-services/src/personal-acl.ts +0 -33
  41. package/v7-services/src/personal-put.ts +0 -35
  42. package/v7-services/src/personal.ts +0 -18
  43. package/v7-services/src/responses.ts +0 -28
  44. package/v7-services/src/user.ts +0 -3
  45. package/v7-services/yarn.lock +0 -4400
  46. package/yarn-error.log +0 -6344
package/README.md CHANGED
@@ -1,13 +1,81 @@
1
1
  # js-dos 7.xx
2
2
  [![Build](https://github.com/caiiiycuk/js-dos/actions/workflows/yarn-gulp.yml/badge.svg)](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. js-dos provides nice and easy to use javascript api over dosbox.
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
- [Documentation](https://js-dos.com/).
6
+ ```js
7
+ Dos(element).run("game.jsdos")
8
+ ```
9
+
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
+ ```
7
48
 
8
- Subscribe our [twitter](https://twitter.com/doszone_db/) channel for updates.
49
+ No configuration or complicated folder structures, only the files you need to build your app.<br>
9
50
 
10
- Join our [discord](https://discord.com/invite/hMVYEbG) community.
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)
11
79
 
12
80
  ## Building
13
81
 
@@ -33,13 +101,7 @@ hs .
33
101
  firefox examples/digger/index.html
34
102
  ```
35
103
 
104
+ # Older releases
36
105
 
37
- # Legacy js-dos
38
-
39
- ## js-dos 6.22
40
-
41
- [Documentation](https://js-dos.com/index_6.22.html) of previous version js-dos.
42
-
43
- ## js-dos 3.xx
44
-
45
- [Documentation](https://js-dos.com/index_v3.html) of js-dos v3.
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
@@ -244,7 +244,7 @@
244
244
  /* simple-keyboard */
245
245
  .hg-theme-default{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;overflow:hidden;touch-action:manipulation}.hg-theme-default .hg-button span{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;outline:0;font-size:inherit}.hg-theme-default{font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;background-color:#ececec;padding:5px;border-radius:5px}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{box-shadow:0 0 3px -1px rgba(0,0,0,.3);height:40px;border-radius:5px;box-sizing:border-box;padding:5px;background:#fff;border-bottom:1px solid #b5b5b5;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{width:33.3%;height:60px;align-items:center;display:flex;justify-content:center}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}
246
246
 
247
- /*! tailwindcss v2.2.17 | MIT License | https://tailwindcss.com */
247
+ /*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */
248
248
 
249
249
  /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
250
250
 
@@ -469,6 +469,11 @@ button,
469
469
  Remove the inner border and padding in Firefox.
470
470
  */
471
471
 
472
+ ::-moz-focus-inner {
473
+ border-style: none;
474
+ padding: 0;
475
+ }
476
+
472
477
  /**
473
478
  Restore the focus styles unset by the previous rule.
474
479
  */
@@ -498,6 +503,11 @@ progress {
498
503
  Correct the cursor style of increment and decrement buttons in Safari.
499
504
  */
500
505
 
506
+ ::-webkit-inner-spin-button,
507
+ ::-webkit-outer-spin-button {
508
+ height: auto;
509
+ }
510
+
501
511
  /**
502
512
  1. Correct the odd appearance in Chrome and Safari.
503
513
  2. Correct the outline style in Safari.
@@ -507,11 +517,22 @@ Correct the cursor style of increment and decrement buttons in Safari.
507
517
  Remove the inner padding in Chrome and Safari on macOS.
508
518
  */
509
519
 
520
+ ::-webkit-search-decoration {
521
+ -webkit-appearance: none;
522
+ }
523
+
510
524
  /**
511
525
  1. Correct the inability to style clickable types in iOS and Safari.
512
526
  2. Change font properties to 'inherit' in Safari.
513
527
  */
514
528
 
529
+ ::-webkit-file-upload-button {
530
+ -webkit-appearance: button;
531
+ /* 1 */
532
+ font: inherit;
533
+ /* 2 */
534
+ }
535
+
515
536
  /*
516
537
  Interactive
517
538
  ===========
@@ -866,6 +887,16 @@ video {
866
887
  margin-right: 0.5rem;
867
888
  }
868
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
+
869
900
  .my-4 {
870
901
  margin-top: 1rem;
871
902
  margin-bottom: 1rem;
@@ -879,6 +910,10 @@ video {
879
910
  margin-top: 0.5rem;
880
911
  }
881
912
 
913
+ .mt-4 {
914
+ margin-top: 1rem;
915
+ }
916
+
882
917
  .-mt-1 {
883
918
  margin-top: -0.25rem;
884
919
  }
@@ -935,6 +970,10 @@ video {
935
970
  height: 1rem;
936
971
  }
937
972
 
973
+ .h-5 {
974
+ height: 1.25rem;
975
+ }
976
+
938
977
  .h-6 {
939
978
  height: 1.5rem;
940
979
  }
@@ -975,6 +1014,10 @@ video {
975
1014
  width: 2.5rem;
976
1015
  }
977
1016
 
1017
+ .w-14 {
1018
+ width: 3.5rem;
1019
+ }
1020
+
978
1021
  .w-24 {
979
1022
  width: 6rem;
980
1023
  }
@@ -1095,10 +1138,6 @@ video {
1095
1138
  cursor: pointer;
1096
1139
  }
1097
1140
 
1098
- .cursor-not-allowed {
1099
- cursor: not-allowed;
1100
- }
1101
-
1102
1141
  .grid-cols-2 {
1103
1142
  grid-template-columns: repeat(2, minmax(0, 1fr));
1104
1143
  }
@@ -1139,10 +1178,6 @@ video {
1139
1178
  gap: 1rem;
1140
1179
  }
1141
1180
 
1142
- .self-center {
1143
- align-self: center;
1144
- }
1145
-
1146
1181
  .overflow-auto {
1147
1182
  overflow: auto;
1148
1183
  }
@@ -1171,6 +1206,10 @@ video {
1171
1206
  overflow-wrap: break-word;
1172
1207
  }
1173
1208
 
1209
+ .break-all {
1210
+ word-break: break-all;
1211
+ }
1212
+
1174
1213
  .rounded {
1175
1214
  border-radius: 0.25rem;
1176
1215
  }
@@ -1193,6 +1232,10 @@ video {
1193
1232
  border-width: 2px;
1194
1233
  }
1195
1234
 
1235
+ .border {
1236
+ border-width: 1px;
1237
+ }
1238
+
1196
1239
  .border-t-2 {
1197
1240
  border-top-width: 2px;
1198
1241
  }
@@ -1219,6 +1262,11 @@ video {
1219
1262
  border-color: rgba(31, 41, 55, var(--tw-border-opacity));
1220
1263
  }
1221
1264
 
1265
+ .border-red-600 {
1266
+ --tw-border-opacity: 1;
1267
+ border-color: rgba(220, 38, 38, var(--tw-border-opacity));
1268
+ }
1269
+
1222
1270
  .border-green-200 {
1223
1271
  --tw-border-opacity: 1;
1224
1272
  border-color: rgba(167, 243, 208, var(--tw-border-opacity));
@@ -1239,6 +1287,11 @@ video {
1239
1287
  background-color: rgba(229, 231, 235, var(--tw-bg-opacity));
1240
1288
  }
1241
1289
 
1290
+ .bg-gray-800 {
1291
+ --tw-bg-opacity: 1;
1292
+ background-color: rgba(31, 41, 55, var(--tw-bg-opacity));
1293
+ }
1294
+
1242
1295
  .bg-red-200 {
1243
1296
  --tw-bg-opacity: 1;
1244
1297
  background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
@@ -1301,6 +1354,10 @@ video {
1301
1354
  text-align: right;
1302
1355
  }
1303
1356
 
1357
+ .font-mono {
1358
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1359
+ }
1360
+
1304
1361
  .text-xs {
1305
1362
  font-size: 0.75rem;
1306
1363
  line-height: 1rem;
@@ -1316,6 +1373,11 @@ video {
1316
1373
  line-height: 1.75rem;
1317
1374
  }
1318
1375
 
1376
+ .text-2xl {
1377
+ font-size: 1.5rem;
1378
+ line-height: 2rem;
1379
+ }
1380
+
1319
1381
  .font-bold {
1320
1382
  font-weight: 700;
1321
1383
  }
@@ -1359,6 +1421,11 @@ video {
1359
1421
  color: rgba(52, 211, 153, var(--tw-text-opacity));
1360
1422
  }
1361
1423
 
1424
+ .text-green-600 {
1425
+ --tw-text-opacity: 1;
1426
+ color: rgba(5, 150, 105, var(--tw-text-opacity));
1427
+ }
1428
+
1362
1429
  .text-blue-400 {
1363
1430
  --tw-text-opacity: 1;
1364
1431
  color: rgba(96, 165, 250, var(--tw-text-opacity));
@@ -1369,11 +1436,21 @@ video {
1369
1436
  color: rgba(37, 99, 235, var(--tw-text-opacity));
1370
1437
  }
1371
1438
 
1439
+ .text-pink-400 {
1440
+ --tw-text-opacity: 1;
1441
+ color: rgba(244, 114, 182, var(--tw-text-opacity));
1442
+ }
1443
+
1372
1444
  .hover\:text-gray-800:hover {
1373
1445
  --tw-text-opacity: 1;
1374
1446
  color: rgba(31, 41, 55, var(--tw-text-opacity));
1375
1447
  }
1376
1448
 
1449
+ .hover\:text-green-600:hover {
1450
+ --tw-text-opacity: 1;
1451
+ color: rgba(5, 150, 105, var(--tw-text-opacity));
1452
+ }
1453
+
1377
1454
  .underline {
1378
1455
  text-decoration: underline;
1379
1456
  }
@@ -1382,6 +1459,10 @@ video {
1382
1459
  opacity: 0.8;
1383
1460
  }
1384
1461
 
1462
+ .opacity-95 {
1463
+ opacity: 0.95;
1464
+ }
1465
+
1385
1466
  *, ::before, ::after {
1386
1467
  --tw-shadow: 0 0 #0000;
1387
1468
  }
@@ -1445,6 +1526,27 @@ video {
1445
1526
  color: rgba(75, 85, 99, var(--tw-text-opacity));
1446
1527
  }
1447
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
+
1448
1550
  @media (min-width: 640px) {
1449
1551
  .sm\:w-80 {
1450
1552
  width: 20rem;