From eecdf1f2fd4cbf16c0b819551e2f989ef9553b20 Mon Sep 17 00:00:00 2001 From: octospacc Date: Wed, 17 Apr 2024 01:30:25 +0200 Subject: [PATCH] Update SpiderADB, fix site build --- .gitignore | 5 + Build.sh | 15 +-- public/.gitignore | 1 - public/Collections/index.html | 2 +- public/Ecoji/index.html | 2 +- public/FramesBrowser/index.html | 2 +- public/HashyMagnet/index.html | 2 +- public/MBViewer/index.html | 2 +- public/MatrixStickerHelper/index.html | 2 +- public/Userscripts/index.html | 2 +- public/index.html | 2 +- .../JS/Global.js => shared/OctoHub-Global.js | 0 src/SpiderADB/Build.sh | 0 src/SpiderADB/Requirements.sh | 4 + src/SpiderADB/SpiderADB.js | 116 +++++++++++++++--- src/SpiderADB/holo-web/holo-extra-octt.css | 46 +++---- src/SpiderADB/holo-web/holo-extra-octt.js | 6 + src/SpiderADB/index.html | 74 +++++++---- src/SpiderADB/package-lock.json | 3 +- src/SpiderADB/package.json | 3 +- src/WuppiMini/Build.sh | 3 + .../Prepare.sh => WuppiMini/Requirements.sh} | 0 src/WuppiMini/index.js | 1 + 23 files changed, 210 insertions(+), 83 deletions(-) delete mode 100644 public/.gitignore rename public/Assets/JS/Global.js => shared/OctoHub-Global.js (100%) mode change 100755 => 100644 src/SpiderADB/Build.sh create mode 100644 src/SpiderADB/Requirements.sh create mode 100644 src/WuppiMini/Build.sh rename src/{SpiderADB/Prepare.sh => WuppiMini/Requirements.sh} (100%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore index c2658d7..9b51971 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ +*.bak node_modules/ +/public/a/ +/public/s/ +/public/SpiderADB/ +/public/WuppiMini/ diff --git a/Build.sh b/Build.sh index 6333fac..78b579a 100755 --- a/Build.sh +++ b/Build.sh @@ -1,21 +1,12 @@ #!/bin/sh -for App in WuppiMini +for App in SpiderADB WuppiMini do mkdir -p ./public/${App} cd ./src/${App} - npm update - npm install - node ./index.js html - cp ./index.js ./index.html ./node_modules/SpaccDotWeb/SpaccDotWeb.Server.js ../../public/${App}/ - cd ../.. -done -for App in SpiderADB -do - mkdir -p ./public/${App} - cd ./src/${App} - sh ./Prepare.sh + sh ./Requirements.sh cp -r $(sh ./Build.sh) ../../public/${App}/ cd ../.. done +cp -r ./shared ./public/shared cd ./public node ../WriteRedirectPages.js diff --git a/public/.gitignore b/public/.gitignore deleted file mode 100644 index 751553b..0000000 --- a/public/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.bak diff --git a/public/Collections/index.html b/public/Collections/index.html index 97c009b..a3580bd 100644 --- a/public/Collections/index.html +++ b/public/Collections/index.html @@ -13,7 +13,7 @@ - + - + diff --git a/public/HashyMagnet/index.html b/public/HashyMagnet/index.html index 6a25a54..f3a977a 100644 --- a/public/HashyMagnet/index.html +++ b/public/HashyMagnet/index.html @@ -12,7 +12,7 @@ - + @@ -31,47 +32,76 @@
  • - +
  • - Actual features coming soon! + More features coming soon!
  • -

    +

    You must connect and authorize a device first.

    -
    -

    - - -

    - -
    -
    - - -

    SpiderADB is an user-friendly webapp for connecting to devices via the Android Debug Bridge, straight from a browser. More infos coming soon.

    Changelog

    +

    2024-04-16

      +
    • Introduced the basic Terminal.
    • +
    • Slight improvements to the user experience with better error handling.
    • +

    2024-04-14

    • First WIP version, with Android ICS Holo UI, allows simply connecting to devices and shows basic info.
    • Introduced sections: Devices, About.
    +
    +

    +

    + + + + +
    +
    + + +
    +
    + +
      +
    • Test
    • +
    +
    + +
    +
    diff --git a/src/SpiderADB/package-lock.json b/src/SpiderADB/package-lock.json index 24dc3c3..3a870bf 100644 --- a/src/SpiderADB/package-lock.json +++ b/src/SpiderADB/package-lock.json @@ -7,7 +7,8 @@ "dependencies": { "@yume-chan/adb": "^0.0.23", "@yume-chan/adb-credential-web": "^0.0.23", - "@yume-chan/adb-daemon-webusb": "^0.0.23" + "@yume-chan/adb-daemon-webusb": "^0.0.23", + "@yume-chan/stream-extra": "^0.0.23" } }, "node_modules/@types/w3c-web-usb": { diff --git a/src/SpiderADB/package.json b/src/SpiderADB/package.json index 903abd3..c6d95cf 100644 --- a/src/SpiderADB/package.json +++ b/src/SpiderADB/package.json @@ -2,6 +2,7 @@ "dependencies": { "@yume-chan/adb": "^0.0.23", "@yume-chan/adb-credential-web": "^0.0.23", - "@yume-chan/adb-daemon-webusb": "^0.0.23" + "@yume-chan/adb-daemon-webusb": "^0.0.23", + "@yume-chan/stream-extra": "^0.0.23" } } diff --git a/src/WuppiMini/Build.sh b/src/WuppiMini/Build.sh new file mode 100644 index 0000000..188d828 --- /dev/null +++ b/src/WuppiMini/Build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +node ./index.js html > /dev/null +echo index.js index.html node_modules/SpaccDotWeb/SpaccDotWeb.Server.js diff --git a/src/SpiderADB/Prepare.sh b/src/WuppiMini/Requirements.sh old mode 100755 new mode 100644 similarity index 100% rename from src/SpiderADB/Prepare.sh rename to src/WuppiMini/Requirements.sh diff --git a/src/WuppiMini/index.js b/src/WuppiMini/index.js index 43faf5c..945fde1 100755 --- a/src/WuppiMini/index.js +++ b/src/WuppiMini/index.js @@ -36,6 +36,7 @@ const newHtmlPage = (content, title) => ` ${title ? `${title} — ` : ''}${appName} +