js-dos 7.2.1 → 7.2.6

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 (52) hide show
  1. package/.github/workflows/codeql-analysis.yml +70 -0
  2. package/README.md +2 -2
  3. package/dist/emulators-ui-loader.png +0 -0
  4. package/dist/js-dos.css +199 -8
  5. package/dist/js-dos.js +16 -1
  6. package/dist/js-dos.js.map +1 -1
  7. package/dist/types/src/backend/jj/jj-config.d.ts +6 -0
  8. package/dist/types/src/backend/jj/latency.d.ts +8 -0
  9. package/dist/types/src/{personal.d.ts → backend/v7/personal.d.ts} +0 -0
  10. package/dist/types/src/backend/v7/v7-config.d.ts +8 -0
  11. package/dist/types/src/components/region.d.ts +6 -0
  12. package/dist/types/src/components/sidebar/active-token.d.ts +2 -0
  13. package/dist/types/src/components/sidebar/create-token.d.ts +2 -0
  14. package/dist/types/src/components/sidebar/latency-info.d.ts +7 -0
  15. package/dist/types/src/components/sidebar/main.d.ts +2 -0
  16. package/dist/types/src/components/sidebar/networking.d.ts +2 -0
  17. package/dist/types/src/components/tip.d.ts +2 -0
  18. package/dist/types/src/hardware-transport-layer.d.ts +4 -2
  19. package/dist/types/src/icons.d.ts +30 -0
  20. package/dist/types/src/player-app.d.ts +22 -2
  21. package/dist/types/src/player.d.ts +2 -0
  22. package/dist/types/src/xhr.d.ts +1 -0
  23. package/dist/types/{sls → v7-services}/src/personal.d.ts +0 -0
  24. package/dist/wdosbox.js +1 -1
  25. package/dist/wdosbox.js.symbols +3132 -3071
  26. package/dist/wdosbox.wasm +0 -0
  27. package/examples/digger/index.html +5 -1
  28. package/package.json +7 -4
  29. package/v7-services/.env +6 -0
  30. package/v7-services/ok.yaml +24 -0
  31. package/v7-services/package.json +17 -0
  32. package/v7-services/redeploy-ok.sh +25 -0
  33. package/v7-services/serverless.yml +140 -0
  34. package/v7-services/src/networking/day.ts +5 -0
  35. package/v7-services/src/networking/get-free-token.ts +33 -0
  36. package/v7-services/src/networking/get-token-cost.ts +31 -0
  37. package/v7-services/src/networking/get-token-info.ts +16 -0
  38. package/v7-services/src/networking/ipx/put-ipx-ip.ts +20 -0
  39. package/v7-services/src/networking/ipx/start-ipx.ts +16 -0
  40. package/v7-services/src/networking/ipx/stop-ipx.ts +19 -0
  41. package/v7-services/src/networking/limits.ts +3 -0
  42. package/v7-services/src/networking/token.ts +238 -0
  43. package/v7-services/src/ok.ts +7 -0
  44. package/v7-services/src/personal-acl.ts +33 -0
  45. package/v7-services/src/personal-put.ts +35 -0
  46. package/v7-services/src/personal.ts +18 -0
  47. package/v7-services/src/responses.ts +28 -0
  48. package/v7-services/src/user.ts +3 -0
  49. package/v7-services/yarn.lock +4400 -0
  50. package/yarn-error.log +9 -9
  51. package/dist/emulators-ui-loader.gif +0 -0
  52. package/examples/digger/bundle.jsdos +0 -0
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ 7.xx ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ 7.xx ]
20
+ schedule:
21
+ - cron: '33 3 * * 6'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'typescript' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
package/README.md CHANGED
@@ -17,7 +17,7 @@ yarn
17
17
  NODE_ENV=production yarn run gulp
18
18
  ```
19
19
 
20
- Also you can build js and css separately:
20
+ Also, you can build js and css separately:
21
21
 
22
22
  ```
23
23
  yarn run gulp js
@@ -26,7 +26,7 @@ yarn run gulp css
26
26
 
27
27
  ## Example
28
28
 
29
- To run builtin example do:
29
+ To run built-in example do:
30
30
 
