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.

chore: move foundation.js file

+21 -101
+1 -1
deno.jsonc
··· 77 77 }, 78 78 "exports": { 79 79 // .js 80 - "./common/facets/foundation.js": "./src/common/facets/foundation.js", 80 + "./common/foundation.js": "./src/common/foundation.js", 81 81 "./common/facets/utils.js": "./src/common/facets/utils.js", 82 82 "./common/element.js": "./src/common/element.js", 83 83 "./common/signal.js": "./src/common/signal.js",
+1 -1
src/build.vto
··· 65 65 <div class="code-block"> 66 66 <code> 67 67 {{- echo -}} 68 - import foundation from "common/facets/foundation.js" 68 + import foundation from "common/foundation.js" 69 69 {{ /echo }} 70 70 {{ echo -}}await foundation.configurator.scrobbles(){{- /echo }} 71 71
src/common/facets/foundation.js src/common/foundation.js
-46
src/common/facets/utils.js
··· 1 - // import { fragments, serializeFragments } from "@fcrozatier/htmlcrunch"; 2 - 3 1 import * as TID from "@atcute/tid"; 4 2 5 3 import { loadURI } from "../loader.js"; ··· 39 37 40 38 return facet; 41 39 } 42 - 43 - // /** 44 - // * @param {string} html 45 - // */ 46 - // export async function inlineModuleScripts(html) { 47 - // const docPromises = fragments.parseOrThrow(html).map(async (frag) => { 48 - // if ("tagName" in frag && frag.tagName === "script") { 49 - // const isModScript = frag.attributes.find((a) => 50 - // a[0] === "type" 51 - // )?.[1] === "module"; 52 - // if (!isModScript) return frag; 53 - // 54 - // const src = frag.attributes.find((a) => a[0] === "src")?.[1]; 55 - // if (!src) return frag; 56 - // 57 - // const scriptContents = await fetch(src).then((r) => r.text()).catch(() => 58 - // null 59 - // ); 60 - // 61 - // if (!scriptContents) return frag; 62 - // 63 - // /** 64 - // * @type {import("@fcrozatier/htmlcrunch").MTextNode} 65 - // */ 66 - // const child = { 67 - // kind: "TEXT", 68 - // text: "\n" + scriptContents.split("\n").map((l) => 69 - // ` ${l}` 70 - // ).join("\n") + "\n", 71 - // }; 72 - // 73 - // return { 74 - // ...frag, 75 - // attributes: frag.attributes.filter((a) => a[0] !== "src"), 76 - // children: [child], 77 - // }; 78 - // } 79 - // 80 - // return frag; 81 - // }); 82 - // 83 - // const doc = await Promise.all(docPromises); 84 - // return serializeFragments(doc); 85 - // }
+1 -1
src/common/pages/build.js
··· 39 39 </style> 40 40 41 41 <script type="module"> 42 - import foundation from "~/common/facets/foundation.js"; 42 + import foundation from "~/common/foundation.js"; 43 43 </script> 44 44 `.trim(), 45 45 extensions: [
+1 -1
src/common/pages/guide.js
··· 14 14 Loading dependencies 15 15 </span>`; 16 16 17 - const { default: foundation } = await import("~/common/facets/foundation.js"); 17 + const { default: foundation } = await import("~/common/foundation.js"); 18 18 const Output = await import("~/common/output.js"); 19 19 20 20 const output = await foundation.orchestrator.output();
+1 -1
src/common/pages/output.js
··· 1 1 import { effect } from "~/common/signal.js"; 2 2 import { insertPreludes } from "~/common/facets/prelude.js"; 3 - import foundation from "~/common/facets/foundation.js"; 3 + import foundation from "~/common/foundation.js"; 4 4 5 5 const elements = document.createElement("div"); 6 6 elements.id = "elements-container";
-34
src/common/themes/utils.js
··· 1 - import * as TID from "@atcute/tid"; 2 - 3 - import { loadURI } from "../loader.js"; 4 - import * as CID from "../cid.js"; 5 - 6 - /** 7 - * @import {Theme} from "~/definitions/types.d.ts" 8 - */ 9 - 10 - /** 11 - * @param {{ name: string; uri: string }} _args 12 - * @param {{ fetchHTML: boolean }} options 13 - */ 14 - export async function themeFromURI({ name, uri }, { fetchHTML }) { 15 - const html = fetchHTML ? await loadURI(uri) : undefined; 16 - const cid = html 17 - ? await CID.create(0x55, new TextEncoder().encode(html)) 18 - : undefined; 19 - const timestamp = new Date().toISOString(); 20 - 21 - /** @type {Theme} */ 22 - const theme = { 23 - $type: "sh.diffuse.output.theme", 24 - createdAt: timestamp, 25 - id: TID.now(), 26 - cid, 27 - html, 28 - name, 29 - updatedAt: timestamp, 30 - uri, 31 - }; 32 - 33 - return theme; 34 - }
+1 -1
src/facets/data/export-import/index.inline.js
··· 1 1 import * as Output from "~/common/output.js"; 2 - import foundation from "~/common/facets/foundation.js"; 2 + import foundation from "~/common/foundation.js"; 3 3 import { effect } from "~/common/signal.js"; 4 4 5 5 // Setup
+1 -1
src/facets/data/output-bundle/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import { effect } from "~/common/signal.js"; 3 3 4 4 import { NAME as ATPROTO_OUTPUT_NAME } from "~/components/output/raw/atproto/element.js";
+1 -1
src/facets/data/process-tracks/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 3 3 foundation.orchestrator.processTracks({ 4 4 disableWhenReady: false,
+1 -1
src/facets/data/v3-import/index.inline.js
··· 1 1 import * as TID from "@atcute/tid"; 2 - import foundation from "~/common/facets/foundation.js"; 2 + import foundation from "~/common/foundation.js"; 3 3 4 4 /** 5 5 * @import {PlaylistItem, Track} from "~/definitions/types.d.ts"
+1 -1
src/facets/examples/generate-playlist/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 3 3 const output = await foundation.orchestrator.output(); 4 4 const queue = await foundation.engine.queue();
+1 -1
src/facets/examples/now-playing/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import { effect } from "~/common/signal.js"; 3 3 4 4 const output = await foundation.orchestrator.output();
+1 -1
src/facets/misc/scrobble/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import { effect } from "~/common/signal.js"; 3 3 4 4 effect(() => {
+1 -1
src/facets/misc/scrobble/last.fm/index.inline.js
··· 6 6 7 7 import "~/common/webawesome/detect-dark.js"; 8 8 9 - import foundation from "~/common/facets/foundation.js"; 9 + import foundation from "~/common/foundation.js"; 10 10 import { effect } from "~/common/signal.js"; 11 11 12 12 /**
+1 -1
src/facets/misc/split-view/index.inline.js
··· 9 9 import "@awesome.me/webawesome/dist/components/option/option.js"; 10 10 11 11 import "~/common/webawesome/detect-dark.js"; 12 - import foundation from "~/common/facets/foundation.js"; 12 + import foundation from "~/common/foundation.js"; 13 13 import * as Output from "~/common/output.js"; 14 14 15 15 /**
+1 -1
src/facets/playback/auto-queue/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import { effect } from "~/common/signal.js"; 3 3 import * as Playlist from "~/common/playlist.js"; 4 4
+1 -1
src/facets/playback/auto-queue/prelude/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import { effect } from "~/common/signal.js"; 3 3 4 4 effect(() => {
+1 -1
src/l/index.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import * as CID from "~/common/cid.js"; 3 3 import * as Output from "~/common/output.js"; 4 4 import { createLoader, renderError } from "~/common/loader.js";
+1 -1
src/themes/blur/artwork-controller/facet/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import ArtworkController from "~/themes/blur/artwork-controller/element.js"; 3 3 4 4 // Setup the prerequisite elements
+1 -1
src/themes/webamp/browser/facet/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import BrowserElement from "~/themes/webamp/browser/element.js"; 3 3 4 4 const [out, que, scp, trc] = await Promise.all([
+1 -1
src/themes/webamp/configurators/input/facet/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import InputConfigElement from "~/themes/webamp/configurators/input/element.js"; 3 3 4 4 const [inp, out, pro, sou] = await Promise.all([
+1 -1
src/themes/webamp/configurators/output/facet/index.inline.js
··· 1 - import foundation from "~/common/facets/foundation.js"; 1 + import foundation from "~/common/foundation.js"; 2 2 import OutputConfigElement from "~/themes/webamp/configurators/output/element.js"; 3 3 4 4 const out = await foundation.orchestrator.output();