feat: optimized for small screens (only)

This commit is contained in:
Deluan
2020-02-07 12:36:26 -05:00
parent 81e1a7088f
commit 2ca98d8e81
7 changed files with 165 additions and 116 deletions
+13
View File
@@ -0,0 +1,13 @@
const subsonicUrl = (command, id, options) => {
const username = localStorage.getItem('username')
const token = localStorage.getItem('subsonic-token')
const salt = localStorage.getItem('subsonic-salt')
const timeStamp = new Date().getTime()
const url = `rest/${command}?u=${username}&f=json&v=1.8.0&c=NavidromeUI&t=${token}&s=${salt}&id=${id}&_=${timeStamp}`
if (options) {
return url + '&' + options
}
return url
}
export { subsonicUrl }