A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: use this.workerProxy() everywhere

+14 -24
+1 -11
src/common/element.js
··· 3 3 import { html, render } from "lit-html"; 4 4 5 5 import { effect, signal } from "@common/signal.js"; 6 - import { 7 - rpc, 8 - transfer, 9 - workerLink, 10 - workerProxy, 11 - workerTunnel, 12 - } from "./worker.js"; 6 + import { rpc, workerLink, workerProxy, workerTunnel } from "./worker.js"; 13 7 import { BrowserPostMessageIo } from "./worker/rpc.js"; 14 - 15 - // RE-EXPORT 16 - 17 - export { workerLink, workerProxy, workerTunnel } from "./worker.js"; 18 8 19 9 /** 20 10 * @import {BroadcastingStatus, ProvisionedWorker, ProvisionedWorkers} from "./element.d.ts"
+1 -1
src/common/worker.js
··· 1 - import { RPCChannel, transfer } from "@kunkun/kkrpc"; 1 + import { RPCChannel } from "@kunkun/kkrpc"; 2 2 import { getTransferables } from "@okikio/transferables"; 3 3 import { debounceMicrotask } from "@vicary/debounce-microtask"; 4 4 import { xxh32 } from "xxh32";
+2 -2
src/components/input/opensubsonic/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 import { SCHEME } from "./constants.js"; 3 3 4 4 /** ··· 24 24 super(); 25 25 26 26 /** @type {ProxiedActions<InputActions>} */ 27 - const p = workerProxy(this.workerLink); 27 + const p = this.workerProxy(); 28 28 29 29 this.consult = p.consult; 30 30 this.contextualize = p.contextualize;
+2 -2
src/components/input/s3/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 import { SCHEME } from "./constants.js"; 3 3 4 4 /** ··· 24 24 super(); 25 25 26 26 /** @type {ProxiedActions<InputActions & { demo: () => Promise<void> }>} */ 27 - const p = workerProxy(this.workerLink); 27 + const p = this.workerProxy(); 28 28 29 29 this.consult = p.consult; 30 30 this.contextualize = p.contextualize;
+2 -2
src/components/output/polymorphic/indexed-db/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 import { outputManager } from "../../common.js"; 3 3 4 4 /** ··· 21 21 super(); 22 22 23 23 /** @type {ProxiedActions<OutputWorkerActions>} */ 24 - const p = workerProxy(this.workerLink); 24 + const p = this.workerProxy(); 25 25 26 26 // Manager 27 27 const manager = outputManager({
+2 -2
src/components/processor/artwork/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 3 3 /** 4 4 * @import {ProxiedActions} from "@common/worker.d.ts" ··· 20 20 super(); 21 21 22 22 /** @type {ProxiedActions<Actions>} */ 23 - const p = workerProxy(this.workerLink); 23 + const p = this.workerProxy(); 24 24 25 25 this.artwork = p.artwork; 26 26 this.supply = p.supply;
+2 -2
src/components/processor/metadata/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 3 3 /** 4 4 * @import {ProxiedActions} from "@common/worker.d.ts" ··· 20 20 super(); 21 21 22 22 /** @type {ProxiedActions<Actions>} */ 23 - const p = workerProxy(this.workerLink); 23 + const p = this.workerProxy(); 24 24 25 25 // Worker proxy 26 26 this.supply = p.supply;
+2 -2
src/components/processor/search/element.js
··· 1 - import { DiffuseElement, workerProxy } from "@common/element.js"; 1 + import { DiffuseElement } from "@common/element.js"; 2 2 3 3 /** 4 4 * @import {ProxiedActions} from "@common/worker.d.ts"; ··· 20 20 super(); 21 21 22 22 /** @type {ProxiedActions<Actions>} */ 23 - const p = workerProxy(this.workerLink); 23 + const p = this.workerProxy(); 24 24 25 25 this.search = p.search; 26 26 this.supply = p.supply;