1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 02:01:51 +00:00
tobspr_shapez.io/electron
cody-ferguson 0167b9d6a0
Handle directories in mod protocol handler (#87)
* Handle directories in mod protocol handler
Previously we would return an error about a file not existing, which kinda makes sense, considering a directory isn't a file.
Now with this commit, if the url resolve to a directory, it will return a json array with the relative paths of the file in that directory.

* Make directory index work with ASAR archives

Also fix directory index having higher priority than normal requests and
simplify URL handling.

---------

Co-authored-by: Даниїл Григор'єв <dengr1065@gmail.com>
2025-07-01 20:30:55 +03:00
..
src Handle directories in mod protocol handler (#87) 2025-07-01 20:30:55 +03:00
favicon.icns Update favicon and improve loading time 2022-06-16 09:58:12 +02:00
favicon.ico Update favicon and improve loading time 2022-06-16 09:58:12 +02:00
favicon.png Update favicon and improve loading time 2022-06-16 09:58:12 +02:00
package-lock.json Basic FS watcher for --load-mod mods 2025-06-12 15:22:15 +03:00
package.json Basic FS watcher for --load-mod mods 2025-06-12 15:22:15 +03:00
preload.cjs Rewrite the Electron wrapper (#47) 2025-03-21 16:30:13 +02:00
tsconfig.json WIP: Basic ASAR modding in renderer 2025-04-12 20:06:03 +03:00