mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
Squashed commit of the following:
commit 393c481a21fa97881be2b6859e9acaa8ab7abb7f
Author: Arne Schlüter <arne@schlueter.is>
Date: Wed Sep 5 12:04:56 2018 +0200
Consider user roles when building up the navigation
commit d631cba1174ecf42b682664bf57c41b88b7f5ed4
Author: Arne Schlüter <arne@schlueter.is>
Date: Wed Sep 5 11:52:05 2018 +0200
Save user roles on login
commit e68ced335ccc11a2daebbf12bb4061a53935c268
Author: Arne Schlüter <arne@schlueter.is>
Date: Wed Sep 5 10:25:19 2018 +0200
Rename dispatch to muted-dispatch for easier disambiguation
88 lines
3.3 KiB
Clojure
88 lines
3.3 KiB
Clojure
(ns airsonic-ui.fixtures)
|
|
|
|
(def credentials {:u "username"
|
|
:p "cleartext-password"
|
|
:server "https://demo.airsonic.io"})
|
|
|
|
(def responses {:error {:subsonic-response
|
|
{:error {:code 50
|
|
:message "Incompatible Airsonic REST protocol version. Server must upgrade."}
|
|
:status "failed"
|
|
:version "1.15.0"}}
|
|
:ok {:subsonic-response
|
|
{:scanStatus {:count 10326
|
|
:scanning false}
|
|
:status "ok"
|
|
:version "1.15.0"}}
|
|
:ping-success {:subsonic-response {:status "ok"
|
|
:version "1.15.0"}}
|
|
:auth-success {:subsonic-response
|
|
{:status "ok",
|
|
:version "1.15.0",
|
|
:user
|
|
{:videoConversionRole false,
|
|
:playlistRole true,
|
|
:shareRole true,
|
|
:podcastRole true,
|
|
:email "admin@example.com",
|
|
:streamRole true,
|
|
:folder [0],
|
|
:username "admin",
|
|
:scrobblingEnabled false,
|
|
:adminRole true,
|
|
:settingsRole true,
|
|
:commentRole true,
|
|
:jukeboxRole true,
|
|
:coverArtRole true,
|
|
:downloadRole true,
|
|
:maxBitRate 320,
|
|
:uploadRole true}}}
|
|
:auth-failure {:subsonic-response {:status "failed"
|
|
:version "1.15.0"
|
|
:error {:code 40
|
|
:message "Wrong username or password."}}}})
|
|
|
|
(def artist
|
|
{:id "499", :name "Tomemitsu", :coverArt "ar-497", :albumCount 1})
|
|
|
|
(def album
|
|
{:artistId "258",
|
|
:name "Tocotronic",
|
|
:songCount 26,
|
|
:created "2017-12-31T08:18:45.000Z",
|
|
:duration 7383,
|
|
:artist "Tocotronic",
|
|
:year 2015,
|
|
:id "439",
|
|
:coverArt "al-439"})
|
|
|
|
(def song
|
|
{:artistId 42,
|
|
:path "DJ Koze/DJ Koze - Reincarnations Part 2, The Remix Chapter 2009-2014/14. Apparat - Black Water (DJ Koze Remix).mp3",
|
|
:suffix "mp3",
|
|
:isDir false,
|
|
:bitRate 320,
|
|
:parent 3556,
|
|
:albumId 382,
|
|
:type "music",
|
|
:created "2017-06-28T19:07:02.000Z",
|
|
:duration 317,
|
|
:artist "Apparat",
|
|
:isVideo false,
|
|
:size 12850290,
|
|
:title "Black Water (DJ Koze Remix)",
|
|
:playCount 0
|
|
:year 2014,
|
|
:id 3562,
|
|
:coverArt 3556,
|
|
:contentType "audio/mpeg",
|
|
:album "Reincarnations, Pt. 2 - The Remix Chapter 2009 - 2014",
|
|
:track 14})
|
|
|
|
(def playback-status
|
|
{:ended? false
|
|
:loop? false
|
|
:muted? false
|
|
:paused? false
|
|
:current-src "https://londe.arnes.space/rest/stream?f=json&c=airsonic-ui-cljs&v=1.15.0&id=9574&u=arne&p=27h-%25bO%5B8-.ys%40SQ%7Bg%24-%5B5NZkX%7Dw%24NNwY%263DPATi%2CgaFoH%40e"
|
|
:current-time 3.477029})
|