From 4c96796ee5d6a683ce250b6db9922d7ed5dbe448 Mon Sep 17 00:00:00 2001 From: rainestorme <115757568+rainestorme@users.noreply.github.com> Date: Tue, 14 May 2024 13:33:12 -0500 Subject: [PATCH 1/9] Add filesystem API, some docs, refactor --- docs/dev_reference.md | 1 + helper/html/index.html | 12 +- helper/js/api/fs.js | 159 ++++++ helper/js/api/murkmod.js | 308 ++++++++++ helper/js/{ => extension}/background.js | 0 helper/js/{ => lib}/jquery.js | 0 helper/js/{ => lib}/swal2.js | 0 helper/js/{ => lib}/xterm.js | 0 helper/js/{ => lib}/xterm.js.map | 0 helper/js/murkmod.js | 714 ------------------------ helper/js/page/interactivity.js | 257 +++++++++ helper/js/page/store.js | 173 ++++++ mush.sh | 68 +++ 13 files changed, 974 insertions(+), 718 deletions(-) create mode 100644 helper/js/api/fs.js create mode 100644 helper/js/api/murkmod.js rename helper/js/{ => extension}/background.js (100%) rename helper/js/{ => lib}/jquery.js (100%) rename helper/js/{ => lib}/swal2.js (100%) rename helper/js/{ => lib}/xterm.js (100%) rename helper/js/{ => lib}/xterm.js.map (100%) delete mode 100644 helper/js/murkmod.js create mode 100644 helper/js/page/interactivity.js create mode 100644 helper/js/page/store.js diff --git a/docs/dev_reference.md b/docs/dev_reference.md index 991cf2b..5d6ebb0 100644 --- a/docs/dev_reference.md +++ b/docs/dev_reference.md @@ -13,6 +13,7 @@ At the main menu, you have the option to enter a number corresponding to a menu - `112`: Purge extension processes - Kills all extension processes. - `113`: Prints a list of installed plugins and their individual metadata. - `114` and `115`: Legacy install/uninstall plugin - Readline-based plugin management for easier interface from the helper extension. +- `2**`: Interface for the JS plugin filesystem access API (see `class MurkmodFsAccess`) The murkmod installation script (murkmod.sh, **not** the VT2 installer!) reads an environment variable called `MURKMOD_BRANCH` - it is normally set by option `26`, but it can be set by hand by using the following command: diff --git a/helper/html/index.html b/helper/html/index.html index 94909c1..ded954f 100644 --- a/helper/html/index.html +++ b/helper/html/index.html @@ -4,13 +4,13 @@