Showing preview only (2,564K chars total). Download the full file or copy to clipboard to get everything.
Repository: TerbiumOS/web-v2
Branch: main
Commit: f58eb2e98a9d
Files: 326
Total size: 2.4 MB
Directory structure:
gitextract_z8f305yy/
├── .editorconfig
├── .gitattributes
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug-report.md
│ │ └── config.yml
│ ├── dependabot.yml
│ └── workflows/
│ ├── biome.yml
│ ├── test.yml
│ └── upk-build.yml
├── .gitignore
├── .node_version
├── .vscode/
│ ├── extensions.json
│ └── settings.json
├── .zed/
│ └── settings.json
├── LICENSE.txt
├── README.md
├── SECURITY.md
├── biome.json
├── bootstrap.ts
├── docs/
│ ├── README.md
│ ├── anura-compat.md
│ ├── apis/
│ │ └── readme.md
│ ├── backend-configuration.md
│ ├── contributions.md
│ ├── creating-apps.md
│ ├── creating-terminal-commands.md
│ ├── lemonade-compat.md
│ ├── lemonade.md
│ ├── static-hosting.md
│ └── upk-build.md
├── env.d.ts
├── eslint.config.js
├── fail.html
├── index.html
├── package.json
├── postcss.config.js
├── public/
│ ├── anura-sw.js
│ ├── apps/
│ │ ├── about.tapp/
│ │ │ ├── app.css
│ │ │ ├── index.html
│ │ │ └── index.json
│ │ ├── app store.tapp/
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ └── index.json
│ │ ├── browser.tapp/
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── newtab.html
│ │ │ └── userscripts.html
│ │ ├── calculator.tapp/
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ └── index.json
│ │ ├── feedback.tapp/
│ │ │ └── index.json
│ │ ├── files.tapp/
│ │ │ ├── cm.css
│ │ │ ├── extensions.json
│ │ │ ├── files.com.js
│ │ │ ├── icons.json
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── properties/
│ │ │ │ ├── index.html
│ │ │ │ └── index.js
│ │ │ └── webdav.js
│ │ ├── fsapp.app/
│ │ │ ├── GUI.js
│ │ │ ├── appview.html
│ │ │ ├── components/
│ │ │ │ ├── File.mjs
│ │ │ │ ├── Folder.mjs
│ │ │ │ ├── Selector.mjs
│ │ │ │ ├── SideBar.mjs
│ │ │ │ └── TopBar.mjs
│ │ │ ├── filemanager.css
│ │ │ ├── index.html
│ │ │ ├── index.mjs
│ │ │ ├── manifest.json
│ │ │ └── operations.js
│ │ ├── libfilepicker.lib/
│ │ │ ├── GUI.js
│ │ │ ├── README.md
│ │ │ ├── file.html
│ │ │ ├── filemanager.css
│ │ │ ├── folder.html
│ │ │ ├── handler.js
│ │ │ ├── install.js
│ │ │ ├── manifest.json
│ │ │ └── operations.js
│ │ ├── libfileview.lib/
│ │ │ ├── fileHandler.js
│ │ │ ├── icons.json
│ │ │ ├── install.js
│ │ │ └── manifest.json
│ │ ├── libpersist.lib/
│ │ │ ├── install.js
│ │ │ ├── manifest.json
│ │ │ └── src/
│ │ │ └── index.js
│ │ ├── media viewer.tapp/
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ └── media.com.js
│ │ ├── nfsadapter/
│ │ │ ├── FileSystemDirectoryHandle.js
│ │ │ ├── FileSystemFileHandle.js
│ │ │ ├── FileSystemHandle.js
│ │ │ ├── adapters/
│ │ │ │ ├── anuraadapter.js
│ │ │ │ ├── memory.js
│ │ │ │ └── sandbox.js
│ │ │ ├── config.js
│ │ │ ├── nfsadapter.js
│ │ │ └── util.js
│ │ ├── settings.tapp/
│ │ │ ├── accounts/
│ │ │ │ ├── index.html
│ │ │ │ └── index.js
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── island.js
│ │ │ ├── message.js
│ │ │ ├── radio.css
│ │ │ ├── select.css
│ │ │ └── select.js
│ │ ├── task manager.tapp/
│ │ │ ├── index.css
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ └── index.json
│ │ ├── terminal.tapp/
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ ├── index.json
│ │ │ ├── logo.txt
│ │ │ ├── scripts/
│ │ │ │ ├── cat.js
│ │ │ │ ├── cd.js
│ │ │ │ ├── clear.js
│ │ │ │ ├── curl.js
│ │ │ │ ├── echo.js
│ │ │ │ ├── exit.js
│ │ │ │ ├── git.js
│ │ │ │ ├── help.js
│ │ │ │ ├── info.json
│ │ │ │ ├── info.schema.json
│ │ │ │ ├── ls.js
│ │ │ │ ├── mkdir.js
│ │ │ │ ├── nano.js
│ │ │ │ ├── node.js
│ │ │ │ ├── ping.js
│ │ │ │ ├── pkg.js
│ │ │ │ ├── pkill.js
│ │ │ │ ├── pwd.js
│ │ │ │ ├── rm.js
│ │ │ │ ├── rmdir.js
│ │ │ │ ├── ssh-keygen.js
│ │ │ │ ├── ssh.js
│ │ │ │ ├── sysfetch.js
│ │ │ │ ├── taskkill.js
│ │ │ │ ├── tb.js
│ │ │ │ ├── touch.js
│ │ │ │ └── unzip.js
│ │ │ ├── ssh-util.js
│ │ │ ├── terminal.css
│ │ │ └── terminal_com.js
│ │ └── text editor.tapp/
│ │ ├── index.css
│ │ ├── index.html
│ │ ├── index.js
│ │ ├── index.json
│ │ └── text.com.js
│ ├── assets/
│ │ ├── fs.ui/
│ │ │ ├── fs.css
│ │ │ └── fs.js
│ │ ├── libs/
│ │ │ ├── comlink.min.umd.js
│ │ │ ├── idb-keyval.js
│ │ │ ├── mime.iife.js
│ │ │ └── workbox/
│ │ │ ├── workbox-background-sync.dev.js
│ │ │ ├── workbox-background-sync.prod.js
│ │ │ ├── workbox-broadcast-update.dev.js
│ │ │ ├── workbox-broadcast-update.prod.js
│ │ │ ├── workbox-cacheable-response.dev.js
│ │ │ ├── workbox-cacheable-response.prod.js
│ │ │ ├── workbox-core.dev.js
│ │ │ ├── workbox-core.prod.js
│ │ │ ├── workbox-expiration.dev.js
│ │ │ ├── workbox-expiration.prod.js
│ │ │ ├── workbox-navigation-preload.dev.js
│ │ │ ├── workbox-navigation-preload.prod.js
│ │ │ ├── workbox-offline-ga.dev.js
│ │ │ ├── workbox-offline-ga.prod.js
│ │ │ ├── workbox-precaching.dev.js
│ │ │ ├── workbox-precaching.prod.js
│ │ │ ├── workbox-range-requests.dev.js
│ │ │ ├── workbox-range-requests.prod.js
│ │ │ ├── workbox-routing.dev.js
│ │ │ ├── workbox-routing.prod.js
│ │ │ ├── workbox-strategies.dev.js
│ │ │ ├── workbox-strategies.prod.js
│ │ │ ├── workbox-streams.dev.js
│ │ │ ├── workbox-streams.prod.js
│ │ │ ├── workbox-sw.js
│ │ │ ├── workbox-window.dev.es5.mjs
│ │ │ ├── workbox-window.dev.mjs
│ │ │ ├── workbox-window.dev.umd.js
│ │ │ ├── workbox-window.prod.es5.mjs
│ │ │ ├── workbox-window.prod.mjs
│ │ │ └── workbox-window.prod.umd.js
│ │ ├── materialsymbols.css
│ │ └── matter.css
│ ├── cursor_changer.js
│ ├── lib/
│ │ └── dreamland/
│ │ ├── all.js
│ │ ├── dev.js
│ │ ├── minimal.js
│ │ └── ssr.js
│ ├── manifest.json
│ ├── media_interactions.js
│ ├── robots.txt
│ ├── sitemap.xml
│ ├── theme.css
│ └── uv/
│ └── uv.config.js
├── server.ts
├── src/
│ ├── App.tsx
│ ├── Boot.tsx
│ ├── CustomOS.tsx
│ ├── Loading.tsx
│ ├── Login.tsx
│ ├── Recovery.tsx
│ ├── Setup.tsx
│ ├── Updater.tsx
│ ├── index.css
│ ├── init/
│ │ ├── fs.init.ts
│ │ └── index.ts
│ ├── main.tsx
│ ├── sys/
│ │ ├── Api.ts
│ │ ├── Filer.d.ts
│ │ ├── FilerWP.d.ts
│ │ ├── Node/
│ │ │ └── runtimes/
│ │ │ ├── Webcontainers/
│ │ │ │ ├── nodeFSIntegration.ts
│ │ │ │ ├── nodeProc.ts
│ │ │ │ └── util/
│ │ │ │ └── getFileTree.ts
│ │ │ ├── shims/
│ │ │ │ ├── apis/
│ │ │ │ │ ├── child_process.ts
│ │ │ │ │ └── http.ts
│ │ │ │ ├── path-remapper.ts
│ │ │ │ └── util/
│ │ │ │ └── Stub.ts
│ │ │ └── util/
│ │ │ └── getFileTree.ts
│ │ ├── Parser.ts
│ │ ├── Store.ts
│ │ ├── apis/
│ │ │ ├── Crypto.ts
│ │ │ ├── Date.ts
│ │ │ ├── Dialogs.tsx
│ │ │ ├── Mediaisland.tsx
│ │ │ ├── Notifications.tsx
│ │ │ ├── Registry.ts
│ │ │ ├── SysSearch.ts
│ │ │ ├── System.ts
│ │ │ ├── Time.ts
│ │ │ ├── Xor.ts
│ │ │ └── utils/
│ │ │ ├── WindowPerformanceMonitor.ts
│ │ │ ├── file.ts
│ │ │ ├── startupHandler.ts
│ │ │ ├── tauth.ts
│ │ │ └── winPreview.ts
│ │ ├── gui/
│ │ │ ├── AppIsland.tsx
│ │ │ ├── Battery.tsx
│ │ │ ├── ContextMenu.tsx
│ │ │ ├── Desktop.tsx
│ │ │ ├── Dock.tsx
│ │ │ ├── FPSCounter.tsx
│ │ │ ├── NotificationCenter.tsx
│ │ │ ├── Power.tsx
│ │ │ ├── Search.tsx
│ │ │ ├── Shell.tsx
│ │ │ ├── Weather.tsx
│ │ │ ├── Wifi.tsx
│ │ │ ├── WinSwitcher.tsx
│ │ │ ├── WindowArea.tsx
│ │ │ └── styles/
│ │ │ ├── boot.css
│ │ │ ├── contextmenu.css
│ │ │ ├── cropper.css
│ │ │ ├── dialog.css
│ │ │ ├── dock.css
│ │ │ ├── dropdown.css
│ │ │ ├── liquor.css
│ │ │ ├── loader.css
│ │ │ ├── login.css
│ │ │ ├── mediaisland.css
│ │ │ ├── notification.css
│ │ │ ├── oobe.css
│ │ │ ├── shell.css
│ │ │ ├── wifi.css
│ │ │ └── win_switcher.css
│ │ ├── lemonade/
│ │ │ ├── app.ts
│ │ │ ├── clipboard.ts
│ │ │ ├── dialog.ts
│ │ │ ├── index.ts
│ │ │ ├── ipc.ts
│ │ │ ├── net.ts
│ │ │ ├── notification.ts
│ │ │ ├── screen.ts
│ │ │ ├── shell.ts
│ │ │ └── window.ts
│ │ ├── libcurl.d.ts
│ │ ├── liquor/
│ │ │ ├── AliceWM.ts
│ │ │ ├── Anura.ts
│ │ │ ├── Boot.ts
│ │ │ ├── api/
│ │ │ │ ├── ContextMenuAPI.tsx
│ │ │ │ ├── Dialog.ts
│ │ │ │ ├── FilerFS.ts
│ │ │ │ ├── Files.ts
│ │ │ │ ├── Filesystem.ts
│ │ │ │ ├── LocalFS.ts
│ │ │ │ ├── Networking.ts
│ │ │ │ ├── Notification.ts
│ │ │ │ ├── NotificationService.tsx
│ │ │ │ ├── Platform.ts
│ │ │ │ ├── Process.ts
│ │ │ │ ├── Settings.ts
│ │ │ │ ├── Systray.ts
│ │ │ │ ├── TFS.ts
│ │ │ │ ├── Theme.ts
│ │ │ │ ├── UI.ts
│ │ │ │ ├── URIHandler.ts
│ │ │ │ └── WmApi.tsx
│ │ │ ├── bcc.ts
│ │ │ ├── coreapps/
│ │ │ │ ├── App.tsx
│ │ │ │ └── ExternalApp.tsx
│ │ │ ├── libs/
│ │ │ │ ├── ExternalLib.tsx
│ │ │ │ └── lib.tsx
│ │ │ └── types/
│ │ │ ├── Filer.d.ts
│ │ │ └── V86Starter.d.ts
│ │ ├── types.ts
│ │ └── vFS.ts
│ └── vite-env.d.ts
├── tsconfig.app.json
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
insert_final_newline = true
================================================
FILE: .gitattributes
================================================
public/apps/terminal.tapp/scripts/** linguist-vendored
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: NovaAppsInc
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: snoot2204
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
================================================
FILE: .github/ISSUE_TEMPLATE/bug-report.md
================================================
---
name: Bug report with a given code from the OS
about: This should be used when the OS gives a Error Code and/or Error Message
title: ''
labels: bug
assignees: NovaAppsInc, Notplayingallday383
---
**Error Code and/or Error Message**
Provide the Error Code and/or Error Message provided from the OS; it they required field should be copied to you clipboard if consented to it.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**OS Version and platform info**
- Site you used [e.g. someterbiumrepl.repl.co]
- Version (The latest version currently is v2.0, If in the About app it doesn't say v2.0 then consider updating your instance.)
- Browser [e.g. Chrome, Firefox]
**Additional context**
Add any other context about the problem here.
================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: false
default: bug-report.md
================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
- package-ecosystem: "pnpm"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
================================================
FILE: .github/workflows/biome.yml
================================================
name: "Biome Code Quality Assurance"
on:
push:
pull_request:
workflow_dispatch:
jobs:
quality:
runs-on: "ubuntu-latest"
permissions:
contents: "write"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: "Setup Biome"
uses: "biomejs/setup-biome@v2"
with:
version: "latest"
- name: "Format with Biome"
run: "biome format --write ."
- name: "Check for Git changes"
id: "verify-changed-files"
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: "Commit Git changes"
if: steps.verify-changed-files.outputs.changed == 'true' && github.event_name == 'push'
run: |
git -c user.name="github-actions[bot]" -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \
commit -am "chore: auto-fix formatting and linting with Biome"
- name: "Push Git changes"
if: steps.verify-changed-files.outputs.changed == 'true' && github.event_name == 'push'
uses: "ad-m/github-push-action@master"
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
branch: "${{ github.ref_name }}"
- name: "Fail if formatting was needed"
if: steps.verify-changed-files.outputs.changed == 'true'
run: |
echo "Biome formatting changes were needed. Please pull the latest changes."
exit 1
================================================
FILE: .github/workflows/test.yml
================================================
name: Build Check
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: pnpm i
- name: Build TB React
run: pnpm run build-static
================================================
FILE: .github/workflows/upk-build.yml
================================================
name: Build UPK for Anura
on:
push:
branches:
- main
paths:
- 'package.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install dependencies
run: pnpm i
- name: Install BareMux v1
run: pnpm i @mercuryworkshop/bare-mux@^1.1.4
- name: Download upk-tools.zip
run: curl -L -o upk-tools.zip https://cdn.terbiumon.top/upk-tools.zip
- name: Extract upk-tools
run: unzip -o upk-tools.zip
- name: replace BCC Client v2 with v1
run: mv bx1bcc.ts src/sys/liquor/bcc.ts
- name: Replace BareMux in codebase
run: bash replace.sh
- name: Build TB React
run: pnpm run build-static
- name: "Run UPK Builder"
run: python3 upk.py
- name: Upload to latest release
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const fs = require('fs');
const latestRelease = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
await github.rest.repos.uploadReleaseAsset({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: latestRelease.data.id,
name: 'terbium-upk.app.zip',
data: fs.readFileSync('terbium-upk.app.zip')
});
================================================
FILE: .gitignore
================================================
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
vite.config.ts.timestamp-*.mjs
node_modules
dist
dist-ssr
*.local
*.tsbuildinfo
.npmrc
package-lock.json
# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
# Other
src/apps.json
src/hash.json
src/installer.json
================================================
FILE: .node_version
================================================
22.19.0
================================================
FILE: .vscode/extensions.json
================================================
{
"recommendations": ["biomejs.biome", "prosser.json-schema-2020-validation", "andersonbruceb.json-in-html"]
}
================================================
FILE: .vscode/settings.json
================================================
{
"editor.formatOnSave": false
}
================================================
FILE: .zed/settings.json
================================================
{
"format_on_save": "on",
"disable_ai": true,
"languages": {
"HTML": {
"formatter": {
"language_server": {
"name": "biome"
}
}
},
"JavaScript": {
"formatter": { "language_server": { "name": "biome" } },
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}
},
"TypeScript": {
"formatter": { "language_server": { "name": "biome" } },
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}
},
"TSX": {
"formatter": { "language_server": { "name": "biome" } },
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}
}
},
"lsp": {
"biome": {
"settings": {
"require_config_file": true
}
}
}
}
================================================
FILE: LICENSE.txt
================================================
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2026 TerbiumOS
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
================================================
FILE: README.md
================================================
<center>
<img src="card.png" style="display: block; margin-left: auto; margin-right: auto; width: 300px;"></img>
<h1 style="color: #32ae62;">Terbium v2</h1>
</center>
## <span style="color: #32ae62;">Some of the technologies used</span>
- [Vite](https://vite.dev)
- [React](https://react.dev)
- [TailwindCSS](https://tailwindcss.com)
- [TFS](https://github.com/terbiumos/tfs)
- [Fflate](https://github.com/101arrowz/fflate/)
- [BareMux](https://github.com/mercuryworkshop/bare-mux)
## <span style="color: #32ae62;">Features</span>
- All new UI
- A Dynamic Shell
- Better Window Manager
- A desktop
- App Store
- A brand new terminal
- Anura Compatability layer (Liquor)
- Electron Compatability layer (Lemonade)
- And lots more!
## <span style="color: #32ae62;">Setup</span>
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> Terbium **WILL NOT** build on versions of Node older than version 20.
To get started it's pretty easy, you need either npm, or pnpm, which can be installed by running: `npm i -g pnpm` and then you just need to the run following command:
```bash
pnpm i && pnpm start # Replace pnpm with npm if your not going to use pnpm
```
and visit [http://localhost:3000](http://localhost:3000) you should be good to go!
If you are developing/modifying terbium you can just run `pnpm run dev`, **DO NOT** use the development server for Production use. Instead, just run `pnpm start`. For any further backend configuration visit the `.env` file to configure the backend a bit.
> <span style="font-family: none; color: #ffd900;">⚠</span> <span style="color: #ffd900;">Warning</span><br>
> If you are going to static host Terbium, you will need to change the wisp server, and you would need to follow those steps. Refer to this [document](./docs/static-hosting.md) for more information.
### <span style="color: #32ae62;">Documentation</span>
If you wish to develop or just learn more about Terbium's components and stuff, feel free to read our [Documentation](/docs/README.md)
If you're looking to see what Anura APIs and features are supported in terbium, refer to: [here](/docs/anura-compat.md), if you're looking to see what Electron API's are supported in terbium refer to: [here](/docs/lemonade-compat.md)
### <span style="color: #32ae62;">Contributors</span>
- [SNOOT](https://github.com/NovaAppsInc)
- [XSTARS](https://github.com/Notplayingallday383)
- [illusionTBA](https://github.com/illusionTBA)
- [Rafflesia](https://github.com/ProgrammerIn-wonderland)
- [Riftriot](https://github.com/Riftriot)
- [ironswordX](https://github.com/ironswordX)
- [Ryan](https://github.com/MovByte)
Licensed under the [**AGPL3 License**](https://www.gnu.org/licenses/agpl-3.0.en.html)
================================================
FILE: SECURITY.md
================================================
# Security Policy
## Supported Terbium Versions
| Version | Supported |
| ------- | --------- |
| 2.0.0-beta | ❌ |
| 2.0.0-beta2 | ❌ |
| 2.0.0-beta3 | ❌ |
| 2.1.x | ❌ |
| 2.2.x | ✅ |
| 2.3.x | ✅ |
If your version of terbium is unsupported, please do not make a GitHub Issue about it. Please update to a newer version if your running a unsupported version.
### Supported Liquor Versions
| Version | Supported |
| ------- | --------- |
| 2.1.0 (stable) | ❌ |
| 2.1.1 (stable) | ✅ |
### Supported Lemonade Versions
| Version | Supported |
| ------- | --------- |
| 1.0.0 (stable) | ❌ |
| 1.1.0 (stable) | ✅ |
## Reporting a Vulnerability
In the case that you somehow manage to find a vulnerability in Terbium please contact security@terbiumon.top
REMEMBER: Please DO NOT report vulnerabilities in the repository Issues tab.
## What You Should Report
If you are wondering what counts as a vulnerability, heres a good list:
- XSS in the URL your using
- The ability to execute malicious code on the server hosting Terbium
- Any kind of leak of data/information in the code
================================================
FILE: biome.json
================================================
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"includes": [
"**",
"!**/node_modules/**",
"!**/dist/**",
"!**/public/assets/**",
"!**/public/apps/*.lib/**",
"!**/public/apps/nfsadapter/**",
"!**/public/lib/**",
"!**/.vscode/**",
"!**/.zed/**",
"!**/docs/**",
"!**/public/apps/*.app/**",
"!**/public/apps/files.tapp/webdav.js",
"!**/public/apps/terminal.tapp/ssh-util.js"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 320
},
"css": {
"parser": {
"tailwindDirectives": true
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"arrowParentheses": "asNeeded",
"lineWidth": 320
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
================================================
FILE: bootstrap.ts
================================================
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
import consola from "consola";
import { TServer } from "./server";
import { version } from "./package.json";
import open from "open";
import { exec } from "child_process";
import AdmZip from "adm-zip";
consola.info("Bootstrapping TerbiumOS [v" + version + "]");
export default async function Bootstrap() {
const args = process.argv;
const nodever = fs.readFileSync(".node_version", "utf-8").trim();
if (process.version < nodever) {
consola.warn("Your version of Node.JS is not supported. Please update node to use Terbium. (Current version: " + process.version + ", Required version: " + nodever + " or higher)");
}
await BuildApps();
await CreateAppsPaths();
if (!fs.existsSync(".env")) await CreateEnv();
await Updater();
consola.success("TerbiumOS bootstrapped successfully");
if (!(args.includes("--apps-only") || args.includes("--dev"))) {
TServer();
}
}
export async function BuildApps() {
consola.start("Building apps...");
const __dirname = path.dirname(fileURLToPath(import.meta.url)),
baseDir = path.join(__dirname, "./public/apps"),
outputDir = path.join(__dirname, "./src"),
outputJsonPath = path.join(outputDir, "apps.json"),
result: { name: string; config: any }[] = [];
function scanDirectory(dir: string) {
fs.readdirSync(dir, { withFileTypes: true }).forEach(i => {
if (i.isDirectory()) {
const indexFilePath = path.join(dir, i.name, "index.json");
if (fs.existsSync(indexFilePath)) {
try {
const data = JSON.parse(fs.readFileSync(indexFilePath, "utf-8"));
if (data.name && data.config) {
if (data.name !== "Browser") {
data.config.src = data.config.src.replace(`/apps/${data.name.toLowerCase()}.tapp/`, `/fs/apps/system/${data.name.toLowerCase()}.tapp/`);
data.config.icon = data.config.icon.replace(`/apps/${data.name.toLowerCase()}.tapp/`, `/fs/apps/system/${data.name.toLowerCase()}.tapp/`);
}
result.push({ name: data.name, config: data.config });
}
} catch (t) {
consola.error(`Error parsing ${indexFilePath}:`, t instanceof Error ? t.message : String(t));
}
}
} else if (i.name.endsWith(".tapp.zip")) {
const zipPath = path.join(dir, i.name);
try {
const zip = new AdmZip(zipPath);
const configEntry = zip.getEntry(".tbconfig");
if (configEntry) {
const configData = JSON.parse(configEntry.getData().toString("utf-8"));
if (configData.title && configData.wmArgs) {
result.push({ name: configData.title, config: configData.wmArgs });
}
}
} catch (t) {
consola.error(`Error reading ${zipPath}:`, t instanceof Error ? t.message : String(t));
}
}
});
}
scanDirectory(baseDir),
fs.existsSync(path.join(__dirname, "./build")) || fs.mkdirSync(path.join(__dirname, "./build")),
fs.existsSync(outputJsonPath) || fs.writeFileSync(outputJsonPath, "[]", "utf-8"),
fs.writeFileSync(outputJsonPath, JSON.stringify(result, null, 2), "utf-8"),
consola.success(`Aggregated JSON saved to ${outputJsonPath}`);
exec("git rev-parse HEAD", (error, stdout, stderr) => {
if (error || stderr) {
consola.error("Failed to get git commit hash");
fs.writeFileSync(path.join(__dirname, "./src/hash.json"), JSON.stringify({ hash: "2b14b5", repository: "terbiumos/web-v2" }, null, 2), "utf-8");
} else {
const hash = stdout.trim();
exec("git remote get-url origin", (remoteError, remoteStdout, remoteStderr) => {
const repoUrl = remoteStdout.trim();
const data = { hash, repository: repoUrl.replace("https://github.com/", "") };
if (remoteError || remoteStderr) {
consola.error("Failed to get repository URL");
fs.writeFileSync(path.join(__dirname, "./src/hash.json"), JSON.stringify({ hash: null, repository: null }, null, 2), "utf-8");
} else {
fs.writeFileSync(path.join(__dirname, "./src/hash.json"), JSON.stringify(data, null, 2), "utf-8");
consola.success(`Git hash and repo saved to ${path.join(__dirname, "./src/hash.json")}`);
}
});
}
});
return true;
}
export async function CreateAppsPaths() {
interface Apps {
[appName: string]: (string | { [path: string]: string[] })[];
}
consola.start("Creating apps paths...");
const __dirname = path.dirname(fileURLToPath(import.meta.url)),
baseDir = path.join(__dirname, "./public/apps"),
outputDir = path.join(__dirname, "./src"),
outputJsonPath = path.join(outputDir, "installer.json"),
output: string[] = [];
function collectPaths(dir: string, base: string = dir): void {
const files: fs.Dirent[] = fs.readdirSync(dir, { withFileTypes: true });
files.forEach((file: fs.Dirent) => {
const fullPath = path.join(dir, file.name);
const relativePath = path.relative(baseDir, fullPath).replace(/\\/g, "/");
if (file.isDirectory()) {
output.push(relativePath + "/");
collectPaths(fullPath, base);
} else {
output.push(relativePath);
}
});
}
const accmp: string[] = [];
fs.readdirSync(baseDir, { withFileTypes: true }).forEach(app => {
if (app.isDirectory() && app.name.toLocaleLowerCase().endsWith(".tapp")) {
const appPath = path.join(baseDir, app.name);
if (app.name.toLowerCase() === "settings.tapp") {
collectPaths(appPath);
if (fs.existsSync(path.join(appPath, "accounts"))) {
collectPaths(path.join(appPath, "accounts"));
accmp.push(...output.splice(output.indexOf("settings.tapp/accounts/")));
}
} else {
collectPaths(appPath);
}
} else if (app.name.toLowerCase().endsWith(".tapp.zip")) {
accmp.push(app.name);
}
});
output.push(...accmp);
fs.writeFileSync(outputJsonPath, JSON.stringify(output, null, 2), "utf-8");
consola.success(`Installer JSON saved to ${outputJsonPath}`);
return true;
}
export async function CreateEnv() {
const port =
(await consola.prompt("Enter a port for the server to run on (3000): ", {
type: "text",
default: "3000",
placeholder: "3000",
cancel: "default",
})) || 3000;
const masqr = await consola.prompt("Enable Masqr? (no): ", {
type: "text",
default: "false",
placeholder: "no",
cancel: "default",
});
if (masqr === "no" || masqr === "false" || masqr === "n") {
fs.writeFileSync(".env", `MASQR=${false}\nPORT=${port}`);
} else {
const licenseServer = (await consola.prompt("Enter the masqr license server URL: ")) || "";
const whitelist = (await consola.prompt("Enter a comma separated array of domains to whitelist (Ex: ['https://balls.com', 'https://tomp.app']): ")) || [];
fs.writeFileSync(".env", `MASQR=${true}\nPORT=${port}\nLICENSE_SERVER_URL=${licenseServer}\nWHITELISTED_DOMAINS=${whitelist}\n`);
}
consola.success("Environment file created");
return true;
}
export async function Updater() {
consola.start("Checking for updates...");
exec("git remote get-url origin", async (remoteError, remoteStdout, remoteStderr) => {
if (remoteError || remoteStderr) {
consola.error("Failed to get local repository URL");
return;
}
const repo = `https://raw.githubusercontent.com/${remoteStdout.trim().replace("https://github.com/", "").replace(".git", "")}/refs/heads/main/package.json` || "https://raw.githubusercontent.com/TerbiumOS/web-v2/refs/heads/main/package.json";
try {
const response = await fetch(repo);
const ver = (await response.json()).version;
if (ver > version) {
const res = await consola.prompt(`A new version of Terbium is available. Would you like to download it? (New Version: ${ver}, Current: ${version})`, {
type: "confirm",
});
if (res) {
consola.info("Downloading new version...");
exec("git pull", async (remoteError, remoteStdout, remoteStderr) => {
if (remoteError || remoteStderr) {
consola.error("Failed to update Terbium, Please update manually");
open(`${remoteStdout.trim()}/releases/latest`);
return;
}
consola.success("Terbium updated successfully");
await BuildApps();
await CreateAppsPaths();
});
return;
} else return;
} else {
consola.success("Terbium is up to date");
}
} catch (e) {
consola.error(`Failed to check for updates, ${e}`);
}
});
return true;
}
Bootstrap();
================================================
FILE: docs/README.md
================================================
# <span style="color: #32ae62;">Table of Contents</span>
Welcome to Terbium v2's Documentation. Here is a simple table of contents to help you get where you need to get
- [How to Contribute to Terbium v2](./contributions.md)
- [Creating Terminal Commands](./creating-terminal-commands.md)
- [Creating Apps](./creating-apps.md)
- [Backend Configuration Options](./backend-configuration.md)
- [Anura Compatability & API Support](./anura-compat.md)
- [Electron Compatability & API Support](./lemonade-compat.md)
- [Introduction to Lemonade](./lemonade.md)
- [Terbium API Documentation](./apis/readme.md)
- [Static Hosting](./static-hosting.md)
- [UPK Builds](./upk-build.md)
If you cannot find what your looking for feel free to ask in the Terbium Discord or in the TN Discord
================================================
FILE: docs/anura-compat.md
================================================
# <span style="color: #32ae62;">Liquor Compatability</span>
Liquor is our Compatability layer for Anura. We named it liquor because its similar to how wine works.
If your wondering what version of anura liquor is based off of, its based of Anura v2.1 "Starboy", as of now Liquor mostly targets almost all of Anura v2.1's APIs
## <span style="color: #32ae62;">API Support</span>
Below we have a small chart with a list of the current supported apis in Liquor
| API | Support | Notes |
| :--: | :---: | :---: |
| anura.fs | Full | - |
| anura.registerExternalApp | Full | - |
| anura.registerExternalLib | Full | - |
| anura.notifacation | Full | - |
| anura.x86 | **NO** | Not Implemented |
| anura.filePicker | Full | - |
| anura.net | Full | - |
| anura.URIHandler | Partial | Working but not perfect |
| anura.install | Full | - |
| anura.wm | Full | - |
| anura.config | Full | - |
| anura.files | Full | - |
| anura.dialog | Full | - |
| anura.localfs | Full | - |
| anura.platform | Full | - |
| anura.process | Partial | Stubbed to work, Not Fully implemented |
| anura.ui | Partial | Stubbed to work, Not fully implemented |
| anura.filesystem | Full | - |
| anura.libs | Full | - |
| anura.version | Full | - |
| anura.systray | Partial | - |
| anura.python | **NO** | Not Implemented (Deprecated) |
**⚠️ NOTE** Anura Plugins are **NOT** supported on liquor due to service worker infrastructure differences
Liquor also bundles a few things that will be enabled. They are listed below
| App Name | Version | Last Updated |
| :--: | :---: | :---: |
| fsapp.app | 2.0-tb | 3/21/2025 |
| libfilepicker.lib | 2.0-tb | 11/14/2024 |
| libfileview.lib | 2.0-tb | 11/14/2024 |
| libpersist.lib | 2.0 | 8/17/2024 |
| anura.bcc | BX2-tb/BX1 (UPK only) | 11/25/2024 |
================================================
FILE: docs/apis/readme.md
================================================
# <span style="color: #32ae62;">API Docs</span>
**Last Updated**: v2.3.0 - 03/31/2026
So you're looking to use Terbium APIs. Well, you're in the right place! Terbium has a decent amount of components which I will break down below. The pages will include a description of the functions and code examples.
## Table of Contents
- [Battery](#battery)
- [Launcher](#launcher)
- [Theme](#theme)
- [Desktop](#desktop)
- [Window](#window)
- [Context Menu](#contextmenu)
- [User](#user)
- [Proxy](#proxy)
- [Notification](#notification)
- [Dialog](#dialog)
- [Node](#node)
- [Platform](#platform)
- [Process](#process)
- [Screen](#screen)
- [VFS](#vfs)
- [System](#system)
- [Terbium Cloud (tauth)](#terbium-cloud-tauth)
- [Mediaplayer](#mediaplayer)
- [File](#file)
- [Additional Libraries](#additional-libraries)
### Battery
- **showPercentage**
- Description: Shows the battery percentage in the system tray.
- Returns: `Promise<string>` - Returns "Success" if successful.
- Example:
```javascript
await tb.battery.showPercentage();
console.log("Battery percentage is now visible");
```
- **hidePercentage**
- Description: Hides the battery percentage in the system tray.
- Returns: `Promise<string>` - Returns "Success" if successful.
- Example:
```javascript
await tb.battery.hidePercentage();
console.log("Battery percentage is now hidden");
```
- **canUse**
- Description: Checks if the Battery Manager API is available on the current browser.
- Returns: `Promise<boolean>` - `true` if available, `false` otherwise.
- Example:
```javascript
const canUseBattery = await tb.battery.canUse();
if (canUseBattery) {
console.log("Battery API is supported");
}
```
### Launcher
- **addApp**
- Description: Adds an app to the app launcher.
- Parameters:
- `props: { name: string, icon: string, src: string, etc }`
- Returns: `Promise<boolean>`
- Example:
```javascript
const wasadded = await tb.launcher.addApp({
name: "Example App",
icon: "/home/icon.png",
});
console.log(wasadded)
```
- **removeApp**
- Description: Removes an app from the app launcher.
- Parameters:
- `name: string` - The app name to remove.
- Returns: `Promise<boolean>`
- Example:
```js
const removed = await tb.launcher.removeApp("exampleapp");
if (removed) {
console.log("App removed successfully");
} else {
console.log("App not found");
}
```
### Theme [⚠ Deprecated]
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> The Theme API is deprecated and remains as a stub for legacy applications
- **get**
- Description: Gets the current theme settings.
- Returns: `Promise<string>` - Theme value.
- Example:
```javascript
const themeSettings = await tb.theme.get();
console.log("Current Theme Settings:", themeSettings);
```
- **set**
- Description: Sets the theme settings.
- Parameters:
- `data: string` - New theme value.
- Returns: `Promise<boolean>` - `true` if successful.
- Example:
```javascript
await tb.theme.set("#ffffff");
console.log("Theme set successfully");
```
### Desktop
- **preferences**
- **setTheme**
- Description: Sets the theme color.
- Parameters:
- `color: string` - The new theme color.
- Example:
```javascript
await tb.desktop.preferences.setTheme("#ff0000");
console.log("Theme color set successfully");
```
- **theme**
- Description: Retrieves the current theme color.
- Returns: `Promise<string>` - The current theme color.
- Example:
```javascript
const currentTheme = await tb.desktop.preferences.theme();
console.log("Current theme color:", currentTheme);
```
- **setAccent**
- Description: Sets the accent color.
- Parameters:
- `color: string` - The new accent color.
- Example:
```javascript
await tb.desktop.preferences.setAccent("#00ff00");
console.log("Accent color set successfully");
```
- **getAccent**
- Description: Gets the accent color.
- Example:
```javascript
await tb.desktop.preferences.getAccent();
```
- **wallpaper**
- **set**
- Description: Sets the wallpaper path.
- Parameters:
- `path: string` - The file path of the wallpaper image.
- Example:
```javascript
await tb.desktop.wallpaper.set("/path/to/wallpaper.jpg");
console.log("Wallpaper set successfully");
```
- **contain**
- Description: Sets the wallpaper mode to "contain".
- Example:
```javascript
await tb.desktop.wallpaper.contain();
console.log("Wallpaper mode set to contain");
```
- **stretch**
- Description: Sets the wallpaper mode to "stretch".
- Example:
```javascript
await tb.desktop.wallpaper.stretch();
console.log("Wallpaper mode set to stretch");
```
- **cover**
- Description: Sets the wallpaper mode to "cover".
- Example:
```javascript
await tb.desktop.wallpaper.cover();
console.log("Wallpaper mode set to cover");
```
- **fillMode**
- Description: Retrieves the current wallpaper mode.
- Returns: `Promise<string>` - The current wallpaper mode.
- Example:
```javascript
const currentMode = await tb.desktop.wallpaper.fillMode();
console.log("Current wallpaper mode:", currentMode);
```
- **dock**
- **pin**
- Description: Pins a new application to the dock.
- Parameters:
- `app: any` - The application to pin.
- Returns: `Promise<string>` - Returns 'Success' if the app was pinned successfully.
- Example:
```javascript
await tb.desktop.dock.pin({ title: "MyApp", path: "/path/to/myapp" });
console.log("Application pinned successfully");
```
- **unpin**
- Description: Unpins an application from the dock.
- Parameters:
- `app: string` - The title of the application to unpin.
- Returns: `Promise<string>` - Returns 'Success' if the app was unpinned successfully.
- Example:
```javascript
await tb.desktop.dock.unpin("MyApp");
console.log("Application unpinned successfully");
```
### Window
- **create**
- Description: Creates a new window using window configuration.
- Parameters:
- `props: any` - Window configuration object.
- Example:
```javascript
tb.window.create({
title: "My Window",
src: "/fs/apps/system/about.tapp/index.html"
});
```
- **close**
- Description: closes the active window.
- Example:
```javascript
tb.window.close()
```
- **minimize**
- Description: minimizes the active window.
- Example:
```javascript
tb.window.minimize()
```
- **maximize**
- Description: maximize the active window.
- Example:
```javascript
tb.window.maximize()
```
- **reload**
- Description: refreshes the iframe (if present) in the active window.
- Example:
```javascript
tb.window.reload()
```
- **changeSrc**
- Description: Changes the src of the iframe (if present) in the active window.
- Example:
```js
tb.window.changeSrc("/fs/apps/system/about.tapp/index.html")
```
- **getId**
- Description: Gets the ID of the currently active window.
- Returns: `number` - Window ID.
- Example:
```javascript
const windowId = tb.window.getId();
console.log("Current Window ID:", windowId);
```
- **content**
- **get**
- Description: Gets the current HTML Content from inside the window
- Returns: `Promise<HTMLDivElement>` - The HTML Content inside the window.
- Example:
```javascript
await tb.window.content.get()
```
- **set**
- Description: Sets the current HTML Content from inside the window
- Example:
```javascript
tb.window.content.set(`<div>hi (put any HTML Content here)</div>`)
```
- **titlebar**
- **setColor**
- Description: Sets the fore-color of all the window's titlebars
- Example:
```javascript
tb.window.titlebar.setColor('#fff')
```
- **setText**
- Description: Sets the current window's title
- Example:
```javascript
tb.window.titlebar.setText('TB Docs')
```
- **setBackgroundColor**
- Description: Sets the background-color of all the window's titlebars
- Example:
```javascript
tb.window.titlebar.setBackgroundColor('#000')
```
- **island**
- **addControl**
- Description: Adds a control to the TB App Island
- Example:
```javascript
tb.window.island.addControl({
text: "<titleofcontrol>",
appname: "<appname>",
id: "<giverandomname>",
click: () => {
// Execute code here for when clicked
}
})
```
- **removeControl**
- Description: Removes a control from the TB App Island
- Parameters:
- `control_id: string` - The ID used when adding the control.
- Example:
```javascript
tb.window.island.removeControl("<idfromthatyouusedforaddingit>")
```
### ContextMenu
- **create**
- Description: Creates a Context Menu at your desired location
- Parameters:
- `props: { x: number, y: number, options: Array, titlebar?: boolean, iframe?: boolean }` - Context menu properties.
- Example:
```javascript
tb.contextmenu.create({
x: 0,
y: 0,
options: [
{ text: "Option 1", click: () => console.log("Option 1 clicked") },
{ text: "Option 2", click: () => console.log("Option 2 clicked") },
]
});
```
- **close**
- Description: Closes the currently open context menu.
- Example:
```javascript
tb.contextmenu.close();
```
### User
- **username**
- Description: Fetches the username of the current user.
- Returns: `Promise<string>` - User's username.
- Example:
```javascript
const username = await tb.user.username();
console.log("username:", username);
```
- **pfp**
- Description: Fetches the profile picture of the current user.
- Returns: `Promise<string>` - URL/Base64 Encoding of the profile picture.
- Example:
```javascript
const pfp = await tb.user.pfp();
console.log("PFP:", pfp);
```
### Proxy
- **get**
- Description: Gets the current proxy settings.
- Returns: `Promise<string>` - Proxy settings.
- Example:
```javascript
const proxySettings = await tb.proxy.get();
console.log("Using:", proxySettings);
```
- **set**
- Description: Selects the proxy.
- Parameters:
- `proxy: string` - New proxy settings.
- Returns: `Promise<boolean>` - `true` if successful.
- Example:
```javascript
await tb.proxy.set("Ultraviolet");
console.log("Proxy set successfully");
```
- **updateSWs**
- Description: Updates the Transport and Wisp Server of the proxy.
- Example:
```javascript
await tb.proxy.updateSWs();
console.log("Service Workers updated successfully");
```
- **encode**
- Description: Encodes a URL in the desired format (Only avalible in XOR Currently)
- Parameters:
- `url: string` - The url to encode
- `encoder: string` - The encoder (Only avalible in XOR currently)
- Returns: `Promise<string>`
- Example:
```javascript
await tb.proxy.encode('https://google.com', 'XOR')
```
- **decode**
- Description: Decodes a URL in the desired format (Only avalible in XOR Currently)
- Parameters:
- `url: string` - The url to decode
- `decoder: string` - The decoder (Only avalible in XOR currently)
- Returns: `Promise<string>`
- Example:
```javascript
await tb.proxy.decode('https://google.com', 'XOR')
```
### Notification
- **Message [🧪Experimental]**
- Description: The notification that has an input field.
- Parameters:
- `props: { message: string, application: string, iconSrc: string, onOk?: Function, txt?: string, time?: number }` - Notification properties.
- Example:
```javascript
tb.notification.Message({
message: "test",
application: "System",
iconSrc: "/assets/img/logo.png",
txt: "fieldtext"
});
```
- **Toast**
- Description: A simple notification
- Parameters:
- `props: { message: string, application: string, iconSrc: string, time?: number }` - Notification properties.
- Example:
```javascript
tb.notification.Toast({
message: "test",
application: "System",
iconSrc: "/assets/img/logo.png",
time: 10000
});
```
- **Installing**
- Description: An installing/progress style notification. If you pass a task Promise (or async function), the notification stays visible until the task finishes, then it automatically shows a completion toast (or failure toast if it throws).
- Parameters:
- `props: { message: string, application: string, iconSrc: string, time?: number }` - Installing notification properties.
- `task?: Promise<T> | (() => Promise<T>)` - Optional async task to track.
- `doneToast?: Partial<NotificationProps>` - Optional completion toast overrides.
- `failToast?: Partial<NotificationProps>` - Optional failure toast overrides.
- Returns: `Promise<T> | void` - Returns the task result when a task is passed.
- Example:
```javascript
await tb.notification.Installing(
{
message: "Extracting archive...",
application: "Files",
iconSrc: "/assets/img/logo.png"
},
async () => await unzip("pathtoalargezipfolder.zip", "/home/user/documents"),
{ message: "Archive extracted successfully" },
{ message: "Archive extraction failed" }
);
```
### Dialog
- **Alert**
- Description: The Alert dialog
- Parameters:
- `props: { title: string, message: string }` - Alert properties.
- Example:
```javascript
tb.dialog.Alert({ title: "Alert", message: "This is an alert message." });
```
- **Message**
- Description: Displays a message dialog with specified properties.
- Parameters:
- `props: { title: string, defaultValue?: string, onOk?: Function, onCancel?: Function }` - Message dialog properties.
- Example:
```javascript
await tb.dialog.Message({
title: "Example Message",
defaultValue: "Default value",
onOk: (value) => console.log("OK clicked with value:", value),
onCancel: () => console.log("Cancel clicked")
});
```
- **Select**
- Description: Lets you select a value from a dropdown
- Parameters:
- `props: { title: string, message?: string, options: Array<{text: string, value: any}>, onOk?: Function, onCancel?: Function }` - Select dialog properties.
- Example:
```javascript
await tb.dialog.Select({
title: "Enter the permission level you wish to set",
options: [{
text: "Admin",
value: "admin"
}, {
text: "User",
value: "user"
}, {
text: "Group",
value: "group"
}, {
text: "Public",
value: "public"
}],
onOk: async (perm) => {
console.log(perm);
}
});
```
- **Auth**
- Description: TB Permissions Authentication Dialog
- Parameters:
- `props: { title: string, defaultUsername?: string, onOk?: Function, onCancel?: Function }` - Auth dialog properties.
- `options?: { sudo: boolean }` - Additional options to indicate if this is for sudo authentication.
- Example:
```javascript
await tb.dialog.Auth({
title: "Example Message",
defaultUsername: "Default value",
onOk: (user, pass) => console.log("User and unhashed pass", user, pass),
onCancel: () => console.log("Cancel clicked")
}, { sudo: false });
```
- **Permissions**
- Description: Yes or No Dialog
- Parameters:
- `props: { title: string, message: string, onOk?: Function, onCancel?: Function }` - Permission dialog properties.
- Example:
```javascript
await tb.dialog.Permissions({
title: "Example Message",
message: "Do you want to continue?",
onOk: () => console.log("OK clicked"),
onCancel: () => console.log("Cancel clicked")
});
```
- **FileBrowser**
- Description: Simple FileBrowser Dialog
- Parameters:
- `props: { title: string, filter?: string, onOk?: Function, onCancel?: Function, local?: boolean }` - FileBrowser dialog properties.
- Example:
```javascript
await tb.dialog.FileBrowser({
title: "Select a file",
filter: ".txt",
onOk: (value) => console.log("File selected:", value),
});
```
- **DirectoryBrowser**
- Description: Simple Directory Browser Dialog
- Parameters:
- `props: { title: string, defualtDir?: string, onOk?: Function, onCancel?: Function, local?: boolean }` - DirectoryBrowser dialog properties.
- Example:
```javascript
await tb.dialog.DirectoryBrowser({
title: "Select a directory",
defualtDir: "/home/",
onOk: (value) => console.log("Selected Dir:", value),
});
```
- **SaveFile**
- Description: Simple File Saving Dialog
- Parameters:
- `props: { title: string, defualtDir?: string, filename?: string, onOk?: Function, onCancel?: Function, local?: boolean }` - SaveFile dialog properties.
- Example:
```javascript
await tb.dialog.SaveFile({
title: "Example Title",
defualtDir: "/home/",
filename: "tbdocs.md",
onOk: (value) => console.log("Saved file to:", value)
});
```
- **Cropper**
- Description: Image Cropper
- Parameters:
- `props: { title: string, img: string, onOk?: Function }` - Cropper dialog properties. **Image should be formatted in Base64**
- Returns: `Promise<string>` - Resolves image when the dialog is closed
- Example:
```javascript
await tb.dialog.Cropper({
title: "Example Title",
img: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
onOk: (img) => console.log("new image", img)
});
```
- **WebAuth**
- Description: Simple Authentication Dialog (for use in Web Authentication)
- Parameters:
- `props: { title: string, message?: string, defaultUsername?: string, onOk?: Function, onCancel?: Function }` - Auth dialog properties.
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> Because by default the password is not hashed, please encrypt the password if you plan to store it using `tb.crypto`
- Example:
```javascript
await tb.dialog.WebAuth({
title: "Example Message",
defaultUsername: "Default value",
onOk: (user, pass) => console.log("User and unhashed pass", user, pass),
onCancel: () => console.log("Cancel clicked")
});
```
### Node
- **webContainer**
- Description: The current webContainer instance for the Node Subsystem. Refer to [WebContainers API](https://webcontainers.io/api) for documentation.
- Returns: `WebContainer` instance
- **servers**
- Description: A Map of ports running on the Node Subsystem
- Returns: `Map<number, string>` - Map of port numbers to server URLs
- **isReady**
- Description: Returns whether or not the WebContainer is booted.
- Returns: `boolean` - `true` if ready, `false` otherwise
- **start**
- Description: Boots the WebContainer
- Example:
```javascript
tb.node.start();
console.log("WebContainer started");
```
- **stop**
- Description: Stops the WebContainer
- Returns: `boolean` - `true` if stopped successfully
- Example:
```javascript
try {
const stopped = tb.node.stop();
console.log("WebContainer stopped");
} catch (err) {
console.error("No WebContainer is running");
}
```
### Platform
- **getPlatform**
- Description: Gets the current platform the user is using
- Returns: `Promise<string>` - Platform ("mobile" or "desktop")
- Example:
```javascript
const platform = await tb.platform.getPlatform();
console.log(`You're on: ${platform}`);
```
### Process
- **kill**
- Description: Kill a process. The argument may be a PID (number or numeric string) or any object that resolves to a process when compared by PID.
- Parameters:
- `config: string | number | any` - The PID of the process to terminate (or an object containing a `pid` property).
- Example:
```javascript
// simple kill by PID
tb.process.kill(69420);
// you can also look up a process then kill it
const procs = tb.process.list();
const first = Object.values(procs)[0];
tb.process.kill(first.pid);
```
- **list**
- Description: Return the current process table.
- Returns: `Record<number, ProcInf>` - a map of PID to process information (see `ProcessInfo` type in `types.ts` for fields such as name, pid, parent, children, status, memory, cpu, etc.)
- Example:
```javascript
const processes = tb.process.list();
console.log(processes);
```
- **procs**
- Description: Public property exposing the live process record. It is equivalent to calling `tb.process.list()` but can be modified directly when spawning new entries.
- Example:
```javascript
console.log(tb.process.procs); // same as tb.process.list()
```
- **create**
- Description: Creates a new process entry. This is primarily used by the runtime when spawning windows or background tasks, but you can call it manually for testing.
- Parameters:
- `type: "window" | "runtime"` – the kind of process to create.
- `config: any` – configuration object describing the process (window size, title, etc.).
- Example:
```javascript
tb.process.create("runtime", { name: "my-task" });
```
- **parse**
- **build [🧪Experimental]**
- Description: Building Process of Custom TML Formatted Apps
- Parameters:
- `src: string` - Source string to build
- Returns: `void`
- Example:
```javascript
tb.process.parse.build("<tml>...</tml>");
```
### Screen
- **captureScreen**
- Description: Creates a screenshot of your screen and saves it
- Returns: `Promise<void>`
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> The screen capture API is used with the alt+shift keybind. Be aware of that to prevent any conflictions with your application if you use a similar keybind.
- Example:
```javascript
await tb.screen.captureScreen();
```
### VFS
- **servers**
- Description: A Map of the current users webdav servers
- Returns: `Object` - VFSOperations
- Example:
```js
for (const instance of tb.vfs.servers) {
const davInfo = instance[1];
// Use dav instance info here including a already established connection if one is availible
}
```
- **currentServer**
- Description: The current WebDav server to use for operations
- Returns: `Object` - VFSOperations
- Example:
```js
const client = tb.vfs.currentServer.connection.client;
// use webdav methods here or use VFS Operations as a drop in for working between TFS and VFS
```
- **create**
- Description: (async) Returns a new instance of VFS, You will probably not use this function unless your directly modifying terbiums codebase
- Returns: `Promise<VFS>`
- Example:
```js
const vfs = await vfs.create();
```
- **mount**
- Description: Mounts the inputed server from vfs.servers
- Parameters:
- `serverName: string` - the name of the server to mount
- Example:
```js
await tb.vfs.mount("servername");
```
- **mountAll**
- Description: Mounts all servers avalible in vfs.servers
- Example:
```js
await tb.vfs.mountAll()
```
- **addServer**
- Description: Adds a server to the users WebDav server list
- Parameters:
- `Server: ServerInfo[]` - The server information to put in
- Example:
```js
await tb.vfs.addServer({
name: "any name you want for the drive name";
url: "https://somedavendpoint.com/";
username: "IloveTerbiumDev";
password: "XSTARSwasHere";
})
```
- **removeServer**
- Description: Removes a server from the users WebDav server list
- Parameters:
- `ServerName: string` - The name of the server to remove
- Example:
```js
await tb.vfs.removeServer("webdav1")
```
- **setServer**
- Description: Sets `currentServer` to the requested server
- Parameters:
- `ServerName: string` - The server name to set the server too **NOTE** Server MUST be mounted to perform this operation.
- Example:
```js
await tb.vfs.setServer("webdav1");
// tb.vfs.currentServer is now the instance of VFSOperations that webdav1 uses
```
- **whatFS**
- Description: Returns Either TFS or VFSOperations as the suitable File System for you to use for said drive
- Parameters:
- `Path: string` - The path to check
- Example:
```js
const fs = await tb.vfs.whatFS("/mnt/dav");
// FS is VFSOperations
const fs = await tb.vfs.whatFS("/home/XSTARS/");
// FS is TFS.fs
```
- **VFSOperations**
> **NOTE:** This is **NOT** an API. This is an instance representing File System actions, WebDav client information, etc., and is referenced by several APIs above.
#### Properties
- **client**: `WebDavClient`
The WebDav Client Interface.
#### Methods
- **readdir(path, callback)**
- Reads the contents of a directory at the given path.
- **Parameters:**
- `path: string` — Directory path.
- `callback: (err: any, files?: any[]) => void` — Called with error or array of file names.
- **readFile(path, callback)**
- Reads the contents of a file as text.
- **Parameters:**
- `path: string` — File path.
- `callback: (err: any, data?: string) => void` — Called with error or file data.
- **writeFile(path, data, callback)**
- Writes data to a file, replacing its contents.
- **Parameters:**
- `path: string` — File path.
- `data: string | ArrayBuffer` — Data to write.
- `callback: (err: any) => void` — Called with error if any.
- **delete(path, callback)**
- Deletes a file at the specified path.
- **Parameters:**
- `path: string` — File path.
- `callback: (err: any) => void` — Called with error if any.
- **rename(oldPath, newPath, callback)**
- Renames or moves a file from `oldPath` to `newPath`.
- **Parameters:**
- `oldPath: string` — Original file path.
- `newPath: string` — New file path.
- `callback: (err: any) => void` — Called with error if any.
- **createDirectory(path, callback)**
- Creates a new directory at the specified path.
- **Parameters:**
- `path: string` — Directory path.
- `callback: (err: any) => void` — Called with error if any.
- **exists(path, callback)**
- Checks if a file or directory exists at the given path.
- **Parameters:**
- `path: string` — Path to check.
- `callback: (err: any, exists?: boolean) => void` — Called with error or existence boolean.
- **stat(path, callback)**
- Retrieves metadata/statistics about a file or directory.
- **Parameters:**
- `path: string` — Path to check.
- `callback: (err: any, stat?: any) => void` — Called with error or stat object.
- **copy(source, destination, callback)**
- Copies a file from source to destination.
- **Parameters:**
- `source: string` — Source file path.
- `destination: string` — Destination file path.
- `callback: (err: any) => void` — Called with error if any.
- **unlink(path, callback)**
- Deletes a file at the specified path (alias for `delete`).
- **Parameters:**
- `path: string` — File path.
- `callback: (err: any) => void` — Called with error if any.
- **move(source, destination, callback)**
- Moves a file from source to destination (alias for `rename`).
- **Parameters:**
- `source: string` — Source file path.
- `destination: string` — Destination file path.
- `callback: (err: any) => void` — Called with error if any.
- **appendFile(path, data, callback)**
- Appends data to the end of a file.
- **Parameters:**
- `path: string` — File path.
- `data: string | ArrayBuffer` — Data to append.
- `callback: (err: any) => void` — Called with error if any.
All of these functions also have a Promises variant that has the exact same syntax except it does not have a callback instead you use it asynchronously
### System
- **version**
- Description: Lists the version of Terbium
- Returns: `string` - Terbium version.
- Example:
```javascript
const terbiumVersion = tb.system.version();
console.log("Terbium v:", terbiumVersion);
```
- **instance**
- **repo**
- Description: Lists the repository information
- Returns: `string` - Repository information.
- Example:
```javascript
const repo = tb.system.instance.repo;
console.log("The repo is: " + repo);
```
- **hash**
- Description: Lists the git commit hash
- Returns: `string` - Git hash.
- Example:
```javascript
const hash = tb.system.instance.hash;
console.log("The git hash is: " + hash);
```
- **openApp**
- Description: Opens an installed application
- Parameters:
- `pkg: string` - Package ID of the app.
- Example:
```javascript
await tb.system.openApp("browser");
```
- **download**
- Description: Download a file from the internet to the File System
- Parameters:
- `url: string` - URL of the file to download.
- `location: string` - Destination path in the file system.
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.download('https://example.com/example.txt', '/home/exampledownload.txt');
```
- **exportfs**
- Description: Exports the file system as a zip file
- Parameters:
- `startPath?: string` - Starting path (default: "/")
- `filename?: string` - Output filename (default: "tbfs.backup.zip")
- Returns: `Promise<string>` - URL of the created zip file
- Example:
```javascript
await tb.system.exportfs("/home/", "backup.zip");
```
- **users**
- **list**
- Description: Lists all users in the system
- Returns: `Promise<string[]>` - Array of usernames
- Example:
```javascript
const users = await tb.system.users.list();
console.log(users);
```
- **add**
- Description: Adds a user to the system
- Parameters:
- `user: { username: string, password: string, pfp: string, perm: string, securityQuestion?: { question: string, answer: string } }` - User information
- Returns: `Promise<boolean>` - `true` if successful
- Example:
```javascript
await tb.system.users.add({
username: 'XSTARS',
password: 'terbium1234',
pfp: 'data:image/png;base64,...',
perm: 'Admin'
});
```
- **remove**
- Description: Removes a user from the system
- Parameters:
- `id: string` - Username to remove
- Returns: `Promise<boolean>` - `true` if successful
- Example:
```javascript
await tb.system.users.remove('XSTARS');
```
- **update**
- Description: Updates the data on a user
- Parameters:
- `user: { username: string, password?: string, pfp?: string, perm?: string, securityQuestion?: object }` - User information to update
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.users.update({
username: 'XSTARS',
password: 'iloveterbium',
pfp: 'data:image/png;base64,...',
perm: 'Public'
});
```
- **renameUser**
- Description: Renames a user in the system
- Parameters:
- `olduser: string` - Current username
- `newuser: string` - New username
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.users.renameUser('oldname', 'newname');
```
- **startup**
- **addProc**
- Description: Adds a new process to the startup list. This will register a package or command to run on system or user startup.
- Parameters:
- `pkgorname: string` - The package name or unique identifier for the startup entry.
- `target: "System" | "User"` - Whether the startup entry is registered system-wide or for the current user.
- `cmd?: string` - Optional command to execute for the entry (if different from the package default).
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.startup.addProc('my-service', 'System', 'alert("alert evaled")');
```
- **removeProc**
- Description: Removes a previously registered startup process.
- Parameters:
- `pkgorname: string` - The package name or identifier of the entry to remove.
- `target: "System" | "User"` - The scope from which to remove the entry.
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.startup.removeProc('my-service', 'System');
```
- **enable**
- Description: Enables a registered startup process so it will run at boot for the specified scope.
- Parameters:
- `pkgorname: string` - The package name or identifier of the entry to enable.
- `target: "System" | "User"` - The scope in which to enable the entry.
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.startup.enable('my-service', 'User');
```
- **disable**
- Description: Disables a registered startup process so it will not run at boot.
- Parameters:
- `pkgorname: string` - The package name or identifier of the entry to disable.
- `target: "System" | "User"` - The scope in which to disable the entry.
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.startup.disable('my-service', 'User');
```
- **list**
- Description: Lists all configured startup entries.
- Returns: `Promise<object[]>` - An array of startup entries (each entry contains details such as name, target, command, enabled state).
- Example:
```javascript
const procs = await tb.system.startup.list();
console.log(procs);
```
- **bootmenu**
- **addEntry**
- Description: Adds a boot entry into the Terbium Boot Menu
- Parameters:
- `name: string` - The name to display in the boot menu
- `file: string` - The file to boot from (file path)
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.bootmenu.addEntry('Legacy TB', '/legacy-tb/index.html');
```
- **removeEntry**
- Description: Removes a boot entry from the Terbium Boot Menu
- Parameters:
- `name: string` - The name of the entry to remove
- Returns: `Promise<void>`
- Example:
```javascript
await tb.system.bootmenu.removeEntry('Legacy TB');
```
### Terbium Cloud (tauth)
- **client**
- Description: The authentication client instance for Terbium Cloud services
- Returns: `AuthClient` - Authentication client object
- **signIn**
- Description: Sign in to Terbium Cloud Account
- Returns: `Promise<any>` - Sign-in response with user data
- Example:
```javascript
try {
const result = await tb.tauth.signIn();
console.log("Signed in:", result.data.user);
} catch (err) {
console.error("Sign-in cancelled or failed:", err);
}
```
- **signOut**
- Description: Sign out from Terbium Cloud Account
- Returns: `Promise<void>`
- Example:
```javascript
await tb.tauth.signOut();
console.log("Signed out successfully");
```
- **isTACC**
- Description: Checks if the current user (or specified user) is a Terbium Cloud Account
- Parameters:
- `username?: string` - Username to check (defaults to current user)
- Returns: `Promise<boolean>` - `true` if user has TACC, `false` otherwise
- Example:
```javascript
const hasTACC = await tb.tauth.isTACC();
if (hasTACC) {
console.log("User has a Terbium Cloud Account");
}
```
- **updateInfo**
- Description: Updates Terbium Cloud Account information
- Parameters:
- `user: Partial<User>` - User information to update (can include username, pfp, email, password, etc.)
- Returns: `Promise<void>`
- Example:
```javascript
await tb.tauth.updateInfo({
username: "newusername",
pfp: "data:image/png;base64,..."
});
```
- **reauth**
- Description: Logs back into Terbium Cloud
- Returns: `Promise<void>`
- Example:
```javascript
await tb.tauth.reauth();
```
- **getInfo**
- Description: Gets Terbium Cloud Account information
- Parameters:
- `username?: string` - Username to get info for (defaults to current user)
- Returns: `Promise<User | null>` - User account information or null if not found
- Example:
```javascript
const info = await tb.tauth.getInfo();
if (info) {
console.log("Account info:", info);
}
```
- **sync**
- **retreive**
- Description: Retrieves synced data from Terbium Cloud (settings, WebDAV servers, etc.)
- Returns: `Promise<void>`
- Example:
```javascript
await tb.tauth.sync.retreive();
console.log("Settings synced from cloud");
```
- **upload**
- Description: Uploads local settings and data to Terbium Cloud
- Returns: `Promise<void>`
- Example:
```javascript
await tb.tauth.sync.upload();
console.log("Settings uploaded to cloud");
```
- **isSyncing**
- Description: Indicates whether a sync operation is currently in progress
- Returns: `boolean` - `true` if syncing, `false` otherwise
- Example:
```javascript
if (tb.tauth.sync.isSyncing) {
console.log("Sync in progress...");
}
```
### Mediaplayer
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> Make sure that the endtime for the music and video island is formatted in seconds and not milliseconds or minutes, that applies to the time parameter (start time) as well.
- **music**
- Description: Activates the Music optimized Media Island
- Parameters:
- `props: { artist: string, track_name: string, album?: string, time?: number, background: string, endtime: number, onSeek?: void, onPausePlay: void, onNext?: void; onBack?: void }` - Music player properties.
- Example:
```javascript
tb.mediaplayer.music({
track_name: "Starboy",
artist: "The Weeknd",
endtime: 231,
background: "https://is1-ssl.mzstatic.com/image/thumb/Music126/v4/02/17/ce/0217ce34-c2b9-3d3d-1dec-586db3948753/23UMGIM22526.rgb.jpg/1200x1200bf-60.jpg"
});
```
- **video**
- Description: Activates the Video optimized Media Island
- Parameters:
- `props: { creator: string, video_name: string, time?: number, background: string, endtime: number, onSeek?: void, onPausePlay: void, onNext?: void; onBack?: void }` - Video player properties.
- Example:
```javascript
tb.mediaplayer.video({
video_name: "The school smp one year later...",
creator: "Playingallday383",
endtime: 1273,
background: "https://i.ytimg.com/vi/kiKmSq4gxNU/hqdefault.jpg"
});
```
- **hide**
- Description: Hides the media island.
- Example:
```javascript
tb.mediaplayer.hide();
```
- **pauseplay**
- Description: Pauses or plays the content connected to the media island
- Example:
```javascript
tb.mediaplayer.pauseplay();
```
- **isExisting**
- Description: Tells you if the media island is already present or not.
- Returns: `Promise<boolean>` - `true` if media island exists, `false` otherwise
- Example:
```javascript
const exists = await tb.mediaplayer.isExisting();
if (exists) {
console.log('A media island is already there');
}
```
### File
- **handler**
- **openFile**
- Description: Opens a file with the associated app based on file type.
- Parameters:
- `path: string` - Path of the file.
- `type: string` - Type of the file (e.g., "text", "image", "video", "audio", "pdf", "webpage").
- Returns: `Promise<void>`
- Example:
```javascript
await tb.file.handler.openFile("/home/example.txt", "text");
```
- **addHandler**
- Description: Adds a handler for a specific file extension
- Parameters:
- `app: string` - App name to handle the file type
- `ext: string` - File extension
- Returns: `Promise<boolean>` - Returns `true` if succeeded
- Example:
```javascript
await tb.file.handler.addHandler("ruffle", "swf");
```
- **removeHandler**
- Description: Removes a handler for a specific file extension
- Parameters:
- `ext: string` - File extension
- Returns: `Promise<boolean>` - Returns `true` if succeeded
- Example:
```javascript
await tb.file.handler.removeHandler("swf");
```
- **icons**
- **get**
- Description: Gets icon path for a file extension.
- Parameters:
- `ext: string` - File extension.
- Returns: `Promise<string>` - Icon path.
- Example:
```javascript
const icon = await tb.file.icons.get("png");
console.log(icon);
```
- **set**
- Description: Sets icon path for a file extension.
- Parameters:
- `ext: string` - File extension.
- `iconPath: string` - Path to icon.
- Returns: `Promise<boolean>`
- Example:
```javascript
await tb.file.icons.set("log", "/assets/img/file-log.png");
```
- **remove**
- Description: Removes custom icon mapping for a file extension.
- Parameters:
- `ext: string` - File extension.
- Returns: `Promise<boolean>`
- Example:
```javascript
await tb.file.icons.remove("log");
```
### Additional Libraries
- **[libcurl](https://www.npmjs.com/package/libcurl.js)**
- Description: The libcurl networking API, used in Anura.net, TB Apps and tb.system.download
- **[fflate](https://www.npmjs.com/package/fflate)**
- Description: ZIP compression/decompression tool for Anura File Manager and TB Files App
- **fs**
- Description: File system API (TFS) for reading/writing files
- **crypto**
- Description: Password encryption tool
- Parameters:
- `pass: string` - Password to encrypt
- `file?: string` - (optional) File to save the password to
- Returns: `Promise<string>` - Encrypted password or "Complete" if saved to file
- **vfs**
- Description: Virtual File System for WebDAV servers and remote storage
- **buffer**
- Description: Buffer utility (from Filer) for working with binary data
- **registry**
- Description: System registry for storing and retrieving system-wide configuration
- **sh**
- Description: Shell interface for file system operations
- **liquor (Anura)**
- Description: Anura subsystem stub, provides compatibility with Anura applications
- **lemonade (Electron)**
- Description: Electron API compatibility layer for desktop-like features
Have fun developing for Terbium!
================================================
FILE: docs/backend-configuration.md
================================================
# <span style="color: #32ae62;">Backend Configuration Options</span>
Terbium's backend is pretty cool and is configurable with the .env file in the root of this directory, alternatively during the setup if your .env file does not exist it will walk you through setting it up.
Now with this being said theres a couple of things that could be confusing, so heres a rundown of the configurations:
- <span style="color: #32ae62;">MASQR</span>: This enables [MASQR](https://github.com/titaniumnetwork-dev/masqr-project) (A Anti Link Leaking System)
- <span style="color: #32ae62;">License Server Url</span>: This is another MASQR Configuration that is the License Server Url where MASQR communicated and validates keys with. If you dont have masqr enabled you do not need to change it.
- <span style="color: #32ae62;">Whitelisted Domains</span>: This is another MASQR Configuration that is the domains MASQR will not apply to.
Also in the backend, is [WispJS](https://github.com/MercuryWorkshop/wisp-client-js/tree/rewrite) pointing to /wisp/, please note that by default on all terbium instances the DNS Servers 1.1.1.3 and 1.0.0.3.
================================================
FILE: docs/contributions.md
================================================
# <span style="color: #32ae62;">How to Contribute to Terbium v2</span>
Table of Contents
- [Understanding the File Structure](#understanding-the-file-structure)
- [Learning What should and shouldn't be touched](#learning-what-should-and-shouldnt-be-touched)
## <a name="understanding-the-file-structure" style="color: #32ae62;">Understanding the File Structure</a>
Terbium v2 for the most part is written in [React](https://react.dev). If you haven't already make sure you have all the dependencies installed which can be done via `pnpm i` (or the package manager of your choice).
Terbium has 3 Folders that you should pay attention to and that are referenced throughout Terbium's Code.
- <span style="color: #32ae62;">src</span>: The location of the webOS's frontend code & apis Such as the `login`, `desktop`, `gui components` etc
- <span style="color: #32ae62;">sys</span>: The location of the APIs and GUI components/styles
- <span style="color: #32ae62;">gui</span>: The location of GUI Components
- <span style="color: #32ae62;">styles</span>: Stylesheets for all the components
- <span style="color: #32ae62;">liquor</span>: The location of all liquor related components and APIs
- <span style="color: #32ae62;">apis</span>: The location of the API's code
- <span style="color: #32ae62;">public</span>: The static folder for normal html, js, css components such as Default Applications, Libraries, and Anura Applications & Service Workers
## <a name="learning-what-should-and-shouldnt-be-touched" style="color: #32ae62;">Learning What should and shouldn't be touched</a>
For the most part this is self explanatory. Unless you absolutely know what your doing **DO NOT** mess with anything in the `sys` folder or any typescript configuration files as they are system critical and will break things if you modify them without knowing what you're doing. If you do however know what you're doing and wish to expand upon the current functionality feel free to poke around in the `sys`.
Modifying apps in the `public` folder is fine and shouldn't break anything since it is not system dependent except for in the OOBE when it copies assets from there to the file system. If you wish to add Terminal Commands refer to [Creating Terminal Commands](./creating-terminal-commands.md)
================================================
FILE: docs/creating-apps.md
================================================
# <span style="color: #32ae62;">Creating new applications</span>
Table of Contents:
- [Introduction](#introduction)
- [Using TB Features](#using-tb-features)
- [Island Controls](#island-controls)
- [WM Controls](#wm-controls)
- [Generating Manifests](#generating-manifests)
- [Adding your application to the app launcher](#adding-your-application-to-the-app-launcher)
- [Creating and Submiting your Application to the app store repo](#creating-new-applications)
- [Formatting PWAs](#formatting-pwas)
- [Formatting TAPPs](#formatting-tapps)
- [Formatting Anura Apps](#formatting-anura-apps)
## <span style="color: #32ae62;">Introduction</span>
Creating a Terbium Application is really easy to do. First you need to decide wither or not you want your app to be a PWA or a TAPP. Once you have decided you can follow the steps bellow.
## <span style="color: #32ae62;">Using TB Features</span>
Terbium v2 has Introduced many changes to the WM and General Window Functionality compared to ["Legacy Terbium"](https://github.com/terbiumos/webOS).
Some of these new API Implementations for the WM that you want to use are as follows:
```json
title: {
text: "<appname>",
},
icon: "<locationappicon>",
src: "<locationofapp>",
native: true,
size: {
width: 900,
height: 650,
},
single: false,
resizable: true,
snapable: false,
```
- <span style="color: #32ae62;">title</span>: The Title of the Application
- if you want to customize the weight follow the title example from above, if not just simply make the `title` field a string
- <span style="color: #32ae62;">icon</span>: The Applications Icon
- <span style="color: #32ae62;">src</span>: The Applications Main Page (Commonly index.html or an internet url)
- <span style="color: #32ae62">native</span>: Weither or not the application uses a custom UI or a normal ui
- <span style="color: #32ae62;">size</span>: The Size of the applications window
- <span style="color: #32ae62;">width</span>: The Width of the Application
- <span style="color: #32ae62;">height</span>: The Height of the Application
- <span style="color: #32ae62;">minWidth</span>: The Minimum Width of the Application
- <span style="color: #32ae62;">minHeight</span>: The Minimum Height of the Application
- <span style="color: #32ae62;">single</span>: Determiens if the Application allows you to open multiple windows or not
- <span style="color: #32ae62;">resizable</span>: Determines if the Application allows you to resize it
- <span style="color: #32ae62;">snapable</span>: Toggle for allowing window snapping
- <span style="color: #32ae62;">minimizable</span>: Toggle for allowing window to be minimized
- <span style="color: #32ae62;">maximizable</span>: Toggle for allowing the window to be maximized
- <span style="color: #32ae62;">closable</span>: Toggle for allowing the window to be closed
- <span style="color: #32ae62;">controls</span>: An array of which buttons are allowed to be on the window
> A few new API's to be aware of:
> - parent.window.tb.window.create({`wmargs`}): Allows you to create a Window in JS. Fill in `wmargs` with the Arguments you made above
> - parent.window.tb.file.handler.openFile(fileItem.getAttribute("path"), "<extfromextentions.json>"): Allows you to open a File in its respective app easily
> - For API's in more in debpt visit the [API Docs](./apis/readme.md)
### <a id="island-controls" style="color: #32ae52;">Island Controls</a>
The App Island allows you to have custom items in the left corner where it says the App Title.
To set it up you will be needing the app id and you will need to create a JS Script in your application to have the following JS Code:
```js
const tb = parent.window.tb
const tb_island = tb.window.island;
const tb_window = tb.window;
const tb_context_menu = tb.context_menu;
tb_island.addControl({
text: "<titleofcontrol>",
app_id: "com.tb.<appid>",
id: "<giverandomname>",
click: () => {
// Execute code here for when clicked
}
})
```
If you wish to use a context menu instead you can use this code instead
```js
const tb = parent.window.tb
const tb_island = tb.window.island;
const tb_window = tb.window;
const tb_context_menu = tb.context_menu;
const tb_dialog = tb.dialog;
tb_island.addControl({
text: "<titleofcontrol>",
app_id: "com.tb.<appid>",
id: "<giverandomname>",
click: () => {
const ctx = document.createElement("div");
ctx.classList.add("context-menu", "fade-in");
if(parent.document.querySelector(".context-menu")) {
parent.document.querySelector(".context-menu").remove();
}
ctx.id = "<controlname_action>_ctx";
ctx.style.left = `6px`;
ctx.style.top = parent.document.querySelector(".app_island").clientHeight + 12 + "px";
let isTrash = document.querySelector(".exp").getAttribute("path") === "/home/trash" ? true : false;
const options = [
{
text: "<controltitle>",
click: () => {
// Execute code here for when clicked
}
}
]
options.forEach(option => {
if(option === null) return;
const btn = document.createElement("button");
btn.classList.add("context-menu-button");
btn.innerText = option.text;
btn.onclick = option.click;
ctx.appendChild(btn);
})
parent.document.body.appendChild(ctx);
parent.window.addEventListener("click", (e) => {
if (!e.target.classList.contains("app_control")) {
if(parent.document.querySelector(".context-menu")) {
parent.document.querySelector(".context-menu").classList.add("fade-out");
setTimeout(() => {
if(parent.document.querySelector(".context-menu"))
parent.document.querySelector(".context-menu").remove();
}, 150);
}
}
});
}
})
parent.document.querySelector(`[control-id="files-et"]`).classList.add("hidden");
```
What you can implement in the click is tottally up to you and you can do things like open a new window, alert something, etc
### <a id="wm-controls" style="color: #32ae62;">WM Controls</a>
The WM Controls for the title bar are the only ones around right now.
Those can be added by adding the following to the WM args:
```json
title: {
text: "<appname>",
weight: <text weight as number>,
html: `<html here>`
},
```
## <span style="color: #32ae62;">Generating Manifests</span>
To generate a TAPP Manifest for your TAPP Package you can use the TB Dev SDK 24 App avalible in the XSTARS XTRAS Repo and either use the manifest tool in the app gui or use it via the command line with tbsdk --gen-manifest --{args}
## <span style="color: #32ae62;">Adding your Application to the App Launcher</span>
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> If you are going to submit this app to the app store ignore this step and follow the app store specific steps
Adding your Application to the app launcher is pretty easy to do. If you want it to be installed on your site itself add the entry to the array in `/src/init/index.ts` or you can do the same thing within your terbium window itself using the api `tb.launcher.addApp({propshere})` or by editing the file: `/system/var/terbium/start.json`
```json
{
title: "Calculator",
icon: "/apps/calculator.tapp/icon.svg",
src: "/apps/calculator.tapp/index.html",
snapable: false,
maximizable: false,
size: {
width: 338,
height: 556
},
},
```
Once you fill and insert that you should notice your app has appeared in your launcher!
## <span style="color: #32ae62;">Creating and Submiting your Application to the app store repo</span>
> Make sure you forked the repository: https://github.com/TerbiumOS/app-repo so you can make changes
To submit your repo follow the instructions below and make sure to follow our basic guidelines for your app to get accepted:
## <span style="color: #32ae62;">Formatting PWAs</span>
Pull Requests for apps are always viewed and heres some basic guidelines for your app to get accepted
- App is in the repo in the folder `assets/com.tb.{appname}`
- Icon should be defined in the `assets/com.tb.{appname}/icon.[ext]`
- WM Arguments and Metadata is in the `apps.json` file in this repo
- Example
```json
{
"name": "YouTube",
"icon": "https://raw.githubusercontent.com/TerbiumOS/app-repo/main/assets/com.tb.youtube/icon.png",
"description": "Share your videos with friends, family, and the world.",
"authors": ["Google"],
"pkg-name": "youtube",
"images": [
"https://raw.githubusercontent.com/TerbiumOS/app-repo/main/assets/com.tb.youtube/images/1.png"
],
"wmArgs": {
"title": {
"text": "YouTube",
"weight": 600
},
"icon": "https://raw.githubusercontent.com/TerbiumOS/app-repo/main/assets/com.tb.youtube/icon.png",
"src": "https://youtube.com",
"size": {
"width": 600,
"height": 400
},
"single": true,
"resizable": true
}
}
```
## <span style="color: #32ae62;">Formatting TAPP's</span>
- The easiest way to creat TAPP's is to download the TB Dev SDK 2025 from the XSTARZ XTRAS repo and use the feilds to generate your TAPP and Manifest.
- The app should be put into the assets folder with the naming scheme: {appname}.TAPP.zip or com.tb.{appname}.TAPP.zip
- Also you can put into the app repo manifest where you want to download the TAPP from if you want to host it somewhere else for some reason, Image assets can still be stored in a folder in the assets folder as long as it follows the naming scheme of com.tb.{appname}
- Example
```json
{
"name": "About Proxy",
"icon": "https://aboutproxy.pages.dev/aboutbrowser/darkfavi.png",
"description": "Chrome for your browser",
"images": [
"https://raw.githubusercontent.com/TerbiumOS/app-repo/main/assets/com.tb.youtube/images/1.png"
],
"authors": ["r58playz"],
"pkg-name": "aboutproxy",
"pkg-download": "https://tbapps.pages.dev/assets/aboutproxy.TAPP.zip"
},
```
## <span style="color: #32ae62;">Formatting Anura Apps</span>
- Terbium app repos also support having Anura Apps however they must be formatted like so:
- You can store the app in the assets folder as a regular zip file
- Example
```json
{
"name": "Snae Player",
"icon": "https://raw.githubusercontent.com/MercuryWorkshop/anura-repo/master/apps/anura.music/icon.png",
"description": "A music client ported to Anura",
"authors": ["Mercury Workshop"],
"pkg-name": "snaeplayer",
"anura-pkg": "https://raw.githubusercontent.com/MercuryWorkshop/anura-repo/master/apps/anura.music/app.zip"
}
```
================================================
FILE: docs/creating-terminal-commands.md
================================================
# <span style="color: #32ae62;">Creating Terminal Commands</span>
**Last Updated**: TSH-v2.3 - 02/11/2026
Welcome — creating commands for the Terbium Terminal is simple and flexible. This document is refreshed to cover the new APIs, interactive behavior (passthrough), built-in commands, and best practices.
## Where to put your command
Place your script in the Terminal app's `scripts` folder. From the root (`//`) open `fs/apps/system/terminal.tapp/scripts/` (or `fs/apps/user/<yourname>/terminal/`) and add your `.js` file.
The Terminal executes the script's code directly and expects your file to register a callable function (typical pattern: define and then call a function that accepts `args`).
## Minimal example
```js
function hello(args) {
displayOutput(`Hi, how are you ${args[0] || 'stranger'}!`);
createNewCommandInput(); // show a new prompt
}
hello(args);
```
Run: `hello Alice` → prints `Hi, how are you Alice!` and then returns a prompt.
## Script API (what your script can call)
When your script runs inside an active Terminal session, it receives the following helper functions and objects (passed as parameters):
- `args` — Array of raw arguments (strings) from the command line (e.g. for `foo a b` args = [`"a"`,`"b"`]).
- `displayOutput(message, ...styles)` — Print message to the terminal. Supports `%c` style placeholders with CSS-style strings (`'color: #ff0000'`).
- `displayError(message)` — Print an error message (red, prefixed with `ERR:`).
- `createNewCommandInput()` — Show a new prompt (call when your command is complete). Note: this is debounced and will no-op during interactive passthrough mode (see below).
- `term` — The raw xterm instance (advanced use only).
- `path` — Current working path string.
- `terbium` or `tb` — The [Terbium API](./apis/readme.md)
- `buffer` — Internal buffer object (rarely needed).
- `setTabTitle(title)` — (Available when running inside a session) Change the tab label for this session (e.g. `setTabTitle('Node: JSH')`).
- `exitPassthrough()` — (Passed to interactive command scripts) Use this to explicitly end passthrough mode when your script finishes or the spawned interactive child exits.
Important: when running scripts from outside a session (no active session), fewer helpers are available (for example `setTabTitle` may *not* be provided). Write scripts defensively and check for the existence of optional helpers if you need to support both contexts.
## Interactive / passthrough mode
Some commands (for example `node` and `nano`) are interactive shells that echo input and control terminal state. The Terminal will automatically:
- Enter **passthrough** mode when it detects common interactive commands. In passthrough mode:
- The engine stops processing typed commands itself.
- Local echo is disabled (the interactive program will echo input itself).
- `createNewCommandInput()` is intentionally ignored while passthrough is active (to avoid double prompts).
- Exit passthrough when the interactive program prints an exit message (or when your script calls `exitPassthrough()` explicitly).
If you need to spawn an interactive process from a script, call `exitPassthrough()` after the process exits so the engine will restore the prompt.
## Best practices
- Always call `createNewCommandInput()` when your command finishes to show the prompt (unless your command intentionally stays interactive).
- Avoid calling `createNewCommandInput()` multiple times in quick succession — the engine debounces prompt creation (short window) to prevent double prompts.
- Use `displayError()` for errors so output is styled consistently.
- Use `setTabTitle()` to reflect session state (e.g., `setTabTitle('Node: JSH')` while running a REPL).
- Check for optional helpers if you expect your script to run both inside and outside a session.
## Example: setting tab title and using passthrough
```js
// This example is a pattern — actual interactive processes depend on your environment
async function nodeWrapper(args) {
setTabTitle && setTabTitle('Node: JSH');
displayOutput('Starting Node.js...');
// If your script starts an interactive child, you can rely on the engine's passthrough,
// or call exitPassthrough() explicitly when the child finishes:
// (pseudo-code)
// await spawnNode(args).finally(() => exitPassthrough && exitPassthrough());
}
nodeWrapper(args);
```
## Troubleshooting
- If you see duplicated input while in a REPL, it's usually because both the engine and the program are echoing — ensure passthrough is active for interactive programs (engine handles common shells automatically).
- If the prompt appears twice, the engine now debounces `createNewCommandInput()` calls; check long-running scripts that might call it twice and avoid redundant calls.
If you'd like, I can add a small script template generator under `scripts/` to scaffold correct patterns (including usage of `setTabTitle()` and `exitPassthrough()`), and a short test harness that runs a few sample scripts to verify behavior.
Happy scripting! 🚀
================================================
FILE: docs/lemonade-compat.md
================================================
# <span style="color: #32ae62;">Lemonade Compatability</span>
Lemonade is our compatability layer for Electron, Its named Lemonade because of inspiration of how Nintendo Emulators are named.
The current specifications of Lemonade are up to date with the current version of electron (36.4.0)
## <span style="color: #32ae62;">API Support</span>
Below we have a small chart with a list of the current supported apis in Lemonaed
| API | Support | Notes |
| :--: | :---: | :---: |
| BrowserWindow | Full | Works well enough for stable use |
| Notification | Full | Works well enough for stable use |
| Net | Full | Works well enough for stable use |
| Dialog | Full | Works well enough for stable use |
More apis will be added in the future just like liquor but Lemonade currently provides drop in support for the most common Electron API's
================================================
FILE: docs/lemonade.md
================================================
# # <span style="color: #32ae62;">Introduction to Lemonade</span>
Lemonade provides an Electron-compatible API layer for web-based applications, allowing Electron apps to run in a browser environment with minimal modifications.
## Overview
Lemonade mimics Electron's API structure and provides browser-based implementations of common Electron modules. This allows developers to write code that works in both Electron and web environments.
## Supported Modules
### Core Modules
#### `app` - Application Lifecycle
- `app.getName()` / `app.setName()` - Get/set application name
- `app.getVersion()` - Get application version
- `app.getPath(name)` - Get special directories (home, appData, userData, temp, downloads, documents, desktop)
- `app.isReady()` / `app.whenReady()` - Check application ready state
- `app.quit()` / `app.exit()` - Exit application
- `app.relaunch()` - Reload the application
- `app.getLocale()` - Get user locale
#### `BrowserWindow` - Window Management
- Constructor with options (width, height, title, icon, resizable, etc.)
- `loadURL(url)` - Load a URL (with proxy support)
- `loadFile(path)` - Load a local file
- `show()` / `hide()` - Show/hide window
- `minimize()` / `maximize()` - Minimize/maximize window
- `close()` / `destroy()` - Close window
- `setTitle(title)` / `getTitle()` - Window title
- `setSize(width, height)` / `getSize()` - Window size
- `setPosition(x, y)` / `getPosition()` - Window position
- `center()` - Center window on screen
- `setFullScreen(flag)` / `isFullScreen()` - Fullscreen mode
- Event listeners: `on()`, `once()`, `removeListener()`
- Events: `close`, `closed`, `show`, `hide`, `focus`, `blur`, `maximize`, `minimize`
#### `dialog` - Native Dialogs
- `showOpenDialog(options)` - File/directory picker
- `showSaveDialog(options)` - Save file dialog
- `showMessageBox(options)` - Message box with buttons
- `showErrorBox(title, content)` - Error alert
#### `shell` - Desktop Integration
- `openExternal(url)` - Open URL in default browser
- `openPath(path)` - Open file/directory
- `showItemInFolder(path)` - Show file in folder
- `moveItemToTrash(path)` - Move to trash
- `beep()` - Play system beep sound
#### `clipboard` - Clipboard Access
- `readText()` / `writeText(text)` - Text operations
- `readHTML()` / `writeHTML(html)` - HTML operations
- `readImage()` / `writeImage(image)` - Image operations
- `clear()` - Clear clipboard
- Supports async clipboard API
#### `ipcRenderer` / `ipcMain` - Inter-Process Communication
- `send(channel, ...args)` - Send message
- `invoke(channel, ...args)` - Request/response pattern
- `on(channel, listener)` - Listen for messages
- `once(channel, listener)` - Listen once
- `removeListener(channel, listener)` - Remove listener
#### `net` - Network Requests
- `request(url, options)` - Make HTTP request
- `fetch(url, options)` - Fetch API wrapper
- `isOnline()` - Check online status
- Supports timeout and abort signals
#### `screen` - Display Information
- `getPrimaryDisplay()` - Get primary display info
- `getAllDisplays()` - Get all displays
- `getDisplayNearestPoint(point)` - Find display at point
- Display info includes: bounds, workArea, size, scaleFactor, rotation
#### `process` - Process Information & Node.js Execution
- `process.platform` - OS platform (always "linux" in WebContainer)
- `process.arch` - Architecture (x64)
- `process.versions` - Version information (Node.js 18.x)
- `process.env` - Environment variables
- `process.argv` - Command line arguments
- `process.cwd()` - Current working directory
- `process.uptime()` - Process uptime
- `process.memoryUsage()` - Memory statistics
- `process.isNodeAvailable` - Check if WebContainer Node.js is ready
- **`process.exec(command, args, options)`** - Execute Node.js command via WebContainer
- **`process.spawn(command, args, options)`** - Spawn Node.js process via WebContainer
- **`process.runScript(scriptPath, args)`** - Run a Node.js script file
- **`process.evalNode(code)`** - Evaluate JavaScript in Node.js context
- `process.kill(pid)` - Kill a process by PID
**Note:** This module integrates with Terbium's WebContainer (`tb.node`) to provide real Node.js execution instead of simulation.
#### `Notification` - System Notifications
- Constructor with options (title, subtitle, body, icon)
- Event handling with `on()` / `off()`
- `show()` / `close()` - Display notification
## Usage Examples
### Basic Window Creation
```typescript
import { BrowserWindow } from './sys/lemonade';
const win = new BrowserWindow({
width: 800,
height: 600,
title: 'My App',
resizable: true,
});
win.loadURL('https://example.com');
win.on('close', () => {
console.log('Window closing');
});
```
### Dialog Usage
```typescript
import { dialog } from './sys/lemonade';
const result = await dialog.showOpenDialog({
title: 'Select File',
properties: ['openFile'],
});
console.log('Selected:', result);
```
### IPC Communication
```typescript
import { ipcRenderer } from './sys/lemonade';
// Send message
ipcRenderer.send('message-channel', 'Hello');
// Listen for response
ipcRenderer.on('response-channel', (event, data) => {
console.log('Received:', data);
});
// Request/response pattern
const result = await ipcRenderer.invoke('get-data', params);
```
### Clipboard Operations
```typescript
import { clipboard } from './sys/lemonade';
// Write text
await clipboard.writeText('Hello World');
// Read text
const text = await clipboard.readText();
// Write HTML
await clipboard.writeHTML('<b>Bold text</b>');
```
### Application Paths
```typescript
import { app } from './sys/lemonade';
const homePath = app.getPath('home');
const appDataPath = app.getPath('appData');
const userDataPath = app.getPath('userData');
```
### Node.js Execution with WebContainer
```typescript
import { process } from './sys/lemonade';
// Check if Node.js is available
if (process.isNodeAvailable) {
// Execute a Node.js command
const exitCode = await process.exec('node', ['--version']);
// Run a script file from Terbium's filesystem
await process.runScript('/home/user/script.js', ['arg1', 'arg2']);
// Evaluate Node.js code directly
const output = await process.evalNode('console.log(process.version)');
// Spawn a long-running process
const proc = await process.spawn('node', ['server.js']);
proc.output.pipeTo(new WritableStream({
write(chunk) {
console.log(chunk);
}
}));
// Install npm packages
await process.exec('npm', ['install', 'express']);
}
```
### Shell Integration
```typescript
import { shell } from './sys/lemonade';
// Open URL
await shell.openExternal('https://example.com');
// Show file
shell.showItemInFolder('/path/to/file.txt');
// Move to trash
await shell.moveItemToTrash('/path/to/file.txt');
```
## Architecture
Lemonade wraps the underlying `window.tb` API (TerbiumOS API) and provides Electron-compatible interfaces. When an Electron method is called, Lemonade translates it to the appropriate `window.tb` call.
### Key Adapters
- **Window Management**: Maps to `window.tb.window.*`
- **File System**: Maps to `window.tb.fs.*`
- **Dialogs**: Maps to `window.tb.dialog.*`
- **Notifications**: Maps to `window.tb.notification.*`
- **Network**: Maps to `window.tb.libcurl.fetch`
- **Proxy**: Handles URL proxying via `window.tb.proxy.encode`
- **Node.js**: Uses `window.tb.node.webContainer` for real Node.js execution via WebContainer
## Limitations
Since Lemonade runs in a web environment, some Electron features have limitations:
Terbium's virtual file system
2. **Native Menus**: Not fully implemented
3. **System Tray**: Not available in web
4. **Native Notifications**: Uses Terbium's notification system
5. **Process Control**: Some methods are simulated (can't exit browser)
6. **Multiple Windows**: Limited support via Terbium's window manager
7. **Synchronous APIs**: Some sync methods are async
8. **Node.js**: Requires WebContainer to be initialized (`tb.node.isReady === true`)
7. **Synchronous APIs**: Some sync methods are async
## Future Enhancements
Potential additions:
- Menu/MenuItem support
- Tray icons (where possible)
- PowerMonitor
- Protocol handling
- Content tracing
- Crash reporter
- Native image handling
- Web contents manipulation
- Session management
- Cookies API
- Download manager
## Compatibility
Lemonade aims to maintain API compatibility with Electron 18+. Not all features are available due to browser limitations, but the API surface matches Electron where possible.
## Development
To extend Lemonade:
1. Add new module in `src/sys/lemonade/modulename.ts`
2. Export from `src/sys/lemonade/index.ts`
3. Implement Electron-compatible API
4. Map to `window.tb` equivalents
5. Document usage and limitations
================================================
FILE: docs/static-hosting.md
================================================
# <span style="color: #32ae62;">Static Hosting Terbium</span>
For this tutorial, Cloudflare pages will be used however the instructions will be similar on other static hosts.
### <span style="color: #32ae62;">Step 1.</span>
Fork this repository and connect your github account to the static host of your choise.
> <span style="font-family: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); color: #ffd900;">⚠</span> <span style="color: #ffd900;">NOTE:</span> On Cloudflare pages, Terbium is automatically configured to use Node 20. If your using a different host check with them that you are using Node 20 or later as Terbium **WILL NOT** build on older versions.
### <span style="color: #32ae62;">Step 2.</span>
Under the `build` section command put: `npm i; npm run build-static` **LEAVE THE START COMMAND BLANK IF IT EXISTS**
Then under the output directory put the folder: `dist` and click Deploy
### <span style="color: #32ae62;">Step 3. (Optional)</span>
Now that the sites deployed, you have probably noticed that the Default wisp server wont be running since your static hosting. If you wish to change this navigate to `sys/init/index.ts` scroll down to Line 41 and replace the line: `${location.protocol.replace("http", "ws")}//${location.hostname}:${location.port}/wisp/` with the wisp server of your choice as a string. If you dont want to do this you dont have to as you can change it in the OOBE.
================================================
FILE: docs/upk-build.md
================================================
# <span style="color: #32ae62;">UPK Building</span>
By default, if you fork the Terbium v2 repo on github included will be a workflow that will automatically upload the latest UPK release to either the latest github release (if applicable) or to a new github tag
However if you want to build it yourself on your local machine you can you just need the following dependencies:
- NodeJS 22 or later
- Python 3.12 or later
First, download [UPK Tools](https://cdn.terbiumon.top/upk-tools.zip) from the terbium cdn:
**⚠️ NOTE** Be sure to check the source you are downloading the UPK Tools from. If your downloading it form a source that is **NOT** hosted under `terbiumon.top` please make sure its not malicious content. TerbiumOS Developement is not responsible for any damage caused by fradulent downloads in non-official repositories
Next, extract the zip file in your terbium instance and run either upk-all.ps1 if your on windows or upk-all.sh if your on any other unix system
This file will automatically install all the needed tools and nescessities for the UPK Build and compile it to a zip file named `terbium-upk.app.zip` which you can open in any anura instance and install Terbium on it
================================================
FILE: env.d.ts
================================================
declare namespace NodeJS {
interface ProcessEnv {
port: number;
masqr: boolean;
licensingURL: string | any;
whitelistedDomains: string[];
}
}
================================================
FILE: eslint.config.js
================================================
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
export default tseslint.config(
{ ignores: ["dist", "public"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-var": "off",
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
},
);
================================================
FILE: fail.html
================================================
<!doctype html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html {
color-scheme: light dark;
}
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>
If you see this page, the nginx web server is successfully installed and
working. Further configuration is required. If you are expecting another
page, please check your network or
<a href="/" id="rcheck"><b>Refresh this page</b></a>
</p>
<p>
For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br />
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.
</p>
<p><em>Thank you for using nginx.</em></p>
<script>
if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) {
window.location.reload();
localStorage["auth"] = 1;
}
</script>
</body>
</html>
================================================
FILE: index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Terbium</title>
<link rel="manifest" href="/manifest.json" />
<meta name="title" content="Terbium" />
<meta name="description" content="The next generation of Terbium. built to last." />
<meta name="theme-color" content="#D16FFF" />
<meta property="og:image" content="/tb.svg" />
<meta name="google-adsense-account" content="ca-pub-2875368391887289" />
<script src="/tfs/tfs.js"></script>
<script>
(async () => {
const handle = await navigator.storage.getDirectory();
window.tfs = new window.tfs(handle)
if (typeof window.tb === "undefined") window.tb = {};
if (typeof window.tb.fs === "undefined" && typeof window.tb !== "undefined") {
console.log("[FS] File System Ready");
window.tb.fs = window.tfs.fs;
window.tb.buffer = window.tfs.buffer;
window.tb.sh = window.tfs.shell;
}
if (localStorage.getItem("eruda")) {
const erudaScript = document.createElement("script");
erudaScript.src = "https://cdn.jsdelivr.net/npm/eruda";
erudaScript.onload = () => {
window.eruda.init();
};
document.head.appendChild(erudaScript);
}
})();
</script>
</head>
<body>
<div id="root" class="flex flex-col h-full bg-[#0e0e0e] overflow-hidden"></div>
<script src="/scram/scramjet.all.js"></script>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/init/index.ts"></script>
<script src="assets/libs/filer.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1RW33JJQS2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1RW33JJQS2');
</script>
</body>
</html>
================================================
FILE: package.json
================================================
{
"name": "tb-v2",
"private": true,
"version": "2.3.0",
"type": "module",
"scripts": {
"start": "npm run build && tsx bootstrap.ts",
"start:nobuild": "tsx bootstrap.ts",
"build-apps-json": "tsx bootstrap.ts --apps-only",
"build-static": "touch .env && tsx bootstrap.ts --apps-only && vite build",
"dev": "tsx bootstrap.ts --dev && vite dev",
"build": "tsx bootstrap.ts --apps-only && vite build",
"lint": "eslint .",
"vite": "vite",
"preview": "vite preview",
"check": "biome check . --write",
"fmt": "biome format --write ."
},
"dependencies": {
"@heroicons/react": "^2.2.0",
"@hono/node-server": "^1.19.12",
"@mercuryworkshop/bare-mux": "^2.1.8",
"@mercuryworkshop/epoxy-transport": "^2.1.28",
"@mercuryworkshop/libcurl-transport": "^1.5.2",
"@mercuryworkshop/scramjet": "https://cdn.terbiumon.top/scramjet-v2.0-alpha.tgz",
"@mercuryworkshop/wisp-js": "^0.4.1",
"@paralleldrive/cuid2": "^3.3.0",
"@terbiumos/tfs": "1.0.22",
"@titaniumnetwork-dev/ultraviolet": "^3.2.10",
"@webcontainer/api": "^1.6.1",
"better-auth": "^1.5.6",
"compressorjs": "^1.2.1",
"cropperjs": "1.6.2",
"crypto-js": "^4.2.0",
"dotenv": "^17.3.1",
"fflate": "^0.8.2",
"hono": "^4.12.9",
"htmlparser2": "^10.1.0",
"libcurl.js": "^0.7.4",
"modern-screenshot": "^4.6.8",
"path-browserify": "^1.0.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"zustand": "5.0.12"
},
"devDependencies": {
"@biomejs/biome": "2.4.10",
"@eslint/js": "^10.0.1",
"@tailwindcss/postcss": "^4.2.2",
"@types/adm-zip": "^0.5.8",
"@types/node": "^25.3.3",
"@types/path-browserify": "^1.0.3",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react-swc": "^4.3.0",
"adm-zip": "^0.5.17",
"autoprefixer": "^10.4.27",
"consola": "^3.4.2",
"eslint": "^10.1.0",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"globals": "^17.4.0",
"open": "^11.0.0",
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"tsx": "^4.21.0",
"typescript": "^6.0.2",
"typescript-eslint": "^8.58.0",
"vite": "^8.0.3",
"vite-plugin-static-copy": "^3.4.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@prisma/engines",
"@swc/core",
"@tailwindcss/oxide",
"bufferutil",
"esbuild",
"prisma"
],
"ignoredBuiltDependencies": [
"@mercuryworkshop/scramjet"
]
},
"engines": {
"node": ">=20.19.0"
}
}
================================================
FILE: postcss.config.js
================================================
export default {
plugins: {
"@tailwindcss/postcss": {},
autoprefixer: {},
},
};
================================================
FILE: public/anura-sw.js
================================================
/* global workbox */
/** @type {import('@terbiumos/tfs').TFS} */
// was a workaround for a firefox quirk where crossOriginIsolated
// is not reported properly in a service worker, now its just assumed for
// compatibility with UV
Object.defineProperty(globalThis, "crossOriginIsolated", {
value: true,
writable: false,
});
// Not recommended but a bypass for libs that expect window to exist
self.window = self;
// Due to anura's filesystem only being available once an anura instance is running,
// we need a temporary filesystem to store files that are requested for caching.
// As the anura filesystem is a wrapper around Filer, we can use default Filer here.
importScripts("/assets/libs/filer.min.js");
importScripts("/tfs/tfs.js");
// Importing mime
importScripts("/assets/libs/mime.iife.js");
// Download handler
importScripts("/assets/libs/dl-handler.min.js");
// self.fs = new Filer.FileSystem({
// name: "anura-mainContext",
// provider: new Filer.FileSystem.providers.IndexedDB(),
// });
const filerfs = new Filer.FileSystem({
name: "anura-mainContext",
provider: new Filer.FileSystem.providers.IndexedDB(),
});
const filersh = new filerfs.Shell();
(async () => {
const handle = await navigator.storage.getDirectory();
window.tfs = new window.tfs(handle);
self.opfs = window.tfs.fs;
self.opfssh = window.tfs.sh;
})();
async function currentFs() {
// isConnected will return true if the anura instance is running, and otherwise infinitely wait.
// it will never return false, but it may hang indefinitely if the anura instance is not running.
// here, we race the isConnected promise with a timeout to prevent hanging indefinitely.
if (!self.isConnected) {
// An anura instance has not been started yet to populate the isConnected promise.
// We automatically know that the filesystem is not connected.
return {
fs: self.opfs || filerfs,
sh: self.opfssh || filersh,
};
}
const CONN_TIMEOUT = 1000;
const winner = await Promise.race([
new Promise(resolve =>
setTimeout(() => {
resolve({
fs: self.opfs || filerfs,
sh: self.opfssh || filersh,
fallback: true,
});
}, CONN_TIMEOUT),
),
self.isConnected.then(() => ({
fs: self.anurafs,
sh: self.anurash,
})),
]);
if (winner.fallback) {
console.debug("Falling back to Filer");
// unset isConnected so that we don't hold up future requests
self.isConnected = undefined;
}
return winner;
}
self.Buffer = Filer.Buffer;
importScripts("/assets/libs/comlink.min.umd.js");
importScripts("/assets/libs/idb-keyval.js");
importScripts("/assets/libs/workbox/workbox-sw.js");
workbox.setConfig({
debug: false,
modulePathPrefix: "/assets/libs/workbox/",
});
const supportedWebDAVMethods = [
"OPTIONS",
"PROPFIND",
"PROPPATCH",
"MKCOL",
"GET",
"HEAD",
"POST", // sometimes used for special operations
"PUT",
"DELETE",
"COPY",
"MOVE",
"LOCK",
"UNLOCK",
];
async function handleDavRequest({ request, url }) {
const fsCallback = (await currentFs()).fs;
const fs = fsCallback.promises;
const shell = new (await currentFs()).sh();
const method = request.method;
const path = decodeURIComponent(url.pathname.replace(/^\/dav/, "") || "/");
const getBuffer = async () => new Uint8Array(await request.arrayBuffer());
const getDestPath = () => decodeURIComponent(new URL(request.headers.get("Destination"), url).pathname.replace(/^\/dav/, ""));
try {
switch (method) {
case "OPTIONS":
return new Response(null, {
status: 204,
headers: {
Allow: "OPTIONS, PROPFIND, PROPPATCH, MKCOL, GET, HEAD, POST, PUT, DELETE, COPY, MOVE, LOCK, UNLOCK",
DAV: "1, 2",
},
});
case "PROPFIND": {
try {
const stats = await fs.stat(path);
const isDirectory = stats.type === "DIRECTORY";
const href = url.pathname;
let responses = "";
const renderEntry = async (entryPath, stat) => {
const isDir = stat.type === "DIRECTORY";
const contentLength = isDir ? "" : `<a:getcontentlength b:dt="int">${stat.size}</a:getcontentlength>`;
const contentType = isDir ? "" : `<a:getcontenttype>${mime.default.getType(entryPath) || "application/octet-stream"}</a:getcontenttype>`;
const creationDate = new Date(stat.ctime).toISOString();
const lastModified = new Date(stat.mtime).toUTCString();
const resourcetype = isDir ? "<a:collection/>" : "";
return `
<a:response>
<a:href>${entryPath}</a:href>
<a:propstat>
<a:status>HTTP/1.1 200 OK</a:status>
<a:prop>
<a:resourcetype>${resourcetype}</a:resourcetype>
${contentLength}
${contentType}
<a:creationdate>${creationDate}</a:creationdate>
<a:getlastmodified>${lastModified}</a:getlastmodified>
</a:prop>
</a:propstat>
</a:response>
`;
};
if (isDirectory) {
responses = await renderEntry(href.endsWith("/") ? href : href + "/", stats);
const files = await fs.readdir(path);
const fileResponses = await Promise.all(
files.map(async file => {
const fullPath = path.endsWith("/") ? path + file : `${path}/${file}`;
const stat = await fs.stat(fullPath);
const entryHref = `${href.endsWith("/") ? href : href + "/"}${file}`;
return renderEntry(entryHref, stat);
}),
);
responses += fileResponses.join("");
} else {
responses = await renderEntry(href, stats);
}
const xml = `
<?xml version="1.0"?>
<a:multistatus xmlns:a="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/">
${responses}
</a:multistatus>
`.trim();
return new Response(xml, {
headers: { "Content-Type": "application/xml" },
status: 207,
});
} catch (err) {
console.error(path, err);
const xml = `
<?xml version="1.0"?>
<a:multistatus xmlns:a="DAV:">
<a:response>
<a:href>${url.pathname}</a:href>
<a:status>HTTP/1.1 404 Not Found</a:status>
</a:response>
</a:multistatus>
`.trim();
return new Response(xml, {
headers: { "Content-Type": "application/xml" },
status: 207, // multi-status
});
}
}
case "PROPPATCH":
return new Response(null, { status: 207 }); // No-op
case "MKCOL":
try {
await fs.mkdir(path);
return new Response(null, { status: 201 });
} catch {
return new Response(null, { status: 405 });
}
case "GET":
case "HEAD": {
try {
const data = await fs.readFile(path, "arraybuffer");
return new Response(method === "HEAD" ? null : new Blob([data]), {
headers: {
"Content-Type": mime.default.getType(path) || "application/octet-stream",
},
status: 200,
});
} catch {
return new Response(null, { status: 404 });
}
}
case "PUT": {
const buffer = await getBuffer();
try {
console.log(buffer);
await fs.writeFile(path, Filer.Buffer.from(buffer));
return new Response(null, { status: 201 });
} catch {
return new Response(null, { status: 500 });
}
}
case "DELETE":
try {
await shell.promises.rm(path, { recursive: true });
return new Response(null, { status: 204 });
} catch {
return new Response(null, { status: 404 });
}
case "COPY": {
// This is technically invalid -- Copy should handle full folders as well but filer doesn't have a convinient way to do this :/
// take this broken solution in the interim - Rafflesia
const dest = getDestPath();
try {
await shell.promises.cpr(path, dest);
return new Response(null, { status: 201 });
} catch (e) {
console.error(e);
return new Response(null, { status: 404 });
}
}
case "MOVE": {
const dest = getDestPath();
try {
await fs.rename(path, dest);
return new Response(null, { status: 201 });
} catch {
return new Response(null, { status: 500 });
}
}
case "LOCK":
case "UNLOCK": {
return new Response(`<?xml version="1.0"?><d:prop xmlns:d="DAV:"><d:lockdiscovery/></d:prop>`, {
status: 200,
headers: {
"Content-Type": "application/xml",
"Lock-Token": `<opaquelocktoken:fake-lock-${Date.now()}>`,
},
});
}
case "POST":
return new Response("POST not implemented", { status: 204 });
default:
return new Response("Unsupported WebDAV method", {
status: 405,
});
}
} catch (err) {
return new Response(`Internal error: ${err.message}`, { status: 500 });
}
}
for (const method of supportedWebDAVMethods) {
workbox.routing.registerRoute(
/\/dav/,
async event => {
return await handleDavRequest(event);
},
method,
);
}
workbox.core.skipWaiting();
workbox.core.clientsClaim();
var cacheenabled = false;
const callbacks = {};
const filepickerCallbacks = {};
addEventListener("message", event => {
if (event.data.anura_target === "anura.x86.proxy") {
const callback = callbacks[event.data.id];
callback(event.data.value);
}
if (event.data.anura_target === "anura.cache") {
cacheenabled = event.data.value;
idbKeyval.set("cacheenabled", event.data.value);
}
if (event.data.anura_target === "anura.filepicker.result") {
const callback = filepickerCallbacks[event.data.id];
callback(event.data.value);
}
if (event.data.anura_target === "anura.comlink.init") {
self.swShared = Comlink.wrap(event.data.value);
swShared.test.then(console.log);
self.isConnected = swShared.test;
}
if (event.data.anura_target === "anura.nohost.set") {
self.anurafs = swShared.anura.fs;
self.anurash = swShared.sh;
}
});
workbox.routing.registerRoute(/\/extension\//, async ({ url }) => {
const { fs } = await currentFs();
console.debug("Caught a aboutbrowser extension request");
try {
return new Response(await fs.promises.readFile(url.pathname));
} catch (e) {
return new Response("File not found bruh", { status: 404 });
}
});
workbox.routing.registerRoute(
/\/showFilePicker/,
async ({ url }) => {
const id = crypto.randomUUID();
const clients = (await self.clients.matchAll()).filter(v => new URL(v.url).pathname === "/");
if (clients.length < 1) return new Response("no clients were available to take your request");
const client = clients[0];
const regex = url.searchParams.get("regex") || ".*";
const type = url.searchParams.get("type") || "file";
client.postMessage({
anura_target: "anura.filepicker",
regex,
id,
type,
});
const resp = await new Promise(resolve => {
filepickerCallbacks[id] = resolve;
});
return new Response(JSON.stringify(resp), {
status: resp.cancelled ? 444 : 200,
});
},
"GET",
);
async function serveFile(path, fsOverride, shOverride) {
let fs;
let sh;
if (fsOverride && shOverride) {
fs = fsOverride;
sh = shOverride;
} else {
const { fs: fs_, sh: sh_ } = await currentFs();
fs = fsOverride || fs_;
sh = shOverride || sh_;
}
if (!fs) {
// HOPEFULLY this will never happen,
// as the filesystem should always have a backup
return new Response(
JSON.stringify({
error: "No filesystem available.",
}),
{
status: 500,
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
}
try {
const stats = await fs.promises.stat(path);
if (stats.type === "DIRECTORY") {
// Can't do withFileTypes because it is unserializable
const entries = await Promise.all((await fs.promises.readdir(path)).map(async e => await fs.promises.stat(`${path}/${e}`)));
function page() {
return `<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/assets/fs.ui/fs.css">
</head>
<body>
<div class="flex flex-col pt-6 gap-2.5 px-4">
<div class="flex items-center gap-2 w-max leading-none font-bold text-2xl light:text-[#000000de]">
<h1>Index of</h1>
<div class="breadcrumbs flex gap-1"></div>
</div>
<div>
<div class="flex items-center gap-2">
<svg class="nav-back size-8 dark:text-[#ffffff88] text-[#00000088] duration-150 ${path !== "/" ? "dark:hover:text-[#ffffffde] hover:text-[#000000] cursor-(--cursor-pointer)" : "cursor-(--cursor-normal)"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-4.28 9.22a.75.75 0 0 0 0 1.06l3 3a.75.75 0 1 0 1.06-1.06l-1.72-1.72h5.69a.75.75 0 0 0 0-1.5h-5.69l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3Z" clip-rule="evenodd" />
</svg>
<svg class="nav-home size-8 dark:text-[#ffffff88] text-[#00000088] duration-150 ${path !== "/" ? "dark:hover:text-[#ffffffde] hover:text-[#000000] cursor-(--cursor-pointer)" : "cursor-(--cursor-normal)"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M11.47 3.841a.75.75 0 0 1 1.06 0l8.69 8.69a.75.75 0 1 0 1.06-1.061l-8.689-8.69a2.25 2.25 0 0 0-3.182 0l-8.69 8.69a.75.75 0 1 0 1.061 1.06l8.69-8.689Z" />
<path d="m12 5.432 8.159 8.159c.03.03.06.058.091.086v6.198c0 1.035-.84 1.875-1.875 1.875H15a.75.75 0 0 1-.75-.75v-4.5a.75.75 0 0 0-.75-.75h-3a.75.75 0 0 0-.75.75V21a.75.75 0 0 1-.75.75H5.625a1.875 1.875 0 0 1-1.875-1.875v-6.198a2.29 2.29 0 0 0 .091-.086L12 5.432Z" />
</svg>
</div>
</div>
<table class="w-max">
<thead>
<tr class="border-b dark:border-[#ffffff38] border-[#00000068]">
<th class="text-left p-1.5 pl-2.5">Name</th>
<th class="text-left p-1.5">Type</th>
<th class="text-left p-1.5">Size</th>
<th class="text-left p-1.5">Last Modified</th>
</tr>
</thead>
<tbody>
${entries
.map(
entry => `
<tr class="dark:hover:bg-[#ffffff15] hover:bg-[#00000020] duration-150 ease-in-out select-none cursor-(--cursor-pointer)" ondblclick="window.location.href='/fs${path}/${entry.name}'">
<th class="flex text-left py-1.5 pl-2 pr-25 gap-2 select-none">
${
entry.type === "DIRECTORY"
? `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6 dark:text-[#ffffff48] text-[#00000068]">
<path d="M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z" />
</svg>
`
: `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-6 dark:text-[#ffffff48] text-[#00000068]">
<path fill-rule="evenodd" d="M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625ZM7.5 15a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7.5 15Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H8.25Z" clip-rule="evenodd" />
<path d="M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z" />
</svg>
`
}
${entry.name}
</th>
<td class="pl-2 pr-3.5 select-none">${entry.type}</td>
<td class="pl-2 pr-3.5 select-none">${
entry.type === "DIRECTORY"
? "<span class='dark:text-[#ffffff50] text-[#00000070]'>-</span>"
: entry.size > 1024 * 1024 * 1024
? `${(entry.size / (1024 * 1024 * 1024)).toFixed(2)} GB`
: entry.size > 1024 * 1024
? `${(entry.size / (1024 * 1024)).toFixed(2)} MB`
: entry.size > 1024
? `${(entry.size / 1024).toFixed(2)} KB`
: `${entry.size} bytes`
}</td>
<td class="pl-2 pr-3.5 select-none">${new Date(entry.mtime).toLocaleString()}</td>
</tr>
`,
)
.join("")}
</tbody>
</table>
</div>
<script src="/assets/libs/tailwind.min.js"></script>
<script src="/assets/fs.ui/fs.js"></script>
</body>
</html>
`;
}
return new Response(page(), {
headers: {
"Content-Type": "text/html",
...corsheaders,
},
});
/* Custom Terbium way lol
return new Response(JSON.stringify(entries), {
headers: {
"Content-Type": "application/json",
...corsheaders,
},
});
*/
}
const type = mime.default.getType(path) || "application/octet-stream";
return new Response(await fs.promises.readFile(path, "arraybuffer"), {
headers: {
"Content-Type": type,
"Content-Disposition": `inline; filename="${path.split("/").pop()}"`,
...corsheaders,
},
});
} catch (e) {
return new Response(JSON.stringify({ error: e.message, code: e.code, status: 404 }), {
status: 404,
headers: {
"Content-Type": "application/json",
...corsheaders,
},
});
}
}
async function updateFile(path, data) {
const { fs, sh } = await currentFs();
switch (data.action) {
case "write":
await sh.promises.mkdirp(path.replace(/[^/]*$/g, ""));
await fs.promises.writeFile(path, data.contents);
return new Response(
JSON.stringify({
status: "ok",
}),
{
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
case "delete":
await sh.promises.rm(path, { recursive: true });
return new Response(
JSON.stringify({
status: "ok",
}),
{
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
case "touch":
await sh.promises.touch(path);
return new Response(
JSON.stringify({
status: "ok",
}),
{
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
case "mkdir":
await sh.promises.mkdirp(path);
return new Response(
JSON.stringify({
status: "ok",
}),
{
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
}
}
const fsRegex = /\/fs(\/.*)/;
const corsheaders = {
"Cross-Origin-Embedder-Policy": "require-corp",
"Access-Control-Allow-Origin": "*",
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Resource-Policy": "same-site",
};
workbox.routing.registerRoute(
fsRegex,
async ({ url }) => {
let path = url.pathname.match(fsRegex)[1];
path = decodeURI(path);
return serveFile(path);
},
"GET",
);
workbox.routing.registerRoute(
fsRegex,
async ({ url, request }) => {
let path = url.pathname.match(fsRegex)[1];
const action = request.headers.get("x-fs-action") || url.searchParams.get("action");
if (!action) {
return new Response(
JSON.stringify({
error: "No action specified",
status: 400,
}),
{
status: 400,
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
}
path = decodeURI(path);
const body = await request.arrayBuffer();
return updateFile(path, {
action,
contents: Buffer.from(body),
});
},
"POST",
);
workbox.routing.registerRoute(/^(?!.*(\/config.json|\/MILESTONE|\/x86images\/|\/service\/))/, async ({ url, request }) => {
if (cacheenabled === undefined) {
console.debug("retrieving cache value");
const result = await idbKeyval.get("cacheenabled");
if (result !== undefined || result !== null) {
cacheenabled = result;
}
}
if ((!cacheenabled && url.pathname === "/" && !navigator.onLine) || (!cacheenabled && url.pathname === "/index.html" && !navigator.onLine)) {
return new Response(offlineError(), {
status: 500,
headers: { "content-type": "text/html" },
});
}
if (!cacheenabled) {
const fetchResponse = await fetch(request);
return new Response(await fetchResponse.arrayBuffer(), {
headers: {
...Object.fromEntries(fetchResponse.headers.entries()),
...corsheaders,
},
});
return fetchResponse;
}
if (url.pathname === "/") {
url.pathname = "/index.html";
}
if (url.password) return new Response("<script>window.location.href = window.location.href</script>", { headers: { "content-type": "text/html" } });
const basepath = "/anura_files";
const path = decodeURI(url.pathname);
// Force Filer to be used in cache routes, as it does not require waiting for anura to be connected
const fs = self.opfs || filerfs;
const sh = self.opfssh || filersh;
// Terbium already has its own way for caching files to the file system so doing it again is just a waste of space
/*
const response = await serveFile(`${basepath}${path}`, fs, sh);
if (response.ok) {
return response;
} else {
*/
try {
const fetchResponse = await fetch(request);
// Promise so that we can return the response before we cache it, for faster response times
return new Promise(async resolve => {
const corsResponse = new Response(await fetchResponse.clone().arrayBuffer(), {
headers: {
...Object.fromEntries(fetchResponse.headers.entries()),
...corsheaders,
},
});
resolve(corsResponse);
/*
if (fetchResponse.ok) {
const buffer = await fetchResponse.clone().arrayBuffer();
await sh.promises.mkdirp(
`${basepath}${path.replace(/[^/]*$/g, "")}`,
);
// Explicitly use Filer's fs here, as
// Buffers lose their inheritance when passed
// to anura's fs, causing them to be treated as
// strings
await fs.promises.writeFile(
`${basepath}${path}`,
Buffer.from(buffer),
);
}*/
}).catch(e => {
console.error("I hate this bug: ", e);
});
} catch (e) {
return new Response(
JSON.stringify({
error: e.message,
status: 500,
}),
{
status: 500,
headers: {
"Content-Type": "application/json",
...corsheaders,
},
},
);
}
});
importScripts("/uv/uv.bundle.js");
importScripts("/uv/uv.config.js");
importScripts("/uv/uv.sw.js");
importScripts("/scram/scramjet.all.js");
const { ScramjetServiceWorker } = $scramjetLoadWorker();
const scramjet = new ScramjetServiceWorker();
const uv = new UVServiceWorker();
const methods = ["GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS", "PATCH"];
function sanitizeDownloadFilename(filename) {
const sanitized = String(filename || "")
.replace(/[\\/:*?"<>|]/g, "_")
.trim();
return sanitized || `download-${Date.now()}`;
}
function splitFilename(name) {
const lastDot = name.lastIndexOf(".");
if (lastDot <= 0 || lastDot === name.length - 1) {
return { base: name, ext: "" };
}
return {
base: name.slice(0, lastDot),
ext: name.slice(lastDot),
};
}
async function getUniqueDownloadPath(fsPromises, dirPath, filename) {
const { base, ext } = splitFilename(filename);
let attempt = 0;
while (true) {
const candidate = `${dirPath}/${attempt === 0 ? `${base}${ext}` : `${base} (${attempt})${ext}`}`;
try {
await fsPromises.stat(candidate);
attempt += 1;
} catch {
return candidate;
}
}
}
async function saveTO(initialFilename) {
const id = crypto.randomUUID();
const clients = (await self.clients.matchAll({ type: "window", includeUncontrolled: true })).filter(v => new URL(v.url).pathname === "/");
if (clients.length < 1) return null;
const client = clients[0];
client.postMessage({
anura_target: "anura.filepicker",
regex: sanitizeDownloadFilename(initialFilename || "download.bin"),
id,
type: "folder",
});
const resp = await new Promise(resolve => {
filepickerCallbacks[id] = resolve;
});
delete filepickerCallbacks[id];
if (!resp || resp.cancelled) return null;
const folder = Array.isArray(resp.folders) ? resp.folders[0] : null;
if (!folder || typeof folder !== "string") return null;
return folder.replace(/\/$/, "") || "/";
}
async function saveFP(response, request, proxyName) {
try {
const { fs } = await currentFs();
const downloadHelper = window.DownloadHandler;
if (!downloadHelper || !response || !request) return response;
if (response.status >= 300 && response.status < 400) return response;
if (!downloadHelper.isDownload(response.headers, request.destination || "")) return response;
const contentDisposition = response.headers.get("content-disposition");
const parsedName = downloadHelper.parseDownloadFilename(contentDisposition, request.url || response.url);
const filename = sanitizeDownloadFilename(parsedName || "download.bin");
const selectedDir = await saveTO(filename);
const path = await getUniqueDownloadPath(fs.promises, selectedDir, filename);
const buffer = await response.clone().arrayBuffer();
await fs.promises.writeFile(path, Buffer.from(buffer));
console.info(`[${proxyName}] Download saved to ${path}`);
return new Response(null, {
status: 204,
statusText: "No Content",
});
} catch (error) {
console.error(`[${proxyName}] Failed to save download`, error);
return response;
}
}
methods.forEach(method => {
workbox.routing.registerRoute(
/\/uv\/service\//,
async event => {
console.debug("Got UV req");
uv.on("request", event => {
event.data.headers["user-agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0 Safari/537.36 Terbium-Browser/2.3.0";
});
return await uv.fetch(event);
},
method,
);
});
// Route w-corp-staticblitz.com and subdomains through BareMux, so that the Node.js subsystem doesn't get blocked by filters
methods.forEach(method => {
workbox.routing.registerRoute(
({ url }) => {
return url.hostname === "w-corp-staticblitz.com" || url.hostname.endsWith(".w-corp-staticblitz.com");
},
async event => {
try {
// Clone the request
const bareRequest = new Request(event.url.href, {
method: event.request.method,
headers: event.request.headers,
body: event.request.body,
mode: event.request.mode,
credentials: event.request.credentials,
cache: event.request.cache,
redirect: event.request.redirect,
referrer: event.request.referrer,
integrity: event.request.integrity,
});
return await bareClient.fetch(bareRequest);
} catch (error) {
console.error("BareMux *.w-corp-staticblitz.com proxy fetch failed", error);
return new Response("Failed to fetch through BareMux", {
status: 500,
});
}
},
method,
);
});
scramjet.loadConfig();
methods.forEach(method => {
workbox.routing.registerRoute(
/\/service\//,
async ({ event }) => {
console.log("Got SJ req");
await scramjet.loadConfig();
if (scramjet.route(event)) {
const response = await scramjet.fetch(event);
return await saveFP(response, event.request, "Scramjet");
}
return fetch(event.request);
},
method,
);
});
// have to put this here because no cache
function offlineError() {
return `<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: "Roboto", RobotoDraft, "Droid Sans", Arial, Helvetica, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
text-align: center;
background: black;
color: white;
overflow: none;
margin: 0;
}
#wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
</style>
</head>
<body>
<div id="wrapper">
<h1>Offline Error</h1>
<p>Try refreshing the page if you are connected to the internet</p>
</div>
</body>
</html>
`;
}
async function initSw() {
for (const client of await self.clients.matchAll()) {
client.postMessage({
anura_target: "anura.sw.reinit",
});
}
}
initSw();
================================================
FILE: public/apps/about.tapp/app.css
================================================
@font-face {
font-family: Inter;
src: url(/fonts/Inter.ttf);
}
h1 {
font-family: Inter;
font-weight: 700;
}
h4 {
margin-top: 4px;
margin-bottom: 4px;
}
html,
body {
height: 100%;
width: 100%;
margin: 0;
color: #ffffff;
font-family: Inter;
position: relative;
overflow: hidden;
}
body {
display: flex;
flex-direction: column;
justify-content: start;
align-items: start;
padding: 20px;
width: calc(100% - 20px);
height: calc(100% - 14px);
padding-top: 4px;
}
.centered-image {
width: 180px;
margin-left: -34px;
margin-top: -14px;
}
a {
color: #5088ff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
================================================
FILE: public/apps/about.tapp/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Terbium</title>
<link rel="stylesheet" href="./app.css">
</head>
<body>
<img src="/assets/img/logo.png" alt="TB Logo" class="centered-image">
<h4 class="centered-text">Terbium WebOS</h4>
<h4 class="centered-text" id="version"></h4>
<h4 class="centered-text" id="liquor"></h4>
<h4 class="centered-text">Developers: SNOOT, XSTARS, IllusionTBA, Rafflesia, EndlessVortex, ironswordX</h4>
<h4 class="centered-text">© Copyright 2026 TerbiumOS</h4>
<h4 class="centered-text">Licensed under the <a href="https://www.gnu.org/licenses/agpl-3.0.en.html" target="_blank">AGPL 3.0 License</a></h4>
</body>
<script>
document.all.liquor.innerText = "Liquor Version: " + parent.anura.version.pretty
document.all.version.innerText = `Version: ${parent.tb.system.version()}`
</script>
</html>
================================================
FILE: public/apps/about.tapp/index.json
================================================
{
"name": "About",
"config": {
"title": "About",
"icon": "/fs/apps/system/about.tapp/icon.svg",
"src": "/fs/apps/system/about.tapp/index.html"
}
}
================================================
FILE: public/apps/app store.tapp/index.html
================================================
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Terbium App Store</title>
<style>
@font-face {
font-family: Inter;
src: url("/fonts/Inter.ttf");
}
html, body {
height: 100%;
}
body {
color: #fff;
font-family: Inter;
font-weight: bold;
}
::-webkit-scrollbar {
width: 8px;
height: 100%;
}
::-webkit-scrollbar-thumb {
background-color: #ffffff28;
border-radius: 8px;
}
::-webkit-scrollbar-track {
background-color: #ffffff10;
border-radius: 8px;
}
</style>
<script src="/assets/libs/tailwind.min.js"></script>
<script src="./index.js"></script>
</head>
<body>
<div class="fixed top-[5px] left-[5px] h-[calc(100vh-20px)] w-[200px] bg-[#00000022] rounded-lg flex flex-col gap-[7px] p-2">
<div class="flex flex-col h-full">
<div class="flex flex-col gap-[7px] flex-1 repo-list overflow-y-auto"></div>
<div class="repo-card flex flex-row items-center bg-[#00000032] rounded-lg h-[50px] p-1 gap-1 mt-auto" onClick="addRepo()">
<h3 class="text-white text-base font-black">Add Repo</h3>
</div>
</div>
</div>
<div class="main flex flex-col items-center absolute left-[215px] top-0 right-0 min-h-screen gap-1">
<h1 class="font-black text-3xl">Featured App of the Day</h1>
<div class="featured flex w-[97%] bg-[#00000032] rounded-[22px] p-2 items-center gap-6 relative bg-no-repeat bg-center bg-cover" style="height:175px;">
<div class="info flex flex-col justify-end text-white absolute left-6 bottom-6">
<h3 class="text-2xl font-bold mb-2">Loading...</h3>
<h4 class="text-[16px] mb-1 text-[#ffffff75]">Loading...</h4>
<h4 class="text-[16px] text-[#ffffff75]">Loading...</h4>
</div>
</div>
<div class="flex flex-row justify-center items-center w-full my-4">
<div class="app-togg bg-[#5DD88122] text-white font-black p-1 px-6 rounded-[22px] mr-2" onclick="view('apps')">Apps</div>
<div class="pwa-togg bg-[#00000022] text-white font-black p-1 px-6 rounded-[22px] ml-2" onclick="view('pwa')">PWAs</div>
</div>
<div class="apps-list flex-col all-apps grid grid-cols-4 gap-1.5 w-full h-full ml-[-10px] overflow-y-auto">
</div>
<div class="pwa-list hidden flex-col all-apps grid-cols-4 gap-1.5 w-full h-full ml-[-10px] overflow-y-auto">
</div>
</div>
<div class="app-prev hidden flex-col absolute left-[215px] top-0 right-0 h-full gap-1 overflow-y-auto">
</div>
</body>
</html>
================================================
FILE: public/apps/app store.tapp/index.js
================================================
let currRepo;
let viewType = "apps";
/**
* Loads the repos content
* @param {string} url
*/
async function loadRepo(url) {
const repo = await window.parent.tb.libcurl.fetch(url);
let data = await repo.json();
let type = "Terbium";
if (data.maintainer) {
type = "Anura";
const list = await window.parent.tb.libcurl.fetch(url.replace("manifest.json", "list.json"));
currRepo = {
name: data.name,
url: url,
};
data = await list.json();
} else if (data.title) {
type = "Xen";
} else {
currRepo = data.repo.name;
}
document.querySelector(".app-prev").classList.remove("flex");
document.querySelector(".app-prev").classList.add("hidden");
document.querySelector(".main").classList.remove("hidden");
document.querySelector(".main").classList.add("flex");
const featured = document.querySelector(".featured");
switch (type) {
case "Terbium":
const featuredList1 = data.apps;
const randomIndex1 = Math.floor(Math.random() * featuredList1.length);
data.featured = featuredList1[randomIndex1] || {};
const icn1 = await window.parent.tb.libcurl.fetch(data.featured.icon);
const blob1 = await icn1.blob();
const icnurl1 = URL.createObjectURL(blob1);
featured.classList.forEach(cls => {
if (cls.startsWith("bg-[url")) {
featured.classList.remove(cls);
}
});
featured.classList.add(`bg-[url('${icnurl1 || "/tb.svg"}')]`);
featured.onclick = () => {
loadApp(data.featured, type);
};
featured.querySelector("h3").textContent = data.featured.name;
if (data.featured.version) {
featured.querySelector("h4:nth-child(2)").textContent = `Version ${data.featured.version}`;
} else {
featured.querySelector("h4:nth-child(2)").textContent = `Progressive Web App`;
}
featured.querySelector("h4:nth-child(3)").textContent = `By ${data.featured.developer || "Unknown"}`;
const appCards1 = await Promise.all(
data.apps.map(async app => {
const icn1 = await window.parent.tb.libcurl.fetch(app.icon);
const blob1 = await icn1.blob();
const icnurl1 = URL.createObjectURL(blob1);
const displayName = app.name && app.name.length > 10 ? app.name.slice(0, 10) + "..." : app.name || "Unknown";
const cardHtml = `
<div class="app-card w-[100%] h-[105px] bg-[#00000032] rounded-[12px] flex flex-col items-center justify-center" data-app-index="${data.apps.indexOf(app)}">
<img src="${icnurl1 || "/tb.svg"}" alt="App Icon" class="w-[50px] h-[50px] rounded-[12px] mb-4 object-cover" />
<span class="text-white text-lg font-bold">${displayName}</span>
</div>
`;
return { html: cardHtml, hasWmArgs: !!app.wmArgs };
}),
);
const pwaCards = appCards1.filter(card => card.hasWmArgs).map(card => card.html);
const appCards = appCards1.filter(card => !card.hasWmArgs).map(card => card.html);
if (pwaCards.length === 0) {
pwaCards.push(`<h1 class="text-white text-xl font-bold w-full text-center">There are no PWA apps available in this repo</h1>`);
}
if (appCards.length === 0) {
appCards.push(`<h1 class="text-white text-xl font-bold w-full text-center">There are no app card apps available in this repo</h1>`);
}
document.querySelector(".pwa-list").innerHTML = pwaCards.join("");
document.querySelector(".apps-list").innerHTML = appCards.join("");
document.querySelectorAll(".app-card").forEach(card => {
card.addEventListener("click", function () {
const idx = parseInt(this.getAttribute("data-app-index"), 10);
loadApp(data.apps[idx], type);
});
});
break;
case "Anura":
const featuredList2 = data.apps;
const randomIndex2 = Math.floor(Math.random() * featuredList2.length);
data.featured = featuredList2[randomIndex2] || {};
const icn2 = await window.parent.tb.libcurl.fetch(`${url.replace("manifest.json", "")}/apps/${data.featured.package}/${data.featured.icon}`);
const blob2 = await icn2.blob();
const icnurl2 = URL.createObjectURL(blob2);
featured.classList.forEach(cls => {
if (cls.startsWith("bg-[url")) {
featured.classList.remove(cls);
}
});
featured.classList.add(`bg-[url('${icnurl2 || "/tb.svg"}')]`);
featured.onclick = () => {
loadApp(data.featured, type);
};
featured.querySelector("h3").textContent = data.featured.name;
if (data.featured.version) {
featured.querySelector("h4:nth-child(2)").textContent = `Version ${data.featured.version}`;
} else {
featured.querySelector("h4:nth-child(2)").textContent = `Progressive Web App`;
}
featured.querySelector("h4:nth-child(3)").textContent = `Anura Application`;
const appCards2 = await Promise.all(
data.apps.map(async app => {
const icn1 = await window.parent.tb.libcurl.fetch(`${url.replace("manifest.json", "")}/apps/${app.package}/${app.icon}`);
const blob1 = await icn1.blob();
const icnurl1 = URL.createObjectURL(blob1);
const displayName = app.name && app.name.length > 10 ? app.name.slice(0, 10) + "..." : app.name || "Unknown";
const cardHtml = `
<div class="app-card w-[100%] h-[105px] bg-[#00000032] rounded-[12px] flex flex-col items-center justify-center" data-app-index="${data.apps.indexOf(app)}">
<img src="${icnurl1 || "/tb.svg"}" alt="App Icon" class="w-[50px] h-[50px] rounded-[12px] mb-4 object-cover" />
<span class="text-white text-lg font-bold">${displayName}</span>
</div>
`;
return { html: cardHtml, hasWmArgs: !!app.wmArgs };
}),
);
const pwaCards2 = appCards2.filter(card => card.hasWmArgs).map(card => card.html);
const appCards_2 = appCards2.filter(card => !card.hasWmArgs).map(card => card.html);
if (pwaCards2.length === 0) {
pwaCards2.push(`<h1 class="text-white text-xl font-bold w-full text-center">There are no PWA apps available in this repo</h1>`);
}
if (appCards_2.length === 0) {
appCards_2.push(`<h1 class="text-white text-xl font-bold w-full text-center">There are no app card apps available in this repo</h1>`);
}
document.querySelector(".pwa-list").innerHTML = pwaCards2.join("");
document.querySelector(".apps-list").innerHTML = appCards_2.join("");
document.querySelectorAll(".app-card").forEach(card => {
card.addEventListener("click", function () {
const idx = parseInt(this.getAttribute("data-app-index"), 10);
loadApp(data.apps[idx], type);
});
});
break;
case "Xen":
console.log("Xen repo not implemented yet.");
document.querySelector(".featured h3").textContent = "Xen App Store";
break;
}
}
/**
* Loads the app content in the preview
* @param {Object} app - The app to load
* @param {string} type - The type of app (Terbium, Anura, Xen)
*/
async function loadApp(app, type) {
document.querySelector(".app-prev").classList.remove("hidden");
document.querySelector(".app-prev").classList.add("flex");
document.querySelector(".main").classList.remove("flex");
document.querySelector(".main").classList.add("hidden");
let icnUrl;
let isInstalled = false;
let uptodate = true;
const installedApps = JSON.parse(await window.parent.tb.fs.promises.readFile(`/apps/installed.json`, "utf8"));
if (installedApps.some(a => a.name === app.name)) {
isInstalled = true;
const config = JSON.parse(await window.parent.tb.fs.promises.readFile(`${installedApps.find(a => a.name === app.name).config}`, "utf8"));
if (app.version && config.version && semverCompare(app.version, config.version) > 0) {
uptodate = false;
}
}
if (app.wmArgs) {
type = "tb-PWA";
} else if ("anura-pkg" in app) {
type = "tb-liq";
}
switch (type) {
case "Terbium":
case "tb-PWA":
const icn1 = await window.parent.tb.libcurl.fetch(app.icon);
const blob1 = await icn1.blob();
icnUrl = URL.createObjectURL(blob1);
break;
case "Anura":
case "tb-liq":
let icn2;
if (currRepo.url) {
icn2 = await window.parent.tb.libcurl.fetch(`${currRepo.url.replace("manifest.json", "")}/apps/${app.package}/${app.icon}`);
} else {
icn2 = await window.parent.tb.libcurl.fetch(app.icon);
}
if (!icn2.ok) {
icn2 = await window.parent.tb.libcurl.fetch("https://terbiumon.top/favicon.ico");
}
const blob2 = await icn2.blob();
icnUrl = URL.createObjectURL(blob2);
break;
case "Xen":
break;
}
document.querySelector(".app-prev").innerHTML = `
<h1 class="font-black text-3xl" onclick="document.querySelector('.app-prev').classList.remove('flex'); document.querySelector('.app-prev').classList.add('hidden'); document.querySelector('.main').classList.remove('hidden'); document.querySelector('.main').classList.add('flex');">${typeof currRepo === "object" ? currRepo.name : currRepo} → ${app.name}</h1>
<div class="featured flex w-[97%] h-[175px] bg-[#00000032] rounded-[22px] p-2 items-center gap-6 relative bg-no-repeat bg-[url('${icnUrl || "/tb.svg"}')] bg-center bg-cover">
<div class="info flex flex-col justify-end text-white absolute left-6 bottom-6">
<h3 class="text-2xl font-bold mb-2">${app.name}</h3>
<h4 class="text-[16px] text-[#ffffff75]">By ${app.developer || "Unknown"}</h4>
</div>
<div class="info flex flex-col justify-end text-white absolute right-6 bottom-6">
${isInstalled ? (uptodate ? `<button class="uns-btn bg-[#4d4d4d] text-white rounded-lg p-1.5">Uninstall</button>` : `<button class="upd-btn bg-[#5DD881] text-black rounded-lg p-1.5">Update</button>`) : `<button class="ins-btn bg-[#5DD881] text-black rounded-lg p-1.5">Install</button>`}
</div>
</div>
<div class="flex w-[97%] h-[45%] mt-6 gap-6">
<div class="w-1/2 bg-[#00000032] rounded-[12px] h-full p-4 overflow-auto">
<h2 class="font-black text-3xl mb-2">About ${app.name}</h2>
<p class="text-white text-base">${app.description || "No description available."}</p>
<ul class="text-white text-base">
<li><strong>Version:</strong> ${app.version || "1.0.0"}</li>
<li><strong>Developer:</strong> ${app.developer || "Unknown"}</li>
<li><strong>License:</strong> ${app.license || "N/A"}</li>
<li><strong>Scanned:</strong> ${app.scanned ? `<a href="${app.scanned}" target="_blank" rel="noopener noreferrer" class="text-[#ffffff]">${new URL(app.scanned).hostname.replace(/^www\./, "")}</a>` : "N/A"}</li>
<li><strong>Size:</strong> ${app.size || "N/A"}</li>
<ul>
<h2 class="font-black text-3xl mb-2">Requirements:</h2>
<li><strong>OS: ${(app.requirements && app.requirements.os) || "Any"}</strong></li>
<li><strong>Proxy: ${(app.requirements && app.requirements.proxy) || "Any"}</strong></li>
</ul>
</ul>
</div>
<div class="w-1/2 bg-[#00000032] rounded-[12px] h-full p-4 overflow-auto">
<h2 class="font-black text-3xl mb-2">Images</h2>
<div class="flex flex-wrap gap-4">
${
app.images
? app.images
.map(
img => `
<div class="w-full">
<img src="${img}" alt="App Image" class="w-full h-[200px] rounded-[12px] object-cover" />
</div>
`,
)
.join("")
: "<p class='text-white'>No images available.</p>"
}
</div>
</div>
</div>
</div>
`;
const addBtns = () => {
const insBtn = document.querySelector(".ins-btn");
const updBtn = document.querySelector(".upd-btn");
const unsBtn = document.querySelector(".uns-btn");
if (insBtn) {
insBtn.addEventListener("click", async function handler() {
insBtn.disabled = true;
insBtn.textContent = "Installing...";
insBtn.classList.remove("bg-[#5DD881]", "text-black");
insBtn.classList.add("bg-[#4d4d4d]", "text-white");
const success = await install(app, type);
if (success) {
insBtn.outerHTML = `<button class="uns-btn bg-[#4d4d4d] text-white rounded-lg p-1.5">Uninstall</button>`;
addBtns();
} else {
insBtn.disabled = false;
insBtn.textContent = "Install";
insBtn.classList.remove("bg-[#4d4d4d]", "text-white");
insBtn.classList.add("bg-[#5DD881]", "text-black");
}
});
}
if (updBtn) {
updBtn.addEventListener("click", async function handler() {
updBtn.disabled = true;
updBtn.textContent = "Updating...";
updBtn.classList.remove("bg-[#5DD881]", "text-black");
updBtn.classList.add("bg-[#4d4d4d]", "text-white");
await uninstall(app, type);
const success = await install(app, type);
if (success) {
updBtn.outerHTML = `<button class="uns-btn bg-[#4d4d4d] text-white rounded-lg p-1.5">Uninstall</button>`;
addBtns();
} else {
updBtn.disabled = false;
updBtn.textContent = "Update";
updBtn.classList.remove("bg-[#4d4d4d]", "text-white");
updBtn.classList.add("bg-[#5DD881]", "text-black");
}
});
}
if (unsBtn) {
unsBtn.addEventListener("click", async function handler() {
await uninstall(app, type);
unsBtn.outerHTML = `<button class="ins-btn bg-[#5DD881] text-black rounded-lg p-1.5">Install</button>`;
addBtns();
});
}
};
addBtns();
}
/**
* Loads the current list of repos
*/
async function loadRepos() {
const repoList = document.querySelector(".repo-list");
repoList.innerHTML = "";
const repos = JSON.parse(await window.parent.tb.fs.promises.readFile(`/apps/user/${sessionStorage.getItem("currAcc")}/app store/repos.json`, "utf8"));
for (const repo of repos) {
const repoinfo = await window.parent.tb.libcurl.fetch(repo.url);
if (!repoinfo.ok) {
const displayName = repo.name && repo.name.length > 8 ? repo.name.slice(0, 8) + "..." : repo.name || "Unknown";
const repoCard = document.createElement("div");
repoCard.className = "repo-card flex flex-row items-center bg-[#00000032] rounded-lg h-[50px] p-1 gap-1";
repoCard.onclick = () => loadRepo(repo.url);
repoCard.innerHTML = `
<img src="/tb.svg" alt="Featured App" class="w-[32px] h-[32px] rounded-[12px] object-cover" />
<h3 class="text-white text-base font-black">${displayName}</h3>
<svg class="flex-1" width="20" height="20" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#D8645D"/>
</svg>
`;
repoCard.addEventListener("contextmenu", function (e) {
e.preventDefault();
window.parent.tb.contextmenu.create({
x: e.clientX,
y: e.clientY,
options: [
{ text: "Load Repo", click: () => loadRepo(repo.url) },
{
text: "Remove Repo",
click: () => {
repoList.removeChild(repoCard);
const index = repos.findIndex(r => r.url === repo.url);
if (index !== -1) {
repos.splice(index, 1);
}
window.parent.tb.fs.promises.writeFile(`/apps/user/${sessionStorage.getItem("currAcc")}/app store/repos.json`, JSON.stringify(repos, null, 2));
},
},
],
});
});
repoList.appendChild(repoCard);
continue;
}
const data = await repoinfo.json();
if (data.maintainer) {
const icn = await window.parent.tb.libcurl.fetch(repo.icon);
const blob = await icn.blob();
const icnurl = URL.createObjectURL(blob);
const displayName = data.name && data.name.length > 8 ? data.name.slice(0, 8) + "..." : data.name || "Unknown";
const repoCard = document.createElement("div");
repoCard.className = "repo-card flex flex-row items-center bg-[#00000032] rounded-lg h-[50px] p-1 gap-1";
repoCard.onclick = () => loadRepo(repo.url);
repoCard.innerHTML = `
<img src="${icnurl || "/tb.svg"}" alt="Featured App" class="w-[32px] h-[32px] rounded-[12px] object-cover" />
<h3 class="text-white text-base font-black">${displayName}</h3>
<svg class="flex-1" width="20" height="20" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#5DD881"/>
</svg>
`;
repoCard.addEventListener("contextmenu", function (e) {
e.preventDefault();
window.parent.tb.contextmenu.create({
x: e.clientX,
y: e.clientY,
options: [
{ text: "Load Repo", click: () => loadRepo(repo.url) },
{
text: "Remove Repo",
click: () => {
repoList.removeChild(repoCard);
const index = repos.findIndex(r => r.url === repo.url);
if (index !== -1) {
repos.splice(index, 1);
}
window.parent.tb.fs.promises.writeFile(`/apps/user/${sessionStorage.getItem("currAcc")}/app store/repos.json`, JSON.stringify(repos, null, 2));
},
},
],
});
});
repoList.appendChild(repoCard);
} else if (data.title) {
throw new Error("Xen repo not implemented yet.");
} else {
const icn = await window.parent.tb.libcurl.fetch(data.repo.icon);
const blob = await icn.blob();
const icnurl = URL.createObjectURL(blob);
const displayName = data.repo.name && data.repo.name.length > 8 ? data.repo.name.slice(0, 8) + "..." : data.repo.name || "Unknown";
const repoCard = document.createElement("div");
repoCard.className = "repo-card flex flex-row items-center bg-[#00000032] rounded-lg h-[50px] p-1 gap-1";
repoCard.onclick = () => loadRepo(repo.url);
repoCard.innerHTML = `
<img src="${icnurl || "/tb.svg"}" alt="Featured App" class="w-[32px] h-[32px] rounded-[12px] object-cover" />
<h3 class="text-white text-base font-black">${displayName}</h3>
<svg class="flex-1" width="20" height="20" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#5DD881"/>
</svg>
`;
repoCard.addEventListener("contextmenu", function (e) {
e.preventDefault();
window.parent.tb.contextmenu.create({
x: e.clientX,
y: e.clientY,
options: [
{ text: "Load Repo", click: () => loadRepo(repo.url) },
{
text: "Remove Repo",
click: () => {
repoList.removeChild(repoCard);
const index = repos.findIndex(r => r.url === repo.url);
if (index !== -1) {
repos.splice(index, 1);
}
window.parent.tb.fs.promises.writeFile(`/apps/user/${sessionStorage.getItem("currAcc")}/app store/repos.json`, JSON.stringify(repos, null, 2));
},
},
],
});
});
repoList.appendChild(repoCard);
}
}
}
/**
* Changes the view between apps and PWAs
* @param {string} type - The type of view ("apps" or "pwa")
*/
function view(type) {
if (type === "apps") {
viewType = "apps";
document.querySelector(".apps-list").classList.remove("hidden");
document.querySelector(".pwa-list").classList.add("hidden");
document.querySelector(".apps-list").classList.remove("flex");
document.querySelector(".apps-list").classList.add("grid");
document.querySelector(".pwa-list").classList.remove("grid");
document.querySelector(".pwa-list").classList.add("hidden");
document.querySelector(".app-togg").classList.add("bg-[#5DD88122]");
document.querySelector(".app-togg").classList.remove("bg-[#00000022]");
document.querySelector(".pwa-togg").classList.remove("bg-[#5DD88122]");
document.querySelector(".pwa-togg").classList.add("bg-[#00000022]");
} else if (type === "p
gitextract_z8f305yy/ ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug-report.md │ │ └── config.yml │ ├── dependabot.yml │ └── workflows/ │ ├── biome.yml │ ├── test.yml │ └── upk-build.yml ├── .gitignore ├── .node_version ├── .vscode/ │ ├── extensions.json │ └── settings.json ├── .zed/ │ └── settings.json ├── LICENSE.txt ├── README.md ├── SECURITY.md ├── biome.json ├── bootstrap.ts ├── docs/ │ ├── README.md │ ├── anura-compat.md │ ├── apis/ │ │ └── readme.md │ ├── backend-configuration.md │ ├── contributions.md │ ├── creating-apps.md │ ├── creating-terminal-commands.md │ ├── lemonade-compat.md │ ├── lemonade.md │ ├── static-hosting.md │ └── upk-build.md ├── env.d.ts ├── eslint.config.js ├── fail.html ├── index.html ├── package.json ├── postcss.config.js ├── public/ │ ├── anura-sw.js │ ├── apps/ │ │ ├── about.tapp/ │ │ │ ├── app.css │ │ │ ├── index.html │ │ │ └── index.json │ │ ├── app store.tapp/ │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ └── index.json │ │ ├── browser.tapp/ │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ ├── newtab.html │ │ │ └── userscripts.html │ │ ├── calculator.tapp/ │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ └── index.json │ │ ├── feedback.tapp/ │ │ │ └── index.json │ │ ├── files.tapp/ │ │ │ ├── cm.css │ │ │ ├── extensions.json │ │ │ ├── files.com.js │ │ │ ├── icons.json │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ ├── properties/ │ │ │ │ ├── index.html │ │ │ │ └── index.js │ │ │ └── webdav.js │ │ ├── fsapp.app/ │ │ │ ├── GUI.js │ │ │ ├── appview.html │ │ │ ├── components/ │ │ │ │ ├── File.mjs │ │ │ │ ├── Folder.mjs │ │ │ │ ├── Selector.mjs │ │ │ │ ├── SideBar.mjs │ │ │ │ └── TopBar.mjs │ │ │ ├── filemanager.css │ │ │ ├── index.html │ │ │ ├── index.mjs │ │ │ ├── manifest.json │ │ │ └── operations.js │ │ ├── libfilepicker.lib/ │ │ │ ├── GUI.js │ │ │ ├── README.md │ │ │ ├── file.html │ │ │ ├── filemanager.css │ │ │ ├── folder.html │ │ │ ├── handler.js │ │ │ ├── install.js │ │ │ ├── manifest.json │ │ │ └── operations.js │ │ ├── libfileview.lib/ │ │ │ ├── fileHandler.js │ │ │ ├── icons.json │ │ │ ├── install.js │ │ │ └── manifest.json │ │ ├── libpersist.lib/ │ │ │ ├── install.js │ │ │ ├── manifest.json │ │ │ └── src/ │ │ │ └── index.js │ │ ├── media viewer.tapp/ │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ └── media.com.js │ │ ├── nfsadapter/ │ │ │ ├── FileSystemDirectoryHandle.js │ │ │ ├── FileSystemFileHandle.js │ │ │ ├── FileSystemHandle.js │ │ │ ├── adapters/ │ │ │ │ ├── anuraadapter.js │ │ │ │ ├── memory.js │ │ │ │ └── sandbox.js │ │ │ ├── config.js │ │ │ ├── nfsadapter.js │ │ │ └── util.js │ │ ├── settings.tapp/ │ │ │ ├── accounts/ │ │ │ │ ├── index.html │ │ │ │ └── index.js │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ ├── island.js │ │ │ ├── message.js │ │ │ ├── radio.css │ │ │ ├── select.css │ │ │ └── select.js │ │ ├── task manager.tapp/ │ │ │ ├── index.css │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ └── index.json │ │ ├── terminal.tapp/ │ │ │ ├── index.html │ │ │ ├── index.js │ │ │ ├── index.json │ │ │ ├── logo.txt │ │ │ ├── scripts/ │ │ │ │ ├── cat.js │ │ │ │ ├── cd.js │ │ │ │ ├── clear.js │ │ │ │ ├── curl.js │ │ │ │ ├── echo.js │ │ │ │ ├── exit.js │ │ │ │ ├── git.js │ │ │ │ ├── help.js │ │ │ │ ├── info.json │ │ │ │ ├── info.schema.json │ │ │ │ ├── ls.js │ │ │ │ ├── mkdir.js │ │ │ │ ├── nano.js │ │ │ │ ├── node.js │ │ │ │ ├── ping.js │ │ │ │ ├── pkg.js │ │ │ │ ├── pkill.js │ │ │ │ ├── pwd.js │ │ │ │ ├── rm.js │ │ │ │ ├── rmdir.js │ │ │ │ ├── ssh-keygen.js │ │ │ │ ├── ssh.js │ │ │ │ ├── sysfetch.js │ │ │ │ ├── taskkill.js │ │ │ │ ├── tb.js │ │ │ │ ├── touch.js │ │ │ │ └── unzip.js │ │ │ ├── ssh-util.js │ │ │ ├── terminal.css │ │ │ └── terminal_com.js │ │ └── text editor.tapp/ │ │ ├── index.css │ │ ├── index.html │ │ ├── index.js │ │ ├── index.json │ │ └── text.com.js │ ├── assets/ │ │ ├── fs.ui/ │ │ │ ├── fs.css │ │ │ └── fs.js │ │ ├── libs/ │ │ │ ├── comlink.min.umd.js │ │ │ ├── idb-keyval.js │ │ │ ├── mime.iife.js │ │ │ └── workbox/ │ │ │ ├── workbox-background-sync.dev.js │ │ │ ├── workbox-background-sync.prod.js │ │ │ ├── workbox-broadcast-update.dev.js │ │ │ ├── workbox-broadcast-update.prod.js │ │ │ ├── workbox-cacheable-response.dev.js │ │ │ ├── workbox-cacheable-response.prod.js │ │ │ ├── workbox-core.dev.js │ │ │ ├── workbox-core.prod.js │ │ │ ├── workbox-expiration.dev.js │ │ │ ├── workbox-expiration.prod.js │ │ │ ├── workbox-navigation-preload.dev.js │ │ │ ├── workbox-navigation-preload.prod.js │ │ │ ├── workbox-offline-ga.dev.js │ │ │ ├── workbox-offline-ga.prod.js │ │ │ ├── workbox-precaching.dev.js │ │ │ ├── workbox-precaching.prod.js │ │ │ ├── workbox-range-requests.dev.js │ │ │ ├── workbox-range-requests.prod.js │ │ │ ├── workbox-routing.dev.js │ │ │ ├── workbox-routing.prod.js │ │ │ ├── workbox-strategies.dev.js │ │ │ ├── workbox-strategies.prod.js │ │ │ ├── workbox-streams.dev.js │ │ │ ├── workbox-streams.prod.js │ │ │ ├── workbox-sw.js │ │ │ ├── workbox-window.dev.es5.mjs │ │ │ ├── workbox-window.dev.mjs │ │ │ ├── workbox-window.dev.umd.js │ │ │ ├── workbox-window.prod.es5.mjs │ │ │ ├── workbox-window.prod.mjs │ │ │ └── workbox-window.prod.umd.js │ │ ├── materialsymbols.css │ │ └── matter.css │ ├── cursor_changer.js │ ├── lib/ │ │ └── dreamland/ │ │ ├── all.js │ │ ├── dev.js │ │ ├── minimal.js │ │ └── ssr.js │ ├── manifest.json │ ├── media_interactions.js │ ├── robots.txt │ ├── sitemap.xml │ ├── theme.css │ └── uv/ │ └── uv.config.js ├── server.ts ├── src/ │ ├── App.tsx │ ├── Boot.tsx │ ├── CustomOS.tsx │ ├── Loading.tsx │ ├── Login.tsx │ ├── Recovery.tsx │ ├── Setup.tsx │ ├── Updater.tsx │ ├── index.css │ ├── init/ │ │ ├── fs.init.ts │ │ └── index.ts │ ├── main.tsx │ ├── sys/ │ │ ├── Api.ts │ │ ├── Filer.d.ts │ │ ├── FilerWP.d.ts │ │ ├── Node/ │ │ │ └── runtimes/ │ │ │ ├── Webcontainers/ │ │ │ │ ├── nodeFSIntegration.ts │ │ │ │ ├── nodeProc.ts │ │ │ │ └── util/ │ │ │ │ └── getFileTree.ts │ │ │ ├── shims/ │ │ │ │ ├── apis/ │ │ │ │ │ ├── child_process.ts │ │ │ │ │ └── http.ts │ │ │ │ ├── path-remapper.ts │ │ │ │ └── util/ │ │ │ │ └── Stub.ts │ │ │ └── util/ │ │ │ └── getFileTree.ts │ │ ├── Parser.ts │ │ ├── Store.ts │ │ ├── apis/ │ │ │ ├── Crypto.ts │ │ │ ├── Date.ts │ │ │ ├── Dialogs.tsx │ │ │ ├── Mediaisland.tsx │ │ │ ├── Notifications.tsx │ │ │ ├── Registry.ts │ │ │ ├── SysSearch.ts │ │ │ ├── System.ts │ │ │ ├── Time.ts │ │ │ ├── Xor.ts │ │ │ └── utils/ │ │ │ ├── WindowPerformanceMonitor.ts │ │ │ ├── file.ts │ │ │ ├── startupHandler.ts │ │ │ ├── tauth.ts │ │ │ └── winPreview.ts │ │ ├── gui/ │ │ │ ├── AppIsland.tsx │ │ │ ├── Battery.tsx │ │ │ ├── ContextMenu.tsx │ │ │ ├── Desktop.tsx │ │ │ ├── Dock.tsx │ │ │ ├── FPSCounter.tsx │ │ │ ├── NotificationCenter.tsx │ │ │ ├── Power.tsx │ │ │ ├── Search.tsx │ │ │ ├── Shell.tsx │ │ │ ├── Weather.tsx │ │ │ ├── Wifi.tsx │ │ │ ├── WinSwitcher.tsx │ │ │ ├── WindowArea.tsx │ │ │ └── styles/ │ │ │ ├── boot.css │ │ │ ├── contextmenu.css │ │ │ ├── cropper.css │ │ │ ├── dialog.css │ │ │ ├── dock.css │ │ │ ├── dropdown.css │ │ │ ├── liquor.css │ │ │ ├── loader.css │ │ │ ├── login.css │ │ │ ├── mediaisland.css │ │ │ ├── notification.css │ │ │ ├── oobe.css │ │ │ ├── shell.css │ │ │ ├── wifi.css │ │ │ └── win_switcher.css │ │ ├── lemonade/ │ │ │ ├── app.ts │ │ │ ├── clipboard.ts │ │ │ ├── dialog.ts │ │ │ ├── index.ts │ │ │ ├── ipc.ts │ │ │ ├── net.ts │ │ │ ├── notification.ts │ │ │ ├── screen.ts │ │ │ ├── shell.ts │ │ │ └── window.ts │ │ ├── libcurl.d.ts │ │ ├── liquor/ │ │ │ ├── AliceWM.ts │ │ │ ├── Anura.ts │ │ │ ├── Boot.ts │ │ │ ├── api/ │ │ │ │ ├── ContextMenuAPI.tsx │ │ │ │ ├── Dialog.ts │ │ │ │ ├── FilerFS.ts │ │ │ │ ├── Files.ts │ │ │ │ ├── Filesystem.ts │ │ │ │ ├── LocalFS.ts │ │ │ │ ├── Networking.ts │ │ │ │ ├── Notification.ts │ │ │ │ ├── NotificationService.tsx │ │ │ │ ├── Platform.ts │ │ │ │ ├── Process.ts │ │ │ │ ├── Settings.ts │ │ │ │ ├── Systray.ts │ │ │ │ ├── TFS.ts │ │ │ │ ├── Theme.ts │ │ │ │ ├── UI.ts │ │ │ │ ├── URIHandler.ts │ │ │ │ └── WmApi.tsx │ │ │ ├── bcc.ts │ │ │ ├── coreapps/ │ │ │ │ ├── App.tsx │ │ │ │ └── ExternalApp.tsx │ │ │ ├── libs/ │ │ │ │ ├── ExternalLib.tsx │ │ │ │ └── lib.tsx │ │ │ └── types/ │ │ │ ├── Filer.d.ts │ │ │ └── V86Starter.d.ts │ │ ├── types.ts │ │ └── vFS.ts │ └── vite-env.d.ts ├── tsconfig.app.json ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts
SYMBOL INDEX (1727 symbols across 184 files)
FILE: bootstrap.ts
function Bootstrap (line 13) | async function Bootstrap() {
function BuildApps (line 29) | async function BuildApps() {
function CreateAppsPaths (line 98) | async function CreateAppsPaths() {
function CreateEnv (line 148) | async function CreateEnv() {
function Updater (line 173) | async function Updater() {
FILE: env.d.ts
type ProcessEnv (line 2) | interface ProcessEnv {
FILE: public/anura-sw.js
function currentFs (line 45) | async function currentFs() {
function handleDavRequest (line 111) | async function handleDavRequest({ request, url }) {
function serveFile (line 385) | async function serveFile(path, fsOverride, shOverride) {
function updateFile (line 535) | async function updateFile(path, data) {
function sanitizeDownloadFilename (line 746) | function sanitizeDownloadFilename(filename) {
function splitFilename (line 753) | function splitFilename(name) {
function getUniqueDownloadPath (line 764) | async function getUniqueDownloadPath(fsPromises, dirPath, filename) {
function saveTO (line 778) | async function saveTO(initialFilename) {
function saveFP (line 799) | async function saveFP(response, request, proxyName) {
function offlineError (line 890) | function offlineError() {
function initSw (line 922) | async function initSw() {
FILE: public/apps/app store.tapp/index.js
function loadRepo (line 7) | async function loadRepo(url) {
function loadApp (line 152) | async function loadApp(app, type) {
function loadRepos (line 303) | async function loadRepos() {
function view (line 430) | function view(type) {
function addRepo (line 461) | async function addRepo() {
function search (line 507) | async function search(input) {
function install (line 559) | async function install(app, type) {
function uninstall (line 785) | async function uninstall(app, type) {
function unzip (line 859) | async function unzip(path, target) {
FILE: public/apps/browser.tapp/index.js
constant IS_URL (line 2) | const IS_URL = /^(https?:\/\/)?(www\.)?([-a-zA-Z0-9@:%._\+~#=]{1,256}\.[...
function customEncode (line 11) | function customEncode(input) {
function customDecode (line 30) | function customDecode(encodedString) {
function closeTab (line 49) | function closeTab(id) {
function newTab (line 66) | function newTab() {
FILE: public/apps/files.tapp/index.js
function click (line 206) | function click() {
function unzip (line 2153) | async function unzip(path, target, app) {
FILE: public/apps/files.tapp/webdav.js
method constructor (line 2) | constructor(t){this.externalEntities={},this.options=r(t)}
method parse (line 2) | parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("X...
method addEntity (line 2) | addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can'...
function s (line 2) | function s(t){this.options=Object.assign({},i,t),!0===this.options.ignor...
function a (line 2) | function a(t,e,n,r){const o=this.j2x(t,n+1,r.concat(e));return void 0!==...
method constructor (line 2) | constructor(t,e){const n=[...arguments],{options:r,shortMessage:o}=fun...
method cause (line 2) | static cause(t){return i(t),t._cause&&s(t._cause)?t._cause:null}
method fullStack (line 2) | static fullStack(t){i(t);const e=a.cause(t);return e?`${t.stack}\ncaus...
method info (line 2) | static info(t){i(t);const e={},n=a.cause(t);return n&&Object.assign(e,...
method toString (line 2) | toString(){let t=this.name||this.constructor.name||this.constructor.pr...
function u (line 2) | function u(t){return this.options.indentBy.repeat(t)}
function c (line 2) | function c(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t...
function e (line 2) | function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbo...
function n (line 2) | function n(t){var e="function"==typeof Map?new Map:void 0;return n=funct...
function r (line 2) | function r(t,e,n){return r=function(){if("undefined"==typeof Reflect||!R...
function o (line 2) | function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t._...
function i (line 2) | function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:funct...
function n (line 2) | function n(t){var r;return function(t,e){if(!(t instanceof e))throw new ...
function a (line 2) | function a(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?argu...
method constructor (line 2) | constructor(t,e){const n=[...arguments],{options:r,shortMessage:o}=fun...
method cause (line 2) | static cause(t){return i(t),t._cause&&s(t._cause)?t._cause:null}
method fullStack (line 2) | static fullStack(t){i(t);const e=a.cause(t);return e?`${t.stack}\ncaus...
method info (line 2) | static info(t){i(t);const e={},n=a.cause(t);return n&&Object.assign(e,...
method toString (line 2) | toString(){let t=this.name||this.constructor.name||this.constructor.pr...
function u (line 2) | function u(t,e){return t.length===e+1}
function r (line 2) | function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(...
function o (line 2) | function o(t){try{return encodeURIComponent(t)}catch(t){return null}}
function u (line 2) | function u(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const r...
function c (line 2) | function c(t,e,n,r,o,i,s){if(void 0!==t&&(this.options.trimValues&&!r&&(...
function l (line 2) | function l(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"...
function p (line 2) | function p(t,e,n){if(!0!==this.options.ignoreAttributes&&"string"==typeo...
function g (line 2) | function g(t,e,n){const r=this.options.updateTag(e.tagname,n,e[":@"]);!1...
function m (line 2) | function m(t,e,n,r){return t&&(void 0===r&&(r=0===e.child.length),void 0...
function y (line 2) | function y(t,e,n){const r="*."+n;for(const n in t){const o=t[n];if(r===o...
function v (line 2) | function v(t,e,n,r){const o=t.indexOf(e,n);if(-1===o)throw new Error(r);...
function b (line 2) | function b(t,e,n){const r=function(t,e){let n,r=arguments.length>2&&void...
function w (line 2) | function w(t,e,n){const r=n;let o=1;for(;n<t.length;n++)if("<"===t[n])if...
function x (line 2) | function x(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true...
method constructor (line 2) | constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[...
function o (line 2) | function o(t,e){let n="";for(;e<t.length&&"'"!==t[e]&&'"'!==t[e];e++)n+=...
function i (line 2) | function i(t,e){return"!"===t[e+1]&&"-"===t[e+2]&&"-"===t[e+3]}
function s (line 2) | function s(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"N"===t[e+3]&&"T"===t[...
function a (line 2) | function a(t,e){return"!"===t[e+1]&&"E"===t[e+2]&&"L"===t[e+3]&&"E"===t[...
method constructor (line 2) | constructor(t,e){const n=[...arguments],{options:r,shortMessage:o}=fun...
method cause (line 2) | static cause(t){return i(t),t._cause&&s(t._cause)?t._cause:null}
method fullStack (line 2) | static fullStack(t){i(t);const e=a.cause(t);return e?`${t.stack}\ncaus...
method info (line 2) | static info(t){i(t);const e={},n=a.cause(t);return n&&Object.assign(e,...
method toString (line 2) | toString(){let t=this.name||this.constructor.name||this.constructor.pr...
function u (line 2) | function u(t,e){return"!"===t[e+1]&&"A"===t[e+2]&&"T"===t[e+3]&&"T"===t[...
function c (line 2) | function c(t,e){return"!"===t[e+1]&&"N"===t[e+2]&&"O"===t[e+3]&&"T"===t[...
function l (line 2) | function l(t){if(r.isName(t))return t;throw new Error(`Invalid entity na...
function e (line 2) | function e(t){return!!t.constructor&&"function"==typeof t.constructor.is...
function c (line 2) | function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}
function l (line 2) | function l(t){return t.split(o).join("\\").split(i).join("{").split(s).j...
function h (line 2) | function h(t){if(!t)return[""];var e=[],n=r("{","}",t);if(!n)return t.sp...
function p (line 2) | function p(t){return"{"+t+"}"}
function f (line 2) | function f(t){return/^-?0\d/.test(t)}
function g (line 2) | function g(t,e){return t<=e}
function d (line 2) | function d(t,e){return t>=e}
function m (line 2) | function m(t,e){var n=[],o=r("{","}",t);if(!o)return[t];var i=o.pre,a=o....
method constructor (line 2) | constructor(t){this.tagname=t,this.child=[],this[":@"]={}}
method add (line 2) | add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}
method addChild (line 2) | addChild(t){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&O...
function i (line 2) | function i(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r];o&&"."!==o&&...
function u (line 2) | function u(t){return s.exec(t).slice(1)}
function n (line 2) | function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-...
function h (line 2) | function h(t){return(t||"").toString().replace(i,"")}
function g (line 2) | function g(t){var e,n=("undefined"!=typeof window?window:"undefined"!=ty...
function d (line 2) | function d(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||...
function m (line 2) | function m(t,e){t=(t=h(t)).replace(s,""),e=e||{};var n,r=c.exec(t),o=r[1...
function y (line 2) | function y(t,e,n){if(t=(t=h(t)).replace(s,""),!(this instanceof y))retur...
function e (line 2) | function e(t,e,o){t instanceof RegExp&&(t=n(t,o)),e instanceof RegExp&&(...
function n (line 2) | function n(t,e){var n=e.match(t);return n?n[0]:null}
function r (line 2) | function r(t,e,n){var r,o,i,s,a,u=n.indexOf(t),c=n.indexOf(e,u+1),l=u;if...
function e (line 2) | function e(t,s,a,u){let c="",l=!1;for(let h=0;h<t.length;h++){const p=t[...
function n (line 2) | function n(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const r...
function r (line 2) | function r(t,e){let n="";if(t&&!e.ignoreAttributes)for(let r in t){if(!t...
function o (line 2) | function o(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).s...
function i (line 2) | function i(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.enti...
function n (line 2) | function n(t,e,s){let a;const u={};for(let c=0;c<t.length;c++){const l=t...
function r (line 2) | function r(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n...
function o (line 2) | function o(t,e,n,r){if(e){const o=Object.keys(e),i=o.length;for(let s=0;...
function i (line 2) | function i(t,e){const{textNodeName:n}=e,r=Object.keys(t).length;return 0...
function i (line 2) | function i(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}
function s (line 2) | function s(t,e){const n=e;for(;e<t.length;e++)if("?"==t[e]||" "==t[e]){c...
function a (line 2) | function a(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<...
method constructor (line 2) | constructor(t,e){const n=[...arguments],{options:r,shortMessage:o}=fun...
method cause (line 2) | static cause(t){return i(t),t._cause&&s(t._cause)?t._cause:null}
method fullStack (line 2) | static fullStack(t){i(t);const e=a.cause(t);return e?`${t.stack}\ncaus...
method info (line 2) | static info(t){i(t);const e={},n=a.cause(t);return n&&Object.assign(e,...
method toString (line 2) | toString(){let t=this.name||this.constructor.name||this.constructor.pr...
function l (line 2) | function l(t,e){let n="",r="",o=!1;for(;e<t.length;e++){if(t[e]===u||t[e...
function p (line 2) | function p(t,e){const n=r.getAllMatches(t,h),o={};for(let t=0;t<n.length...
function f (line 2) | function f(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t...
function g (line 2) | function g(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}
function d (line 2) | function d(t){return r.isName(t)}
function m (line 2) | function m(t){return r.isName(t)}
function y (line 2) | function y(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.le...
function v (line 2) | function v(t){return t.startIndex+t[1].length}
function n (line 2) | function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r...
function i (line 2) | function i(t){if(!s(t))throw new Error("Parameter was not an error")}
function s (line 2) | function s(t){return!!t&&"object"==typeof t&&"[object Error]"===(e=t,Obj...
class a (line 2) | class a extends Error{constructor(t,e){const n=[...arguments],{options:r...
method constructor (line 2) | constructor(t,e){const n=[...arguments],{options:r,shortMessage:o}=fun...
method cause (line 2) | static cause(t){return i(t),t._cause&&s(t._cause)?t._cause:null}
method fullStack (line 2) | static fullStack(t){i(t);const e=a.cause(t);return e?`${t.stack}\ncaus...
method info (line 2) | static info(t){i(t);const e={},n=a.cause(t);return n&&Object.assign(e,...
method toString (line 2) | toString(){let t=this.name||this.constructor.name||this.constructor.pr...
function p (line 2) | function p(t){try{const e=t.replace(/\//g,l).replace(/\\\\/g,h);return e...
function f (line 2) | function f(t){return t.startsWith("/")?t:"/"+t}
function g (line 2) | function g(t){let e=t;return"/"!==e[0]&&(e="/"+e),/^.+\/$/.test(e)&&(e=e...
function d (line 2) | function d(t){let e=new(o())(t).pathname;return e.length<=0&&(e="/"),g(e)}
function m (line 2) | function m(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=...
function b (line 2) | function b(t,e){const n=t.url.replace("//",""),r=-1==n.indexOf("/")?"/":...
function w (line 2) | function w(t){return"digest"===(t.headers&&t.headers.get("www-authentica...
function P (line 2) | function P(t){return N().decode(t)}
function A (line 2) | function A(t,e){var n;return`Basic ${n=`${t}:${e}`,N().encode(n)}`}
function $ (line 2) | function $(t,e,n,r,o){switch(t.authType){case j.Auto:e&&n&&(t.headers.Au...
function C (line 2) | function C(t,e){const n=new URL(t,window.location.origin).origin;return ...
function R (line 2) | function R(t){return{original:t,methods:[t],final:!1}}
class L (line 2) | class L{constructor(){this._configuration={registry:{},getEmptyAction:"n...
method constructor (line 2) | constructor(){this._configuration={registry:{},getEmptyAction:"null"},...
method configuration (line 2) | get configuration(){return this._configuration}
method getEmptyAction (line 2) | get getEmptyAction(){return this.configuration.getEmptyAction}
method getEmptyAction (line 2) | set getEmptyAction(t){this.configuration.getEmptyAction=t}
method control (line 2) | control(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[...
method execute (line 2) | execute(t){const e=this.get(t)||k;for(var n=arguments.length,r=new Arr...
method get (line 2) | get(t){const e=this.configuration.registry[t];if(!e)switch(this.getEmp...
method isPatched (line 2) | isPatched(t){return!!this.configuration.registry[t]}
method patch (line 2) | patch(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2...
method patchInline (line 2) | patchInline(t,e){this.isPatched(t)||this.patch(t,e);for(var n=argument...
method plugin (line 2) | plugin(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r+...
method restore (line 2) | restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring met...
method setFinal (line 2) | setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw ne...
function M (line 2) | function M(){return _||(_=new L),_}
function U (line 2) | function U(t){return function(t){if("object"!=typeof t||null===t||"[obje...
function F (line 2) | function F(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=...
function D (line 2) | function D(t,e){const n=U(t);return Object.keys(e).forEach(t=>{n.hasOwnP...
function B (line 2) | function B(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}
function W (line 2) | function W(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=...
function G (line 2) | function G(t){return V&&(t instanceof ArrayBuffer||"[object ArrayBuffer]...
function q (line 2) | function q(t){return null!=t&&null!=t.constructor&&"function"==typeof t....
function H (line 2) | function H(t){return function(){for(var e=[],n=0;n<arguments.length;n++)...
function Z (line 2) | function Z(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e...
function K (line 2) | function K(t,e,n){const r=U(t);return r.headers=W(e.headers,r.headers||{...
function Q (line 2) | function Q(t){const e=M();return e.patchInline("request",t=>e.patchInlin...
class yt (line 2) | class yt{type;#t;#e;#n=!1;#r=[];#o;#i;#s;#a=!1;#u;#c;#l=!1;constructor(t...
method constructor (line 2) | constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?argum...
method hasMagic (line 2) | get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this....
method toString (line 2) | toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type...
method #h (line 2) | #h(){if(this!==this.#t)throw new Error("should only call on root");if(...
method push (line 2) | push(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=argu...
method toJSON (line 2) | toJSON(){const t=null===this.type?this.#r.slice().map(t=>"string"==typ...
method isStart (line 2) | isStart(){if(this.#t===this)return!0;if(!this.#o?.isStart())return!1;i...
method isEnd (line 2) | isEnd(){if(this.#t===this)return!0;if("!"===this.#o?.type)return!0;if(...
method copyIn (line 2) | copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}
method clone (line 2) | clone(t){const e=new yt(this.type,t);for(const t of this.#r)e.copyIn(t...
method #p (line 2) | static#p(t,e,n,r){let o=!1,i=!1,s=-1,a=!1;if(null===e.type){let u=n,c=...
method fromGlob (line 2) | static fromGlob(t){let e=arguments.length>1&&void 0!==arguments[1]?arg...
method toMMPattern (line 2) | toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=t...
method options (line 2) | get options(){return this.#u}
method toRegExpSource (line 2) | toRegExpSource(t){const e=t??!!this.#u.dot;if(this.#t===this&&this.#h(...
method #g (line 2) | #g(t){return this.#r.map(e=>{if("string"==typeof e)throw new Error("st...
method #f (line 2) | static#f(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&argumen...
method constructor (line 2) | constructor(e){super(e,Bt(t,arguments.length>1&&void 0!==arguments[1]?ar...
method defaults (line 2) | static defaults(n){return e.defaults(Bt(t,n)).Minimatch}
method constructor (line 2) | constructor(e,n){super(e,n,Bt(t,arguments.length>2&&void 0!==arguments[2...
method fromGlob (line 2) | static fromGlob(n){let r=arguments.length>1&&void 0!==arguments[1]?argum...
class zt (line 2) | class zt{options;set;pattern;windowsPathsNoEscape;nonegate;negate;commen...
method constructor (line 2) | constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?argumen...
method hasMagic (line 2) | hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;f...
method debug (line 2) | debug(){}
method make (line 2) | make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.ch...
method preprocess (line 2) | preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)fo...
method adjascentGlobstarOptimize (line 2) | adjascentGlobstarOptimize(t){return t.map(t=>{let e=-1;for(;-1!==(e=t....
method levelOneOptimize (line 2) | levelOneOptimize(t){return t.map(t=>0===(t=t.reduce((t,e)=>{const n=t[...
method levelTwoFileOptimize (line 2) | levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e...
method firstPhasePreProcess (line 2) | firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let r=-1;for(...
method secondPhasePreProcess (line 2) | secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<...
method partsMatch (line 2) | partsMatch(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&argum...
method parseNegate (line 2) | parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=...
method matchOne (line 2) | matchOne(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&argumen...
method braceExpand (line 2) | braceExpand(){return Wt(this.pattern,this.options)}
method parse (line 2) | parse(t){et(t);const e=this.options;if("**"===t)return Dt;if(""===t)re...
method makeRe (line 2) | makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=t...
method slashSplit (line 2) | slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.is...
method match (line 2) | match(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:...
method defaults (line 2) | static defaults(t){return vt.defaults(t).Minimatch}
function Gt (line 2) | function Gt(t){const e=new Error(`${arguments.length>1&&void 0!==argumen...
function qt (line 2) | function qt(t,e){const{status:n}=e;if(401===n&&t.digest)return e;if(n>=4...
function Ht (line 2) | function Ht(t,e){return arguments.length>2&&void 0!==arguments[2]&&argum...
function te (line 2) | function te(t,e){if(!t.endsWith("propstat.prop.displayname"))return e}
function ee (line 2) | function ee(t,e){let n=arguments.length>2&&void 0!==arguments[2]?argumen...
function ne (line 2) | function ne(t,e){return e=e??{attributeNamePrefix:"@",attributeParsers:[...
function re (line 2) | function re(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&argume...
function oe (line 2) | function oe(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&argume...
function ie (line 2) | function ie(t){switch(String(t)){case"-3":return"unlimited";case"-2":cas...
function se (line 2) | function se(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function ue (line 2) | function ue(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function l (line 2) | function l(t){try{for(;!((r=s.next()).done||n&&n());)if((t=e(r.value))&&...
function le (line 2) | function le(t){return function(){for(var e=[],n=0;n<arguments.length;n++...
function he (line 2) | function he(){}
function pe (line 2) | function pe(t,e){if(!e)return t&&t.then?t.then(he):Promise.resolve()}
function ge (line 2) | function ge(t,e,n){if(!t.s){if(n instanceof de){if(!n.s)return void(n.o=...
function t (line 2) | function t(){}
function me (line 2) | function me(t){return t instanceof de&&1&t.s}
function Ee (line 2) | function Ee(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function Te (line 2) | function Te(t){return function(){for(var e=[],n=0;n<arguments.length;n++...
function Se (line 2) | function Se(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function ke (line 2) | function ke(t){return new Yt.XMLBuilder({attributeNamePrefix:"@_",format...
function Re (line 2) | function Re(t,e){const n={...t};for(const t in n)n.hasOwnProperty(t)&&(n...
function Le (line 2) | function Le(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function _e (line 2) | function _e(t){return function(){for(var e=[],n=0;n<arguments.length;n++...
function De (line 2) | function De(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function We (line 2) | function We(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function qe (line 2) | function qe(t){if(G(t))return t.byteLength;if(q(t))return t.length;if("s...
function Xe (line 2) | function Xe(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),...
function Je (line 2) | function Je(t,e){var n=t();return n&&n.then?n.then(e):e(n)}
function Qe (line 2) | function Qe(t){return function(){for(var e=[],n=0;n<arguments.length;n++...
function nn (line 2) | function nn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments...
FILE: public/apps/fsapp.app/GUI.js
function addContextMenuItem (line 11) | function addContextMenuItem(name, func) {
FILE: public/apps/fsapp.app/components/File.mjs
function formatBytes (line 1) | function formatBytes(bytes, decimals = 2) {
function File (line 12) | function File() {
FILE: public/apps/fsapp.app/components/Folder.mjs
function Folder (line 1) | function Folder() {
FILE: public/apps/fsapp.app/components/Selector.mjs
function Selector (line 1) | function Selector() {
FILE: public/apps/fsapp.app/components/SideBar.mjs
function SideBar (line 1) | function SideBar() {
FILE: public/apps/fsapp.app/components/TopBar.mjs
function TopBar (line 1) | function TopBar() {
FILE: public/apps/fsapp.app/index.mjs
function App (line 32) | function App() {
FILE: public/apps/fsapp.app/operations.js
function selectAction (line 3) | async function selectAction(selected) {
function fileAction (line 55) | async function fileAction(selected) {
function setBreadcrumbs (line 667) | function setBreadcrumbs(path) {
function newFolder (line 704) | async function newFolder(path) {
function newFile (line 722) | async function newFile(path) {
function reload (line 739) | function reload() {
function reload (line 747) | function reload() {
function upload (line 755) | function upload() {
function deleteFile (line 774) | function deleteFile() {
function copy (line 797) | function copy() {
function cut (line 802) | function cut() {
function paste (line 807) | async function paste() {
function rename (line 874) | async function rename() {
function installSession (line 909) | function installSession() {
function installPermanent (line 969) | function installPermanent() {
function navigate (line 1145) | function navigate() {
function unzip (line 1152) | function unzip(zip) {
FILE: public/apps/libfilepicker.lib/GUI.js
function addContextMenuItem (line 9) | function addContextMenuItem(name, func) {
FILE: public/apps/libfilepicker.lib/handler.js
function selectFile (line 1) | function selectFile(options) {
function selectFolder (line 15) | function selectFolder(options) {
FILE: public/apps/libfilepicker.lib/install.js
function install (line 2) | async function install(_, filePickerLib) {
FILE: public/apps/libfilepicker.lib/operations.js
function loadPath (line 10) | function loadPath(path) {
function reloadListeners (line 107) | function reloadListeners() {
function selectAction (line 174) | async function selectAction(selected) {
function fileAction (line 218) | async function fileAction(selected) {
function setBreadcrumbs (line 265) | function setBreadcrumbs(path) {
function newFolder (line 356) | function newFolder(path) {
function newFile (line 369) | function newFile(path) {
function reload (line 382) | function reload() {
function reload (line 390) | function reload() {
function upload (line 398) | function upload() {
function deleteFile (line 417) | function deleteFile() {
function copy (line 439) | function copy() {
function cut (line 444) | function cut() {
function paste (line 449) | function paste() {
function rename (line 567) | function rename() {
function navigate (line 601) | function navigate() {
FILE: public/apps/libfileview.lib/fileHandler.js
function openFile (line 3) | function openFile(path) {
function getIcon (line 99) | function getIcon(path) {
function getFileType (line 108) | function getFileType(path) {
function localPathToURL (line 117) | function localPathToURL(path) {
FILE: public/apps/libfileview.lib/install.js
constant HANDLER (line 4) | const HANDLER = "anura.fileviewer";
function install (line 21) | function install(anura) {
function localPathToURL (line 39) | function localPathToURL(path) {
FILE: public/apps/libpersist.lib/install.js
function install (line 1) | function install(anura) {
FILE: public/apps/libpersist.lib/src/index.js
class PersistenceProvider (line 16) | class PersistenceProvider {
method constructor (line 19) | constructor(anura) {
method init (line 23) | async init() {
method get (line 27) | async get(prop) {
method has (line 31) | async has(prop) {
method set (line 35) | async set(prop, val) {
method createStoreFn (line 39) | createStoreFn(_stateful, _win) {
method toProxy (line 46) | toProxy() {
class ProviderLoader (line 59) | class ProviderLoader {
method constructor (line 64) | constructor(anura, fs, basepath) {
method locate (line 72) | async locate() {
method build (line 98) | async build(app, config = {}, provider = "anureg") {
function buildLoader (line 128) | function buildLoader(anura, basepath) {
FILE: public/apps/media viewer.tapp/index.js
function openFile (line 18) | async function openFile(url, ext, fileName, dav) {
function showFileBrowser (line 834) | function showFileBrowser() {
FILE: public/apps/nfsadapter/FileSystemDirectoryHandle.js
class FileSystemDirectoryHandle (line 8) | class FileSystemDirectoryHandle extends FileSystemHandle {
method constructor (line 12) | constructor (adapter) {
method getDirectoryHandle (line 23) | async getDirectoryHandle (name, options = {}) {
method entries (line 36) | async * entries () {
method getEntries (line 46) | async * getEntries() {
method getFileHandle (line 60) | async getFileHandle (name, options = {}) {
method removeEntry (line 76) | async removeEntry (name, options = {}) {
method resolve (line 87) | async resolve (possibleDescendant) {
method keys (line 110) | async * keys () {
method values (line 115) | async * values () {
method [Symbol.asyncIterator] (line 120) | [Symbol.asyncIterator]() {
function ensureDoActuallyStillExist (line 168) | async function ensureDoActuallyStillExist (handle) {
FILE: public/apps/nfsadapter/FileSystemFileHandle.js
class FileSystemHandle (line 7) | class FileSystemHandle {
method constructor (line 17) | constructor (adapter) {
method queryPermission (line 24) | async queryPermission (descriptor = {}) {
method requestPermission (line 41) | async requestPermission ({mode = 'read'} = {}) {
method remove (line 62) | async remove (options = {}) {
method isSameEntry (line 69) | async isSameEntry (other) {
class FileSystemWritableFileStream (line 106) | class FileSystemWritableFileStream extends WritableStream {
method constructor (line 108) | constructor (writer) {
method close (line 119) | async close () {
method seek (line 129) | seek (position) {
method truncate (line 134) | truncate (size) {
method write (line 139) | write (data) {
class FileSystemFileHandle (line 195) | class FileSystemFileHandle extends FileSystemHandle {
method constructor (line 199) | constructor (adapter) {
method createWritable (line 209) | async createWritable (options = {}) {
method getFile (line 218) | async getFile () {
method write (line 327) | async write(chunk) {
method close (line 390) | async close () {
method abort (line 394) | async abort (reason) {
FILE: public/apps/nfsadapter/FileSystemHandle.js
class FileSystemHandle (line 7) | class FileSystemHandle {
method constructor (line 17) | constructor (adapter) {
method queryPermission (line 24) | async queryPermission (descriptor = {}) {
method requestPermission (line 41) | async requestPermission ({mode = 'read'} = {}) {
method remove (line 62) | async remove (options = {}) {
method isSameEntry (line 69) | async isSameEntry (other) {
FILE: public/apps/nfsadapter/adapters/anuraadapter.js
function isBlob (line 20) | function isBlob (object) {
class Sink (line 33) | class Sink {
method constructor (line 38) | constructor (fileHandle, size) {
method abort (line 44) | async abort() {
method write (line 54) | async write (chunk) {
method close (line 145) | async close () {
class FileHandle (line 157) | class FileHandle {
method constructor (line 163) | constructor (path, name) {
method getFile (line 169) | async getFile () {
method isSameEntry (line 178) | async isSameEntry (other) {
method _getPath (line 182) | _getPath() {
method createWritable (line 187) | async createWritable (opts) {
class FolderHandle (line 197) | class FolderHandle {
method constructor (line 200) | constructor (path = '', name = '') {
method isSameEntry (line 207) | async isSameEntry (other) {
method entries (line 212) | async * entries () {
method getDirectoryHandle (line 234) | async getDirectoryHandle (name, opts) {
method getFileHandle (line 251) | async getFileHandle (name, opts) {
method queryPermission (line 264) | async queryPermission () {
method removeEntry (line 272) | async removeEntry (name, opts) {
FILE: public/apps/nfsadapter/adapters/memory.js
class Sink (line 23) | class Sink {
method constructor (line 29) | constructor (fileHandle, file) {
method write (line 36) | write (chunk) {
method close (line 107) | close () {
class FileHandle (line 119) | class FileHandle {
method constructor (line 120) | constructor (name = '', file = new File([], name), writable = true) {
method getFile (line 129) | async getFile () {
method createWritable (line 134) | async createWritable (opts) {
method isSameEntry (line 145) | async isSameEntry (other) {
method _destroy (line 149) | async _destroy () {
class FolderHandle (line 155) | class FolderHandle {
method constructor (line 158) | constructor (name, writable = true) {
method entries (line 169) | async * entries () {
method isSameEntry (line 174) | async isSameEntry (other) {
method getDirectoryHandle (line 182) | async getDirectoryHandle (name, opts) {
method getFileHandle (line 204) | async getFileHandle (name, opts) {
method removeEntry (line 215) | async removeEntry (name, opts) {
method _destroy (line 222) | async _destroy (recursive) {
FILE: public/apps/nfsadapter/adapters/sandbox.js
class Sink (line 15) | class Sink {
method constructor (line 20) | constructor (writer, fileEntry) {
method write (line 28) | async write (chunk) {
method close (line 74) | close () {
class FileHandle (line 79) | class FileHandle {
method constructor (line 81) | constructor (file, writable = true) {
method name (line 88) | get name () {
method isSameEntry (line 95) | isSameEntry (other) {
method getFile (line 100) | getFile () {
method createWritable (line 105) | createWritable (opts) {
class FolderHandle (line 121) | class FolderHandle {
method constructor (line 123) | constructor (dir, writable = true) {
method isSameEntry (line 132) | isSameEntry (other) {
method entries (line 137) | async * entries () {
method getDirectoryHandle (line 150) | getDirectoryHandle (name, opts) {
method getFileHandle (line 163) | getFileHandle (name, opts) {
method removeEntry (line 173) | async removeEntry (name, opts) {
FILE: public/apps/nfsadapter/nfsadapter.js
function t (line 1) | async function t(t={}){if(e&&!t._preferPolyfill)return e(t);const i=docu...
function n (line 1) | async function n(e={}){const t={...i,...e};if(r&&!e._preferPolyfill)retu...
function a (line 1) | async function a(e={}){if(s&&!e._preferPolyfill)return s(e);e._name&&(co...
function o (line 1) | async function o(e,t={}){if(!e)return globalThis.navigator?.storage?.get...
class d (line 1) | class d extends c{#e;constructor(e){super(e),this.#e=e,Object.setPrototy...
method constructor (line 1) | constructor(e){super(e),this.#e=e,Object.setPrototypeOf(this,d.prototy...
method close (line 1) | async close(){this._closed=!0;const e=this.getWriter(),t=e.close();ret...
method seek (line 1) | seek(e){return this.write({type:"seek",position:e})}
method truncate (line 1) | truncate(e){return this.write({type:"truncate",size:e})}
method write (line 1) | write(e){if(this._closed)return Promise.reject(new TypeError("Cannot w...
class w (line 1) | class w{[h];name;kind;constructor(e){this.kind=e.kind,this.name=e.name,t...
method constructor (line 1) | constructor(e){this.kind=e.kind,this.name=e.name,this[h]=e}
method queryPermission (line 1) | async queryPermission(e={}){const{mode:t="read"}=e,i=this[h];if(i.quer...
method requestPermission (line 1) | async requestPermission({mode:e="read"}={}){const t=this[h];if(t.reque...
method remove (line 1) | async remove(e={}){await this[h].remove(e)}
method isSameEntry (line 1) | async isSameEntry(e){return this===e||!(!e||"object"!=typeof e||this.k...
class g (line 1) | class g extends w{[b];constructor(e){super(e),this[b]=e}async getDirecto...
method constructor (line 1) | constructor(e){super(e),this[b]=e}
method getDirectoryHandle (line 1) | async getDirectoryHandle(e,t={}){if(""===e)throw new TypeError("Name c...
method entries (line 1) | async*entries(){const{FileSystemFileHandle:e}=await Promise.resolve()....
method getEntries (line 1) | async*getEntries(){const{FileSystemFileHandle:e}=await Promise.resolve...
method getFileHandle (line 1) | async getFileHandle(e,t={}){const{FileSystemFileHandle:i}=await Promis...
method removeEntry (line 1) | async removeEntry(e,t={}){if(""===e)throw new TypeError("Name can't be...
method resolve (line 1) | async resolve(e){if(await e.isSameEntry(this))return[];const t=[{handl...
method keys (line 1) | async*keys(){for await(const[e]of this[b].entries())yield e}
method values (line 1) | async*values(){for await(const[e,t]of this)yield t}
method [Symbol.asyncIterator] (line 1) | [Symbol.asyncIterator](){return this.entries()}
class H (line 1) | class H extends w{[v];constructor(e){super(e),this[v]=e}async createWrit...
method constructor (line 1) | constructor(e){super(e),this[v]=e}
method createWritable (line 1) | async createWritable(e={}){return new d(await this[v].createWritable(e))}
method getFile (line 1) | async getFile(){return this[v].getFile()}
method write (line 1) | async write(e){if("write"===(e=e?.constructor===Object?{...e}:{type:"wri...
method close (line 1) | async close(){await l({type:"close"}),n.terminate()}
method abort (line 1) | async abort(e){await l({type:"abort",reason:e}),n.terminate()}
class M (line 1) | class M{constructor(e){e.onmessage=e=>this._onMessage(e.data),this._port...
method constructor (line 1) | constructor(e){e.onmessage=e=>this._onMessage(e.data),this._port=e,thi...
method start (line 1) | start(e){return this._controller=e,this._readyPromise}
method write (line 1) | write(e){const t={type:0,chunk:e};return this._port.postMessage(t,[e.b...
method close (line 1) | close(){this._port.postMessage({type:2}),this._port.close()}
method abort (line 1) | abort(e){this._port.postMessage({type:1,reason:e}),this._port.close()}
method _onMessage (line 1) | _onMessage(e){0===e.type&&this._resolveReady(),1===e.type&&this._onErr...
method _onError (line 1) | _onError(e){this._controller.error(e),this._rejectReady(e),this._port....
method _resetReady (line 1) | _resetReady(){this._readyPromise=new Promise(((e,t)=>{this._readyResol...
method _resolveReady (line 1) | _resolveReady(){this._readyResolve(),this._readyPending=!1}
method _rejectReady (line 1) | _rejectReady(e){this._readyPending||this._resetReady(),this._readyProm...
class I (line 1) | class I{constructor(e){const t=new MessageChannel;this.readablePort=t.po...
method constructor (line 1) | constructor(e){const t=new MessageChannel;this.readablePort=t.port1,th...
method constructor (line 1) | constructor(e="unkown"){this.name=e,this.kind="file"}
method getFile (line 1) | async getFile(){throw new k(...x)}
method isSameEntry (line 1) | async isSameEntry(e){return this===e}
method createWritable (line 1) | async createWritable(e={}){const t=await(navigator.serviceWorker?.getReg...
class A (line 1) | class A{constructor(e,t){this.writer=e,this.fileEntry=t}async write(e){i...
method constructor (line 1) | constructor(e,t){this.writer=e,this.fileEntry=t}
method write (line 1) | async write(e){if("object"==typeof e)if("write"===e.type){if(Number.is...
method close (line 1) | close(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}
class N (line 1) | class N{constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t...
method constructor (line 1) | constructor(e,t=!0){this.file=e,this.kind="file",this.writable=t,this....
method name (line 1) | get name(){return this.file.name}
method isSameEntry (line 1) | isSameEntry(e){return this.file.toURL()===e.file.toURL()}
method getFile (line 1) | getFile(){return new Promise(this.file.file.bind(this.file))}
method createWritable (line 1) | createWritable(e){if(!this.writable)throw new DOMException(...j);retur...
class W (line 1) | class W{constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,...
method constructor (line 1) | constructor(e,t=!0){this.dir=e,this.writable=t,this.readable=!0,this.k...
method isSameEntry (line 1) | isSameEntry(e){return this.dir.fullPath===e.dir.fullPath}
method entries (line 1) | async*entries(){const e=this.dir.createReader(),t=await new Promise(e....
method getDirectoryHandle (line 1) | getDirectoryHandle(e,t){return new Promise(((i,r)=>{this.dir.getDirect...
method getFileHandle (line 1) | getFileHandle(e,t){return new Promise(((i,r)=>this.dir.getFile(e,t,(e=...
method removeEntry (line 1) | async removeEntry(e,t){const i=await this.getDirectoryHandle(e,{create...
class K (line 1) | class K{constructor(e,t){this.fileHandle=e,this.file=t,this.size=t.size,...
method constructor (line 1) | constructor(e,t){this.fileHandle=e,this.file=t,this.size=t.size,this.p...
method write (line 1) | write(e){let t=this.file;if("object"==typeof e)if("write"===e.type){if...
method close (line 1) | close(){if(this.fileHandle._deleted)throw new B(...G);this.fileHandle....
class Q (line 1) | class Q{constructor(e="",t=new U([],e),i=!0){this._file=t,this.name=e,th...
method constructor (line 1) | constructor(e="",t=new U([],e),i=!0){this._file=t,this.name=e,this.kin...
method getFile (line 1) | async getFile(){if(this._deleted)throw new B(...G);return this._file}
method createWritable (line 1) | async createWritable(e){if(!this.writable)throw new B(...J);if(this._d...
method isSameEntry (line 1) | async isSameEntry(e){return this===e}
method _destroy (line 1) | async _destroy(){this._deleted=!0,this._file=null}
class Z (line 1) | class Z{constructor(e,t=!0){this.name=e,this.kind="directory",this._dele...
method constructor (line 1) | constructor(e,t=!0){this.name=e,this.kind="directory",this._deleted=!1...
method entries (line 1) | async*entries(){if(this._deleted)throw new B(...G);yield*Object.entrie...
method isSameEntry (line 1) | async isSameEntry(e){return this===e}
method getDirectoryHandle (line 1) | async getDirectoryHandle(e,t){if(this._deleted)throw new B(...G);const...
method getFileHandle (line 1) | async getFileHandle(e,t){const i=this._entries[e],r=i instanceof Q;if(...
method removeEntry (line 1) | async removeEntry(e,t){const i=this._entries[e];if(!i)throw new B(...G...
method _destroy (line 1) | async _destroy(e){for(let t of Object.values(this._entries)){if(!e)thr...
FILE: public/apps/nfsadapter/util.js
function fromDataTransfer (line 15) | async function fromDataTransfer (entries) {
function getDirHandlesFromInput (line 32) | async function getDirHandlesFromInput (input) {
function getFileHandlesFromInput (line 56) | async function getFileHandlesFromInput (input) {
FILE: public/apps/settings.tapp/index.js
function mouseleave (line 17) | function mouseleave() {
function mouseover (line 23) | function mouseover() {
function getWispSrvs (line 302) | async function getWispSrvs() {
function updateTransport (line 431) | async function updateTransport(transport) {
function exportSettings (line 866) | async function exportSettings() {
function render (line 879) | async function render(initial) {
function convertTBSIF (line 953) | async function convertTBSIF() {
FILE: public/apps/task manager.tapp/index.js
function loadPane (line 33) | function loadPane(val) {
function getSpecs (line 54) | function getSpecs() {
function getTasks (line 104) | async function getTasks() {
function getStartups (line 185) | async function getStartups() {
FILE: public/apps/terminal.tapp/index.js
function htorgb (line 30) | function htorgb(hex) {
constant HISTORY_LIMIT (line 71) | const HISTORY_LIMIT = 1000;
constant HISTORY_FILE (line 72) | const HISTORY_FILE = ".bash_history";
class TerminalSession (line 74) | class TerminalSession {
method constructor (line 75) | constructor(name = "Terbium TSH") {
method _bindEvents (line 102) | _bindEvents() {
method handleChar (line 160) | async handleChar(char) {
method writePowerline (line 269) | async writePowerline() {
method createNewCommandInput (line 277) | async createNewCommandInput() {
method displayOutput (line 282) | async displayOutput(message, ...styles) {
method displayError (line 319) | async displayError(message) {
method loadHistory (line 322) | async loadHistory() {
method saveToHistory (line 331) | async saveToHistory(command) {
method handleCommand (line 344) | async handleCommand(name, args) {
method resize (line 400) | resize() {
method focus (line 409) | focus() {
method enterPassthrough (line 415) | enterPassthrough() {
method exitPassthrough (line 419) | exitPassthrough() {
method setName (line 427) | setName(newName) {
method destroy (line 437) | destroy() {
function getWinRoot (line 451) | function getWinRoot() {
function addTabToTitle (line 458) | function addTabToTitle(session) {
function removeTabFromTitle (line 482) | function removeTabFromTitle(id) {
function setActiveTabInTitle (line 489) | function setActiveTabInTitle() {
function createSession (line 497) | function createSession(name = "Terbium TSH") {
function switchSession (line 517) | function switchSession(id) {
function switchSessionNext (line 525) | function switchSessionNext() {
function closeSession (line 531) | function closeSession(id) {
function resizeTerm (line 568) | function resizeTerm() {
function handleCommand (line 590) | async function handleCommand(name, args) {
function getAppInfo (line 651) | async function getAppInfo(justNames = true) {
function displayOutput (line 687) | async function displayOutput(message, ...styles) {
function writePowerline (line 696) | async function writePowerline() {
function createNewCommandInput (line 704) | async function createNewCommandInput() {
function displayError (line 713) | function displayError(message) {
function loadHistory (line 722) | async function loadHistory() {
function saveToHistory (line 731) | async function saveToHistory(command) {
FILE: public/apps/terminal.tapp/scripts/cat.js
function cat (line 1) | async function cat(args) {
FILE: public/apps/terminal.tapp/scripts/cd.js
function cd (line 1) | function cd(args) {
FILE: public/apps/terminal.tapp/scripts/clear.js
function clear (line 1) | function clear(term) {
FILE: public/apps/terminal.tapp/scripts/curl.js
function curl (line 1) | async function curl(args) {
FILE: public/apps/terminal.tapp/scripts/echo.js
function echo (line 1) | function echo(args) {
FILE: public/apps/terminal.tapp/scripts/exit.js
function exit (line 1) | function exit() {
FILE: public/apps/terminal.tapp/scripts/git.js
function git (line 1) | async function git(args) {
FILE: public/apps/terminal.tapp/scripts/help.js
function help (line 1) | async function help(args) {
FILE: public/apps/terminal.tapp/scripts/ls.js
function ls (line 1) | async function ls(args) {
FILE: public/apps/terminal.tapp/scripts/mkdir.js
function mkdir (line 1) | async function mkdir(args) {
FILE: public/apps/terminal.tapp/scripts/nano.js
function nano (line 1) | async function nano(args) {
FILE: public/apps/terminal.tapp/scripts/node.js
function node (line 11) | async function node(args, term) {
FILE: public/apps/terminal.tapp/scripts/ping.js
function ping (line 1) | async function ping(args) {
FILE: public/apps/terminal.tapp/scripts/pkg.js
function pkg (line 1) | async function pkg(args) {
function installApp (line 262) | async function installApp(app, type) {
function unzip (line 438) | async function unzip(path, target) {
FILE: public/apps/terminal.tapp/scripts/pkill.js
function pkill (line 1) | function pkill(args) {
FILE: public/apps/terminal.tapp/scripts/pwd.js
function pwd (line 1) | function pwd(args) {
FILE: public/apps/terminal.tapp/scripts/rm.js
function rm (line 1) | async function rm(args) {
FILE: public/apps/terminal.tapp/scripts/rmdir.js
function rmdir (line 1) | async function rmdir(args) {
FILE: public/apps/terminal.tapp/scripts/ssh-keygen.js
function ssh_keygen (line 1) | function ssh_keygen(args) {
FILE: public/apps/terminal.tapp/scripts/ssh.js
function getClientInternal (line 65) | async function getClientInternal() {
FILE: public/apps/terminal.tapp/scripts/sysfetch.js
function sysfetch (line 1) | async function sysfetch(args, term) {
function displayCPUInfo (line 25) | async function displayCPUInfo(accent) {
function displayMemoryInfo (line 32) | async function displayMemoryInfo(accent) {
function displayGPUInfo (line 41) | async function displayGPUInfo(accent) {
function getStorage (line 61) | async function getStorage(accent) {
FILE: public/apps/terminal.tapp/scripts/taskkill.js
function taskkill (line 1) | function taskkill(args) {
FILE: public/apps/terminal.tapp/scripts/tb.js
function tb (line 128) | async function tb(args) {
FILE: public/apps/terminal.tapp/scripts/touch.js
function touch (line 1) | async function touch(args) {
FILE: public/apps/terminal.tapp/scripts/unzip.js
function uzip (line 1) | async function uzip(path, target) {
function unzip (line 64) | async function unzip(args) {
FILE: public/apps/terminal.tapp/ssh-util.js
function t (line 1) | function t(e,n,t,r,o,s,i){try{var c=e[s](i),a=c.value}catch(e){t(e);retu...
function r (line 1) | function r(e){return function(){var n=this,r=arguments;return new Promis...
function o (line 1) | function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enume...
function s (line 1) | function s(e,n){var t,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1...
function n (line 1) | function n(e){if(!(this instanceof n))throw TypeError("Cannot call a cla...
function c (line 1) | function c(e,n,t,r,o,s,i){try{var c=e[s](i),a=c.value}catch(e){t(e);retu...
function a (line 1) | function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enume...
function n (line 1) | function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[...
function a (line 1) | function a(c){return function(a){var l=[c,a];if(t)throw TypeError("Gener...
function i (line 1) | function i(e){c(s,r,o,i,a,"next",e)}
function a (line 1) | function a(e){c(s,r,o,i,a,"throw",e)}
function u (line 1) | function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enume...
function f (line 1) | function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[...
function n (line 1) | function n(e){if(!(this instanceof n))throw TypeError("Cannot call a cla...
function p (line 1) | function p(e,n,t,r,o,s,i){try{var c=e[s](i),a=c.value}catch(e){t(e);retu...
function d (line 1) | function d(e){return function(){var n=this,t=arguments;return new Promis...
function S (line 1) | function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enume...
function g (line 1) | function g(e,n){var t,r,o,s={label:0,sent:function(){if(1&o[0])throw o[1...
function b (line 1) | function b(){return d(function(){var e,n,t;return g(this,function(r){swi...
function y (line 1) | function y(e){return d(function(){return g(this,function(n){switch(n.lab...
function v (line 1) | function v(){return d(function(){var e,n,t,r;return g(this,function(o){s...
function m (line 1) | function m(e){return d(function(){var n,t,r,o,s;return g(this,function(i...
function n (line 1) | function n(e){if(!(this instanceof n))throw TypeError("Cannot call a cla...
FILE: public/apps/text editor.tapp/index.js
function openFile (line 5) | function openFile(data) {
function updateLineNumbers (line 11) | async function updateLineNumbers() {
function updateScroll (line 92) | function updateScroll(type, e) {
FILE: public/assets/libs/comlink.min.umd.js
method serialize (line 6) | serialize(e){const{port1:t,port2:n}=new MessageChannel;return c(e,t),[n,...
method serialize (line 6) | serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value...
method deserialize (line 6) | deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.messag...
function c (line 6) | function c(e,t=globalThis,n=["*"]){t.addEventListener("message",(functio...
function u (line 6) | function u(e){(function(e){return"MessagePort"===e.constructor.name})(e)...
function l (line 6) | function l(e,t){const n=new Map;return e.addEventListener("message",(fun...
function p (line 6) | function p(e){if(e)throw new Error("Proxy has been released and is not u...
function f (line 6) | function f(e){return k(e,new Map,{type:"RELEASE"}).then((()=>{u(e)}))}
function m (line 6) | function m(e,t,a=[],o=function(){}){let s=!1;const i=new Proxy(o,{get(n,...
function y (line 6) | function y(e){const t=e.map(v);return[t.map((e=>e[0])),(n=t.map((e=>e[1]...
function E (line 6) | function E(e,t){return h.set(e,t),e}
function b (line 6) | function b(e){return Object.assign(e,{[t]:!0})}
function v (line 6) | function v(e){for(const[t,n]of i)if(n.canHandle(e)){const[r,a]=n.seriali...
function w (line 6) | function w(e){switch(e.type){case"HANDLER":return i.get(e.name).deserial...
function k (line 6) | function k(e,t,n,r){return new Promise((a=>{const o=new Array(4).fill(0)...
FILE: public/assets/libs/idb-keyval.js
function _slicedToArray (line 1) | function _slicedToArray(t,n){return _arrayWithHoles(t)||_iterableToArray...
function _nonIterableRest (line 1) | function _nonIterableRest(){throw new TypeError("Invalid attempt to dest...
function _unsupportedIterableToArray (line 1) | function _unsupportedIterableToArray(t,n){if(t){if("string"==typeof t)re...
function _arrayLikeToArray (line 1) | function _arrayLikeToArray(t,n){(null==n||n>t.length)&&(n=t.length);for(...
function _iterableToArrayLimit (line 1) | function _iterableToArrayLimit(t,n){var r=null==t?null:"undefined"!=type...
function _arrayWithHoles (line 1) | function _arrayWithHoles(t){if(Array.isArray(t))return t}
function _typeof (line 1) | function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==...
function n (line 1) | function n(t){return new Promise((function(n,r){t.oncomplete=t.onsuccess...
function r (line 1) | function r(t,r){var e=indexedDB.open(t);e.onupgradeneeded=function(){ret...
function o (line 1) | function o(){return e||(e=r("keyval-store","keyval")),e}
function u (line 1) | function u(t,r){return t.openCursor().onsuccess=function(){this.result&&...
FILE: public/assets/libs/mime.iife.js
class Mime (line 1065) | class Mime {
method constructor (line 1066) | constructor(...args) {
method define (line 1074) | define(typeMap, force = false) {
method getType (line 1102) | getType(path) {
method getExtension (line 1113) | getExtension(type) {
method getAllExtensions (line 1119) | getAllExtensions(type) {
method _freeze (line 1124) | _freeze() {
method _getTestState (line 1134) | _getTestState() {
FILE: public/assets/libs/workbox/workbox-background-sync.dev.js
class QueueStore (line 27) | class QueueStore {
method constructor (line 35) | constructor(queueName) {
method pushEntry (line 51) | async pushEntry(entry) {
method unshiftEntry (line 82) | async unshiftEntry(entry) {
method popEntry (line 119) | async popEntry() {
method shiftEntry (line 131) | async shiftEntry() {
method _removeEntry (line 144) | async _removeEntry({
method _upgradeDb (line 169) | _upgradeDb(event) {
class StorableRequest (line 202) | class StorableRequest {
method fromRequest (line 212) | static async fromRequest(request) {
method constructor (line 251) | constructor(requestData) {
method toObject (line 278) | toObject() {
method toRequest (line 297) | toRequest() {
method clone (line 309) | clone() {
class Queue (line 334) | class Queue {
method constructor (line 354) | constructor(name, {
method name (line 379) | get name() {
method pushRequest (line 400) | async pushRequest(entry) {
method unshiftRequest (line 436) | async unshiftRequest(entry) {
method popRequest (line 463) | async popRequest() {
method shiftRequest (line 475) | async shiftRequest() {
method _addRequest (line 489) | async _addRequest({
method _removeRequest (line 528) | async _removeRequest(operation) {
method replayRequests (line 553) | async replayRequests() {
method registerSync (line 585) | async registerSync() {
method _addSyncListener (line 607) | _addSyncListener() {
method _queueNames (line 668) | static get _queueNames() {
class Plugin (line 688) | class Plugin {
method constructor (line 694) | constructor(...queueArgs) {
method fetchDidFail (line 705) | async fetchDidFail({
FILE: public/assets/libs/workbox/workbox-background-sync.prod.js
class c (line 1) | class c{constructor(t){this.t=t,this.s=new s.DBWrapper(n,i,{onupgradenee...
method constructor (line 1) | constructor(t){this.t=t,this.s=new s.DBWrapper(n,i,{onupgradeneeded:t=...
method pushEntry (line 1) | async pushEntry(t){delete t.id,t.queueName=this.t,await this.s.add(a,t)}
method unshiftEntry (line 1) | async unshiftEntry(t){const[e]=await this.s.getAllMatching(a,{count:1}...
method popEntry (line 1) | async popEntry(){return this.h({direction:"prev"})}
method shiftEntry (line 1) | async shiftEntry(){return this.h({direction:"next"})}
method h (line 1) | async h({direction:t}){const[e]=await this.s.getAllMatching(a,{directi...
method i (line 1) | i(t){const e=t.target.result;t.oldVersion>0&&t.oldVersion<i&&e.deleteO...
class o (line 1) | class o{static async fromRequest(t){const e={url:t.url,headers:{}};"GET"...
method fromRequest (line 1) | static async fromRequest(t){const e={url:t.url,headers:{}};"GET"!==t.m...
method constructor (line 1) | constructor(t){this.o=t}
method toObject (line 1) | toObject(){const t=Object.assign({},this.o);return t.headers=Object.as...
method toRequest (line 1) | toRequest(){return new Request(this.o.url,this.o)}
method clone (line 1) | clone(){return new o(this.toObject())}
class d (line 1) | class d{constructor(t,{onSync:s,maxRetentionTime:i}={}){if(w.has(t))thro...
method constructor (line 1) | constructor(t,{onSync:s,maxRetentionTime:i}={}){if(w.has(t))throw new ...
method name (line 1) | get name(){return this.u}
method pushRequest (line 1) | async pushRequest(t){await this.g(t,"push")}
method unshiftRequest (line 1) | async unshiftRequest(t){await this.g(t,"unshift")}
method popRequest (line 1) | async popRequest(){return this.R("pop")}
method shiftRequest (line 1) | async shiftRequest(){return this.R("shift")}
method g (line 1) | async g({request:t,metadata:e,timestamp:s=Date.now()},i){const n={requ...
method R (line 1) | async R(t){const e=Date.now(),s=await this.m[`${t}Entry`]();if(s){cons...
method replayRequests (line 1) | async replayRequests(){let t;for(;t=await this.shiftRequest();)try{awa...
method registerSync (line 1) | async registerSync(){if("sync"in registration)try{await registration.s...
method p (line 1) | p(){"sync"in registration?self.addEventListener("sync",t=>{if(t.tag===...
method D (line 1) | static get D(){return w}
method constructor (line 1) | constructor(...t){this.$=new d(...t),this.fetchDidFail=this.fetchDidFail...
method fetchDidFail (line 1) | async fetchDidFail({request:t}){await this.$.pushRequest({request:t})}
FILE: public/assets/libs/workbox/workbox-broadcast-update.dev.js
class BroadcastCacheUpdate (line 178) | class BroadcastCacheUpdate {
method constructor (line 195) | constructor({
method notifyIfUpdated (line 241) | notifyIfUpdated({
method _getChannel (line 297) | _getChannel() {
method _windowReadyOrTimeout (line 315) | _windowReadyOrTimeout(event) {
method _initWindowReadyDeferreds (line 348) | _initWindowReadyDeferreds() {
class Plugin (line 386) | class Plugin {
method constructor (line 404) | constructor(options) {
method cacheDidUpdate (line 422) | cacheDidUpdate({
FILE: public/assets/libs/workbox/workbox-broadcast-update.prod.js
class c (line 1) | class c{constructor({headersToCheck:e,channelName:t,deferNoticationTimeo...
method constructor (line 1) | constructor({headersToCheck:e,channelName:t,deferNoticationTimeout:s}=...
method notifyIfUpdated (line 1) | notifyIfUpdated({oldResponse:e,newResponse:t,url:n,cacheName:a,event:i...
method l (line 1) | l(){return"BroadcastChannel"in self&&!this.u&&(this.u=new BroadcastCha...
method h (line 1) | h(e){if(!this.m.has(e)){const s=new t.Deferred;this.m.set(e,s);const n...
method o (line 1) | o(){this.m=new Map,self.addEventListener("message",e=>{if("WINDOW_READ...
method constructor (line 1) | constructor(e){this.p=new c(e)}
method cacheDidUpdate (line 1) | cacheDidUpdate({cacheName:e,oldResponse:t,newResponse:s,request:n,event:...
FILE: public/assets/libs/workbox/workbox-cacheable-response.dev.js
class CacheableResponse (line 25) | class CacheableResponse {
method constructor (line 40) | constructor(config = {}) {
method isResponseCacheable (line 83) | isResponseCacheable(response) {
class Plugin (line 148) | class Plugin {
method constructor (line 163) | constructor(config) {
method cacheWillUpdate (line 174) | cacheWillUpdate({
FILE: public/assets/libs/workbox/workbox-cacheable-response.prod.js
class s (line 1) | class s{constructor(t={}){this.t=t.statuses,this.s=t.headers}isResponseC...
method constructor (line 1) | constructor(t={}){this.t=t.statuses,this.s=t.headers}
method isResponseCacheable (line 1) | isResponseCacheable(t){let s=!0;return this.t&&(s=this.t.includes(t.st...
method constructor (line 1) | constructor(t){this.i=new s(t)}
method cacheWillUpdate (line 1) | cacheWillUpdate({response:t}){return this.i.isResponseCacheable(t)?t:null}
FILE: public/assets/libs/workbox/workbox-core.dev.js
class WorkboxError (line 371) | class WorkboxError extends Error {
method constructor (line 380) | constructor(errorCode, details) {
function registerQuotaErrorCallback (line 550) | function registerQuotaErrorCallback(callback) {
function executeQuotaErrorCallbacks (line 574) | async function executeQuotaErrorCallbacks() {
class DBWrapper (line 615) | class DBWrapper {
method constructor (line 624) | constructor(name, version, {
method db (line 640) | get db() {
method open (line 651) | async open() {
method getKey (line 702) | async getKey(storeName, query) {
method getAll (line 716) | async getAll(storeName, query, count) {
method getAllKeys (line 733) | async getAllKeys(storeName, query, count) {
method getAllMatching (line 760) | async getAllMatching(storeName, {
method transaction (line 819) | async transaction(storeNames, type, callback) {
method _call (line 844) | async _call(method, storeName, type, ...args) {
method _onversionchange (line 861) | _onversionchange() {
method close (line 877) | close() {
method googleAnalytics (line 1468) | get googleAnalytics() {
method precache (line 1472) | get precache() {
method runtime (line 1476) | get runtime() {
FILE: public/assets/libs/workbox/workbox-core.prod.js
class n (line 1) | class n extends Error{constructor(e,n){super(t(e,n)),this.name=e,this.de...
method constructor (line 1) | constructor(e,n){super(t(e,n)),this.name=e,this.details=n}
class r (line 1) | class r{constructor(e,t,{onupgradeneeded:n,onversionchange:s=this.t}={})...
method constructor (line 1) | constructor(e,t,{onupgradeneeded:n,onversionchange:s=this.t}={}){this....
method db (line 1) | get db(){return this.l}
method open (line 1) | async open(){if(!this.l)return this.l=await new Promise((e,t)=>{let n=...
method getKey (line 1) | async getKey(e,t){return(await this.getAllKeys(e,t,1))[0]}
method getAll (line 1) | async getAll(e,t,n){return await this.getAllMatching(e,{query:t,count:...
method getAllKeys (line 1) | async getAllKeys(e,t,n){return(await this.getAllMatching(e,{query:t,co...
method getAllMatching (line 1) | async getAllMatching(e,{index:t,query:n=null,direction:s="next",count:...
method transaction (line 1) | async transaction(e,t,n){return await this.open(),await new Promise((s...
method u (line 1) | async u(e,t,n,...s){return await this.transaction([t],n,(n,r)=>{n.obje...
method t (line 1) | t(){this.close()}
method close (line 1) | close(){this.l&&(this.l.close(),this.l=null)}
method googleAnalytics (line 1) | get googleAnalytics(){return o.getGoogleAnalyticsName()}
method precache (line 1) | get precache(){return o.getPrecacheName()}
method runtime (line 1) | get runtime(){return o.getRuntimeName()}
FILE: public/assets/libs/workbox/workbox-expiration.dev.js
class CacheTimestampsModel (line 31) | class CacheTimestampsModel {
method constructor (line 38) | constructor(cacheName) {
method _handleUpgrade (line 53) | _handleUpgrade(event) {
method setTimestamp (line 83) | async setTimestamp(url, timestamp) {
method getTimestamp (line 105) | async getTimestamp(url) {
method expireEntries (line 121) | async expireEntries(minTimestamp, maxCount) {
method _getId (line 163) | _getId(url) {
class CacheExpiration (line 187) | class CacheExpiration {
method constructor (line 199) | constructor(cacheName, config = {}) {
method expireEntries (line 247) | async expireEntries() {
method updateTimestamp (line 290) | async updateTimestamp(url) {
method isURLExpired (line 315) | async isURLExpired(url) {
method delete (line 335) | async delete() {
class Plugin (line 370) | class Plugin {
method constructor (line 380) | constructor(config = {}) {
method _getCacheExpiration (line 428) | _getCacheExpiration(cacheName) {
method cachedResponseWillBeUsed (line 462) | cachedResponseWillBeUsed({
method _isResponseDateFresh (line 503) | _isResponseDateFresh(cachedResponse) {
method _getDateHeaderTimestamp (line 535) | _getDateHeaderTimestamp(cachedResponse) {
method cacheDidUpdate (line 563) | async cacheDidUpdate({
method deleteCacheAndMetadata (line 605) | async deleteCacheAndMetadata() {
FILE: public/assets/libs/workbox/workbox-expiration.prod.js
class o (line 1) | class o{constructor(t){this.t=t,this.s=new e.DBWrapper(n,1,{onupgradenee...
method constructor (line 1) | constructor(t){this.t=t,this.s=new e.DBWrapper(n,1,{onupgradeneeded:t=...
method i (line 1) | i(t){const e=t.target.result.createObjectStore(c,{keyPath:"id"});e.cre...
method setTimestamp (line 1) | async setTimestamp(t,e){t=r(t),await this.s.put(c,{url:t,timestamp:e,c...
method getTimestamp (line 1) | async getTimestamp(t){return(await this.s.get(c,this.h(t))).timestamp}
method expireEntries (line 1) | async expireEntries(t,e){return await this.s.transaction(c,"readwrite"...
method h (line 1) | h(t){return this.t+"|"+r(t)}
class u (line 1) | class u{constructor(t,e={}){this.o=!1,this.u=!1,this.l=e.maxEntries,this...
method constructor (line 1) | constructor(t,e={}){this.o=!1,this.u=!1,this.l=e.maxEntries,this.p=e.m...
method expireEntries (line 1) | async expireEntries(){if(this.o)return void(this.u=!0);this.o=!0;const...
method updateTimestamp (line 1) | async updateTimestamp(t){await this.m.setTimestamp(t,Date.now())}
method isURLExpired (line 1) | async isURLExpired(t){return await this.m.getTimestamp(t)<Date.now()-1...
method delete (line 1) | async delete(){this.u=!1,await this.m.expireEntries(1/0)}
method constructor (line 1) | constructor(t={}){this.D=t,this.p=t.maxAgeSeconds,this.g=new Map,t.purge...
method k (line 1) | k(t){if(t===a.cacheNames.getRuntimeName())throw new i.WorkboxError("expi...
method cachedResponseWillBeUsed (line 1) | cachedResponseWillBeUsed({event:t,request:e,cacheName:s,cachedResponse:i...
method N (line 1) | N(t){if(!this.p)return!0;const e=this._(t);return null===e||e>=Date.now(...
method _ (line 1) | _(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date")...
method cacheDidUpdate (line 1) | async cacheDidUpdate({cacheName:t,request:e}){const s=this.k(t);await s....
method deleteCacheAndMetadata (line 1) | async deleteCacheAndMetadata(){for(const[t,e]of this.g)await caches.dele...
FILE: public/assets/libs/workbox/workbox-navigation-preload.dev.js
function isSupported (line 23) | function isSupported() {
function disable (line 40) | function disable() {
function enable (line 74) | function enable(headerValue) {
FILE: public/assets/libs/workbox/workbox-navigation-preload.prod.js
function e (line 1) | function e(){return Boolean(self.registration&&self.registration.navigat...
FILE: public/assets/libs/workbox/workbox-precaching.dev.js
method get (line 22) | get() {
method add (line 30) | add(newPlugins) {
function cleanRedirect (line 70) | async function cleanRedirect(response) {
function createCacheKey (line 103) | function createCacheKey(entry) {
function printCleanupDetails (line 177) | function printCleanupDetails(deletedURLs) {
function _nestedGroup (line 201) | function _nestedGroup(groupTitle, urls) {
function printInstallDetails (line 223) | function printInstallDetails(urlsToPrecache, urlsAlreadyPrecached) {
class PrecacheController (line 257) | class PrecacheController {
method constructor (line 264) | constructor(cacheName) {
method addToCacheList (line 278) | addToCacheList(entries) {
method install (line 316) | async install({
method activate (line 371) | async activate() {
method _addURLToCache (line 410) | async _addURLToCache({
method getURLsToCacheKeys (line 474) | getURLsToCacheKeys() {
method getCachedURLs (line 485) | getCachedURLs() {
method getCacheKeyForURL (line 499) | getCacheKeyForURL(url) {
function removeIgnoredSearchParams (line 547) | function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatchin...
FILE: public/assets/libs/workbox/workbox-precaching.prod.js
method add (line 1) | add(t){o.push(...t)}
function r (line 1) | function r(t){if(!t)throw new c.WorkboxError("add-to-cache-list-unexpect...
class l (line 1) | class l{constructor(t){this.t=e.cacheNames.getPrecacheName(t),this.s=new...
method constructor (line 1) | constructor(t){this.t=e.cacheNames.getPrecacheName(t),this.s=new Map}
method addToCacheList (line 1) | addToCacheList(t){for(const e of t){const{cacheKey:t,url:n}=r(e);if(th...
method install (line 1) | async install({event:t,plugins:e}={}){const n=[],s=[],c=await caches.o...
method activate (line 1) | async activate(){const t=await caches.open(this.t),e=await t.keys(),n=...
method o (line 1) | async o({url:t,event:e,plugins:o}){const i=new Request(t,{credentials:...
method getURLsToCacheKeys (line 1) | getURLsToCacheKeys(){return this.s}
method getCachedURLs (line 1) | getCachedURLs(){return[...this.s.keys()]}
method getCacheKeyForURL (line 1) | getCacheKeyForURL(t){const e=new URL(t,location);return this.s.get(e.h...
FILE: public/assets/libs/workbox/workbox-range-requests.dev.js
function calculateEffectiveBoundaries (line 27) | function calculateEffectiveBoundaries(blob, start, end) {
function parseRangeHeader (line 83) | function parseRangeHeader(rangeHeader) {
function createPartialResponse (line 149) | async function createPartialResponse(request, originalResponse) {
class Plugin (line 225) | class Plugin {
method cachedResponseWillBeUsed (line 237) | async cachedResponseWillBeUsed({
FILE: public/assets/libs/workbox/workbox-range-requests.prod.js
function t (line 1) | async function t(e,t){try{if(206===t.status)return t;const s=e.headers.g...
method cachedResponseWillBeUsed (line 1) | async cachedResponseWillBeUsed({request:e,cachedResponse:n}){return n&&e...
FILE: public/assets/libs/workbox/workbox-routing.dev.js
class Route (line 96) | class Route {
method constructor (line 108) | constructor(match, handler, method) {
class NavigationRoute (line 156) | class NavigationRoute extends Route {
method constructor (line 176) | constructor(handler, {
method _match (line 211) | _match({
class RegExpRoute (line 269) | class RegExpRoute extends Route {
method constructor (line 283) | constructor(regExp, handler, method) {
class Router (line 351) | class Router {
method constructor (line 355) | constructor() {
method routes (line 365) | get routes() {
method addFetchListener (line 374) | addFetchListener() {
method addCacheListener (line 413) | addCacheListener() {
method handleRequest (line 458) | handleRequest({
method findMatchingRoute (line 594) | findMatchingRoute({
method setDefaultHandler (line 656) | setDefaultHandler(handler) {
method setCatchHandler (line 668) | setCatchHandler(handler) {
method registerRoute (line 678) | registerRoute(route) {
method unregisterRoute (line 727) | unregisterRoute(route) {
FILE: public/assets/libs/workbox/workbox-routing.prod.js
class o (line 1) | class o{constructor(t,e,r){this.handler=n(e),this.match=t,this.method=r|...
method constructor (line 1) | constructor(t,e,r){this.handler=n(e),this.match=t,this.method=r||s}
class i (line 1) | class i extends o{constructor(t,{whitelist:e=[/./],blacklist:r=[]}={}){s...
method constructor (line 1) | constructor(t,{whitelist:e=[/./],blacklist:r=[]}={}){super(t=>this.t(t...
method t (line 1) | t({url:t,request:e}){if("navigate"!==e.mode)return!1;const r=t.pathnam...
class u (line 1) | class u extends o{constructor(t,e,r){super(({url:e})=>{const r=t.exec(e....
method constructor (line 1) | constructor(t,e,r){super(({url:e})=>{const r=t.exec(e.href);return r?e...
class c (line 1) | class c{constructor(){this.i=new Map}get routes(){return this.i}addFetch...
method constructor (line 1) | constructor(){this.i=new Map}
method routes (line 1) | get routes(){return this.i}
method addFetchListener (line 1) | addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=...
method addCacheListener (line 1) | addCacheListener(){self.addEventListener("message",async t=>{if(t.data...
method handleRequest (line 1) | handleRequest({request:t,event:e}){const r=new URL(t.url,location);if(...
method findMatchingRoute (line 1) | findMatchingRoute({url:t,request:e,event:r}){const s=this.i.get(e.meth...
method setDefaultHandler (line 1) | setDefaultHandler(t){this.u=n(t)}
method setCatchHandler (line 1) | setCatchHandler(t){this.h=n(t)}
method registerRoute (line 1) | registerRoute(t){this.i.has(t.method)||this.i.set(t.method,[]),this.i....
method unregisterRoute (line 1) | unregisterRoute(t){if(!this.i.has(t.method))throw new r.WorkboxError("...
FILE: public/assets/libs/workbox/workbox-strategies.dev.js
class CacheFirst (line 59) | class CacheFirst {
method constructor (line 72) | constructor(options = {}) {
method handle (line 90) | async handle({
method makeRequest (line 116) | async makeRequest({
method _getFromNetwork (line 199) | async _getFromNetwork(request, event) {
class CacheOnly (line 251) | class CacheOnly {
method constructor (line 261) | constructor(options = {}) {
method handle (line 278) | async handle({
method makeRequest (line 304) | async makeRequest({
class NetworkFirst (line 405) | class NetworkFirst {
method constructor (line 424) | constructor(options = {}) {
method handle (line 463) | async handle({
method makeRequest (line 489) | async makeRequest({
method _getTimeoutPromise (line 574) | _getTimeoutPromise({
method _getNetworkPromise (line 611) | async _getNetworkPromise({
method _respondFromCache (line 694) | _respondFromCache({
class NetworkOnly (line 729) | class NetworkOnly {
method constructor (line 741) | constructor(options = {}) {
method handle (line 758) | async handle({
method makeRequest (line 784) | async makeRequest({
class StaleWhileRevalidate (line 868) | class StaleWhileRevalidate {
method constructor (line 881) | constructor(options = {}) {
method handle (line 908) | async handle({
method makeRequest (line 934) | async makeRequest({
method _getFromNetwork (line 1023) | async _getFromNetwork({
FILE: public/assets/libs/workbox/workbox-strategies.prod.js
class i (line 1) | class i{constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName...
method constructor (line 1) | constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName),this...
method handle (line 1) | async handle({event:e,request:t}){return this.makeRequest({event:e,req...
method makeRequest (line 1) | async makeRequest({event:e,request:t}){"string"==typeof t&&(t=new Requ...
method u (line 1) | async u(e,t){const r=await n.fetchWrapper.fetch({request:e,event:t,fet...
class h (line 1) | class h{constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName...
method constructor (line 1) | constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName),this...
method handle (line 1) | async handle({event:e,request:t}){return this.makeRequest({event:e,req...
method makeRequest (line 1) | async makeRequest({event:e,request:t}){"string"==typeof t&&(t=new Requ...
class a (line 1) | class a{constructor(e={}){if(this.t=t.cacheNames.getRuntimeName(e.cacheN...
method constructor (line 1) | constructor(e={}){if(this.t=t.cacheNames.getRuntimeName(e.cacheName),e...
method handle (line 1) | async handle({event:e,request:t}){return this.makeRequest({event:e,req...
method makeRequest (line 1) | async makeRequest({event:e,request:t}){const s=[];"string"==typeof t&&...
method l (line 1) | l({request:e,logs:t,event:s}){let n;return{promise:new Promise(t=>{n=s...
method q (line 1) | async q({timeoutId:e,request:t,logs:r,event:i}){let h,u;try{u=await n....
method p (line 1) | p({event:e,request:t}){return s.cacheWrapper.match({cacheName:this.t,r...
class c (line 1) | class c{constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName...
method constructor (line 1) | constructor(e={}){this.t=t.cacheNames.getRuntimeName(e.cacheName),this...
method handle (line 1) | async handle({event:e,request:t}){return this.makeRequest({event:e,req...
method makeRequest (line 1) | async makeRequest({event:e,request:t}){let s,i;"string"==typeof t&&(t=...
class o (line 1) | class o{constructor(e={}){if(this.t=t.cacheNames.getRuntimeName(e.cacheN...
method constructor (line 1) | constructor(e={}){if(this.t=t.cacheNames.getRuntimeName(e.cacheName),t...
method handle (line 1) | async handle({event:e,request:t}){return this.makeRequest({event:e,req...
method makeRequest (line 1) | async makeRequest({event:e,request:t}){"string"==typeof t&&(t=new Requ...
method u (line 1) | async u({request:e,event:t}){const r=await n.fetchWrapper.fetch({reque...
FILE: public/assets/libs/workbox/workbox-streams.dev.js
function _getReaderFromSource (line 26) | function _getReaderFromSource(source) {
function concatenate (line 55) | function concatenate(sourcePromises) {
function createHeaders (line 159) | function createHeaders(headersInit = {}) {
function concatenateToResponse (line 195) | function concatenateToResponse(sourcePromises, headersInit) {
function isSupported (line 230) | function isSupported() {
function strategy (line 272) | function strategy(sourceFunctions, headersInit) {
FILE: public/assets/libs/workbox/workbox-streams.prod.js
function n (line 1) | function n(e){const n=e.map(e=>Promise.resolve(e).then(e=>(function(e){r...
function t (line 1) | function t(e={}){const n=new Headers(e);return n.has("content-type")||n....
function r (line 1) | function r(e,r){const{done:s,stream:o}=n(e),a=t(r);return{done:s,respons...
function o (line 1) | function o(){if(void 0===s)try{new ReadableStream({start(){}}),s=!0}catc...
FILE: public/assets/libs/workbox/workbox-sw.js
method constructor (line 1) | constructor(){return this.v={},this.t={debug:"localhost"===self.location...
method setConfig (line 1) | setConfig(t={}){if(this.o)throw new Error("Config must be set before acc...
method loadModule (line 1) | loadModule(t){const e=this.i(t);try{importScripts(e),this.o=!0}catch(s){...
method i (line 1) | i(e){if(this.t.modulePathCb)return this.t.modulePathCb(e,this.t.debug);l...
FILE: public/assets/libs/workbox/workbox-window.dev.es5.mjs
function _defineProperties (line 40) | function _defineProperties(target, props) {
function _createClass (line 50) | function _createClass(Constructor, protoProps, staticProps) {
function _inheritsLoose (line 56) | function _inheritsLoose(subClass, superClass) {
function _assertThisInitialized (line 62) | function _assertThisInitialized(self) {
function EventTargetShim (line 199) | function EventTargetShim() {
function _catch (line 297) | function _catch(body, recover) {
function _async (line 311) | function _async(f) {
function _invoke (line 325) | function _invoke(body, then) {
function _await (line 335) | function _await(value, then, direct) {
function _awaitIgnored (line 347) | function _awaitIgnored(value, direct) {
function _empty (line 353) | function _empty() {}
function Workbox (line 394) | function Workbox(scriptURL, registerOptions) {
FILE: public/assets/libs/workbox/workbox-window.dev.mjs
class Deferred (line 58) | class Deferred {
method constructor (line 62) | constructor() {
class EventTargetShim (line 143) | class EventTargetShim {
method constructor (line 147) | constructor() {
method addEventListener (line 157) | addEventListener(type, listener) {
method removeEventListener (line 166) | removeEventListener(type, listener) {
method dispatchEvent (line 174) | dispatchEvent(event) {
method _getEventListenersByType (line 188) | _getEventListenersByType(type) {
class WorkboxEvent (line 229) | class WorkboxEvent {
method constructor (line 234) | constructor(type, props) {
constant WAITING_TIMEOUT_DURATION (line 252) | const WAITING_TIMEOUT_DURATION = 200;
constant REGISTRATION_TIMEOUT_DURATION (line 255) | const REGISTRATION_TIMEOUT_DURATION = 60000;
class Workbox (line 273) | class Workbox extends EventTargetShim {
method constructor (line 285) | constructor(scriptURL, registerOptions = {}) {
method register (line 312) | async register({
method active (line 428) | get active() {
method controlling (line 445) | get controlling() {
method getSW (line 465) | async getSW() {
method messageSW (line 485) | async messageSW(data) {
method _getControllingSWIfCompatible (line 498) | _getControllingSWIfCompatible() {
method _registerScript (line 513) | async _registerScript() {
method _reportWindowReady (line 538) | _reportWindowReady(sw) {
method _onUpdateFound (line 549) | _onUpdateFound() {
method _onStateChange (line 612) | _onStateChange(originalEvent) {
method _onControllerChange (line 702) | _onControllerChange(originalEvent) {
method _onMessage (line 724) | _onMessage(originalEvent) {
FILE: public/assets/libs/workbox/workbox-window.dev.umd.js
function _defineProperties (line 46) | function _defineProperties(target, props) {
function _createClass (line 56) | function _createClass(Constructor, protoProps, staticProps) {
function _inheritsLoose (line 62) | function _inheritsLoose(subClass, superClass) {
function _assertThisInitialized (line 68) | function _assertThisInitialized(self) {
function EventTargetShim (line 205) | function EventTargetShim() {
function _catch (line 303) | function _catch(body, recover) {
function _async (line 317) | function _async(f) {
function _invoke (line 331) | function _invoke(body, then) {
function _await (line 341) | function _await(value, then, direct) {
function _awaitIgnored (line 353) | function _awaitIgnored(value, direct) {
function _empty (line 359) | function _empty() {}
function Workbox (line 400) | function Workbox(scriptURL, registerOptions) {
FILE: public/assets/libs/workbox/workbox-window.prod.es5.mjs
function t (line 1) | function t(n,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.en...
function i (line 1) | function i(n){if(void 0===n)throw new ReferenceError("this hasn't been i...
function u (line 1) | function u(n){return function(){for(var t=[],i=0;i<arguments.length;i++)...
function a (line 1) | function a(n,t,i){return i?t?t(n):n:(n&&n.then||(n=Promise.resolve(n)),t...
function s (line 1) | function s(){}
function v (line 1) | function v(n,t){var r;return void 0===t&&(t={}),(r=c.call(this)||this).t...
function n (line 1) | function n(){this.D={}}
FILE: public/assets/libs/workbox/workbox-window.prod.mjs
class s (line 1) | class s{constructor(){this.promise=new Promise((t,s)=>{this.resolve=t,th...
method constructor (line 1) | constructor(){this.promise=new Promise((t,s)=>{this.resolve=t,this.rej...
class i (line 1) | class i{constructor(){this.t={}}addEventListener(t,s){this.s(t).add(s)}r...
method constructor (line 1) | constructor(){this.t={}}
method addEventListener (line 1) | addEventListener(t,s){this.s(t).add(s)}
method removeEventListener (line 1) | removeEventListener(t,s){this.s(t).delete(s)}
method dispatchEvent (line 1) | dispatchEvent(t){t.target=this,this.s(t.type).forEach(s=>s(t))}
method s (line 1) | s(t){return this.t[t]=this.t[t]||new Set}
class n (line 1) | class n{constructor(t,s){Object.assign(this,s,{type:t})}}
method constructor (line 1) | constructor(t,s){Object.assign(this,s,{type:t})}
class o (line 1) | class o extends i{constructor(t,i={}){super(),this.i=t,this.h=i,this.o=0...
method constructor (line 1) | constructor(t,i={}){super(),this.i=t,this.h=i,this.o=0,this.l=new s,th...
method register (line 1) | async register({immediate:t=!1}={}){t||"complete"===document.readyStat...
method active (line 1) | get active(){return this.g.promise}
method controlling (line 1) | get controlling(){return this.u.promise}
method getSW (line 1) | async getSW(){return this.R||this.l.promise}
method messageSW (line 1) | async messageSW(s){const i=await this.getSW();return t(i,s)}
method L (line 1) | L(){const t=navigator.serviceWorker.controller;if(t&&e(t.scriptURL,thi...
method B (line 1) | async B(){try{const t=await navigator.serviceWorker.register(this.i,th...
method P (line 1) | P(s){t(s,{type:"WINDOW_READY",meta:"workbox-window"})}
method p (line 1) | p(){const t=this.S.installing;this.o>0||!e(t.scriptURL,this.i)||perfor...
method v (line 1) | v(t){const s=t.target,{state:i}=s,e=s===this.k,a=e?"external":"",o={sw...
method _ (line 1) | _(t){const s=this.R;s===navigator.serviceWorker.controller&&(this.disp...
method m (line 1) | m(t){const{data:s}=t;this.dispatchEvent(new n("message",{data:s,origin...
FILE: public/assets/libs/workbox/workbox-window.prod.umd.js
function i (line 1) | function i(n,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.en...
function e (line 1) | function e(n){if(void 0===n)throw new ReferenceError("this hasn't been i...
function s (line 1) | function s(n){return function(){for(var t=[],i=0;i<arguments.length;i++)...
function a (line 1) | function a(n,t,i){return i?t?t(n):n:(n&&n.then||(n=Promise.resolve(n)),t...
function c (line 1) | function c(){}
function v (line 1) | function v(t,i){var o;return void 0===i&&(i={}),(o=n.call(this)||this).t...
function n (line 1) | function n(){this.D={}}
FILE: public/lib/dreamland/all.js
constant DLFEATURES (line 2) | const DLFEATURES = ['css', 'jsxLiterals', 'usestring', 'stores'];
constant DLVERSION (line 2) | const DLVERSION = '0.0.24';
function u (line 3) | function u(){if(c)return!0;const e=document.createElement("style");e.tex...
function p (line 3) | function p(){return`${Array(4).fill(0).map((()=>Math.floor(36*Math.rando...
function g (line 3) | function g(e,t,n){let r=a[t];if(r)return r;a[t]=e;const s=document.creat...
method value (line 3) | get value(){return function(e){let o=e[r],l=o[s],i=e[t],f=o[n];for(let e...
function w (line 3) | function w(e){j(e),e[o]=[],e[n]=e;let l=Symbol.toPrimitive,f=new Proxy(e...
function L (line 3) | function L(e){return j(e)&&o in e}
function T (line 3) | function T(e){return j(e)&&s in e}
function k (line 3) | function k(e){return j(e)&&t in e}
function A (line 3) | function A(e,l){k(e);let i,f=e[r],a=e[t],c=[];function u(){let e=f[n];fo...
function O (line 3) | function O(e,t,n){let r,s,o,l;A(e,(e=>{o=s?.[0],o&&(r=o.previousSibling|...
function C (line 3) | function C(e,t,...n){if(e==$)return n;if("function"==typeof e){let s=w(O...
function E (line 3) | function E(e,t){let n,r,s;if(k(e))O(e,t);else{if(!j(e)||!(l in e)){if(e ...
function P (line 3) | function P(e,t,n){if(!n&&e.hasAttribute(t)&&e.removeAttribute(t),n)if(t....
FILE: public/lib/dreamland/dev.js
constant DLFEATURES (line 3) | const DLFEATURES = ['css', 'jsxLiterals', 'usestring', 'stores'];
constant DLVERSION (line 3) | const DLVERSION = '0.0.24';
class DreamlandError (line 6) | class DreamlandError extends Error {
method constructor (line 7) | constructor(message) {
function log (line 13) | function log(message) {
function panic (line 17) | function panic(message) {
function assert (line 21) | function assert(condition, message) {
function checkScopeSupported (line 49) | function checkScopeSupported() {
function polyfill_scope (line 70) | function polyfill_scope(target) {
function genuid (line 78) | function genuid() {
function genCss (line 100) | function genCss(uid, str, scoped) {
method value (line 220) | get value() {
function $state (line 299) | function $state(target) {
function isStateful (line 361) | function isStateful(obj) {
function isDLPtrInternal (line 365) | function isDLPtrInternal(arr) {
function isDLPtr (line 369) | function isDLPtr(arr) {
function $if (line 373) | function $if(condition, then, otherwise) {
function resolve (line 380) | function resolve(exptr) {
function handle (line 399) | function handle(exptr, callback) {
function JSXAddFixedWrapper (line 458) | function JSXAddFixedWrapper(ptr, cb, $if) {
function h (line 494) | function h(type, props, ...children) {
function JSXAddChild (line 715) | function JSXAddChild(child, cb) {
function JSXAddAttributes (line 743) | function JSXAddAttributes(elm, name, prop) {
function html (line 762) | function html(strings, ...values) {
function $store (line 845) | function $store(target, { ident, backing, autosave }) {
FILE: public/lib/dreamland/minimal.js
constant DLFEATURES (line 2) | const DLFEATURES = [];
constant DLVERSION (line 2) | const DLVERSION = '0.0.24';
method value (line 3) | get value(){return function(e){let l=e[r],s=l[i],o=e[t],f=l[n];for(let e...
function d (line 3) | function d(e){e[l]=[],e[n]=e;let s=Symbol.toPrimitive,o=new Proxy(e,{get...
function p (line 3) | function p(e){return h(e)&&i in e}
function b (line 3) | function b(e){return h(e)&&t in e}
function y (line 3) | function y(e,s){b(e);let o,f=e[r],u=e[t],c=[];function a(){let e=f[n];fo...
function g (line 3) | function g(e,t,n){let r,i,l,s;y(e,(e=>{l=i?.[0],l&&(r=l.previousSibling|...
function v (line 3) | function v(e,t){let n,r,i;if(b(e))g(e,t);else{if(!h(e)||!(s in e)){if(e ...
function L (line 3) | function L(e,t,n){if(!n&&e.hasAttribute(t)&&e.removeAttribute(t),n)if(t....
FILE: public/lib/dreamland/ssr.js
function renderToString (line 27) | function renderToString(component, props, children) {
function hSSR (line 32) | function hSSR(type, props, ...children) {
FILE: public/media_interactions.js
function useSec (line 3) | function useSec(timeStr) {
function getBg (line 8) | function getBg(style) {
function runMp (line 13) | function runMp(config) {
function newPlayer (line 39) | async function newPlayer(elem, getConfig) {
FILE: server.ts
function TServer (line 14) | function TServer() {
FILE: src/App.tsx
function App (line 4) | function App() {
FILE: src/Boot.tsx
function Boot (line 5) | function Boot() {
FILE: src/CustomOS.tsx
function CustomOS (line 3) | function CustomOS() {
FILE: src/Loading.tsx
function Loader (line 3) | function Loader() {
FILE: src/Login.tsx
function Login (line 9) | function Login() {
FILE: src/Recovery.tsx
function Recovery (line 8) | function Recovery() {
FILE: src/Setup.tsx
function Setup (line 16) | function Setup() {
FILE: src/Updater.tsx
function Updater (line 6) | function Updater() {
FILE: src/init/fs.init.ts
function copyfs (line 4) | async function copyfs() {
FILE: src/init/index.ts
function init (line 6) | async function init() {
FILE: src/sys/Api.ts
type Window (line 36) | interface Window {
function Api (line 45) | async function Api() {
FILE: src/sys/Filer.d.ts
type FilerFS (line 8) | type FilerFS = {
type FilerType (line 162) | type FilerType = {
FILE: src/sys/FilerWP.d.ts
type TStats (line 1) | interface TStats {
type IAccessModes (line 28) | interface IAccessModes {
FILE: src/sys/Node/runtimes/Webcontainers/nodeProc.ts
function initializeWebContainer (line 8) | async function initializeWebContainer(): Promise<WebContainer> {
FILE: src/sys/Node/runtimes/Webcontainers/util/getFileTree.ts
function convertToWebContainerTree (line 15) | function convertToWebContainerTree(flatTree: Record<string, string>): Fi...
function getFileTree (line 56) | async function getFileTree(path = "/"): Promise<FileSystemTree> {
FILE: src/sys/Node/runtimes/shims/apis/child_process.ts
function exec (line 150) | function exec(
function execFile (line 180) | function execFile(
function execSync (line 219) | function execSync(command: string, options?: NodeChildProcess.ExecSyncOp...
function execFileSync (line 233) | function execFileSync(file: string, ...args: any[]): string | Buffer {
function spawnSync (line 246) | function spawnSync(command: string, args?: readonly string[], options?: ...
FILE: src/sys/Node/runtimes/shims/util/Stub.ts
class NotImplementedError (line 1) | class NotImplementedError extends Error {
method constructor (line 4) | constructor(methodName: string, packageName: string) {
FILE: src/sys/Node/runtimes/util/getFileTree.ts
function getFileTree (line 10) | async function getFileTree(path = "/") {
FILE: src/sys/Store.ts
type WindowState (line 7) | interface WindowState {
type ContextMenuState (line 21) | interface ContextMenuState {
type SearchMenuState (line 27) | interface SearchMenuState {
function ensureLastPID (line 36) | function ensureLastPID() {
FILE: src/sys/apis/Crypto.ts
class pwd (line 4) | class pwd {
method harden (line 5) | harden(password: string) {
FILE: src/sys/apis/Date.ts
function GetTime (line 1) | function GetTime() {
function GetDate (line 12) | function GetDate() {
FILE: src/sys/apis/Dialogs.tsx
type dialogType (line 8) | type dialogType = "alert" | "message" | "select" | "auth" | "permissions...
function DialogContainer (line 13) | function DialogContainer() {
function Alert (line 57) | function Alert({ title, message, onOk }: dialogProps) {
function Message (line 108) | function Message({ title, defaultValue, onOk, onCancel }: dialogProps) {
function Select (line 168) | function Select({ title, options, onOk, onCancel }: dialogProps) {
function Auth (line 220) | function Auth({ title, defaultUsername, onOk, onCancel, sudo }: dialogPr...
function Permissions (line 296) | function Permissions({ title, message, onOk, onCancel }: dialogProps) {
function FileBrowser (line 351) | function FileBrowser({ title, filter, local, onOk, onCancel }: dialogPro...
function DirectoryBrowser (line 607) | function DirectoryBrowser({ title, defualtDir, local, onOk, onCancel }: ...
function SaveFile (line 875) | function SaveFile({ title, defualtDir, filename, local, onOk, onCancel }...
function Crop (line 1134) | function Crop({ title, img, onOk, onCancel }: dialogProps) {
function WebAuth (line 1201) | function WebAuth({ title, defaultUsername, onOk, onCancel }: dialogProps) {
FILE: src/sys/apis/Mediaisland.tsx
function MediaIsland (line 10) | function MediaIsland() {
function Music (line 45) | function Music({ track_name, artist, endtime, onRemove, onPausePlay, onN...
function Video (line 304) | function Video({ video_name, creator, endtime, onRemove, onPausePlay, on...
FILE: src/sys/apis/Notifications.tsx
function NotificationContainer (line 10) | function NotificationContainer() {
function Message (line 44) | function Message({ iconSrc, application, message, txt, onOk, onCancel, t...
function Toast (line 119) | function Toast({ iconSrc, application, message, time, onOk, onCancel, re...
function Installing (line 186) | function Installing({ iconSrc, application, message, time, onOk, remove ...
function SaveNotification (line 236) | async function SaveNotification({ iconSrc, application, message, onOk }:...
FILE: src/sys/apis/Registry.ts
method get (line 5) | async get(data: any): Promise<any> {
method set (line 16) | async set(data: any) {
method exists (line 31) | exists(data: any) {
FILE: src/sys/apis/SysSearch.ts
type TSearchTerm (line 4) | type TSearchTerm = string | object | File | ArrayBuffer | Blob | null;
type IAppName (line 45) | interface IAppName {
type TAppName (line 51) | type TAppName = string | IAppName;
FILE: src/sys/apis/System.ts
class System (line 4) | class System {
method version (line 5) | version(type: string | number) {
FILE: src/sys/apis/Xor.ts
constant XOR (line 1) | const XOR = {
method encode (line 2) | encode(input: string): string {
method decode (line 11) | decode(input: string): string {
FILE: src/sys/apis/utils/WindowPerformanceMonitor.ts
class WindowPerformanceMonitor (line 14) | class WindowPerformanceMonitor {
method start (line 35) | start() {
method monitorWindowOperations (line 81) | private monitorWindowOperations() {
method stop (line 121) | stop() {
method getReport (line 131) | getReport() {
method getPerformanceHealth (line 163) | private getPerformanceHealth(avgFPS: number, minFPS: number) {
method getDetailedMetrics (line 175) | getDetailedMetrics() {
FILE: src/sys/apis/utils/file.ts
type FileStats (line 3) | interface FileStats {
function getNameFromExtension (line 170) | function getNameFromExtension(ext: string): string {
function getExtensionFromName (line 179) | function getExtensionFromName(name: string): string {
FILE: src/sys/apis/utils/startupHandler.ts
function launchProcs (line 3) | async function launchProcs(): Promise<void> {
function addStartupProc (line 30) | async function addStartupProc(proc: string, target: "System" | "User", c...
function removeStartupProc (line 53) | async function removeStartupProc(proc: string, target: "System" | "User"...
function enableProc (line 67) | async function enableProc(proc: string, target: "System" | "User"): Prom...
function disableProc (line 81) | async function disableProc(proc: string, target: "System" | "User"): Pro...
FILE: src/sys/apis/utils/tauth.ts
function getinfo (line 44) | async function getinfo(user?: string | null, pass?: string | null, setti...
function setinfo (line 98) | async function setinfo(user?: string | null, pass?: string | null, setti...
FILE: src/sys/apis/utils/winPreview.ts
type PreviewOptions (line 14) | interface PreviewOptions {
function ensureContainer (line 21) | function ensureContainer() {
function scheduleUpdate (line 50) | function scheduleUpdate(target: HTMLElement, options?: PreviewOptions) {
function performUpdate (line 59) | function performUpdate() {
function updateContainerWithCanvas (line 110) | function updateContainerWithCanvas(canvas: HTMLCanvasElement, target: HT...
function positionContainer (line 133) | function positionContainer(opts: PreviewOptions) {
function getPrev (line 146) | function getPrev(el: HTMLElement, options?: PreviewOptions) {
function hidePrev (line 154) | function hidePrev() {
function previewAtMouse (line 160) | function previewAtMouse(el: HTMLElement, evt: MouseEvent, options?: Prev...
FILE: src/sys/gui/AppIsland.tsx
type AppIslandProps (line 5) | interface AppIslandProps {
type IslandState (line 12) | type IslandState = {
function AppIsland (line 21) | function AppIsland() {
FILE: src/sys/gui/Battery.tsx
type Navigator (line 5) | interface Navigator {
type BatteryManager (line 9) | interface BatteryManager {
function Battery (line 18) | function Battery() {
FILE: src/sys/gui/Desktop.tsx
constant PREVIEW_DEBUG (line 15) | const PREVIEW_DEBUG = false;
constant THUMB_WIDTH (line 16) | const THUMB_WIDTH = 250;
constant THUMB_HEIGHT (line 17) | const THUMB_HEIGHT = 200;
type IDesktopProps (line 19) | interface IDesktopProps {
FILE: src/sys/gui/Dock.tsx
type TDockItem (line 8) | type TDockItem = {
type TStartItem (line 25) | type TStartItem = {
type IDockProps (line 38) | interface IDockProps {
type IUser (line 43) | interface IUser {
FILE: src/sys/gui/NotificationCenter.tsx
type Notification (line 4) | interface Notification {
function NotificationCenter (line 14) | function NotificationCenter() {
type INotificationProps (line 62) | interface INotificationProps {
FILE: src/sys/gui/Power.tsx
function Power (line 4) | function Power() {
FILE: src/sys/gui/Search.tsx
type SearchProps (line 8) | interface SearchProps {
function rewriteSvgSize (line 172) | function rewriteSvgSize(svg: string) {
FILE: src/sys/gui/Weather.tsx
type LocationData (line 5) | interface LocationData {
type ForecastData (line 10) | interface ForecastData {
type WeatherData (line 15) | interface WeatherData {
type Period (line 20) | interface Period {
function Weather (line 25) | function Weather() {
function FormatTemp (line 78) | function FormatTemp(temp: number, unit: string): { temp: number; unit: s...
function getIcon (line 89) | function getIcon(sky: string): string {
FILE: src/sys/gui/Wifi.tsx
type Server (line 5) | interface Server {
function ping (line 13) | function ping(id: string): Promise<{ status: string; latency: number | s...
type WifiIconProps (line 41) | interface WifiIconProps {
function Wifi (line 99) | function Wifi() {
type WispMenuProps (line 115) | interface WispMenuProps {
function WispMenu (line 119) | function WispMenu({ isOpen }: WispMenuProps) {
FILE: src/sys/gui/WinSwitcher.tsx
type ThumbnailMap (line 7) | type ThumbnailMap = Record<string, string>;
FILE: src/sys/gui/WindowArea.tsx
type WindowProps (line 6) | interface WindowProps {
type DesktopItem (line 14) | interface DesktopItem {
type WindowAreaProps (line 1639) | interface WindowAreaProps {
FILE: src/sys/lemonade/app.ts
type AppDetails (line 1) | interface AppDetails {
class App (line 6) | class App {
method getName (line 12) | getName(): string {
method setName (line 16) | setName(name: string): void {
method getVersion (line 20) | getVersion(): string {
method getPath (line 24) | getPath(name: "home" | "appData" | "userData" | "temp" | "downloads" |...
method getAppPath (line 38) | getAppPath(): string {
method isReady (line 42) | isReady(): boolean {
method whenReady (line 46) | whenReady(): Promise<void> {
method quit (line 50) | quit(): void {
method exit (line 54) | exit(exitCode: number = 0): void {
method relaunch (line 58) | relaunch(options?: { args?: string[]; execPath?: string }): void {
method focus (line 63) | focus(): void {
method hide (line 67) | hide(): void {
method show (line 71) | show(): void {
method setAppLogsPath (line 75) | setAppLogsPath(path: string): void {
method getLocale (line 79) | getLocale(): string {
method getSystemLocale (line 83) | getSystemLocale(): string {
method isPackaged (line 87) | isPackaged(): boolean {
method requestSingleInstanceLock (line 91) | requestSingleInstanceLock(): boolean {
method hasSingleInstanceLock (line 95) | hasSingleInstanceLock(): boolean {
method releaseSingleInstanceLock (line 99) | releaseSingleInstanceLock(): void {
method setAsDefaultProtocolClient (line 103) | setAsDefaultProtocolClient(protocol: string, path?: string, args?: str...
method isDefaultProtocolClient (line 108) | isDefaultProtocolClient(protocol: string, path?: string, args?: string...
FILE: src/sys/lemonade/clipboard.ts
class Clipboard (line 1) | class Clipboard {
method readText (line 2) | async readText(_type?: "selection" | "clipboard"): Promise<string> {
method writeText (line 11) | async writeText(text: string, _type?: "selection" | "clipboard"): Prom...
method readHTML (line 19) | async readHTML(_type?: "selection" | "clipboard"): Promise<string> {
method writeHTML (line 35) | async writeHTML(markup: string, _type?: "selection" | "clipboard"): Pr...
method readImage (line 48) | async readImage(_type?: "selection" | "clipboard"): Promise<any> {
method writeImage (line 65) | async writeImage(image: any, _type?: "selection" | "clipboard"): Promi...
method clear (line 70) | clear(_type?: "selection" | "clipboard"): void {
method availableFormats (line 74) | availableFormats(_type?: "selection" | "clipboard"): string[] {
method has (line 79) | has(format: string, _type?: "selection" | "clipboard"): boolean {
method read (line 84) | read(format: string): string {
method write (line 89) | write(data: any, type?: "selection" | "clipboard"): void {
method readFindText (line 99) | readFindText(): string {
method writeFindText (line 103) | writeFindText(text: string): void {
method readBookmark (line 107) | readBookmark(): { title: string; url: string } {
method writeBookmark (line 111) | writeBookmark(title: string, url: string, type?: "selection" | "clipbo...
FILE: src/sys/lemonade/dialog.ts
type diagArgs (line 1) | interface diagArgs {
type MessageBoxOptions (line 10) | interface MessageBoxOptions {
class Dialog (line 21) | class Dialog {
method showOpenDialogSync (line 22) | showOpenDialogSync(win: any, options: diagArgs) {
method showOpenDialog (line 36) | showOpenDialog(win: any, options: diagArgs) {
method showSaveDialogSync (line 39) | showSaveDialogSync(win: any, options: diagArgs) {
method showSaveDialog (line 53) | showSaveDialog(win: any, options: diagArgs) {
method showMessageBoxSync (line 56) | showMessageBoxSync(_win: any, options: MessageBoxOptions) {
method showMessageBox (line 68) | showMessageBox(win: any, options: MessageBoxOptions) {
method showErrorBox (line 71) | showErrorBox(title: string, content: string) {
method showCertificateTrustDialog (line 79) | showCertificateTrustDialog(_win: any, _options: { certificate: any; me...
FILE: src/sys/lemonade/index.ts
class Lemonade (line 11) | class Lemonade {
method version (line 12) | get version(): string {
FILE: src/sys/lemonade/ipc.ts
type IpcHandler (line 1) | type IpcHandler = (event: any, ...args: any[]) => any;
class IpcRenderer (line 3) | class IpcRenderer {
method on (line 7) | on(channel: string, listener: IpcHandler): this {
method once (line 15) | once(channel: string, listener: IpcHandler): this {
method off (line 23) | off(channel: string, listener: IpcHandler): this {
method removeListener (line 34) | removeListener(channel: string, listener: IpcHandler): this {
method removeAllListeners (line 38) | removeAllListeners(channel?: string): this {
method send (line 49) | send(channel: string, ...args: any[]): void {
method sendSync (line 61) | sendSync(channel: string, ...args: any[]): any {
method invoke (line 66) | invoke(channel: string, ...args: any[]): Promise<any> {
method sendToHost (line 98) | sendToHost(channel: string, ...args: any[]): void {
method _triggerEvent (line 103) | _triggerEvent(channel: string, ...args: any[]): void {
class IpcMain (line 117) | class IpcMain {
method on (line 121) | on(channel: string, listener: IpcHandler): this {
method once (line 128) | once(channel: string, listener: IpcHandler): this {
method removeListener (line 135) | removeListener(channel: string, listener: IpcHandler): this {
method removeAllListeners (line 145) | removeAllListeners(channel?: string): this {
method handle (line 157) | handle(channel: string, listener: IpcHandler): void {
method handleOnce (line 160) | handleOnce(channel: string, listener: IpcHandler): void {
method removeHandler (line 167) | removeHandler(channel: string): void {
FILE: src/sys/lemonade/net.ts
type RequestOptions (line 1) | interface RequestOptions {
class Net (line 10) | class Net {
method request (line 11) | async request(url: string, options: RequestOptions = {}): Promise<Resp...
method fetch (line 28) | fetch(url: string, options: RequestOptions = {}): Promise<Response> {
method isOnline (line 32) | isOnline(): boolean {
method getOnlineStatus (line 36) | getOnlineStatus(): "online" | "offline" {
method createClientRequest (line 40) | createClientRequest(options: { url?: string; method?: string; protocol...
FILE: src/sys/lemonade/notification.ts
type NotificationOptions (line 1) | interface NotificationOptions {
type NotificationEvent (line 9) | type NotificationEvent = "click";
class Notification (line 11) | class Notification {
method isSupported (line 14) | static isSupported(): boolean {
method constructor (line 18) | constructor(options: NotificationOptions) {
method on (line 29) | on(event: NotificationEvent, handler: (...args: any[]) => void): void {
method off (line 36) | off(event: NotificationEvent, handler: (...args: any[]) => void): void {
method emit (line 43) | private emit(event: NotificationEvent, ...args: any[]): void {
method show (line 50) | show(): string {
method close (line 54) | close(): string {
FILE: src/sys/lemonade/screen.ts
type Display (line 1) | interface Display {
class Screen (line 13) | class Screen {
method getCursorScreenPoint (line 16) | getCursorScreenPoint(): { x: number; y: number } {
method getPrimaryDisplay (line 20) | getPrimaryDisplay(): Display {
method getAllDisplays (line 50) | getAllDisplays(): Display[] {
method getDisplayNearestPoint (line 54) | getDisplayNearestPoint(_point: { x: number; y: number }): Display {
method getDisplayMatching (line 58) | getDisplayMatching(_rect: { x: number; y: number; width: number; heigh...
method on (line 62) | on(event: "display-added" | "display-removed" | "display-metrics-chang...
method removeListener (line 70) | removeListener(event: string, listener: Function): this {
FILE: src/sys/lemonade/shell.ts
class Shell (line 1) | class Shell {
method openExternal (line 2) | async openExternal(url: string, options?: { activate?: boolean }): Pro...
method openPath (line 7) | async openPath(path: string) {
method showItemInFolder (line 12) | showItemInFolder(fullPath: string): void {
method moveItemToTrash (line 19) | async moveItemToTrash(fullPath: string): Promise<boolean> {
method trashItem (line 36) | async trashItem(path: string): Promise<void> {
method beep (line 40) | beep(): void {
method writeShortcutLink (line 54) | writeShortcutLink(shortcutPath: string, operation: string, options: an...
method readShortcutLink (line 59) | readShortcutLink(shortcutPath: string): any {
FILE: src/sys/lemonade/window.ts
type ElectronWinArgs (line 3) | interface ElectronWinArgs {
class BrowserWindow (line 37) | class BrowserWindow {
method constructor (line 41) | constructor(args: ElectronWinArgs = {}) {
method loadFile (line 58) | loadFile(path: string) {
method loadURL (line 62) | async loadURL(src: string) {
method destroy (line 67) | destroy() {
method close (line 74) | close() {
method show (line 80) | show() {
method blur (line 85) | blur() {
method focus (line 90) | focus() {
method hide (line 95) | hide() {
method minimize (line 100) | minimize() {
method maximize (line 105) | maximize() {
method unmaximize (line 110) | unmaximize() {
method isMaximized (line 115) | isMaximized(): boolean {
method isMinimized (line 119) | isMinimized(): boolean {
method isVisible (line 123) | isVisible(): boolean {
method isDestroyed (line 127) | isDestroyed(): boolean {
method setTitle (line 131) | setTitle(title: string) {
method getTitle (line 135) | getTitle(): string {
method setSize (line 139) | setSize(width: number, height: number, _animate?: boolean) {
method getSize (line 143) | getSize(): [number, number] {
method setPosition (line 147) | setPosition(x: number, y: number, _animate?: boolean) {
method getPosition (line 151) | getPosition(): [number, number] {
method setAlwaysOnTop (line 155) | setAlwaysOnTop(flag: boolean, level?: string, relativeLevel?: number) {
method isAlwaysOnTop (line 159) | isAlwaysOnTop(): boolean {
method center (line 163) | center() {
method setFullScreen (line 170) | setFullScreen(flag: boolean) {
method isFullScreen (line 178) | isFullScreen(): boolean {
method setResizable (line 182) | setResizable(resizable: boolean) {
method isResizable (line 186) | isResizable(): boolean {
method setMovable (line 190) | setMovable(movable: boolean) {
method isMovable (line 194) | isMovable(): boolean {
method setMinimizable (line 198) | setMinimizable(minimizable: boolean) {
method isMinimizable (line 202) | isMinimizable(): boolean {
method setMaximizable (line 206) | setMaximizable(maximizable: boolean) {
method isMaximizable (line 210) | isMaximizable(): boolean {
method setClosable (line 214) | setClosable(closable: boolean) {
method isClosable (line 218) | isClosable(): boolean {
method flashFrame (line 222) | flashFrame(flag: boolean) {
method on (line 226) | on(event: string, listener: Function): this {
method once (line 234) | once(event: string, listener: Function): this {
method removeListener (line 242) | removeListener(event: string, listener: Function): this {
method removeAllListeners (line 253) | removeAllListeners(event?: string): this {
method emit (line 262) | private emit(event: string, ...args: any[]): void {
FILE: src/sys/libcurl.d.ts
type WebsocketUrl (line 6) | type WebsocketUrl = `wss://${string}` | `ws://${string}`;
type ProxyUrl (line 7) | type ProxyUrl = `socks5h://${string}` | `socks4a://${string}` | `http://...
type LibcurlVersion (line 8) | interface LibcurlVersion {
type HTTPSessionOptions (line 17) | interface HTTPSessionOptions {
type SessionOptions (line 22) | interface SessionOptions {
type WebSocketOptions (line 27) | interface WebSocketOptions extends SessionOptions {
type TLSSocketOptions (line 30) | interface TLSSocketOptions extends SessionOptions {
type RequestCallbacks (line 33) | interface RequestCallbacks {
class HeadersDict (line 38) | class HeadersDict {
class CurlSession (line 42) | class CurlSession {
class HTTPSession (line 66) | class HTTPSession extends CurlSession {
class CurlWebSocket (line 78) | class CurlWebSocket extends CurlSession {
class FakeWebSocket (line 96) | class FakeWebSocket extends EventTarget {
class TLSSocket (line 116) | class TLSSocket extends CurlSession {
type WispConnection (line 133) | interface WispConnection {
class WispWebSocket (line 136) | class WispWebSocket {
FILE: src/sys/liquor/AliceWM.ts
type WindowInformation (line 4) | interface WindowInformation {
method alive (line 77) | get alive() {
FILE: src/sys/liquor/Anura.ts
type Window (line 23) | interface Window {
class Anura (line 28) | class Anura {
method pretty (line 37) | get pretty() {
method constructor (line 56) | private constructor(
method new (line 126) | static async new(config: any): Promise<Anura> {
method registerApp (line 151) | async registerApp(app: App) {
method registerExternalApp (line 185) | async registerExternalApp(source: string): Promise<ExternalApp> {
method registerExternalAppHandler (line 224) | registerExternalAppHandler(id: string, handler: string) {
method registerLib (line 229) | async registerLib(lib: Lib) {
method registerExternalLib (line 236) | async registerExternalLib(source: string): Promise<ExternalLib> {
method removeStaleApps (line 244) | removeStaleApps() {
method import (line 254) | async import(packageName: string, searchPath?: string) {
method wsproxyURL (line 299) | get wsproxyURL() {
type AppManifest (line 304) | interface AppManifest {
FILE: src/sys/liquor/api/ContextMenuAPI.tsx
class ContextMenuAPI (line 3) | class ContextMenuAPI {
method item (line 5) | item(text: string, callback: VoidFunction) {
method constructor (line 15) | constructor() {
method removeAllItems (line 30) | removeAllItems() {
method addItem (line 33) | addItem(text: string, callback: VoidFunction) {
method show (line 41) | show(x: number, y: number) {
method hide (line 49) | hide() {
FILE: src/sys/liquor/api/Dialog.ts
class Dialog (line 2) | class Dialog {
method alert (line 3) | alert(message: string, title = "Alert") {
method confirm (line 10) | async confirm(message: string, title = "Confirmation"): Promise<boolea...
method prompt (line 24) | async prompt(message: string, defaultValue?: any): Promise<any> {
FILE: src/sys/liquor/api/FilerFS.ts
type AnuraFD (line 6) | type AnuraFD = {
class FilerAFSProvider (line 14) | class FilerAFSProvider extends AFSProvider<any> {
method constructor (line 21) | constructor(fs: FilerFS) {
method rename (line 26) | rename(oldPath: string, newPath: string, callback?: (err: Error | null...
method ftruncate (line 30) | ftruncate(fd: AnuraFD, len: number, callback?: (err: Error | null, fd:...
method truncate (line 34) | truncate(path: string, len: number, callback?: (err: Error | null) => ...
method stat (line 38) | stat(path: string, callback?: (err: Error | null, stats: any) => void) {
method fstat (line 42) | fstat(fd: AnuraFD, callback?: ((err: Error | null, stats: any) => void...
method lstat (line 46) | lstat(path: string, callback?: (err: Error | null, stats: any) => void) {
method exists (line 51) | exists(path: string, callback?: (exists: boolean) => void) {
method link (line 55) | link(srcPath: string, dstPath: string, callback?: (err: Error | null) ...
method symlink (line 59) | symlink(path: string, ...rest: any[]) {
method readlink (line 64) | readlink(path: string, callback?: (err: Error | null, linkContents: st...
method unlink (line 68) | unlink(path: string, callback?: (err: Error | null) => void) {
method mknod (line 72) | mknod(path: string, mode: number, callback?: (err: Error | null) => vo...
method rmdir (line 76) | rmdir(path: string, callback?: (err: Error | null) => void) {
method mkdir (line 80) | mkdir(path: string, ...rest: any[]) {
method access (line 84) | access(path: string, ...rest: any[]) {
method mkdtemp (line 88) | mkdtemp(...args: any[]) {
method readdir (line 94) | readdir(path: string, ...rest: any[]) {
method close (line 98) | close(fd: AnuraFD, callback?: ((err: Error | null) => void) | undefine...
method open (line 105) | open(path: string, flags: "r" | "r+" | "w" | "w+" | "a" | "a+", mode?:...
method utimes (line 123) | utimes(path: string, atime: number | Date, mtime: number | Date, callb...
method futimes (line 127) | futimes(fd: AnuraFD, ...rest: any[]) {
method chown (line 132) | chown(path: string, uid: number, gid: number, callback?: (err: Error |...
method fchown (line 136) | fchown(fd: AnuraFD, ...rest: any[]) {
method chmod (line 141) | chmod(path: string, mode: number, callback?: (err: Error | null) => vo...
method fchmod (line 145) | fchmod(fd: AnuraFD, ...rest: any[]) {
method fsync (line 150) | fsync(fd: AnuraFD, ...rest: any[]) {
method write (line 155) | write(fd: AnuraFD, ...rest: any[]) {
method read (line 160) | read(fd: AnuraFD, ...rest: any[]) {
method readFile (line 165) | readFile(path: string, callback?: (err: Error | null, data: Uint8Array...
method writeFile (line 169) | writeFile(path: string, ...rest: any[]) {
method appendFile (line 174) | appendFile(path: string, data: Uint8Array, callback?: (err: Error | nu...
method setxattr (line 178) | setxattr(path: string, ...rest: any[]) {
method fsetxattr (line 183) | fsetxattr(fd: AnuraFD, ...rest: any[]) {
method getxattr (line 188) | getxattr(path: string, name: string, callback?: (err: Error | null, va...
method fgetxattr (line 192) | fgetxattr(fd: AnuraFD, name: string, callback?: (err: Error | null, va...
method removexattr (line 196) | removexattr(path: string, name: string, callback?: (err: Error | null)...
method fremovexattr (line 200) | fremovexattr(fd: AnuraFD, ...rest: any[]) {
FILE: src/sys/liquor/api/Files.ts
class FilesAPI (line 3) | class FilesAPI {
method defaultOpen (line 40) | async defaultOpen(path: string): Promise<void> {
method defaultIcon (line 96) | async defaultIcon(path: string) {
method getFileType (line 127) | async getFileType(path: string) {
method setFolderIcon (line 161) | setFolderIcon(path: string) {
method set (line 165) | set(path: string, extension: string) {
method setModule (line 173) | setModule(id: string, extension: string) {
FILE: src/sys/liquor/api/Filesystem.ts
type AnuraFD (line 7) | type AnuraFD = {
class AFSShell (line 148) | class AFSShell {
method #relativeToAbsolute (line 173) | #relativeToAbsolute(path: string) {
method cat (line 180) | cat(files: string[], callback: (err: Error | null, contents: string) =...
method exec (line 200) | exec(path: string) {
method find (line 226) | find(path: string, options?: any, callback?: (err: Error | null, files...
method ls (line 303) | ls(dir: string, options?: any, callback?: (err: Error | null, entries:...
method mkdirp (line 348) | mkdirp(path: string, callback: (err: Error | null) => void) {
method rm (line 358) | rm(path: string, options?: any, callback?: (err: Error | null) => void) {
method tempDir (line 447) | tempDir(callback?: (err: Error | null, path: string) => void) {
method touch (line 456) | touch(path: string, options?: any, callback?: (err: Error | null) => v...
method cd (line 493) | cd(dir: string) {
method pwd (line 497) | pwd() {
method constructor (line 632) | constructor(options?: { env?: { [key: string]: string } }) {
class AnuraFilesystem (line 660) | class AnuraFilesystem implements AnuraFSOperations<any> {
method showDirectoryPicker (line 705) | async showDirectoryPicker(options: object) {
method showOpenFilePicker (line 715) | async showOpenFilePicker(options: object) {
method constructor (line 731) | constructor(providers: AFSProvider<any>[]) {
method clearCache (line 750) | clearCache() {
method installProvider (line 754) | installProvider(provider: AFSProvider<any>) {
method processPath (line 759) | processPath(path: string): AFSProvider<any> {
method processFD (line 789) | processFD(fd: AnuraFD): AFSProvider<any> {
method rename (line 793) | rename(oldPath: string, newPath: string, callback?: (err: Error | null...
method ftruncate (line 797) | ftruncate(fd: AnuraFD, len: number, callback?: (err: Error | null, fd:...
method truncate (line 801) | truncate(path: string, len: number, callback?: (err: Error | null) => ...
method stat (line 805) | stat(path: string, callback?: (err: Error | null, stats: any) => void) {
method fstat (line 809) | fstat(fd: AnuraFD, callback?: ((err: Error | null, stats: any) => void...
method lstat (line 813) | lstat(path: string, callback?: (err: Error | null, stats: any) => void) {
method exists (line 818) | exists(path: string, callback?: (exists: boolean) => void) {
method link (line 822) | link(srcPath: string, dstPath: string, callback?: (err: Error | null) ...
method symlink (line 826) | symlink(path: string, ...rest: any[]) {
method readlink (line 831) | readlink(path: string, callback?: (err: Error | null, linkContents: st...
method unlink (line 835) | unlink(path: string, callback?: (err: Error | null) => void) {
method rmdir (line 839) | rmdir(path: string, callback?: (err: Error | null) => void) {
method mkdir (line 843) | mkdir(path: string, ...rest: any[]) {
method access (line 847) | access(path: string, ...rest: any[]) {
method mkdtemp (line 851) | mkdtemp(...args: any[]) {
method readdir (line 857) | readdir(path: string, ...rest: any[]) {
method close (line 861) | close(fd: AnuraFD, callback?: ((err: Error | null) => void) | undefine...
method open (line 867) | open(path: string, flags: "r" | "r+" | "w" | "w+" | "a" | "a+", mode?:...
method utimes (line 875) | utimes(path: string, atime: number | Date, mtime: number | Date, callb...
method futimes (line 879) | futimes(fd: AnuraFD, ...rest: any[]) {
method chown (line 884) | chown(path: string, uid: number, gid: number, callback?: (err: Error |...
method fchown (line 888) | fchown(fd: AnuraFD, ...rest: any[]) {
method chmod (line 893) | chmod(path: string, mode: number, callback?: (err: Error | null) => vo...
method fchmod (line 897) | fchmod(fd: AnuraFD, ...rest: any[]) {
method fsync (line 902) | fsync(fd: AnuraFD, ...rest: any[]) {
method write (line 907) | write(fd: AnuraFD, ...rest: any[]) {
method read (line 912) | read(fd: AnuraFD, ...rest: any[]) {
method readFile (line 917) | readFile(path: string, callback?: (err: Error | null, data: Uint8Array...
method writeFile (line 921) | writeFile(path: string, data: Uint8Array | string, ...rest: any[]) {
method appendFile (line 929) | appendFile(path: string, data: Uint8Array, callback?: (err: Error | nu...
FILE: src/sys/liquor/api/LocalFS.ts
class LocalFSStats (line 5) | class LocalFSStats {
method isFile (line 22) | isFile() {
method isDirectory (line 26) | isDirectory() {
method isSymbolicLink (line 30) | isSymbolicLink() {
method constructor (line 34) | constructor(data: Partial<LocalFSStats>) {
class LocalFS (line 53) | class LocalFS extends AFSProvider<LocalFSStats> {
method constructor (line 63) | constructor(dirHandle: FileSystemDirectoryHandle, domain: string) {
method relativizePath (line 70) | relativizePath(path: string) {
method getChildDirHandle (line 74) | async getChildDirHandle(path: string, recurseCounter = 0): Promise<[Fi...
method getFileHandle (line 111) | async getFileHandle(path: string, options?: FileSystemGetFileOptions, ...
method newOPFS (line 151) | static async newOPFS(anuraPath: string) {
method newSwOPFS (line 171) | static async newSwOPFS() {
method new (line 185) | static async new(anuraPath: string) {
method readdir (line 213) | readdir(path: string, _options?: any, callback?: (err: Error | null, f...
method stat (line 223) | stat(path: string, callback?: (err: Error | null, stats: any) => void)...
method readFile (line 230) | readFile(path: string, callback?: (err: Error | null, data: typeof Fil...
method writeFile (line 237) | writeFile(path: string, data: Uint8Array | string, _options?: any, cal...
method appendFile (line 251) | appendFile(path: string, data: Uint8Array, callback?: (err: Error | nu...
method unlink (line 257) | unlink(path: string, callback?: (err: Error | null) => void) {
method mkdir (line 264) | mkdir(path: string, _mode?: any, callback?: (err: Error | null) => voi...
method rmdir (line 274) | rmdir(path: string, callback?: (err: Error | null) => void) {
method rename (line 281) | rename(srcPath: string, dstPath: string, callback?: (err: Error | null...
method truncate (line 289) | truncate(path: string, len: number, callback?: (err: Error | null) => ...
method exists (line 296) | exists(path: string, callback?: (exists: boolean) => void) {
method access (line 490) | access(path: string, mode: number): Promise<void> {
method chown (line 511) | chown(path: string, uid: number, gid: number): Promise<void> {
method ftruncate (line 803) | ftruncate(fd: AnuraFD, len: number, callback?: (err: Error | null, fd:...
method fstat (line 828) | fstat(fd: AnuraFD, callback: (err: Error | null, stats: any) => void) {
method lstat (line 863) | lstat(path: string, callback?: (err: Error | null, stats: any) => void...
method link (line 871) | link(existingPath: string, newPath: string, callback?: (err: Error | n...
method symlink (line 879) | symlink(target: string, path: string, type: any, callback?: (err: Erro...
method readlink (line 887) | readlink(path: any, callback?: any) {
method access (line 895) | access(path: string, mode: any, callback?: (err: Error | null) => void) {
method mkdtemp (line 904) | mkdtemp(prefix: string, options: any, callback?: (err: Error | null, p...
method fchown (line 915) | fchown(fd: AnuraFD, uid: number, gid: number, callback?: (err: Error |...
method chmod (line 936) | chmod(path: string, mode: number, callback?: (err: Error | null) => vo...
method fchmod (line 943) | fchmod(fd: AnuraFD, mode: number, callback?: (err: Error | null) => vo...
method fsync (line 964) | fsync(fd: AnuraFD, callback?: (err: Error | null) => void) {
method write (line 981) | write(fd: AnuraFD, buffer: Uint8Array, offset: number, length: number,...
method read (line 1025) | read(fd: AnuraFD, buffer: Uint8Array, offset: number, length: number, ...
method utimes (line 1073) | utimes(path: string, atime: Date | number, mtime: Date | number, callb...
method futimes (line 1081) | futimes(fd: AnuraFD, atime: Date, mtime: Date, callback?: (err: Error ...
method chown (line 1099) | chown(path: string, uid: number, gid: number, callback?: (err: Error |...
method close (line 1108) | close(fd: AnuraFD, callback: (err: Error | null) => void) {
method open (line 1125) | open(path: string, flags: "r" | "r+" | "w" | "w+" | "a" | "a+", mode?:...
FILE: src/sys/liquor/api/Networking.ts
class Networking (line 1) | class Networking {
method constructor (line 10) | constructor() {
FILE: src/sys/liquor/api/NotificationService.tsx
type NotifParams (line 1) | interface NotifParams {
class NotificationService (line 11) | class NotificationService {
method constructor (line 14) | constructor() {
method add (line 18) | add(params: NotifParams) {
method remove (line 29) | remove(_notification: any) {
FILE: src/sys/liquor/api/Platform.ts
class Platform (line 1) | class Platform {
method constructor (line 5) | constructor() {
FILE: src/sys/liquor/api/Process.ts
class Processes (line 1) | class Processes {
method constructor (line 3) | constructor() {
method procs (line 6) | get procs() {
method procs (line 20) | set procs(value) {
method remove (line 25) | remove(pid: number) {
method register (line 29) | register(proc: Process) {
method create (line 34) | create(proc: any) {
method kill (line 50) | kill() {
FILE: src/sys/liquor/api/Settings.ts
class Settings (line 1) | class Settings {
method constructor (line 4) | private constructor(fs: FilerFS, inital: { [key: string]: any }) {
method new (line 45) | static async new(fs: FilerFS, defaultsettings: { [key: string]: any }) {
method get (line 88) | get(prop: string): any {
method has (line 91) | has(prop: string): boolean {
method set (line 94) | async set(prop: string, val: any, subprop?: string) {
method save (line 103) | async save() {
method remove (line 107) | async remove(prop: string, subprop?: string) {
FILE: src/sys/liquor/api/Systray.ts
class SystrayIcon (line 3) | class SystrayIcon {
method icon (line 6) | get icon() {
method tooltip (line 9) | get tooltip() {
class Systray (line 17) | class Systray {
FILE: src/sys/liquor/api/TFS.ts
type AnuraFD (line 5) | type AnuraFD = {
class TFSProvider (line 10) | class TFSProvider extends AFSProvider<any> {
method constructor (line 17) | constructor(fs: FSType) {
method rename (line 22) | rename(oldPath: string, newPath: string, callback?: (err: Error | null...
method ftruncate (line 27) | ftruncate(fd: AnuraFD, len: number, callback?: (err: Error | null, fd:...
method truncate (line 31) | truncate(path: string, len: number, callback?: (err: Error | null) => ...
method stat (line 35) | stat(path: string, callback?: (err: Error | null, stats: any) => void) {
method fstat (line 40) | fstat(fd: AnuraFD, callback?: ((err: Error | null, stats: any) => void...
method lstat (line 44) | lstat(path: string, callback?: (err: Error | null, stats: any) => void) {
method exists (line 49) | exists(path: string, callback?: (exists: boolean) => void) {
method link (line 54) | link(srcPath: string, dstPath: string, callback?: (err: Error | null) ...
method symlink (line 60) | symlink(path: string, callback?: (err: Error | null) => void, ...rest:...
method readlink (line 67) | readlink(path: string, callback?: (err: Error | null, linkContents: st...
method unlink (line 73) | unlink(path: string, callback?: (err: Error | null) => void) {
method mknod (line 79) | mknod(path: string, mode: number, callback?: (err: Error | null) => vo...
method rmdir (line 83) | rmdir(path: string, callback?: (err: Error | null) => void) {
method mkdir (line 88) | mkdir(path: string, callback?: (err: Error | null) => void, ...rest: a...
method access (line 93) | access(path: string, callback?: (err: Error | null) => void, ...rest: ...
method mkdtemp (line 98) | mkdtemp(...args: any[]) {
method readdir (line 102) | readdir(path: string, callback?: (err: Error | null, files?: string[] ...
method close (line 107) | close(fd: AnuraFD, callback?: ((err: Error | null) => void) | undefine...
method open (line 113) | open(path: string, flags: "r" | "r+" | "w" | "w+" | "a" | "a+", mode?:...
method utimes (line 117) | utimes(path: string, atime: number | Date, mtime: number | Date, callb...
method futimes (line 121) | futimes(fd: AnuraFD, ...rest: any[]) {
method chown (line 125) | chown(path: string, uid: number, gid: number, callback?: (err: Error |...
method fchown (line 131) | fchown(fd: AnuraFD, ...rest: any[]) {
method chmod (line 135) | chmod(path: string, mode: number, callback?: (err: Error | null) => vo...
method fchmod (line 141) | fchmod(fd: AnuraFD, ...rest: any[]) {
method fsync (line 145) | fsync(fd: AnuraFD, ...rest: any[]) {
method write (line 150) | write(fd: AnuraFD, ...rest: any[]) {
method read (line 155) | read(fd: AnuraFD, ...rest: any[]) {
method readFile (line 160) | readFile(path: string, callback?: (err: Error | null, data: Uint8Array...
method writeFile (line 165) | writeFile(path: string, ...rest: any[]) {
method appendFile (line 171) | appendFile(path: string, data: Uint8Array, callback?: (err: Error | nu...
method setxattr (line 176) | setxattr(path: string, ...rest: any[]) {
method fsetxattr (line 182) | fsetxattr(fd: AnuraFD, ...rest: any[]) {
method getxattr (line 186) | getxattr(path: string, name: string, callback?: (err: Error | null, va...
method fgetxattr (line 192) | fgetxattr(fd: AnuraFD, name: string, callback?: (err: Error | null, va...
method removexattr (line 196) | removexattr(path: string, name: string, callback?: (err: Error | null)...
method fremovexattr (line 200) | fremovexattr(fd: AnuraFD, ...rest: any[]) {
FILE: src/sys/liquor/api/Theme.ts
type ThemeProps (line 1) | interface ThemeProps {
class Theme (line 12) | class Theme implements ThemeProps {
method constructor (line 16) | constructor() {
method foreground (line 27) | get foreground() {
method foreground (line 31) | set foreground(value) {
method secondaryForeground (line 43) | get secondaryForeground() {
method secondaryForeground (line 47) | set secondaryForeground(value) {
method border (line 59) | get border() {
method border (line 63) | set border(value) {
method darkBorder (line 75) | get darkBorder() {
method darkBorder (line 79) | set darkBorder(value) {
method background (line 91) | get background() {
method background (line 95) | set background(value) {
method secondaryBackground (line 107) | get secondaryBackground() {
method secondaryBackground (line 111) | set secondaryBackground(value) {
method darkBackground (line 123) | get darkBackground() {
method darkBackground (line 127) | set darkBackground(value) {
method accent (line 139) | get accent() {
method accent (line 143) | set accent(value) {
method css (line 168) | css(): string {
method reset (line 180) | reset() {
FILE: src/sys/liquor/api/UI.ts
class AnuraUI (line 3) | class AnuraUI {
method registerComponent (line 21) | async registerComponent(component: string, element: HTMLDivElement): P...
method registerExternalComponent (line 30) | async registerExternalComponent(lib: string, component: string, versio...
method get (line 48) | async get(name: string): Promise<any> {
method exists (line 70) | exists(component: string): boolean {
method use (line 74) | async use(components: string[] | string | "*" = []): Promise<{ [key: s...
method init (line 97) | init() {
FILE: src/sys/liquor/api/URIHandler.ts
type LibURIHandler (line 1) | interface LibURIHandler {
type SplitArgMethod (line 8) | type SplitArgMethod = {
type SingleArgMethod (line 13) | type SingleArgMethod = {
type AppURIHandler (line 17) | interface AppURIHandler {
type URIHandlerOptions (line 23) | interface URIHandlerOptions {
class URIHandlerAPI (line 28) | class URIHandlerAPI {
method handle (line 30) | async handle(uri: string): Promise<void> {
method set (line 70) | set(protocol: string, options: URIHandlerOptions): void {
method remove (line 77) | remove(protocol: string): void {
method has (line 84) | has(protocol: string): boolean {
FILE: src/sys/liquor/api/WmApi.tsx
class WMAPI (line 5) | class WMAPI {
method constructor (line 7) | constructor() {
method create (line 14) | async create(ctx: App | any, _info: WindowInformation, _onfocus: (() =...
method createGeneric (line 19) | async createGeneric(_ctx: App, info: object) {
method convertProc (line 39) | convertProc(pid: number) {
method getWeakRef (line 96) | getWeakRef(pid: number) {
FILE: src/sys/liquor/bcc.ts
class AnuraBareClient (line 1) | class AnuraBareClient {
method constructor (line 4) | constructor() {}
method init (line 5) | async init() {
method meta (line 8) | async meta() {}
method request (line 10) | async request(remote: URL, method: string, body: BodyInit | null, head...
method connect (line 42) | connect(
FILE: src/sys/liquor/coreapps/App.tsx
class App (line 2) | class App {
method open (line 8) | open(args: string[] = []): void {}
FILE: src/sys/liquor/coreapps/ExternalApp.tsx
class ExternalApp (line 5) | class ExternalApp extends App {
method constructor (line 10) | constructor(manifest: AppManifest, source: string) {
method serializeArgs (line 22) | static serializeArgs(args: string[]): string {
method deserializeArgs (line 32) | static deserializeArgs(args: string): string[] {
method open (line 42) | async open(args: string[] = []): Promise<WMWindow | undefined> {
FILE: src/sys/liquor/libs/ExternalLib.tsx
type LibManifest (line 3) | interface LibManifest {
class ExternalLib (line 15) | class ExternalLib extends Lib {
method constructor (line 28) | constructor(manifest: LibManifest, source: string) {
method getImport (line 50) | async getImport(version?: string): Promise<any> {
FILE: src/sys/liquor/libs/lib.tsx
class Lib (line 2) | class Lib {
method getImport (line 8) | async getImport(version: string): Promise<any> {}
FILE: src/sys/liquor/types/Filer.d.ts
type FilerFS (line 8) | type FilerFS = {
type FilerType (line 168) | type FilerType = {
FILE: src/sys/liquor/types/V86Starter.d.ts
type V86StarterType (line 3) | type V86StarterType = any;
FILE: src/sys/types.ts
type IntrinsicElements (line 17) | interface IntrinsicElements {
type Window (line 25) | interface Window {
function unzip (line 58) | async function unzip(path: string, target: string) {
type User (line 95) | interface User {
type Group (line 114) | interface Group {
type Perm (line 129) | enum Perm {
type Errors (line 136) | enum Errors {
type ExitCodes (line 170) | enum ExitCodes {
type ProcessInfo (line 196) | interface ProcessInfo {
type WindowConfig (line 223) | interface WindowConfig {
type NotificationProps (line 258) | interface NotificationProps {
type launcherProps (line 268) | interface launcherProps {
type dialogProps (line 275) | interface dialogProps {
type cmprops (line 294) | interface cmprops {
type AppData (line 306) | interface AppData {
type MediaProps (line 331) | interface MediaProps {
type websocketUrl (line 346) | type websocketUrl = `wss://${string}` | `ws://${string}`;
type UserSettings (line 348) | interface UserSettings {
type SysSettings (line 372) | interface SysSettings {
type ProcInf (line 391) | interface ProcInf {
type COM (line 401) | interface COM {
type AnuraWMWeakRef (line 579) | interface AnuraWMWeakRef {
type TAuthReturnType (line 608) | interface TAuthReturnType {
type TAuthSSData (line 622) | interface TAuthSSData {
FILE: src/sys/vFS.ts
type ServerInfo (line 5) | interface ServerInfo {
type ServerConnection (line 12) | interface ServerConnection {
class vFS (line 19) | class vFS {
method constructor (line 23) | private constructor(servers: Map<string, ServerConnection>) {
method create (line 43) | static async create(): Promise<vFS> {
method mount (line 61) | async mount(serverName: string): Promise<any> {
method mountAll (line 85) | async mountAll(): Promise<void> {
method addServer (line 91) | async addServer(info: ServerInfo): Promise<void> {
method removeServer (line 110) | async removeServer(serverName: string): Promise<void> {
method setServer (line 133) | setServer(serverName: string): boolean {
method whatFS (line 142) | whatFS(path: string): vFSOperations | FSType {
class vFSOperations (line 153) | class vFSOperations {
method constructor (line 156) | constructor(client: any) {
method pathtourl (line 160) | pathtourl(path: string): string {
method pathtoFSPath (line 173) | pathtoFSPath(path: string): string {
method readdir (line 181) | readdir(path: string, callback: (err: any, files?: any[]) => void): vo...
method readFile (line 196) | readFile(path: string, callback: (err: any, data?: string) => void): v...
method writeFile (line 251) | writeFile(path: string, data: string | ArrayBuffer, callback: (err: an...
method delete (line 258) | delete(path: string, callback: (err: any) => void): void {
method rename (line 265) | rename(oldPath: string, newPath: string, callback: (err: any) => void)...
method mkdir (line 272) | mkdir(path: string, callback: (err: any) => void): void {
method exists (line 279) | exists(path: string, callback: (err: any, exists?: boolean) => void): ...
method stat (line 286) | stat(path: string, callback: (err: any, stat?: any) => void): void {
method copyFile (line 293) | copyFile(source: string, destination: string, callback: (err: any) => ...
method unlink (line 300) | unlink(path: string, callback: (err: any) => void): void {
method move (line 307) | move(source: string, destination: string, callback: (err: any) => void...
method appendFile (line 314) | appendFile(path: string, data: string | ArrayBuffer, callback: (err: a...
method access (line 325) | access(path: string, ...rest: any[]): void {
FILE: vite.config.ts
method configureServer (line 58) | configureServer(server) {
Condensed preview — 326 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,754K chars).
[
{
"path": ".editorconfig",
"chars": 113,
"preview": "root = true\n\n[*]\nindent_style = tab\nindent_size = 4\nend_of_line = lf\ncharset = utf-8\ninsert_final_newline = true\n"
},
{
"path": ".gitattributes",
"chars": 55,
"preview": "public/apps/terminal.tapp/scripts/** linguist-vendored\n"
},
{
"path": ".github/FUNDING.yml",
"chars": 826,
"preview": "# These are supported funding model platforms\n\ngithub: NovaAppsInc\npatreon: # Replace with a single Patreon username\nope"
},
{
"path": ".github/ISSUE_TEMPLATE/bug-report.md",
"chars": 770,
"preview": "---\nname: Bug report with a given code from the OS\nabout: This should be used when the OS gives a Error Code and/or Erro"
},
{
"path": ".github/ISSUE_TEMPLATE/config.yml",
"chars": 51,
"preview": "blank_issues_enabled: false\ndefault: bug-report.md\n"
},
{
"path": ".github/dependabot.yml",
"chars": 129,
"preview": "version: 2\nupdates:\n - package-ecosystem: \"pnpm\"\n directory: \"/\"\n schedule:\n interval: \"weekly\"\n day: \""
},
{
"path": ".github/workflows/biome.yml",
"chars": 1632,
"preview": "name: \"Biome Code Quality Assurance\"\n\non:\n push:\n pull_request:\n workflow_dispatch:\n\njobs:\n quality:\n runs-on: \"u"
},
{
"path": ".github/workflows/test.yml",
"chars": 583,
"preview": "name: Build Check\non:\n push:\n pull_request:\n\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n "
},
{
"path": ".github/workflows/upk-build.yml",
"chars": 2123,
"preview": "name: Build UPK for Anura\non:\n push:\n branches:\n - main\n paths:\n - 'package.json'\n\njobs:\n "
},
{
"path": ".gitignore",
"chars": 349,
"preview": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\nvite.config.ts.timesta"
},
{
"path": ".node_version",
"chars": 8,
"preview": "22.19.0\n"
},
{
"path": ".vscode/extensions.json",
"chars": 115,
"preview": "{\n \"recommendations\": [\"biomejs.biome\", \"prosser.json-schema-2020-validation\", \"andersonbruceb.json-in-html\"]\n}\n"
},
{
"path": ".vscode/settings.json",
"chars": 34,
"preview": "{\n\t\"editor.formatOnSave\": false\n}\n"
},
{
"path": ".zed/settings.json",
"chars": 817,
"preview": "{\n\t\"format_on_save\": \"on\",\n\t\"disable_ai\": true,\n\t\"languages\": {\n\t\t\"HTML\": {\n\t\t\t\"formatter\": {\n\t\t\t\t\"language_server\": {\n\t"
},
{
"path": "LICENSE.txt",
"chars": 34512,
"preview": " GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3, 19 November 2007\n\n Copyright (C)"
},
{
"path": "README.md",
"chars": 2824,
"preview": "<center>\n <img src=\"card.png\" style=\"display: block; margin-left: auto; margin-right: auto; width: 300px;\"></img>\n "
},
{
"path": "SECURITY.md",
"chars": 1081,
"preview": "# Security Policy\n\n## Supported Terbium Versions\n\n| Version | Supported |\n| ------- | --------- |\n| 2.0.0-beta | ❌ |\n| 2"
},
{
"path": "biome.json",
"chars": 1390,
"preview": "{\n\t\"$schema\": \"./node_modules/@biomejs/biome/configuration_schema.json\",\n\t\"vcs\": {\n\t\t\"enabled\": false,\n\t\t\"clientKind\": \""
},
{
"path": "bootstrap.ts",
"chars": 8228,
"preview": "import fs from \"fs\";\nimport path from \"path\";\nimport { fileURLToPath } from \"url\";\nimport consola from \"consola\";\nimport"
},
{
"path": "docs/README.md",
"chars": 777,
"preview": "# <span style=\"color: #32ae62;\">Table of Contents</span>\n\nWelcome to Terbium v2's Documentation. Here is a simple table "
},
{
"path": "docs/anura-compat.md",
"chars": 1772,
"preview": "# <span style=\"color: #32ae62;\">Liquor Compatability</span>\n\nLiquor is our Compatability layer for Anura. We named it li"
},
{
"path": "docs/apis/readme.md",
"chars": 45870,
"preview": "# <span style=\"color: #32ae62;\">API Docs</span>\n\n**Last Updated**: v2.3.0 - 03/31/2026\n\nSo you're looking to use Terbium"
},
{
"path": "docs/backend-configuration.md",
"chars": 1133,
"preview": "# <span style=\"color: #32ae62;\">Backend Configuration Options</span>\n\nTerbium's backend is pretty cool and is configurab"
},
{
"path": "docs/contributions.md",
"chars": 2311,
"preview": "# <span style=\"color: #32ae62;\">How to Contribute to Terbium v2</span>\nTable of Contents\n- [Understanding the File Struc"
},
{
"path": "docs/creating-apps.md",
"chars": 11205,
"preview": "# <span style=\"color: #32ae62;\">Creating new applications</span>\n\nTable of Contents:\n\n- [Introduction](#introduction)\n- "
},
{
"path": "docs/creating-terminal-commands.md",
"chars": 5052,
"preview": "# <span style=\"color: #32ae62;\">Creating Terminal Commands</span>\n\n**Last Updated**: TSH-v2.3 - 02/11/2026\n\nWelcome — cr"
},
{
"path": "docs/lemonade-compat.md",
"chars": 842,
"preview": "# <span style=\"color: #32ae62;\">Lemonade Compatability</span>\n\nLemonade is our compatability layer for Electron, Its nam"
},
{
"path": "docs/lemonade.md",
"chars": 8749,
"preview": "# # <span style=\"color: #32ae62;\">Introduction to Lemonade</span>\n\nLemonade provides an Electron-compatible API layer fo"
},
{
"path": "docs/static-hosting.md",
"chars": 1437,
"preview": "# <span style=\"color: #32ae62;\">Static Hosting Terbium</span>\n\nFor this tutorial, Cloudflare pages will be used however "
},
{
"path": "docs/upk-build.md",
"chars": 1202,
"preview": "# <span style=\"color: #32ae62;\">UPK Building</span>\n\nBy default, if you fork the Terbium v2 repo on github included will"
},
{
"path": "env.d.ts",
"chars": 152,
"preview": "declare namespace NodeJS {\n\tinterface ProcessEnv {\n\t\tport: number;\n\t\tmasqr: boolean;\n\t\tlicensingURL: string | any;\n\t\twhi"
},
{
"path": "eslint.config.js",
"chars": 878,
"preview": "import js from \"@eslint/js\";\nimport globals from \"globals\";\nimport reactHooks from \"eslint-plugin-react-hooks\";\nimport r"
},
{
"path": "fail.html",
"chars": 1068,
"preview": "<!doctype html>\n<html>\n <head>\n <title>Welcome to nginx!</title>\n <style>\n html {\n color-scheme: ligh"
},
{
"path": "index.html",
"chars": 2098,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <link rel=\"icon\" href=\"/favicon.ico\" />\n <"
},
{
"path": "package.json",
"chars": 2414,
"preview": "{\n\t\"name\": \"tb-v2\",\n\t\"private\": true,\n\t\"version\": \"2.3.0\",\n\t\"type\": \"module\",\n\t\"scripts\": {\n\t\t\"start\": \"npm run build &&"
},
{
"path": "postcss.config.js",
"chars": 86,
"preview": "export default {\n\tplugins: {\n\t\t\"@tailwindcss/postcss\": {},\n\t\tautoprefixer: {},\n\t},\n};\n"
},
{
"path": "public/anura-sw.js",
"chars": 28186,
"preview": "/* global workbox */\n/** @type {import('@terbiumos/tfs').TFS} */\n\n// was a workaround for a firefox quirk where crossOri"
},
{
"path": "public/apps/about.tapp/app.css",
"chars": 649,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\nh1 {\n\tfont-family: Inter;\n\tfont-weight: 700;\n}\n\nh4 {\n\t"
},
{
"path": "public/apps/about.tapp/index.html",
"chars": 1031,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/about.tapp/index.json",
"chars": 156,
"preview": "{\n\t\"name\": \"About\",\n\t\"config\": {\n\t\t\"title\": \"About\",\n\t\t\"icon\": \"/fs/apps/system/about.tapp/icon.svg\",\n\t\t\"src\": \"/fs/apps"
},
{
"path": "public/apps/app store.tapp/index.html",
"chars": 2983,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/app store.tapp/index.js",
"chars": 36935,
"preview": "let currRepo;\nlet viewType = \"apps\";\n/**\n * Loads the repos content\n * @param {string} url\n */\nasync function loadRepo(u"
},
{
"path": "public/apps/app store.tapp/index.json",
"chars": 656,
"preview": "{\n\t\"name\": \"App Store\",\n\t\"config\": {\n\t\t\"title\": {\n\t\t\t\"text\": \"App Store\",\n\t\t\t\"html\": \"<div style=\\\"display: flex; flex-d"
},
{
"path": "public/apps/browser.tapp/index.css",
"chars": 4661,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(\"/fonts/Inter.ttf\");\n}\n\n:root {\n\t--shell-primary: #ffffff34;\n\t--shell-second"
},
{
"path": "public/apps/browser.tapp/index.html",
"chars": 4619,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/browser.tapp/index.js",
"chars": 20711,
"preview": "const Filer = window.parent.tb.fs;\nconst IS_URL = /^(https?:\\/\\/)?(www\\.)?([-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{"
},
{
"path": "public/apps/browser.tapp/index.json",
"chars": 161,
"preview": "{\n\t\"name\": \"Browser\",\n\t\"proxy\": false,\n\t\"config\": {\n\t\t\"title\": \"Browser\",\n\t\t\"icon\": \"/apps/browser.tapp/icon.svg\",\n\t\t\"sr"
},
{
"path": "public/apps/browser.tapp/newtab.html",
"chars": 3976,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/browser.tapp/userscripts.html",
"chars": 8826,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/calculator.tapp/index.css",
"chars": 1353,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(\"/fonts/Inter.ttf\");\n}\n\nhtml,\nbody {\n\theight: 100%;\n\tmargin: 0;\n\tpadding: 0;"
},
{
"path": "public/apps/calculator.tapp/index.html",
"chars": 2215,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/calculator.tapp/index.js",
"chars": 3580,
"preview": "document.querySelectorAll(\".cbtn\").forEach(btn => {\n\tbtn.addEventListener(\"click\", () => {\n\t\tconst display = document.qu"
},
{
"path": "public/apps/calculator.tapp/index.json",
"chars": 272,
"preview": "{\n\t\"name\": \"Calculator\",\n\t\"config\": {\n\t\t\"title\": \"Calculator\",\n\t\t\"icon\": \"/fs/apps/system/calculator.tapp/icon.svg\",\n\t\t\""
},
{
"path": "public/apps/feedback.tapp/index.json",
"chars": 231,
"preview": "{\n\t\"name\": \"Feedback\",\n\t\"config\": {\n\t\t\"title\": \"Feedback\",\n\t\t\"icon\": \"/fs/apps/system/feedback.tapp/icon.svg\",\n\t\t\"src\": "
},
{
"path": "public/apps/files.tapp/cm.css",
"chars": 938,
"preview": "@keyframes fade-in {\n\t0% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes fade-out {\n\t0% {\n\t\topacity: 1;\n\t}\n\t10"
},
{
"path": "public/apps/files.tapp/extensions.json",
"chars": 1759,
"preview": "{\n\t\"image\": [\n\t\t\"ase\",\n\t\t\"art\",\n\t\t\"bmp\",\n\t\t\"blp\",\n\t\t\"cd5\",\n\t\t\"cit\",\n\t\t\"cpt\",\n\t\t\"cr2\",\n\t\t\"cut\",\n\t\t\"dds\",\n\t\t\"dib\",\n\t\t\"djvu"
},
{
"path": "public/apps/files.tapp/files.com.js",
"chars": 8612,
"preview": "const tb = parent.window.tb;\nconst tb_island = tb.window.island;\nconst tb_window = tb.window;\nconst tb_context_menu = tb"
},
{
"path": "public/apps/files.tapp/icons.json",
"chars": 47261,
"preview": "{\n\t\"ext-to-name\": {\n\t\t\"js\": \"JavaScript\",\n\t\t\"html\": \"HTML\",\n\t\t\"css\": \"CSS\",\n\t\t\"php\": \"PHP\",\n\t\t\"py\": \"Python\",\n\t\t\"java\": "
},
{
"path": "public/apps/files.tapp/index.css",
"chars": 6594,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\nhtml,\nbody {\n\theight: 100%;\n\tmargin: 0;\n\tpadding: 0;\n}"
},
{
"path": "public/apps/files.tapp/index.html",
"chars": 2743,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-wid"
},
{
"path": "public/apps/files.tapp/index.js",
"chars": 108935,
"preview": "const Filer = window.Filer;\n\nconst user = sessionStorage.getItem(\"currAcc\");\nwindow.addEventListener(\"load\", event => {\n"
},
{
"path": "public/apps/files.tapp/index.json",
"chars": 207,
"preview": "{\n\t\"name\": \"Files\",\n\t\"config\": {\n\t\t\"title\": \"Files\",\n\t\t\"icon\": \"/fs/apps/system/files.tapp/icon.svg\",\n\t\t\"src\": \"/fs/apps"
},
{
"path": "public/apps/files.tapp/properties/index.html",
"chars": 512,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/files.tapp/properties/index.js",
"chars": 2773,
"preview": "window.addEventListener(\"message\", e => {\n\tlet data = JSON.parse(e.data);\n\tlet file_name = data.details.name;\n\tlet tof ="
},
{
"path": "public/apps/files.tapp/webdav.js",
"chars": 103270,
"preview": "/*! For license information please see webdav.js.LICENSE.txt */\nvar t={0:()=>{},80:(t,e)=>{const n=\":A-Za-z_\\\\u00C0-\\\\u0"
},
{
"path": "public/apps/fsapp.app/GUI.js",
"chars": 5852,
"preview": "// implementing it myself was too hard so i just stole it from https://codepen.io/adam-lynch/pen/GaqgXP\n\n// This context"
},
{
"path": "public/apps/fsapp.app/appview.html",
"chars": 10251,
"preview": "<!doctype html>\n<html>\n <head>\n <meta charset=\"UTF-8\" />\n <title>App Info Viewer</title>\n <link "
},
{
"path": "public/apps/fsapp.app/components/File.mjs",
"chars": 4756,
"preview": "function formatBytes(bytes, decimals = 2) {\n if (bytes === 0) return \"0 Bytes\";\n\n const k = 1024;\n const dm = d"
},
{
"path": "public/apps/fsapp.app/components/Folder.mjs",
"chars": 4558,
"preview": "export function Folder() {\n this.mount = async () => {\n this.absolutePath = `${this.path}/${this.file}`;\n "
},
{
"path": "public/apps/fsapp.app/components/Selector.mjs",
"chars": 789,
"preview": "export function Selector() {\n this.css = `\n margin-top: 0.3em;\n margin-right: 1em;\n display: flex;\n flex-"
},
{
"path": "public/apps/fsapp.app/components/SideBar.mjs",
"chars": 2665,
"preview": "export function SideBar() {\n this.css = `\n display: flex;\n flex-direction: column;\n flex: 0 0 15em;\n marg"
},
{
"path": "public/apps/fsapp.app/components/TopBar.mjs",
"chars": 1747,
"preview": "export function TopBar() {\n this.css = `\n margin-top: 0.3em;\n margin-right: 1em;\n display: flex;\n flex-di"
},
{
"path": "public/apps/fsapp.app/filemanager.css",
"chars": 4174,
"preview": "@font-face {\n font-family: Roboto;\n src: url(\"/assets/fonts/Roboto-Regular.ttf\") format(\"truetype\");\n}\n\n:root {\n "
},
{
"path": "public/apps/fsapp.app/index.html",
"chars": 417,
"preview": "<html>\n <head>\n <link rel=\"stylesheet\" href=\"filemanager.css\" />\n <link rel=\"stylesheet\" href=\"/assets/"
},
{
"path": "public/apps/fsapp.app/index.mjs",
"chars": 4398,
"preview": "// importing libaries\nself.fflate = window.parent.tb.fflate;\nself.mime = await anura.import(\"npm:mime\");\n\nself.currently"
},
{
"path": "public/apps/fsapp.app/manifest.json",
"chars": 254,
"preview": "{\n \"name\": \"Anura File Manager\",\n \"type\": \"auto\",\n \"package\": \"anura.fsapp\",\n \"index\": \"index.html\",\n \"ic"
},
{
"path": "public/apps/fsapp.app/operations.js",
"chars": 49017,
"preview": "const fs = window.parent.anura.fs\n\nasync function selectAction(selected) {\n currentlySelected.forEach((row) => {\n "
},
{
"path": "public/apps/libfilepicker.lib/GUI.js",
"chars": 4629,
"preview": "// This context menu is for files and folders\nconst newcontextmenu = new parent.anura.ContextMenu();\n// This context men"
},
{
"path": "public/apps/libfilepicker.lib/README.md",
"chars": 843,
"preview": "# Usage\n\nAdding the library to your app:\n```html\n<script type=\"module\">\n let { selectFile, selectFolder } = await anu"
},
{
"path": "public/apps/libfilepicker.lib/file.html",
"chars": 4365,
"preview": "<html>\n <head>\n <link rel=\"stylesheet\" href=\"filemanager.css\" />\n <link rel=\"stylesheet\" href=\"/assets/"
},
{
"path": "public/apps/libfilepicker.lib/filemanager.css",
"chars": 2823,
"preview": "@font-face {\n font-family: Roboto;\n src: url(\"/assets/fonts/Roboto-Regular.ttf\") format(\"truetype\");\n }\n\n* {\n c"
},
{
"path": "public/apps/libfilepicker.lib/folder.html",
"chars": 4364,
"preview": "<html>\n <head>\n <link rel=\"stylesheet\" href=\"filemanager.css\" />\n <link rel=\"stylesheet\" href=\"/assets/"
},
{
"path": "public/apps/libfilepicker.lib/handler.js",
"chars": 721,
"preview": "export function selectFile(options) {\n return new Promise(async (resolve, reject) => {\n await window.tb.dialog"
},
{
"path": "public/apps/libfilepicker.lib/install.js",
"chars": 1870,
"preview": "// Runs on every boot as the lib is installed\nexport default async function install(_, filePickerLib) {\n const { sele"
},
{
"path": "public/apps/libfilepicker.lib/manifest.json",
"chars": 208,
"preview": "{\n \"name\": \"File Picker\",\n \"icon\": \"files.png\",\n \"package\": \"anura.filepicker\",\n \"versions\": {\n \"1.0."
},
{
"path": "public/apps/libfilepicker.lib/operations.js",
"chars": 22440,
"preview": "var currentlySelected = [];\nvar clipboard = [];\nvar removeAfterPaste = false;\n\nwindow.fs = parent.anura.fs;\nwindow.anura"
},
{
"path": "public/apps/libfileview.lib/fileHandler.js",
"chars": 3168,
"preview": "const icons = await (await fetch(localPathToURL(\"icons.json\"))).json();\n\nexport function openFile(path) {\n const fs ="
},
{
"path": "public/apps/libfileview.lib/icons.json",
"chars": 4519,
"preview": "{\n \"files\": [\n {\n \"ext\": \"txt\",\n \"icon\": \"icons/txt.svg\",\n \"source\": \"papirus"
},
{
"path": "public/apps/libfileview.lib/install.js",
"chars": 1714,
"preview": "const icons = await (await fetch(localPathToURL(\"icons.json\"))).json();\n\n// This constant is our own ID. It is used when"
},
{
"path": "public/apps/libfileview.lib/manifest.json",
"chars": 212,
"preview": "{\n \"name\": \"File Viewer\",\n \"icon\": \"files.png\",\n \"package\": \"anura.fileviewer\",\n \"installHook\": \"install.js\""
},
{
"path": "public/apps/libpersist.lib/install.js",
"chars": 2742,
"preview": "export default function install(anura) {\n const directories = anura.settings.get(\"directories\");\n\n anura.fs.exists"
},
{
"path": "public/apps/libpersist.lib/manifest.json",
"chars": 245,
"preview": "{\n \"name\": \"AnuraOS Persistent Storage\",\n \"icon\": \"icon.svg\",\n \"package\": \"anura.persistence\",\n \"versions\": "
},
{
"path": "public/apps/libpersist.lib/src/index.js",
"chars": 3591,
"preview": "/**\n * @typedef Anura\n * @type {any}\n */\n\n/**\n * Base class for persisting data\n * This class is meant to be extended\n *"
},
{
"path": "public/apps/media viewer.tapp/index.css",
"chars": 1014,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/inter.ttf);\n}\n\nhtml,\nbody {\n\tfont-family: Inter;\n\tfont-size: 14px;\n\tf"
},
{
"path": "public/apps/media viewer.tapp/index.html",
"chars": 403,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width"
},
{
"path": "public/apps/media viewer.tapp/index.js",
"chars": 30360,
"preview": "import * as id3 from \"https://unpkg.com/id3js@latest/lib/id3.js\";\nimport * as pdfjsLib from \"https://cdnjs.cloudflare.co"
},
{
"path": "public/apps/media viewer.tapp/index.json",
"chars": 184,
"preview": "{\n\t\"name\": \"Media Viewer\",\n\t\"config\": {\n\t\t\"title\": \"Media Viewer\",\n\t\t\"icon\": \"/fs/apps/system/media viewer.tapp/icon.svg"
},
{
"path": "public/apps/media viewer.tapp/media.com.js",
"chars": 1556,
"preview": "const tb = parent.window.tb;\nconst tb_island = tb.window.island;\nconst tb_window = tb.window;\nconst tb_context_menu = tb"
},
{
"path": "public/apps/nfsadapter/FileSystemDirectoryHandle.js",
"chars": 5962,
"preview": "import FileSystemHandle from './FileSystemHandle.js'\nimport { errors } from './util.js'\n\nconst { GONE, MOD_ERR } = error"
},
{
"path": "public/apps/nfsadapter/FileSystemFileHandle.js",
"chars": 11965,
"preview": "const kAdapter$1 = Symbol('adapter');\n\n/**\n * @typedef {Object} FileSystemHandlePermissionDescriptor\n * @property {('rea"
},
{
"path": "public/apps/nfsadapter/FileSystemHandle.js",
"chars": 2413,
"preview": "const kAdapter = Symbol('adapter');\n\n/**\n * @typedef {Object} FileSystemHandlePermissionDescriptor\n * @property {('read'"
},
{
"path": "public/apps/nfsadapter/adapters/anuraadapter.js",
"chars": 8481,
"preview": "import { errors } from '../util.js'\n\nimport config from '../config.js'\nconst join = window.Filer.path.join;\nconst fs = w"
},
{
"path": "public/apps/nfsadapter/adapters/memory.js",
"chars": 6734,
"preview": "const errors = {\n INVALID: ['seeking position failed.', 'InvalidStateError'],\n GONE: ['A requested file or directory c"
},
{
"path": "public/apps/nfsadapter/adapters/sandbox.js",
"chars": 6412,
"preview": "const errors = {\n INVALID: ['seeking position failed.', 'InvalidStateError'],\n GONE: ['A requested file or directory c"
},
{
"path": "public/apps/nfsadapter/config.js",
"chars": 270,
"preview": "const config = {\n ReadableStream: globalThis.ReadableStream,\n WritableStream: globalThis.WritableStream,\n TransformSt"
},
{
"path": "public/apps/nfsadapter/nfsadapter.js",
"chars": 21434,
"preview": "const e=globalThis.showDirectoryPicker;async function t(t={}){if(e&&!t._preferPolyfill)return e(t);const i=document.crea"
},
{
"path": "public/apps/nfsadapter/util.js",
"chars": 2712,
"preview": "export const errors = {\n INVALID: ['seeking position failed.', 'InvalidStateError'],\n GONE: ['A requested file or dire"
},
{
"path": "public/apps/settings.tapp/accounts/index.html",
"chars": 2932,
"preview": "<!DOCTYPE html>\n<html lang=\"en\" class=\"h-full\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width"
},
{
"path": "public/apps/settings.tapp/accounts/index.js",
"chars": 14394,
"preview": "const tb = parent.window.tb;\nconst currentAccountsEl = document.querySelector(\".current-accounts\");\n\nconst getAccounts ="
},
{
"path": "public/apps/settings.tapp/index.css",
"chars": 5561,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\n* {\n\tfont-family: Inter;\n}\n\nhtml,\nbody {\n\theight: 100%"
},
{
"path": "public/apps/settings.tapp/index.html",
"chars": 32888,
"preview": "<!DOCTYPE html>\n<html lang=\"en\" theme=\"dark\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" co"
},
{
"path": "public/apps/settings.tapp/index.js",
"chars": 45115,
"preview": "const Filer = window.Filer;\nconst tb = parent.window.tb;\nconst tb_window = tb.window;\nconst tb_desktop = tb.desktop;\ncon"
},
{
"path": "public/apps/settings.tapp/index.json",
"chars": 207,
"preview": "{\n\t\"name\": \"Settings\",\n\t\"version\": \"1.0.0\",\n\t\"config\": {\n\t\t\"title\": \"Settings\",\n\t\t\"src\": \"/fs/apps/system/settings.tapp/"
},
{
"path": "public/apps/settings.tapp/island.js",
"chars": 2291,
"preview": "const appisland = window.parent.document.querySelector(\".app_island\").clientHeight + 12;\n\ntb_island.addControl({\n\ttext: "
},
{
"path": "public/apps/settings.tapp/message.js",
"chars": 447,
"preview": "window.addEventListener(\"message\", function (event) {\n\tvar data;\n\tif (typeof event.data === \"object\") {\n\t\ttry {\n\t\t\tdata "
},
{
"path": "public/apps/settings.tapp/radio.css",
"chars": 973,
"preview": "body[theme=\"light\"] button.radio {\n\tcolor: #ffffff88;\n}\n\nbody[theme=\"dark\"] button.radio {\n\tcolor: #ffffff88;\n}\n\nbutton."
},
{
"path": "public/apps/settings.tapp/select.css",
"chars": 1555,
"preview": ".select {\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 6px;\n\twidth: min-content;\n}\n\n.select .sele"
},
{
"path": "public/apps/settings.tapp/select.js",
"chars": 5369,
"preview": "const selects = document.querySelectorAll(\".select\");\n\nselects.forEach(select => {\n\tconst intiator = select.querySelecto"
},
{
"path": "public/apps/task manager.tapp/index.css",
"chars": 1852,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\nh1 {\n\tfont-family: Inter;\n\tfont-weight: 700;\n}\n\nh4 {\n\t"
},
{
"path": "public/apps/task manager.tapp/index.html",
"chars": 7997,
"preview": "<!DOCTYPE html>\n<html class=\"size-full\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Task Manager</title>\n <link rel"
},
{
"path": "public/apps/task manager.tapp/index.js",
"chars": 11700,
"preview": "const navbuttons = document.querySelectorAll(\".navbtn\");\n\nnavbuttons.forEach(btn => {\n\tconst tooltip = btn.querySelector"
},
{
"path": "public/apps/task manager.tapp/index.json",
"chars": 184,
"preview": "{\n\t\"name\": \"Task Manager\",\n\t\"config\": {\n\t\t\"title\": \"Task Manager\",\n\t\t\"icon\": \"/fs/apps/system/task manager.tapp/icon.svg"
},
{
"path": "public/apps/terminal.tapp/index.html",
"chars": 688,
"preview": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-wid"
},
{
"path": "public/apps/terminal.tapp/index.js",
"chars": 22788,
"preview": "import parser from \"https://unpkg.com/yargs-parser@22.0.0/browser.js\";\nimport http from \"https://cdn.jsdelivr.net/npm/is"
},
{
"path": "public/apps/terminal.tapp/index.json",
"chars": 1226,
"preview": "{\n\t\"name\": \"Terminal\",\n\t\"config\": {\n\t\t\"title\": {\n\t\t\t\"text\": \"Terminal\",\n\t\t\t\"html\": \"<div class=\\\"term-tab-container\\\">\\n"
},
{
"path": "public/apps/terminal.tapp/logo.txt",
"chars": 247,
"preview": "@@@@@@@@@@@@@@~ B@@@@@@@@#G?. \nB###&@@@@&####^ #@@@&PPPB@@@G.\n .. ~@@@@J .. .#@@@P ~&@@@^\n ^@@@@? .#@@@@###&@@"
},
{
"path": "public/apps/terminal.tapp/scripts/cat.js",
"chars": 880,
"preview": "async function cat(args) {\n\tif (args._raw.length <= 0) {\n\t\tdisplayError(\"cat: missing operand\");\n\t\tcreateNewCommandInput"
},
{
"path": "public/apps/terminal.tapp/scripts/cd.js",
"chars": 1610,
"preview": "function cd(args) {\n\tlet destination = args._[0];\n\tconst raw_destination = destination;\n\n\tif (!destination || destinatio"
},
{
"path": "public/apps/terminal.tapp/scripts/clear.js",
"chars": 80,
"preview": "function clear(term) {\n\tterm.clear();\n\tcreateNewCommandInput();\n}\n\nclear(term);\n"
},
{
"path": "public/apps/terminal.tapp/scripts/curl.js",
"chars": 853,
"preview": "async function curl(args) {\n\tlet url = args._raw;\n\tif (!url) {\n\t\tdisplayOutput(\"Usage: curl <scriptURL>\");\n\t\tcreateNewCo"
},
{
"path": "public/apps/terminal.tapp/scripts/echo.js",
"chars": 85,
"preview": "function echo(args) {\n\tdisplayOutput(args);\n\tcreateNewCommandInput();\n}\n\necho(args);\n"
},
{
"path": "public/apps/terminal.tapp/scripts/exit.js",
"chars": 62,
"preview": "function exit() {\n\twindow.parent.tb.window.close();\n}\nexit();\n"
},
{
"path": "public/apps/terminal.tapp/scripts/git.js",
"chars": 8800,
"preview": "async function git(args) {\n\tlet user = await window.parent.tb.user.username();\n\tlet currentPath = path;\n\tif (currentPath"
},
{
"path": "public/apps/terminal.tapp/scripts/help.js",
"chars": 774,
"preview": "async function help(args) {\n\tif (args.length > 0) {\n\t\tconst scriptName = args[0];\n\t\tconst scriptList = JSON.parse(await "
},
{
"path": "public/apps/terminal.tapp/scripts/info.json",
"chars": 12794,
"preview": "[\n\t{\n\t\t\"name\": \"help\",\n\t\t\"description\": \"Display this help message\",\n\t\t\"usage\": \"help [command]\"\n\t},\n\t{\n\t\t\"name\": \"mkdir"
},
{
"path": "public/apps/terminal.tapp/scripts/info.schema.json",
"chars": 539,
"preview": "{\n\t\"$schema\": \"http://json-schema.org/draft-07/schema#\",\n\t\"type\": \"array\",\n\t\"items\": {\n\t\t\"$ref\": \"#/definitions/command\""
},
{
"path": "public/apps/terminal.tapp/scripts/ls.js",
"chars": 2419,
"preview": "async function ls(args) {\n\tif (args._raw === \"/mnt/\" || path === \"/mnt/\") {\n\t\tfunction centerText(text, width) {\n\t\t\tcons"
},
{
"path": "public/apps/terminal.tapp/scripts/mkdir.js",
"chars": 911,
"preview": "async function mkdir(args) {\n\tif (!args._raw) {\n\t\tdisplayError(\"mkdir: Please provide a directory name\");\n\t\tcreateNewCom"
},
{
"path": "public/apps/terminal.tapp/scripts/nano.js",
"chars": 7676,
"preview": "async function nano(args) {\n\tconst filename = args._[0];\n\tif (!filename) {\n\t\tdisplayError(\"nano: filename required\");\n\t\t"
},
{
"path": "public/apps/terminal.tapp/scripts/node.js",
"chars": 2568,
"preview": "/**\n * @typedef {import(\"yargs-parser\").Arguments} argv\n * @typedef {import(\"xterm\").Terminal} Terminal\n */\n\n/**\n * CLI "
},
{
"path": "public/apps/terminal.tapp/scripts/ping.js",
"chars": 1180,
"preview": "async function ping(args) {\n\tconst numPings = 5;\n\tlet url = args._raw;\n\tlet totalResponseTime = 0;\n\tlet packetsReceived "
},
{
"path": "public/apps/terminal.tapp/scripts/pkg.js",
"chars": 20785,
"preview": "async function pkg(args) {\n\tlet availableCommands = [\n\t\t\"pkg <command> -h: Display help for <command>.\",\n\t\t\"pkg install "
},
{
"path": "public/apps/terminal.tapp/scripts/pkill.js",
"chars": 474,
"preview": "function pkill(args) {\n\tif (args._raw.includes(\"list\")) {\n\t\tconst windows = window.parent.tb.process.list();\n\t\tObject.va"
},
{
"path": "public/apps/terminal.tapp/scripts/pwd.js",
"chars": 82,
"preview": "function pwd(args) {\n\tdisplayOutput(path);\n\tcreateNewCommandInput();\n}\npwd(args);\n"
},
{
"path": "public/apps/terminal.tapp/scripts/rm.js",
"chars": 3941,
"preview": "async function rm(args) {\n\tlet availableOptions = [\n\t\t\"-f: ignore nonexistent files and arguments, never prompt.\",\n\t\t\"-r"
},
{
"path": "public/apps/terminal.tapp/scripts/rmdir.js",
"chars": 521,
"preview": "async function rmdir(args) {\n\tif (args._raw.length <= 0) {\n\t\tdisplayError(\"rmdir: missing operand\");\n\t\tcreateNewCommandI"
},
{
"path": "public/apps/terminal.tapp/scripts/ssh-keygen.js",
"chars": 7376,
"preview": "function ssh_keygen(args) {\n\tif (args.help || args.h) {\n\t\tshowHelp();\n\t\tcreateNewCommandInput();\n\t\treturn;\n\t}\n\tconst key"
},
{
"path": "public/apps/terminal.tapp/scripts/ssh.js",
"chars": 9393,
"preview": "const tbSSH = window.tbSSH;\nif (!tbSSH) {\n\tthrow new Error(\"TB-SSH library not loaded!\");\n}\nif (tb.node.isReady === fals"
},
{
"path": "public/apps/terminal.tapp/scripts/sysfetch.js",
"chars": 3793,
"preview": "async function sysfetch(args, term) {\n\tif (args._raw.includes(\"-v\")) {\n\t\tdisplayOutput(\"Sysfetch v1.0.0\");\n\t\tcreateNewCo"
},
{
"path": "public/apps/terminal.tapp/scripts/taskkill.js",
"chars": 466,
"preview": "function taskkill(args) {\n\tif (args._raw.includes(\"list\")) {\n\t\tconst windows = tb.process.list();\n\t\tObject.values(window"
},
{
"path": "public/apps/terminal.tapp/scripts/tb.js",
"chars": 13404,
"preview": "const ver = \"1.0.0\";\n\nvar cmdData = {\n\thelp: {\n\t\tdesc: \"Shows information about a given subcommand\",\n\t\tusage: \"tb help <"
},
{
"path": "public/apps/terminal.tapp/scripts/touch.js",
"chars": 800,
"preview": "async function touch(args) {\n\tif (args._raw.length <= 0) {\n\t\tdisplayError(\"touch: missing operand\");\n\t\tcreateNewCommandI"
},
{
"path": "public/apps/terminal.tapp/scripts/unzip.js",
"chars": 2571,
"preview": "async function uzip(path, target) {\n\tconst response = await fetch(\"/fs/\" + path);\n\tconst zipFileContent = await response"
},
{
"path": "public/apps/terminal.tapp/ssh-util.js",
"chars": 31591,
"preview": "(()=>{\"use strict\";var e={};e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get"
},
{
"path": "public/apps/terminal.tapp/terminal.css",
"chars": 1367,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\nbody {\n\tfont-family: Inter;\n\tmargin: 0;\n\tpadding: 0;\n\t"
},
{
"path": "public/apps/terminal.tapp/terminal_com.js",
"chars": 337,
"preview": "const tb = parent.window.tb;\nconst tb_island = tb.window.island;\nconst tb_window = tb.window;\nconst tb_context_menu = tb"
},
{
"path": "public/apps/text editor.tapp/index.css",
"chars": 468,
"preview": "@font-face {\n\tfont-family: Inter;\n\tsrc: url(/fonts/Inter.ttf);\n}\n\nhtml,\nbody {\n\tmargin: 0;\n\tpadding: 0;\n}\n\nbody {\n\tdispl"
},
{
"path": "public/apps/text editor.tapp/index.html",
"chars": 866,
"preview": "<!DOCTYPE html>\n<html lang=\"en\" class=\"h-full\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"wid"
},
{
"path": "public/apps/text editor.tapp/index.js",
"chars": 5590,
"preview": "import * as webdav from \"/fs/apps/system/files.tapp/webdav.js\";\n\nwindow.webdav = webdav;\n\nfunction openFile(data) {\n\tcon"
},
{
"path": "public/apps/text editor.tapp/index.json",
"chars": 180,
"preview": "{\n\t\"name\": \"Text Editor\",\n\t\"config\": {\n\t\t\"title\": \"Text Editor\",\n\t\t\"icon\": \"/fs/apps/system/text editor.tapp/icon.svg\",\n"
},
{
"path": "public/apps/text editor.tapp/text.com.js",
"chars": 2451,
"preview": "const tb = parent.window.tb;\nconst tb_island = tb.window.island;\nconst tb_window = tb.window;\nconst tb_context_menu = tb"
},
{
"path": "public/assets/fs.ui/fs.css",
"chars": 2713,
"preview": "@import 'tailwindcss';\n\n@custom-variant dark (&:where(.dark, .dark *));\n\n@media (prefers-color-scheme: light) {\n :roo"
},
{
"path": "public/assets/fs.ui/fs.js",
"chars": 3399,
"preview": "const breadcrumbsEl = document.querySelector('.breadcrumbs');\nconst navBackEl = document.querySelector('.nav-back');\ncon"
},
{
"path": "public/assets/libs/comlink.min.umd.js",
"chars": 4748,
"preview": "!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?def"
},
{
"path": "public/assets/libs/idb-keyval.js",
"chars": 4744,
"preview": "function _slicedToArray(t,n){return _arrayWithHoles(t)||_iterableToArrayLimit(t,n)||_unsupportedIterableToArray(t,n)||_n"
},
{
"path": "public/assets/libs/mime.iife.js",
"chars": 52212,
"preview": "var mime = (function (exports) {\n 'use strict';\n\n const types$1 = {\n 'application/prs.cww': ['cww'],\n "
},
{
"path": "public/assets/libs/workbox/workbox-background-sync.dev.js",
"chars": 21747,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.backgroundSync = (function (exports, WorkboxError_mjs, logger_mjs, asser"
},
{
"path": "public/assets/libs/workbox/workbox-background-sync.prod.js",
"chars": 3377,
"preview": "this.workbox=this.workbox||{},this.workbox.backgroundSync=function(t,e,s){\"use strict\";try{self[\"workbox:background-sync"
},
{
"path": "public/assets/libs/workbox/workbox-broadcast-update.dev.js",
"chars": 16816,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.broadcastUpdate = (function (exports, assert_mjs, getFriendlyURL_mjs, lo"
},
{
"path": "public/assets/libs/workbox/workbox-broadcast-update.prod.js",
"chars": 1861,
"preview": "this.workbox=this.workbox||{},this.workbox.broadcastUpdate=function(e,t){\"use strict\";try{self[\"workbox:broadcast-update"
},
{
"path": "public/assets/libs/workbox/workbox-cacheable-response.dev.js",
"chars": 6738,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.cacheableResponse = (function (exports, WorkboxError_mjs, assert_mjs, ge"
},
{
"path": "public/assets/libs/workbox/workbox-cacheable-response.prod.js",
"chars": 579,
"preview": "this.workbox=this.workbox||{},this.workbox.cacheableResponse=function(t){\"use strict\";try{self[\"workbox:cacheable-respon"
},
{
"path": "public/assets/libs/workbox/workbox-core.dev.js",
"chars": 45960,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.core = (function (exports) {\n 'use strict';\n\n try {\n self['workbox:"
},
{
"path": "public/assets/libs/workbox/workbox-core.prod.js",
"chars": 5341,
"preview": "this.workbox=this.workbox||{},this.workbox.core=function(e){\"use strict\";try{self[\"workbox:core:4.1.1\"]&&_()}catch(e){}c"
},
{
"path": "public/assets/libs/workbox/workbox-expiration.dev.js",
"chars": 20422,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.expiration = (function (exports, DBWrapper_mjs, deleteDatabase_mjs, Work"
},
{
"path": "public/assets/libs/workbox/workbox-expiration.prod.js",
"chars": 2833,
"preview": "this.workbox=this.workbox||{},this.workbox.expiration=function(t,e,s,i,a,h){\"use strict\";try{self[\"workbox:expiration:4."
},
{
"path": "public/assets/libs/workbox/workbox-navigation-preload.dev.js",
"chars": 3114,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.navigationPreload = (function (exports, logger_mjs) {\n 'use strict';\n\n "
},
{
"path": "public/assets/libs/workbox/workbox-navigation-preload.prod.js",
"chars": 652,
"preview": "this.workbox=this.workbox||{},this.workbox.navigationPreload=function(t){\"use strict\";try{self[\"workbox:navigation-prelo"
},
{
"path": "public/assets/libs/workbox/workbox-offline-ga.dev.js",
"chars": 8022,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.googleAnalytics = (function (exports, Plugin_mjs, cacheNames_mjs, getFri"
},
{
"path": "public/assets/libs/workbox/workbox-offline-ga.prod.js",
"chars": 1890,
"preview": "this.workbox=this.workbox||{},this.workbox.googleAnalytics=function(e,t,o,n,a,c,w){\"use strict\";try{self[\"workbox:google"
},
{
"path": "public/assets/libs/workbox/workbox-precaching.dev.js",
"chars": 28436,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.precaching = (function (exports, assert_mjs, cacheNames_mjs, getFriendly"
},
{
"path": "public/assets/libs/workbox/workbox-precaching.prod.js",
"chars": 4246,
"preview": "this.workbox=this.workbox||{},this.workbox.precaching=function(t,e,n,s,c){\"use strict\";try{self[\"workbox:precaching:4.1."
},
{
"path": "public/assets/libs/workbox/workbox-range-requests.dev.js",
"chars": 8816,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.rangeRequests = (function (exports, WorkboxError_mjs, assert_mjs, logger"
},
{
"path": "public/assets/libs/workbox/workbox-range-requests.prod.js",
"chars": 1512,
"preview": "this.workbox=this.workbox||{},this.workbox.rangeRequests=function(e,n){\"use strict\";try{self[\"workbox:range-requests:4.1"
},
{
"path": "public/assets/libs/workbox/workbox-routing.dev.js",
"chars": 32281,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.routing = (function (exports, assert_mjs, logger_mjs, cacheNames_mjs, Wo"
},
{
"path": "public/assets/libs/workbox/workbox-routing.prod.js",
"chars": 3384,
"preview": "this.workbox=this.workbox||{},this.workbox.routing=function(t,e,r){\"use strict\";try{self[\"workbox:routing:4.1.1\"]&&_()}c"
},
{
"path": "public/assets/libs/workbox/workbox-strategies.dev.js",
"chars": 35477,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.strategies = (function (exports, logger_mjs, assert_mjs, cacheNames_mjs,"
},
{
"path": "public/assets/libs/workbox/workbox-strategies.prod.js",
"chars": 4859,
"preview": "this.workbox=this.workbox||{},this.workbox.strategies=function(e,t,s,n,r){\"use strict\";try{self[\"workbox:strategies:4.1."
},
{
"path": "public/assets/libs/workbox/workbox-streams.dev.js",
"chars": 10278,
"preview": "this.workbox = this.workbox || {};\nthis.workbox.streams = (function (exports, logger_mjs, assert_mjs) {\n 'use strict';\n"
},
{
"path": "public/assets/libs/workbox/workbox-streams.prod.js",
"chars": 1375,
"preview": "this.workbox=this.workbox||{},this.workbox.streams=function(e){\"use strict\";try{self[\"workbox:streams:4.1.1\"]&&_()}catch"
},
{
"path": "public/assets/libs/workbox/workbox-sw.js",
"chars": 1329,
"preview": "!function(){\"use strict\";try{self[\"workbox:sw:4.1.1\"]&&_()}catch(t){}const t=\"https://storage.googleapis.com/workbox-cdn"
},
{
"path": "public/assets/libs/workbox/workbox-window.dev.es5.mjs",
"chars": 28489,
"preview": "try {\n self['workbox:window:4.1.1'] && _();\n} catch (e) {} // eslint-disable-line\n\n/*\n Copyright 2019 Google LLC\n\n Us"
},
{
"path": "public/assets/libs/workbox/workbox-window.dev.mjs",
"chars": 24137,
"preview": "try {\n self['workbox:window:4.1.1'] && _();\n} catch (e) {} // eslint-disable-line\n\n/*\n Copyright 2019 Google LLC\n\n Us"
},
{
"path": "public/assets/libs/workbox/workbox-window.dev.umd.js",
"chars": 30336,
"preview": "(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n type"
},
{
"path": "public/assets/libs/workbox/workbox-window.prod.es5.mjs",
"chars": 4302,
"preview": "try{self[\"workbox:window:4.1.1\"]&&_()}catch(n){}var n=function(n,t){return new Promise(function(i){var e=new MessageChan"
},
{
"path": "public/assets/libs/workbox/workbox-window.prod.mjs",
"chars": 3049,
"preview": "try{self[\"workbox:window:4.1.1\"]&&_()}catch(t){}const t=(t,s)=>new Promise(i=>{let e=new MessageChannel;e.port1.onmessag"
},
{
"path": "public/assets/libs/workbox/workbox-window.prod.umd.js",
"chars": 4538,
"preview": "!function(n,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?def"
},
{
"path": "public/assets/materialsymbols.css",
"chars": 585,
"preview": "/* fallback */\n@font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 7"
},
{
"path": "public/assets/matter.css",
"chars": 46818,
"preview": "/* Matter 0.2.2 */\n\n/* Components */\n/* Button Contained */\n.matter-button-contained {\n --matter-helper-theme: var(--"
},
{
"path": "public/cursor_changer.js",
"chars": 2488,
"preview": "const style = document.createElement(\"style\");\nconsole.log(\"Cursor Engine Injected\");\nconst anuraSettings = window.paren"
}
]
// ... and 126 more files (download for full content)
About this extraction
This page contains the full source code of the TerbiumOS/web-v2 GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 326 files (2.4 MB), approximately 641.8k tokens, and a symbol index with 1727 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.