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.

feat: favourite definition

+49 -3
+1
deno.jsonc
··· 138 138 139 139 // .ts 140 140 "./definitions/types/sh/diffuse/output/constituent.ts": "./src/definitions/types/sh/diffuse/output/constituent.ts", 141 + "./definitions/types/sh/diffuse/output/favourite.ts": "./src/definitions/types/sh/diffuse/output/favourite.ts", 141 142 "./definitions/types/sh/diffuse/output/track.ts": "./src/definitions/types/sh/diffuse/output/track.ts", 142 143 }, 143 144 "tasks": {
+1
src/definitions/index.ts
··· 1 1 export * as ShDiffuseOutputConstituent from "./types/sh/diffuse/output/constituent.js"; 2 + export * as ShDiffuseOutputFavourite from "./types/sh/diffuse/output/favourite.js"; 2 3 export * as ShDiffuseOutputTrack from "./types/sh/diffuse/output/track.js";
+38
src/definitions/output/favourite.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.diffuse.output.favourite", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "record": { 8 + "type": "object", 9 + "required": ["criteria"], 10 + "properties": { 11 + "criteria": { 12 + "type": "array", 13 + "items": { "type": "ref", "ref": "#criterion" } 14 + } 15 + } 16 + } 17 + }, 18 + "criterion": { 19 + "type": "object", 20 + "required": ["field", "value"], 21 + "properties": { 22 + "field": { "type": "string" }, 23 + "transformations": { 24 + "type": "array", 25 + "items": { "type": "ref", "ref": "#transformation" } 26 + }, 27 + "value": { 28 + "type": "unknown", 29 + "description": "Value that should be matched belonging to the given field" 30 + } 31 + } 32 + }, 33 + "transformation": { 34 + "type": "string", 35 + "description": "Transformation to apply to the field value before comparison" 36 + } 37 + } 38 + }
+6
src/definitions/types.d.ts
··· 3 3 } from "./types/sh/diffuse/output/constituent.ts"; 4 4 5 5 export type { 6 + Criterion, 7 + Main as Favourite, 8 + Transformation, 9 + } from "./types/sh/diffuse/output/favourite.ts"; 10 + 11 + export type { 6 12 Main as Track, 7 13 Stats as TrackStats, 8 14 Tags as TrackTags,
+3 -3
src/index.vto
··· 180 180 url: "definitions/output/constituent.json" 181 181 - title: "Output / Favourite" 182 182 desc: > 183 - Indicate a user's favourite audio. Not a property of a track because tracks are associated with a specific source. Favourites may match with multiple tracks. Specified using the audio's title and artist. 184 - todo: true 183 + Indicate a user's favourite audio. Not a property of a track because tracks are associated with a specific source. Favourites may match with multiple tracks. Specified with criteria that will be used to match the tracks. 184 + url: "definitions/output/favourite.json" 185 185 - title: "Output / Playlist" 186 186 desc: > 187 - Just like favourites, does not refer to specific tracks. Unlike favourites, must also specify the album. Can also be considered a collection which is basically an unordered playlist. 187 + Just like favourites, does not refer to specific tracks. Can also be considered a collection which is basically an unordered playlist. 188 188 todo: true 189 189 - title: "Output / Progress" 190 190 desc: >