js-dos 7.4.9 → 8.1.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/.github/workflows/build.yml +51 -0
- package/.gitmodules +4 -0
- package/README.deployment.md +11 -0
- package/README.md +29 -89
- package/index.html +106 -0
- package/package.json +46 -71
- package/postcss.config.cjs +8 -0
- package/src/app.css +14 -0
- package/src/base.css +10 -0
- package/src/components/checkbox.tsx +41 -0
- package/src/components/close-button.tsx +17 -0
- package/src/components/components.css +28 -0
- package/src/components/dos-option-checkbox.tsx +94 -0
- package/src/components/dos-option-select.tsx +108 -0
- package/src/components/dos-option-slider.tsx +35 -0
- package/src/components/error.tsx +16 -0
- package/src/components/loading.tsx +26 -0
- package/src/components/lock.tsx +10 -0
- package/src/components/select.tsx +33 -0
- package/src/components/slider.tsx +69 -0
- package/src/download-file.ts +18 -0
- package/src/frame/account-frame.tsx +156 -0
- package/src/frame/editor/defaults.ts +419 -0
- package/src/frame/editor/editor-conf-frame.tsx +226 -0
- package/src/frame/editor/editor-frame.css +55 -0
- package/src/frame/editor/editor-fs-frame.tsx +314 -0
- package/src/frame/fat-drives-frame.tsx +135 -0
- package/src/frame/frame.css +119 -0
- package/src/frame/frame.tsx +34 -0
- package/src/frame/image-rendering-frame.tsx +8 -0
- package/src/frame/network-frame.tsx +157 -0
- package/src/frame/quick-save-frame.tsx +96 -0
- package/src/frame/settings-frame.tsx +14 -0
- package/src/frame/stats-frame.tsx +87 -0
- package/src/host/bundle-storage.ts +91 -0
- package/src/host/fullscreen.ts +35 -0
- package/src/host/lcache.ts +203 -0
- package/src/host/lstorage.ts +156 -0
- package/src/i18n.ts +179 -0
- package/src/index.css +7 -0
- package/src/load.ts +132 -0
- package/src/login/login.css +9 -0
- package/src/login/login.tsx +77 -0
- package/src/main.tsx +197 -0
- package/src/public/types.ts +41 -0
- package/src/sidebar/account-button.tsx +33 -0
- package/src/sidebar/cloud-save-button.tsx +89 -0
- package/src/sidebar/diskette-icon.tsx +14 -0
- package/src/sidebar/fullscreen-button.tsx +44 -0
- package/src/sidebar/network-button.tsx +39 -0
- package/src/sidebar/sidebar-button.tsx +244 -0
- package/src/sidebar/sidebar.css +47 -0
- package/src/sidebar/sidebar.tsx +30 -0
- package/src/sockdrive/LICENSE +674 -0
- package/src/sockdrive/README.md +45 -0
- package/src/sockdrive/include/sockdrive.h +23 -0
- package/src/sockdrive/js/.eslintrc.json +43 -0
- package/src/sockdrive/js/package.json +29 -0
- package/src/sockdrive/js/src/fatfs/chains.js +318 -0
- package/src/sockdrive/js/src/fatfs/dir.js +385 -0
- package/src/sockdrive/js/src/fatfs/helpers.js +210 -0
- package/src/sockdrive/js/src/fatfs/index.js +606 -0
- package/src/sockdrive/js/src/fatfs/structs.js +255 -0
- package/src/sockdrive/js/src/fatfs/vol.js +166 -0
- package/src/sockdrive/js/src/sockdrive/cache.ts +133 -0
- package/src/sockdrive/js/src/sockdrive/drive.ts +457 -0
- package/src/sockdrive/js/src/sockdrive/lru.ts +221 -0
- package/src/sockdrive/js/src/sockdrive/types.ts +14 -0
- package/src/sockdrive/js/src/sockdrive-fat.d.ts +64 -0
- package/src/sockdrive/js/src/sockdrive-fat.ts +226 -0
- package/src/sockdrive/js/src/sockdrive-native.ts +100 -0
- package/src/sockdrive/js/src/test/test.ts +288 -0
- package/src/sockdrive/js/tsconfig.json +11 -0
- package/src/sockdrive/js/webpack.config.js +68 -0
- package/src/sockdrive/js/yarn.lock +1808 -0
- package/src/store/auth.ts +115 -0
- package/src/store/dos.ts +305 -0
- package/src/store/editor.ts +61 -0
- package/src/store/init.ts +48 -0
- package/src/store/storage.ts +32 -0
- package/src/store/ui.ts +186 -0
- package/src/store.tsx +108 -0
- package/src/ui.tsx +104 -0
- package/src/v8/changes.ts +56 -0
- package/src/v8/config.ts +18 -0
- package/src/v8/subscriptions.ts +62 -0
- package/src/vite-env.d.ts +2 -0
- package/src/window/dos/controls/keyboard.ts +32 -0
- package/src/window/dos/controls/keys.ts +331 -0
- package/src/window/dos/controls/mouse/mount.ts +99 -0
- package/src/window/dos/controls/mouse/mouse-locked.ts +51 -0
- package/src/window/dos/controls/mouse/mouse-not-locked.ts +84 -0
- package/src/window/dos/controls/mouse/mouse-swipe.ts +57 -0
- package/src/window/dos/controls/mouse/pointer.ts +85 -0
- package/src/window/dos/controls/mouse.ts +21 -0
- package/src/window/dos/dos-dhry2.tsx +191 -0
- package/src/window/dos/dos-runtime.tsx +214 -0
- package/src/window/dos/dos-window.tsx +84 -0
- package/src/window/dos/render/canvas.ts +65 -0
- package/src/window/dos/render/resize.ts +31 -0
- package/src/window/dos/render/webgl.ts +173 -0
- package/src/window/dos/sound/audio-node.ts +148 -0
- package/src/window/error-window.tsx +9 -0
- package/src/window/loading-window.tsx +54 -0
- package/src/window/prerun-window.tsx +123 -0
- package/src/window/select-window.tsx +118 -0
- package/src/window/window.css +78 -0
- package/src/window/window.tsx +49 -0
- package/src/ws/ws-sockdrive.ts +101 -0
- package/src/ws/ws-transport-layer.ts +455 -0
- package/tailwind.config.cjs +48 -0
- package/tsconfig.json +32 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +22 -0
- package/LICENSE +0 -339
- package/dist/emulators-ui-loader.png +0 -0
- package/dist/js-dos.css +0 -1690
- package/dist/js-dos.js +0 -17
- package/dist/js-dos.js.map +0 -1
- package/dist/types/src/backend/v7/latency.d.ts +0 -8
- package/dist/types/src/backend/v7/personal.d.ts +0 -2
- package/dist/types/src/backend/v7/v7-config.d.ts +0 -16
- package/dist/types/src/components/action-bar.d.ts +0 -2
- package/dist/types/src/components/action-hide.d.ts +0 -4
- package/dist/types/src/components/action-save-or-exit.d.ts +0 -4
- package/dist/types/src/components/client.d.ts +0 -6
- package/dist/types/src/components/controls.d.ts +0 -8
- package/dist/types/src/components/cpu-control.d.ts +0 -2
- package/dist/types/src/components/horizontal-slider.d.ts +0 -13
- package/dist/types/src/components/region.d.ts +0 -6
- package/dist/types/src/components/scale-control.d.ts +0 -3
- package/dist/types/src/components/sensitivity-control.d.ts +0 -3
- package/dist/types/src/components/sidebar/latency-info.d.ts +0 -7
- package/dist/types/src/components/sidebar/main.d.ts +0 -2
- package/dist/types/src/components/sidebar/networking.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token-add-time.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token-select.d.ts +0 -2
- package/dist/types/src/components/sidebar/token/token.d.ts +0 -17
- package/dist/types/src/components/sidebar.d.ts +0 -2
- package/dist/types/src/components/sync-control.d.ts +0 -2
- package/dist/types/src/components/tip.d.ts +0 -2
- package/dist/types/src/components/vertical-slider.d.ts +0 -12
- package/dist/types/src/components/volume-control.d.ts +0 -3
- package/dist/types/src/dom.d.ts +0 -8
- package/dist/types/src/hardware-transport-layer.d.ts +0 -18
- package/dist/types/src/icons.d.ts +0 -95
- package/dist/types/src/player-app.d.ts +0 -50
- package/dist/types/src/player.d.ts +0 -29
- package/dist/types/src/request.d.ts +0 -1
- package/dist/types/src/xhr.d.ts +0 -6
- package/dist/types/v7-services/src/personal.d.ts +0 -3
- package/dist/wdosbox.js +0 -55
- package/dist/wdosbox.js.symbols +0 -3174
- package/dist/wdosbox.wasm +0 -0
- package/examples/digger/index.html +0 -71
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
export const dosboxconf = [{
|
|
3
|
+
name: "7.xx",
|
|
4
|
+
backend: "dosbox",
|
|
5
|
+
contents: `[sdl]
|
|
6
|
+
autolock=false
|
|
7
|
+
|
|
8
|
+
fullscreen=false
|
|
9
|
+
fulldouble=false
|
|
10
|
+
fullresolution=original
|
|
11
|
+
windowresolution=original
|
|
12
|
+
output=surface
|
|
13
|
+
sensitivity=100
|
|
14
|
+
waitonerror=true
|
|
15
|
+
priority=higher,normal
|
|
16
|
+
mapperfile=mapper-jsdos.map
|
|
17
|
+
usescancodes=true
|
|
18
|
+
vsync=false
|
|
19
|
+
[dosbox]
|
|
20
|
+
machine=svga_s3
|
|
21
|
+
|
|
22
|
+
language=
|
|
23
|
+
captures=capture
|
|
24
|
+
memsize=16
|
|
25
|
+
[cpu]
|
|
26
|
+
core=auto
|
|
27
|
+
cputype=auto
|
|
28
|
+
cycles=auto
|
|
29
|
+
|
|
30
|
+
cycleup=10
|
|
31
|
+
cycledown=20
|
|
32
|
+
[mixer]
|
|
33
|
+
nosound=false
|
|
34
|
+
rate=44100
|
|
35
|
+
|
|
36
|
+
blocksize=1024
|
|
37
|
+
prebuffer=20
|
|
38
|
+
|
|
39
|
+
[render]
|
|
40
|
+
# frameskip: How many frames DOSBox skips before drawing one.
|
|
41
|
+
# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.
|
|
42
|
+
# scaler: Scaler used to enlarge/enhance low resolution modes.
|
|
43
|
+
# If 'forced' is appended, then the scaler will be used even if the result might not be desired.
|
|
44
|
+
# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.
|
|
45
|
+
|
|
46
|
+
frameskip=0
|
|
47
|
+
aspect=false
|
|
48
|
+
scaler=none
|
|
49
|
+
|
|
50
|
+
[midi]
|
|
51
|
+
# mpu401: Type of MPU-401 to emulate.
|
|
52
|
+
# Possible values: intelligent, uart, none.
|
|
53
|
+
# mididevice: Device that will receive the MIDI data from MPU-401.
|
|
54
|
+
# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
|
|
55
|
+
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
|
|
56
|
+
# See the README/Manual for more details.
|
|
57
|
+
|
|
58
|
+
mpu401=intelligent
|
|
59
|
+
mididevice=default
|
|
60
|
+
midiconfig=
|
|
61
|
+
|
|
62
|
+
[sblaster]
|
|
63
|
+
# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.
|
|
64
|
+
# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.
|
|
65
|
+
# sbbase: The IO address of the soundblaster.
|
|
66
|
+
# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.
|
|
67
|
+
# irq: The IRQ number of the soundblaster.
|
|
68
|
+
# Possible values: 7, 5, 3, 9, 10, 11, 12.
|
|
69
|
+
# dma: The DMA number of the soundblaster.
|
|
70
|
+
# Possible values: 1, 5, 0, 3, 6, 7.
|
|
71
|
+
# hdma: The High DMA number of the soundblaster.
|
|
72
|
+
# Possible values: 1, 5, 0, 3, 6, 7.
|
|
73
|
+
# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.
|
|
74
|
+
# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.
|
|
75
|
+
# Possible values: auto, cms, opl2, dualopl2, opl3, none.
|
|
76
|
+
# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).
|
|
77
|
+
# Possible values: default, compat, fast.
|
|
78
|
+
# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).
|
|
79
|
+
# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.
|
|
80
|
+
|
|
81
|
+
sbtype=sb16
|
|
82
|
+
sbbase=220
|
|
83
|
+
irq=7
|
|
84
|
+
dma=1
|
|
85
|
+
hdma=5
|
|
86
|
+
sbmixer=true
|
|
87
|
+
oplmode=auto
|
|
88
|
+
oplemu=default
|
|
89
|
+
oplrate=44100
|
|
90
|
+
|
|
91
|
+
[gus]
|
|
92
|
+
# gus: Enable the Gravis Ultrasound emulation.
|
|
93
|
+
# gusrate: Sample rate of Ultrasound emulation.
|
|
94
|
+
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
|
|
95
|
+
# gusbase: The IO base address of the Gravis Ultrasound.
|
|
96
|
+
# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.
|
|
97
|
+
# gusirq: The IRQ number of the Gravis Ultrasound.
|
|
98
|
+
# Possible values: 5, 3, 7, 9, 10, 11, 12.
|
|
99
|
+
# gusdma: The DMA channel of the Gravis Ultrasound.
|
|
100
|
+
# Possible values: 3, 0, 1, 5, 6, 7.
|
|
101
|
+
# ultradir: Path to Ultrasound directory. In this directory
|
|
102
|
+
# there should be a MIDI directory that contains
|
|
103
|
+
# the patch files for GUS playback. Patch sets used
|
|
104
|
+
# with Timidity should work fine.
|
|
105
|
+
|
|
106
|
+
gus=false
|
|
107
|
+
gusrate=44100
|
|
108
|
+
gusbase=240
|
|
109
|
+
gusirq=5
|
|
110
|
+
gusdma=3
|
|
111
|
+
ultradir=C:\\ULTRASND
|
|
112
|
+
|
|
113
|
+
[speaker]
|
|
114
|
+
# pcspeaker: Enable PC-Speaker emulation.
|
|
115
|
+
# pcrate: Sample rate of the PC-Speaker sound generation.
|
|
116
|
+
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
|
|
117
|
+
# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.
|
|
118
|
+
# Possible values: auto, on, off.
|
|
119
|
+
# tandyrate: Sample rate of the Tandy 3-Voice generation.
|
|
120
|
+
# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
|
|
121
|
+
# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).
|
|
122
|
+
|
|
123
|
+
pcspeaker=true
|
|
124
|
+
pcrate=44100
|
|
125
|
+
tandy=auto
|
|
126
|
+
tandyrate=44100
|
|
127
|
+
disney=true
|
|
128
|
+
|
|
129
|
+
[joystick]
|
|
130
|
+
# joysticktype: Type of joystick to emulate: auto (default), none,
|
|
131
|
+
# 2axis (supports two joysticks),
|
|
132
|
+
# 4axis (supports one joystick, first joystick used),
|
|
133
|
+
# 4axis_2 (supports one joystick, second joystick used),
|
|
134
|
+
# fcs (Thrustmaster), ch (CH Flightstick).
|
|
135
|
+
# none disables joystick emulation.
|
|
136
|
+
# auto chooses emulation depending on real joystick(s).
|
|
137
|
+
# (Remember to reset dosbox's mapperfile if you saved it earlier)
|
|
138
|
+
# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.
|
|
139
|
+
# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).
|
|
140
|
+
# autofire: continuously fires as long as you keep the button pressed.
|
|
141
|
+
# swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.
|
|
142
|
+
# buttonwrap: enable button wrapping at the number of emulated buttons.
|
|
143
|
+
|
|
144
|
+
joysticktype=auto
|
|
145
|
+
timed=true
|
|
146
|
+
autofire=false
|
|
147
|
+
swap34=false
|
|
148
|
+
buttonwrap=false
|
|
149
|
+
|
|
150
|
+
[serial]
|
|
151
|
+
# serial1: set type of device connected to com port.
|
|
152
|
+
# Can be disabled, dummy, modem, nullmodem, directserial.
|
|
153
|
+
# Additional parameters must be in the same line in the form of
|
|
154
|
+
# parameter:value. Parameter for all types is irq (optional).
|
|
155
|
+
# for directserial: realport (required), rxdelay (optional).
|
|
156
|
+
# (realport:COM1 realport:ttyS0).
|
|
157
|
+
# for modem: listenport (optional).
|
|
158
|
+
# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
|
|
159
|
+
# transparent, port, inhsocket (all optional).
|
|
160
|
+
# Example: serial1=modem listenport:5000
|
|
161
|
+
# Possible values: dummy, disabled, modem, nullmodem, directserial.
|
|
162
|
+
# serial2: see serial1
|
|
163
|
+
# Possible values: dummy, disabled, modem, nullmodem, directserial.
|
|
164
|
+
# serial3: see serial1
|
|
165
|
+
# Possible values: dummy, disabled, modem, nullmodem, directserial.
|
|
166
|
+
# serial4: see serial1
|
|
167
|
+
# Possible values: dummy, disabled, modem, nullmodem, directserial.
|
|
168
|
+
|
|
169
|
+
serial1=dummy
|
|
170
|
+
serial2=dummy
|
|
171
|
+
serial3=disabled
|
|
172
|
+
serial4=disabled
|
|
173
|
+
|
|
174
|
+
[dos]
|
|
175
|
+
# xms: Enable XMS support.
|
|
176
|
+
# ems: Enable EMS support.
|
|
177
|
+
# umb: Enable UMB support.
|
|
178
|
+
# keyboardlayout: Language code of the keyboard layout (or none).
|
|
179
|
+
|
|
180
|
+
xms=true
|
|
181
|
+
ems=true
|
|
182
|
+
umb=true
|
|
183
|
+
keyboardlayout=auto
|
|
184
|
+
|
|
185
|
+
[ipx]
|
|
186
|
+
# ipx: Enable ipx over UDP/IP emulation.
|
|
187
|
+
|
|
188
|
+
ipx=true
|
|
189
|
+
[autoexec]
|
|
190
|
+
echo off
|
|
191
|
+
mount c .
|
|
192
|
+
c:
|
|
193
|
+
|
|
194
|
+
type jsdos~1/readme.txt
|
|
195
|
+
echo on
|
|
196
|
+
|
|
197
|
+
# Generated using https://js-dos.com
|
|
198
|
+
# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█
|
|
199
|
+
# █ ███ █ ██▄ █ ▀ ▄ █ ███ █
|
|
200
|
+
# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █
|
|
201
|
+
# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀
|
|
202
|
+
# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀
|
|
203
|
+
# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄
|
|
204
|
+
# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀
|
|
205
|
+
# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄
|
|
206
|
+
# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀
|
|
207
|
+
# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄
|
|
208
|
+
# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█
|
|
209
|
+
# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█
|
|
210
|
+
# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀
|
|
211
|
+
`.replace(/\n/g, "\r\n"),
|
|
212
|
+
}, {
|
|
213
|
+
name: "DOS 7.1",
|
|
214
|
+
backend: "dosboxX",
|
|
215
|
+
contents: `
|
|
216
|
+
[sdl]
|
|
217
|
+
autolock=false
|
|
218
|
+
|
|
219
|
+
[dosbox]
|
|
220
|
+
title=DOS 7.1
|
|
221
|
+
memsize=64
|
|
222
|
+
|
|
223
|
+
[dos]
|
|
224
|
+
ver=7.1
|
|
225
|
+
hard drive data rate limit=0
|
|
226
|
+
floppy drive data rate limit=0
|
|
227
|
+
|
|
228
|
+
[cpu]
|
|
229
|
+
cputype=pentium_mmx
|
|
230
|
+
core=auto
|
|
231
|
+
|
|
232
|
+
[sblaster]
|
|
233
|
+
sbtype=sb16vibra
|
|
234
|
+
|
|
235
|
+
[render]
|
|
236
|
+
scaler=none
|
|
237
|
+
|
|
238
|
+
[autoexec]
|
|
239
|
+
echo off
|
|
240
|
+
imgmount 2 sockdrive {wss-makevm} dos.zone dos7.1
|
|
241
|
+
echo Please visit our website:
|
|
242
|
+
echo
|
|
243
|
+
echo _ __
|
|
244
|
+
echo (_)____ ____/ /___ _____ _________ ____ ___
|
|
245
|
+
echo / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ \`__ \\
|
|
246
|
+
echo / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /
|
|
247
|
+
echo __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/
|
|
248
|
+
echo /___/
|
|
249
|
+
echo
|
|
250
|
+
echo type 'boot c:' to load DOS 7.1
|
|
251
|
+
echo on
|
|
252
|
+
#
|
|
253
|
+
# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█
|
|
254
|
+
# █ ███ █ ██▄ █ ▀ ▄ █ ███ █
|
|
255
|
+
# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █
|
|
256
|
+
# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀
|
|
257
|
+
# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀
|
|
258
|
+
# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄
|
|
259
|
+
# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀
|
|
260
|
+
# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄
|
|
261
|
+
# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀
|
|
262
|
+
# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄
|
|
263
|
+
# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█
|
|
264
|
+
# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█
|
|
265
|
+
# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀
|
|
266
|
+
#
|
|
267
|
+
`.replace(/\n/g, "\r\n"),
|
|
268
|
+
}, {
|
|
269
|
+
name: "Win 95",
|
|
270
|
+
backend: "dosboxX",
|
|
271
|
+
contents: `
|
|
272
|
+
[sdl]
|
|
273
|
+
autolock=false
|
|
274
|
+
mouse_emulation=integration
|
|
275
|
+
|
|
276
|
+
[dosbox]
|
|
277
|
+
title=Windows 95
|
|
278
|
+
memsize=128
|
|
279
|
+
|
|
280
|
+
[video]
|
|
281
|
+
vmemsize=8
|
|
282
|
+
vesa modelist width limit=0
|
|
283
|
+
vesa modelist height limit=0
|
|
284
|
+
|
|
285
|
+
[dos]
|
|
286
|
+
ver=7.1
|
|
287
|
+
hard drive data rate limit=0
|
|
288
|
+
floppy drive data rate limit=0
|
|
289
|
+
|
|
290
|
+
[cpu]
|
|
291
|
+
cputype=pentium_mmx
|
|
292
|
+
core=auto
|
|
293
|
+
integration device=true
|
|
294
|
+
|
|
295
|
+
[sblaster]
|
|
296
|
+
sbtype=sb16vibra
|
|
297
|
+
|
|
298
|
+
[fdc, primary]
|
|
299
|
+
int13fakev86io=true
|
|
300
|
+
|
|
301
|
+
[ide, primary]
|
|
302
|
+
int13fakeio=true
|
|
303
|
+
int13fakev86io=true
|
|
304
|
+
|
|
305
|
+
[ide, secondary]
|
|
306
|
+
int13fakeio=true
|
|
307
|
+
int13fakev86io=true
|
|
308
|
+
cd-rom insertion delay=4000
|
|
309
|
+
|
|
310
|
+
[render]
|
|
311
|
+
scaler=none
|
|
312
|
+
|
|
313
|
+
[autoexec]
|
|
314
|
+
echo off
|
|
315
|
+
imgmount 2 sockdrive {wss-makevm} dos.zone win95
|
|
316
|
+
echo Please visit our website:
|
|
317
|
+
echo
|
|
318
|
+
echo _ __
|
|
319
|
+
echo (_)____ ____/ /___ _____ _________ ____ ___
|
|
320
|
+
echo / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ \`__ \\
|
|
321
|
+
echo / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /
|
|
322
|
+
echo __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/
|
|
323
|
+
echo /___/
|
|
324
|
+
echo
|
|
325
|
+
echo type 'boot c:' to load windows 95
|
|
326
|
+
echo on
|
|
327
|
+
#
|
|
328
|
+
# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█
|
|
329
|
+
# █ ███ █ ██▄ █ ▀ ▄ █ ███ █
|
|
330
|
+
# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █
|
|
331
|
+
# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀
|
|
332
|
+
# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀
|
|
333
|
+
# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄
|
|
334
|
+
# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀
|
|
335
|
+
# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄
|
|
336
|
+
# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀
|
|
337
|
+
# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄
|
|
338
|
+
# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█
|
|
339
|
+
# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█
|
|
340
|
+
# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀
|
|
341
|
+
#
|
|
342
|
+
`.replace(/\n/g, "\r\n"),
|
|
343
|
+
}, {
|
|
344
|
+
name: "Win 98",
|
|
345
|
+
backend: "dosboxX",
|
|
346
|
+
contents: `
|
|
347
|
+
[sdl]
|
|
348
|
+
autolock=false
|
|
349
|
+
mouse_emulation=integration
|
|
350
|
+
|
|
351
|
+
[dosbox]
|
|
352
|
+
title=Windows 98
|
|
353
|
+
memsize=128
|
|
354
|
+
|
|
355
|
+
[video]
|
|
356
|
+
vmemsize=8
|
|
357
|
+
vesa modelist width limit=0
|
|
358
|
+
vesa modelist height limit=0
|
|
359
|
+
|
|
360
|
+
[dos]
|
|
361
|
+
ver=7.1
|
|
362
|
+
hard drive data rate limit=0
|
|
363
|
+
floppy drive data rate limit=0
|
|
364
|
+
|
|
365
|
+
[cpu]
|
|
366
|
+
cputype=pentium_mmx
|
|
367
|
+
core=auto
|
|
368
|
+
integration device=true
|
|
369
|
+
|
|
370
|
+
[sblaster]
|
|
371
|
+
sbtype=sb16vibra
|
|
372
|
+
|
|
373
|
+
[fdc, primary]
|
|
374
|
+
int13fakev86io=true
|
|
375
|
+
|
|
376
|
+
[ide, primary]
|
|
377
|
+
int13fakeio=true
|
|
378
|
+
int13fakev86io=true
|
|
379
|
+
|
|
380
|
+
[ide, secondary]
|
|
381
|
+
int13fakeio=true
|
|
382
|
+
int13fakev86io=true
|
|
383
|
+
cd-rom insertion delay=4000
|
|
384
|
+
|
|
385
|
+
[render]
|
|
386
|
+
scaler=none
|
|
387
|
+
|
|
388
|
+
[autoexec]
|
|
389
|
+
echo off
|
|
390
|
+
imgmount 2 sockdrive {wss-makevm} dos.zone win98
|
|
391
|
+
echo Please visit our website:
|
|
392
|
+
echo
|
|
393
|
+
echo _ __
|
|
394
|
+
echo (_)____ ____/ /___ _____ _________ ____ ___
|
|
395
|
+
echo / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ \`__ \\
|
|
396
|
+
echo / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /
|
|
397
|
+
echo __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/
|
|
398
|
+
echo /___/
|
|
399
|
+
echo
|
|
400
|
+
echo type 'boot c:' to load windows 98
|
|
401
|
+
echo on
|
|
402
|
+
#
|
|
403
|
+
# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█
|
|
404
|
+
# █ ███ █ ██▄ █ ▀ ▄ █ ███ █
|
|
405
|
+
# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █
|
|
406
|
+
# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀
|
|
407
|
+
# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀
|
|
408
|
+
# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄
|
|
409
|
+
# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀
|
|
410
|
+
# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄
|
|
411
|
+
# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀
|
|
412
|
+
# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄
|
|
413
|
+
# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█
|
|
414
|
+
# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█
|
|
415
|
+
# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀
|
|
416
|
+
#
|
|
417
|
+
`.replace(/\n/g, "\r\n"),
|
|
418
|
+
},
|
|
419
|
+
];
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
2
|
+
import { useT } from "../../i18n";
|
|
3
|
+
import { State } from "../../store";
|
|
4
|
+
import { editorSlice } from "../../store/editor";
|
|
5
|
+
import { dosboxconf } from "./defaults";
|
|
6
|
+
import { dosSlice } from "../../store/dos";
|
|
7
|
+
import { useEffect, useState } from "preact/hooks";
|
|
8
|
+
import { sockdriveBackend } from "../../store/init";
|
|
9
|
+
import { uiSlice } from "../../store/ui";
|
|
10
|
+
|
|
11
|
+
const imgmount = "imgmount\\s+(\\d+)\\s+sockdrive\\s+([^\\s]+)\\s+([^\\s]+)\\s+([^\\s]+)\\s*$";
|
|
12
|
+
const cleanup = "imgmount\\s+(\\d+)\\s+sockdrive\\s+.*$";
|
|
13
|
+
|
|
14
|
+
interface Sockdrive {
|
|
15
|
+
num: string,
|
|
16
|
+
backend: string,
|
|
17
|
+
owner: string,
|
|
18
|
+
drive: string,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function EditorConf() {
|
|
22
|
+
const t = useT();
|
|
23
|
+
const bundleConfig = useSelector((state: State) => state.editor.bundleConfig);
|
|
24
|
+
const account = useSelector((state: State) => state.auth.account);
|
|
25
|
+
const backend = useSelector((state: State) => state.dos.backend);
|
|
26
|
+
const { sockdriveEndpoint, sockdriveWssEndpoint } = useSelector((state: State) =>
|
|
27
|
+
sockdriveBackend[state.init.sockdriveBackendName]);
|
|
28
|
+
const dispatch = useDispatch();
|
|
29
|
+
const [myDrives, setMyDrives] = useState<{ name: string, owner: string }[]>([]);
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (!account || !account.token) {
|
|
33
|
+
setMyDrives([]);
|
|
34
|
+
} else {
|
|
35
|
+
fetch(sockdriveEndpoint + "/list/drives/" + account.token.access_token)
|
|
36
|
+
.then((r) => r.json())
|
|
37
|
+
.then(setMyDrives)
|
|
38
|
+
.catch(console.error);
|
|
39
|
+
}
|
|
40
|
+
}, [account?.token, sockdriveEndpoint]);
|
|
41
|
+
|
|
42
|
+
function parseSockDrives(conf: string) {
|
|
43
|
+
const drives: { [num: string]: Sockdrive } = {};
|
|
44
|
+
const re = new RegExp(imgmount, "gm");
|
|
45
|
+
let m: RegExpExecArray | null;
|
|
46
|
+
while (m = re.exec(conf)) {
|
|
47
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
48
|
+
const [_, num, backend, owner, drive] = m;
|
|
49
|
+
drives[num] = {
|
|
50
|
+
num,
|
|
51
|
+
backend,
|
|
52
|
+
owner,
|
|
53
|
+
drive,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return drives;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const [sockdrives, setSockdrives] = useState<{ [num: string]: Sockdrive }>(
|
|
60
|
+
parseSockDrives(bundleConfig?.dosboxConf ?? ""));
|
|
61
|
+
|
|
62
|
+
function setSockdrivesAndUpdateConf(sockdrives: { [num: string]: Sockdrive }) {
|
|
63
|
+
setSockdrives(sockdrives);
|
|
64
|
+
if (bundleConfig) {
|
|
65
|
+
const parts: string[] = [];
|
|
66
|
+
for (const next of Object.values(sockdrives)) {
|
|
67
|
+
if (next.owner.length > 0 && next.drive.length > 0) {
|
|
68
|
+
parts.push(`imgmount ${next.num} sockdrive ${next.backend} ${next.owner} ${next.drive}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
let contents = bundleConfig.dosboxConf;
|
|
73
|
+
contents = contents.replaceAll(new RegExp(cleanup, "gm"), "");
|
|
74
|
+
if (parts.length > 0) {
|
|
75
|
+
let start = contents.indexOf("[autoexec]");
|
|
76
|
+
if (start === -1) {
|
|
77
|
+
start = contents.length;
|
|
78
|
+
} else {
|
|
79
|
+
start += 10;
|
|
80
|
+
}
|
|
81
|
+
const footer = contents.substring(start);
|
|
82
|
+
contents = contents.substring(0, start);
|
|
83
|
+
contents += "\n" + parts.join("\n") + "\n" + footer.trim();
|
|
84
|
+
}
|
|
85
|
+
updateDosboxConf(contents);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function changeConfig(contents: string) {
|
|
90
|
+
setSockdrives(parseSockDrives(contents));
|
|
91
|
+
updateDosboxConf(contents);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function updateDosboxConf(newConf: string) {
|
|
95
|
+
dispatch(dosSlice.actions.mouseCapture(newConf.indexOf("autolock=true") > 0));
|
|
96
|
+
dispatch(editorSlice.actions.dosboxConf(newConf));
|
|
97
|
+
dispatch(dosSlice.actions.dosBackendLocked(newConf.indexOf("sockdrive") >= 0));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (bundleConfig === null) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return <div class="editor-conf-frame flex flex-col flex-grow w-full gap-2">
|
|
105
|
+
<div class="">{t("dosboxconf_template")}</div>
|
|
106
|
+
<div class="flex flex-row flex-wrap items-center gap-2">
|
|
107
|
+
{dosboxconf
|
|
108
|
+
.map(({ name, backend, contents }) => {
|
|
109
|
+
return <button class="btn btn-sm"
|
|
110
|
+
onClick={() => {
|
|
111
|
+
dispatch(dosSlice.actions.dosBackend(backend === "dosboxX" ? "dosboxX" : "dosbox"));
|
|
112
|
+
changeConfig(contents.replaceAll("{wss-makevm}", sockdriveWssEndpoint));
|
|
113
|
+
}}>
|
|
114
|
+
{name}
|
|
115
|
+
</button>;
|
|
116
|
+
})}
|
|
117
|
+
</div>
|
|
118
|
+
{backend === "dosboxX" && <>
|
|
119
|
+
<button class="btn btn-ghost btn-xs self-start" target="_blank"
|
|
120
|
+
onClick={() => dispatch(uiSlice.actions.frameFatDrives())}>
|
|
121
|
+
{t("net_drives")}:
|
|
122
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
123
|
+
stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
|
124
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="m12.75 15 3-3m0 0-3-3m3
|
|
125
|
+
3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
|
126
|
+
</svg>
|
|
127
|
+
</button>
|
|
128
|
+
{["2", "3"].map((num) => {
|
|
129
|
+
return <div class="flex flex-row justify-start items-center gap-3 w-full">
|
|
130
|
+
<p>{num === "2" ? "C:" : "D:"}</p>
|
|
131
|
+
<div class="flex flex-col gap-2">
|
|
132
|
+
<div class="flex flex-row gap-1 items-center">
|
|
133
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
134
|
+
stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
|
135
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M17.982 18.725A7.488 7.488
|
|
136
|
+
0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963
|
|
137
|
+
0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3
|
|
138
|
+
3 0 1 1-6 0 3 3 0 0 1 6 0Z" />
|
|
139
|
+
</svg>
|
|
140
|
+
<input class="input input-xs" type="text" value={sockdrives[num]?.owner ?? ""}
|
|
141
|
+
onChange={(e) => {
|
|
142
|
+
const newSockdrives = { ...sockdrives };
|
|
143
|
+
newSockdrives[num] = {
|
|
144
|
+
num,
|
|
145
|
+
backend: sockdrives[num]?.backend ?? sockdriveWssEndpoint,
|
|
146
|
+
owner: e.currentTarget.value,
|
|
147
|
+
drive: sockdrives[num]?.drive ?? "",
|
|
148
|
+
};
|
|
149
|
+
setSockdrivesAndUpdateConf(newSockdrives);
|
|
150
|
+
}}></input>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="flex flex-row gap-1 items-center">
|
|
153
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
154
|
+
stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
|
155
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M20.25 6.375c0 2.278-3.694
|
|
156
|
+
4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75
|
|
157
|
+
4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25
|
|
158
|
+
4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5
|
|
159
|
+
0v3.75C20.25 16.153
|
|
160
|
+
16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25
|
|
161
|
+
4.125s-8.25-1.847-8.25-4.125" />
|
|
162
|
+
</svg>
|
|
163
|
+
|
|
164
|
+
<input class="input input-xs" type="text" value={sockdrives[num]?.drive ?? ""}
|
|
165
|
+
onChange={(e) => {
|
|
166
|
+
const newSockdrives = { ...sockdrives };
|
|
167
|
+
newSockdrives[num] = {
|
|
168
|
+
num,
|
|
169
|
+
backend: sockdrives[num]?.backend ?? sockdriveWssEndpoint,
|
|
170
|
+
owner: sockdrives[num]?.owner ?? "",
|
|
171
|
+
drive: e.currentTarget.value,
|
|
172
|
+
};
|
|
173
|
+
setSockdrivesAndUpdateConf(newSockdrives);
|
|
174
|
+
}}></input>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="dropdown dropdown-bottom dropdown-end">
|
|
178
|
+
<button tabIndex={0} role="button" class="btn btn-sm">
|
|
179
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none"
|
|
180
|
+
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
|
181
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
182
|
+
d="M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5
|
|
183
|
+
0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25
|
|
184
|
+
2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25
|
|
185
|
+
0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0
|
|
186
|
+
1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776" />
|
|
187
|
+
</svg>
|
|
188
|
+
</button>
|
|
189
|
+
<ul tabIndex={0} class="dropdown-content z-[1] menu p-2 shadow bg-base-100
|
|
190
|
+
rounded-box w-52 max-h-80 overflow-auto">
|
|
191
|
+
{myDrives.map(({ name, owner }) => {
|
|
192
|
+
return <li onClick={(e) => {
|
|
193
|
+
const newSockdrives = { ...sockdrives };
|
|
194
|
+
newSockdrives[num] = {
|
|
195
|
+
num,
|
|
196
|
+
owner,
|
|
197
|
+
backend: sockdriveWssEndpoint,
|
|
198
|
+
drive: name,
|
|
199
|
+
};
|
|
200
|
+
setSockdrivesAndUpdateConf(newSockdrives);
|
|
201
|
+
e.currentTarget.parentElement!.blur();
|
|
202
|
+
}}><a>{name}</a></li>;
|
|
203
|
+
})}
|
|
204
|
+
</ul>
|
|
205
|
+
</div>
|
|
206
|
+
<button class="btn btn-sm" onClick={() => {
|
|
207
|
+
const newSockdrives = { ...sockdrives };
|
|
208
|
+
delete newSockdrives[num];
|
|
209
|
+
setSockdrivesAndUpdateConf(newSockdrives);
|
|
210
|
+
}}>
|
|
211
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
|
|
212
|
+
stroke="currentColor" class="w-4 h-4">
|
|
213
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
214
|
+
d="M12 9.75 14.25 12m0 0 2.25 2.25M14.25 12l2.25-2.25M14.25 12 12 14.25m-2.58
|
|
215
|
+
4.92-6.374-6.375a1.125 1.125 0 0 1 0-1.59L9.42 4.83c.21-.211.497-.33.795-.33H19.5a2.25
|
|
216
|
+
2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-9.284c-.298 0-.585-.119-.795-.33Z"
|
|
217
|
+
/>
|
|
218
|
+
</svg>
|
|
219
|
+
</button>
|
|
220
|
+
</div>;
|
|
221
|
+
})}
|
|
222
|
+
</>}
|
|
223
|
+
<textarea class="flex-grow" value={bundleConfig.dosboxConf}
|
|
224
|
+
onChange={(e) => changeConfig(e.currentTarget?.value ?? "")} />
|
|
225
|
+
</div>;
|
|
226
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.jsdos-rso {
|
|
2
|
+
.editor-conf-frame {
|
|
3
|
+
@apply w-full overflow-hidden flex-grow flex flex-col items-start justify-center h-full px-4;
|
|
4
|
+
|
|
5
|
+
textarea {
|
|
6
|
+
@apply w-full textarea;
|
|
7
|
+
resize: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.editor-fs-frame {
|
|
12
|
+
@apply h-full;
|
|
13
|
+
|
|
14
|
+
.fs-tree-view {
|
|
15
|
+
@apply form-control bg-base-100 rounded w-full h-full;
|
|
16
|
+
|
|
17
|
+
.fs-tree {
|
|
18
|
+
|
|
19
|
+
ol {
|
|
20
|
+
@apply ml-2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
li {
|
|
24
|
+
@apply my-2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
button {
|
|
28
|
+
border: none;
|
|
29
|
+
background: none;
|
|
30
|
+
filter: none;
|
|
31
|
+
min-height: auto;
|
|
32
|
+
height: auto;
|
|
33
|
+
@apply m-0 p-0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
@apply text-accent;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input {
|
|
41
|
+
@apply checkbox checkbox-accent mr-2 w-4 h-4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rct-text,
|
|
45
|
+
.rct-bare-label,
|
|
46
|
+
label {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
justify-content: start;
|
|
50
|
+
align-items: center;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|