31
31
  ```
32
32
  hs .
Binary file
package/dist/js-dos.css CHANGED
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  .emulator-loader {
71
- background: url(emulators-ui-loader.gif) no-repeat;
71
+ background: url(emulators-ui-loader.png) no-repeat;
72
72
  background-size: cover;
73
73
  width: 50px;
74
74
  height: 50px;
@@ -155,7 +155,7 @@
155
155
  border-color: rgba(255, 255, 255, 0.5);
156
156
 
157
157
  border-style: solid;
158
- box-shadow: 0 0 2px 2px rgb(255 255 255 / 50%), inset 0 0 2px 2px rgb(255 255 255 / 50%);
158
+ box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.5), inset 0 0 2px 2px rgba(255, 255, 255, 0.5);
159
159
  }
160
160
 
161
161
  .emulator-button {
@@ -209,7 +209,7 @@
209
209
  }
210
210
 
211
211
  .emulator-options {
212
- justify-content: end;
212
+ justify-content: flex-end;
213
213
  flex-wrap: wrap-reverse;
214
214
  display: flex;
215
215
  flex-direction: row;
@@ -809,8 +809,12 @@ video {
809
809
  top: 0px;
810
810
  }
811
811
 
812
- .top-1 {
813
- top: 0.25rem;
812
+ .top-2 {
813
+ top: 0.5rem;
814
+ }
815
+
816
+ .top-5 {
817
+ top: 1.25rem;
814
818
  }
815
819
 
816
820
  .top-1\/2 {
@@ -821,6 +825,14 @@ video {
821
825
  right: 0px;
822
826
  }
823
827
 
828
+ .right-2 {
829
+ right: 0.5rem;
830
+ }
831
+
832
+ .right-5 {
833
+ right: 1.25rem;
834
+ }
835
+
824
836
  .bottom-0 {
825
837
  bottom: 0px;
826
838
  }
@@ -829,8 +841,8 @@ video {
829
841
  left: 0px;
830
842
  }
831
843
 
832
- .left-1 {
833
- left: 0.25rem;
844
+ .left-2 {
845
+ left: 0.5rem;
834
846
  }
835
847
 
836
848
  .left-10 {
@@ -841,6 +853,14 @@ video {
841
853
  z-index: 50;
842
854
  }
843
855
 
856
+ .col-span-2 {
857
+ grid-column: span 2 / span 2;
858
+ }
859
+
860
+ .float-left {
861
+ float: left;
862
+ }
863
+
844
864
  .mx-2 {
845
865
  margin-left: 0.5rem;
846
866
  margin-right: 0.5rem;
@@ -859,6 +879,10 @@ video {
859
879
  margin-top: 0.5rem;
860
880
  }
861
881
 
882
+ .-mt-1 {
883
+ margin-top: -0.25rem;
884
+ }
885
+
862
886
  .-mt-6 {
863
887
  margin-top: -1.5rem;
864
888
  }
@@ -883,6 +907,14 @@ video {
883
907
  margin-left: 0.5rem;
884
908
  }
885
909
 
910
+ .inline-block {
911
+ display: inline-block;
912
+ }
913
+
914
+ .inline {
915
+ display: inline;
916
+ }
917
+
886
918
  .flex {
887
919
  display: flex;
888
920
  }
@@ -891,6 +923,10 @@ video {
891
923
  display: table;
892
924
  }
893
925
 
926
+ .grid {
927
+ display: grid;
928
+ }
929
+
894
930
  .hidden {
895
931
  display: none;
896
932
  }
@@ -915,6 +951,10 @@ video {
915
951
  height: 100%;
916
952
  }
917
953
 
954
+ .max-h-72 {
955
+ max-height: 18rem;
956
+ }
957
+
918
958
  .w-4 {
919
959
  width: 1rem;
920
960
  }
@@ -935,6 +975,14 @@ video {
935
975
  width: 2.5rem;
936
976
  }
937
977
 
978
+ .w-24 {
979
+ width: 6rem;
980
+ }
981
+
982
+ .w-64 {
983
+ width: 16rem;
984
+ }
985
+
938
986
  .w-full {
939
987
  width: 100%;
940
988
  }
@@ -1033,6 +1081,11 @@ video {
1033
1081
  }
1034
1082
  }
1035
1083
 
1084
+ .animate-spin {
1085
+ -webkit-animation: spin 1s linear infinite;
1086
+ animation: spin 1s linear infinite;
1087
+ }
1088
+
1036
1089
  .animate-pulse {
1037
1090
  -webkit-animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
1038
1091
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
@@ -1042,6 +1095,14 @@ video {
1042
1095
  cursor: pointer;
1043
1096
  }
1044
1097
 
1098
+ .cursor-not-allowed {
1099
+ cursor: not-allowed;
1100
+ }
1101
+
1102
+ .grid-cols-2 {
1103
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1104
+ }
1105
+
1045
1106
  .flex-row {
1046
1107
  flex-direction: row;
1047
1108
  }
@@ -1050,6 +1111,10 @@ video {
1050
1111
  flex-direction: column;
1051
1112
  }
1052
1113
 
1114
+ .flex-wrap {
1115
+ flex-wrap: wrap;
1116
+ }
1117
+
1053
1118
  .items-center {
1054
1119
  align-items: center;
1055
1120
  }
@@ -1058,18 +1123,54 @@ video {
1058
1123
  justify-content: center;
1059
1124
  }
1060
1125
 
1126
+ .justify-between {
1127
+ justify-content: space-between;
1128
+ }
1129
+
1130
+ .justify-around {
1131
+ justify-content: space-around;
1132
+ }
1133
+
1061
1134
  .justify-evenly {
1062
1135
  justify-content: space-evenly;
1063
1136
  }
1064
1137
 
1138
+ .gap-4 {
1139
+ gap: 1rem;
1140
+ }
1141
+
1142
+ .self-center {
1143
+ align-self: center;
1144
+ }
1145
+
1146
+ .overflow-auto {
1147
+ overflow: auto;
1148
+ }
1149
+
1065
1150
  .overflow-hidden {
1066
1151
  overflow: hidden;
1067
1152
  }
1068
1153
 
1154
+ .overflow-y-auto {
1155
+ overflow-y: auto;
1156
+ }
1157
+
1158
+ .overflow-x-hidden {
1159
+ overflow-x: hidden;
1160
+ }
1161
+
1069
1162
  .overflow-ellipsis {
1070
1163
  text-overflow: ellipsis;
1071
1164
  }
1072
1165
 
1166
+ .whitespace-nowrap {
1167
+ white-space: nowrap;
1168
+ }
1169
+
1170
+ .break-words {
1171
+ overflow-wrap: break-word;
1172
+ }
1173
+
1073
1174
  .rounded {
1074
1175
  border-radius: 0.25rem;
1075
1176
  }
@@ -1100,6 +1201,10 @@ video {
1100
1201
  border-bottom-width: 2px;
1101
1202
  }
1102
1203
 
1204
+ .border-b {
1205
+ border-bottom-width: 1px;
1206
+ }
1207
+
1103
1208
  .border-l-2 {
1104
1209
  border-left-width: 2px;
1105
1210
  }
@@ -1109,6 +1214,11 @@ video {
1109
1214
  border-color: rgba(156, 163, 175, var(--tw-border-opacity));
1110
1215
  }
1111
1216
 
1217
+ .border-gray-800 {
1218
+ --tw-border-opacity: 1;
1219
+ border-color: rgba(31, 41, 55, var(--tw-border-opacity));
1220
+ }
1221
+
1112
1222
  .border-green-200 {
1113
1223
  --tw-border-opacity: 1;
1114
1224
  border-color: rgba(167, 243, 208, var(--tw-border-opacity));
@@ -1129,6 +1239,20 @@ video {
1129
1239
  background-color: rgba(229, 231, 235, var(--tw-bg-opacity));
1130
1240
  }
1131
1241
 
1242
+ .bg-red-200 {
1243
+ --tw-bg-opacity: 1;
1244
+ background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
1245
+ }
1246
+
1247
+ .bg-green-200 {
1248
+ --tw-bg-opacity: 1;
1249
+ background-color: rgba(167, 243, 208, var(--tw-bg-opacity));
1250
+ }
1251
+
1252
+ .p-2 {
1253
+ padding: 0.5rem;
1254
+ }
1255
+
1132
1256
  .px-2 {
1133
1257
  padding-left: 0.5rem;
1134
1258
  padding-right: 0.5rem;
@@ -1144,10 +1268,19 @@ video {
1144
1268
  padding-right: 2rem;
1145
1269
  }
1146
1270
 
1271
+ .py-1 {
1272
+ padding-top: 0.25rem;
1273
+ padding-bottom: 0.25rem;
1274
+ }
1275
+
1147
1276
  .pt-6 {
1148
1277
  padding-top: 1.5rem;
1149
1278
  }
1150
1279
 
1280
+ .pr-2 {
1281
+ padding-right: 0.5rem;
1282
+ }
1283
+
1151
1284
  .pb-2 {
1152
1285
  padding-bottom: 0.5rem;
1153
1286
  }
@@ -1156,10 +1289,41 @@ video {
1156
1289
  padding-bottom: 1rem;
1157
1290
  }
1158
1291
 
1292
+ .pl-2 {
1293
+ padding-left: 0.5rem;
1294
+ }
1295
+
1296
+ .text-center {
1297
+ text-align: center;
1298
+ }
1299
+
1300
+ .text-right {
1301
+ text-align: right;
1302
+ }
1303
+
1304
+ .text-xs {
1305
+ font-size: 0.75rem;
1306
+ line-height: 1rem;
1307
+ }
1308
+
1309
+ .text-sm {
1310
+ font-size: 0.875rem;
1311
+ line-height: 1.25rem;
1312
+ }
1313
+
1314
+ .text-lg {
1315
+ font-size: 1.125rem;
1316
+ line-height: 1.75rem;
1317
+ }
1318
+
1159
1319
  .font-bold {
1160
1320
  font-weight: 700;
1161
1321
  }
1162
1322
 
1323
+ .uppercase {
1324
+ text-transform: uppercase;
1325
+ }
1326
+
1163
1327
  .text-black {
1164
1328
  --tw-text-opacity: 1;
1165
1329
  color: rgba(0, 0, 0, var(--tw-text-opacity));
@@ -1200,11 +1364,20 @@ video {
1200
1364
  color: rgba(96, 165, 250, var(--tw-text-opacity));
1201
1365
  }
1202
1366
 
1367
+ .text-blue-600 {
1368
+ --tw-text-opacity: 1;
1369
+ color: rgba(37, 99, 235, var(--tw-text-opacity));
1370
+ }
1371
+
1203
1372
  .hover\:text-gray-800:hover {
1204
1373
  --tw-text-opacity: 1;
1205
1374
  color: rgba(31, 41, 55, var(--tw-text-opacity));
1206
1375
  }
1207
1376
 
1377
+ .underline {
1378
+ text-decoration: underline;
1379
+ }
1380
+
1208
1381
  .opacity-80 {
1209
1382
  opacity: 0.8;
1210
1383
  }
@@ -1218,6 +1391,11 @@ video {
1218
1391
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1219
1392
  }
1220
1393
 
1394
+ .shadow-lg {
1395
+ --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
1396
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1397
+ }
1398
+
1221
1399
  *, ::before, ::after {
1222
1400
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
1223
1401
  --tw-ring-offset-width: 0px;
@@ -1254,6 +1432,19 @@ video {
1254
1432
  transition-duration: 1000ms;
1255
1433
  }
1256
1434
 
1435
+ .sidebar-header {
1436
+ margin-top: 2rem;
1437
+ margin-bottom: 0.5rem;
1438
+ border-bottom-width: 2px;
1439
+ --tw-border-opacity: 1;
1440
+ border-color: rgba(167, 243, 208, var(--tw-border-opacity));
1441
+ padding-bottom: 0.5rem;
1442
+ text-align: center;
1443
+ text-transform: uppercase;
1444
+ --tw-text-opacity: 1;
1445
+ color: rgba(75, 85, 99, var(--tw-text-opacity));
1446
+ }
1447
+
1257
1448
  @media (min-width: 640px) {
1258
1449
  .sm\:w-80 {
1259
1450
  width: 20rem;
@@ -1270,4 +1461,4 @@ video {
1270
1461
  }
1271
1462
 
1272
1463
  @media (min-width: 1536px) {
1273
- }
1464
+ }