+It is also aimed at consumers, providing themes and facets, preconfigured component compositions; while simultaneously trying to be [malleable software](https://www.inkandswitch.com/essay/malleable-software/).
+More information on the [website](https://elements.diffuse.sh/latest/).
-### Integrations
+## Developer usage
-Music layer for music storage.
-User layer for user-data storage.
+You can either consume the Diffuse library via the [deployed instance](https://elements.diffuse.sh/latest/) (the listed elements link to Javascript files) or the [Javascript package](https://jsr.io/@toko/diffuse).
-#### Music layer
+From there you can use the custom elements as with any other custom DOM element, by writing HTML or creating a `Class` instance.
-- [Amazon S3](https://aws.amazon.com/s3/)
-- [Azure Blob Storage](https://azure.microsoft.com/en-us/services/storage/blobs/)
-- [Azure File Storage](https://azure.microsoft.com/en-us/services/storage/files/)
-- [Dropbox](https://dropbox.com/)
-- [IPFS](https://ipfs.io/)
-- [WebDAV](https://en.wikipedia.org/wiki/WebDAV)
-
-#### User layer
-
-- [Dropbox](https://www.dropbox.com/)
-- [IPFS](https://ipfs.io/) (using MFS)
-- [RemoteStorage](https://remotestorage.io/)
-
-
-
----
-
-
-
-### Hosting on your own server
-
-Diffuse is a static web application, which means it's just HTML, CSS, and Javascript. No REST API, database, or anything backend-related involved. The app uses a hash (aka. fragment-based) routing system, so you don't need any special server rules for routing. You can download a pre-build web-only version of Diffuse on the [releases](https://github.com/icidasset/diffuse/releases) page. Diffuse uses service workers, so you may need HTTPS for it to work smoothly in certain browsers.
-
-I should also note that some source services use OAuth, so you'll need to use your own application credentials (eg. Dropbox). That said, if you're working locally, you can use `http://localhost:8000` or `http://127.0.0.1:44999` to use the default ones, that's what the old Electron app was using.
-
-In short:
-- Diffuse is a static, serverless web application
-- Routing is done using hashes/fragments (eg. `diffuse.sh/#/sources`)
-- Download a web build on the [releases](https://github.com/icidasset/diffuse/releases) page
-- Uses service workers (use HTTPS if possible)
-- May need own OAuth application credentials for some source services
+```html
+
+- ${text} -
- ` - - document.body.appendChild(note) - - // Remove loader - const elm = document.querySelector("#elm") - elm?.parentNode?.removeChild(elm) -} diff --git a/src/Javascript/UI/index.d.ts b/src/Javascript/UI/index.d.ts deleted file mode 100644 index 6e505a797..000000000 --- a/src/Javascript/UI/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { ElmPorts } from "./elm/types" - -export { } - -declare global { - const BUILD_TIMESTAMP: string - - const Elm: { UI: ElmMain+ {{content}} +
+ + {{ await comp.list({ items }) }} +