sliftutils 1.7.5 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +278 -1
- package/misc/https/persistentLocalStorage.ts +2 -0
- package/package.json +1 -1
- package/render-utils/Input.tsx +2 -0
- package/render-utils/InputLabel.tsx +2 -0
- package/render-utils/colors.tsx +2 -0
- package/storage/BulkDatabase2/syncClient.ts +10 -7
- package/storage/FileFolderAPI.d.ts +1 -0
- package/storage/FileFolderAPI.tsx +18 -0
- package/storage/IArchives.d.ts +37 -0
- package/storage/IArchives.ts +20 -0
- package/storage/backblaze.d.ts +2 -1
- package/storage/backblaze.ts +2 -1
- package/storage/remoteStorage/ArchivesRemote.d.ts +67 -0
- package/storage/remoteStorage/ArchivesRemote.ts +195 -0
- package/storage/remoteStorage/accessPage.d.ts +1 -0
- package/storage/remoteStorage/accessPage.tsx +133 -0
- package/storage/remoteStorage/blobStore.d.ts +56 -0
- package/storage/remoteStorage/blobStore.ts +403 -0
- package/storage/remoteStorage/storageController.d.ts +89 -0
- package/storage/remoteStorage/storageController.ts +398 -0
- package/storage/remoteStorage/storageServer.d.ts +1 -0
- package/storage/remoteStorage/storageServer.ts +132 -0
- package/teststorage/browser.tsx +148 -0
- package/teststorage/server.ts +43 -0
- package/yarn.lock +3 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
process.env.NODE_ENV = "production";
|
|
2
|
+
import os from "os";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { SocketFunction } from "socket-function/SocketFunction";
|
|
5
|
+
import { RequireController } from "socket-function/require/RequireController";
|
|
6
|
+
import { hostServer } from "../misc/https/hostServer";
|
|
7
|
+
// Import browser code, so it is allowed to be required by the client
|
|
8
|
+
import "./browser";
|
|
9
|
+
|
|
10
|
+
// Static test site for the remote storage system (storage/remoteStorage). The browser talks to
|
|
11
|
+
// the storage server directly, so this server only serves the page.
|
|
12
|
+
|
|
13
|
+
const DOMAIN = "stest.vidgridweb.com";
|
|
14
|
+
const PORT = 4445;
|
|
15
|
+
|
|
16
|
+
process.on("unhandledRejection", (error) => {
|
|
17
|
+
console.error("Unhandled promise rejection:", error);
|
|
18
|
+
});
|
|
19
|
+
process.on("uncaughtException", (error) => {
|
|
20
|
+
console.error("Uncaught exception:", error);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
async function main() {
|
|
24
|
+
RequireController.allowAllNodeModules();
|
|
25
|
+
SocketFunction.expose(RequireController);
|
|
26
|
+
SocketFunction.setDefaultHTTPCall(RequireController, "requireHTML", {
|
|
27
|
+
requireCalls: ["./teststorage/browser.tsx"],
|
|
28
|
+
});
|
|
29
|
+
RequireController.addStaticRoot(path.resolve("."));
|
|
30
|
+
|
|
31
|
+
await hostServer({
|
|
32
|
+
domain: DOMAIN,
|
|
33
|
+
port: PORT,
|
|
34
|
+
cloudflareApiTokenPath: os.homedir() + "/vidgridweb.com.key",
|
|
35
|
+
setDNSRecord: true,
|
|
36
|
+
});
|
|
37
|
+
console.log(`Storage test site running at https://${DOMAIN}:${PORT}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
main().catch(e => {
|
|
41
|
+
console.error(e);
|
|
42
|
+
process.exit(1);
|
|
43
|
+
});
|
package/yarn.lock
CHANGED
|
@@ -2105,9 +2105,9 @@ typenode@^6.6.1:
|
|
|
2105
2105
|
typescript "5.3.3"
|
|
2106
2106
|
|
|
2107
2107
|
typesafecss@*:
|
|
2108
|
-
version "0.
|
|
2109
|
-
resolved "https://registry.yarnpkg.com/typesafecss/-/typesafecss-0.
|
|
2110
|
-
integrity sha512-
|
|
2108
|
+
version "0.31.0"
|
|
2109
|
+
resolved "https://registry.yarnpkg.com/typesafecss/-/typesafecss-0.31.0.tgz#deac4a9b6bb95e0220b87f10b84648e55782d195"
|
|
2110
|
+
integrity sha512-DzRibU6BBb/v+3RYRO3grn+oLKUX3JwFWqH94cPhr2rFpGW3rEspUhnolBkoNzkiWPhlnjBK0a7kevtQUqe1bw==
|
|
2111
2111
|
|
|
2112
2112
|
typescript@5.3.3:
|
|
2113
2113
|
version "5.3.3"
|