feat: add a built-in browser test client
- serve a single-page client at /ui (and redirect / to it) - login, folder switch, album grid, album songs, search and streaming - enabled by default, disable with WEB_UI=false - document the test client and WEB_UI
This commit is contained in:
1 parent
1571ec65ff
commit
26d31834a5
5 files changed
+334
-1
No files matched your search
@@ -16,6 +16,7 @@ class AppConfigTest {
|
||||
assertEquals(Path.of("./config/library.yaml"), config.libraryConfigPath)
|
||||
assertEquals(Path.of("./config/users.yaml"), config.usersFile)
|
||||
assertEquals("ffmpeg", config.ffmpegPath)
|
||||
assertEquals(true, config.webUiEnabled)
|
||||
assertEquals(Path.of("./data/musicmanager.db"), config.databasePath)
|
||||
}
|
||||
|
||||
@@ -28,6 +29,7 @@ class AppConfigTest {
|
||||
"LIBRARY_CONFIG" to "/etc/musicmanager/library.yaml",
|
||||
"USERS_FILE" to "/run/secrets/users.yaml",
|
||||
"FFMPEG_PATH" to "/usr/bin/ffmpeg",
|
||||
"WEB_UI" to "false",
|
||||
),
|
||||
)
|
||||
|
||||
@@ -36,6 +38,7 @@ class AppConfigTest {
|
||||
assertEquals(Path.of("/etc/musicmanager/library.yaml"), config.libraryConfigPath)
|
||||
assertEquals(Path.of("/run/secrets/users.yaml"), config.usersFile)
|
||||
assertEquals("/usr/bin/ffmpeg", config.ffmpegPath)
|
||||
assertEquals(false, config.webUiEnabled)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user