-
Notifications
You must be signed in to change notification settings - Fork 0
Repository
The repository feature allows as-web to browse a series of Asset Bundles online.
Before using this feature, you must first install a userscript, as this functionality requires cross-origin requests.
After installation, simply refresh the page.
Taking "Arknights" as an example, users can add @arkntools/as-web-repo-arknights.
Currently, I have only created this one repository. Maybe anyone will create repositories for other games in the future.
For development, please refer to:
Simply put, you just need to implement a series of interfaces as defined in @arkntools/as-web-repo.
@arkntools/as-web-repo provides a request() method, which is equivalent to the userscript's GM_xmlhttpRequest(). Please use it for cross-origin requests.
After completion, bundle the code into a single JS ESM module file and publish it to NPM or any accessible URL, then it can be added and used.
Asset Bundle list and files are cached to IndexedDB, and cached data will be used directly when no version updates are detected.