Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export {};
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
self.process = require('process/browser');
const fsa_to_node_1 = require("../fsa-to-node");
const FsaNodeSyncWorker_1 = require("../../src/fsa-to-node/worker/FsaNodeSyncWorker");
if (typeof window === 'object') {
const url = document.currentScript.src;
const dir = navigator.storage.getDirectory();
const fs = (window.fs = new fsa_to_node_1.FsaNodeFs(dir));
if (url) {
fsa_to_node_1.FsaNodeSyncAdapterWorker.start(url, dir)
.then(adapter => {
fs.syncAdapter = adapter;
})
.catch(() => { });
}
}
else {
const worker = new FsaNodeSyncWorker_1.FsaNodeSyncWorker();
worker.start();
}
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/webfs/index.ts"],"names":[],"mappings":";;AAAM,IAAK,CAAC,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEjD,gDAAqE;AACrE,sFAAmF;AAGnF,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;IAC/B,MAAM,GAAG,GAAS,QAAQ,CAAC,aAAc,CAAC,GAAG,CAAC;IAC9C,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,YAAY,EAAoD,CAAC;IAC/F,MAAM,EAAE,GAAG,CAAO,MAAO,CAAC,EAAE,GAAG,IAAI,uBAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,IAAI,GAAG,EAAE,CAAC;QACR,sCAAwB,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC;aACrC,IAAI,CAAC,OAAO,CAAC,EAAE;YACd,EAAE,CAAC,WAAW,GAAG,OAAO,CAAC;QAC3B,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IACrB,CAAC;AACH,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,GAAG,IAAI,qCAAiB,EAAE,CAAC;IACvC,MAAM,CAAC,KAAK,EAAE,CAAC;AACjB,CAAC"}