Full page opened Pithos at a loopback address such as 127.0.0.1:58678/#/buckets/music-house, which means nothing to anyone reading it and changes every launch. In Theseus the app now lives at pithos.sia/<S3 user>/<drive>/<folder>, with pages at pithos.sia/settings, /account and so on; the root page stays the pithos.sia website. The add-on answers those paths through Theseus's new site routes. It passes the session to the control server only for pithos.sia's own requests and the address bar, never another site's fetch, and only while the vault is unlocked, as the sidebar panel requires. The server answers its own files, pages and existing S3 users and reports anything else as not its own, so the website answers it. The sidebar and the web console keep #/ addresses; an older Theseus still gets the loopback address.
28 lines
641 B
JSON
28 lines
641 B
JSON
{
|
|
"name": "pithos",
|
|
"version": "0.3.10",
|
|
"description": "A control panel for s3d, the Sia S3 gateway: daemon, users and keys, buckets, upload pipeline.",
|
|
"license": "MPL-2.0",
|
|
"type": "module",
|
|
"main": "core/server.js",
|
|
"bin": {
|
|
"pithos-web": "bin/pithos-web.js"
|
|
},
|
|
"scripts": {
|
|
"web": "node bin/pithos-web.js",
|
|
"desktop": "electron desktop/main.cjs",
|
|
"test": "node --test test/*.test.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"dependencies": {
|
|
"yaml": "^2.9.1"
|
|
},
|
|
"optionalDependencies": {
|
|
"@lydell/node-pty": "1.2.0-beta.15"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^44.5.1"
|
|
}
|
|
}
|