added docker instructions for testing
This commit is contained in:
parent
932b9a910c
commit
32df5df762
15
README.md
15
README.md
@ -1,3 +1,18 @@
|
||||
# Nextcloud Radio app
|
||||
This experimental app uses the radio-browser.info api and offers radio stations right in your Nextcloud!
|
||||
|
||||
[![](https://onny.project-insanity.org/files/nextcloud-app-radio-screenshot.png)](https://onny.project-insanity.org/files/nextcloud-app-radio-screenshot.png)
|
||||
|
||||
## Maintainers
|
||||
* [Jonas Heinrich](https://github.com/onny)
|
||||
|
||||
## Testing
|
||||
Can be easily tested using Docker:
|
||||
```
|
||||
docker run -v /tmp/nextcloud-app-radio:/opt/nextcloud/apps/radio -d --name nextcloud -p 80:80 rootlogin/nextcloud
|
||||
```
|
||||
First part of -v is the path to the cloned or downloaded nextcloud radio app. Debug it with:
|
||||
```
|
||||
docker run -i -t e326cbb922aa /bin/bash
|
||||
```
|
||||
Where -t specifies the container id.
|
||||
|
@ -31,3 +31,11 @@ tr:hover {
|
||||
background-color: edeff2;
|
||||
transition: all 0.1s ease;
|
||||
}
|
||||
|
||||
img.fav:hover {
|
||||
display:none;
|
||||
}
|
||||
|
||||
img.homepage:hover {
|
||||
display:none;
|
||||
}
|
||||
|
@ -10,10 +10,10 @@ $(window).on('load', function(){
|
||||
$("tbody > tr").remove();
|
||||
$.each(data, function(i, station) {
|
||||
$('tbody').append('<tr src='+station['url']+'>\
|
||||
<td width=60px align=center><img width=20px height=20px src='+OC.imagePath('radio','fav.png')+'></td>\
|
||||
<td width=60px align=center><img class=fav width=20px height=20px src='+OC.imagePath('radio','fav.png')+'></td>\
|
||||
<td width=60px align=center><img width=40px height=40px src='+station['favicon']+'></td>\
|
||||
<td>'+station['name']+'</td>\
|
||||
<td width=60px align=center><a href="'+station['homepage']+'" target="_blank"><img width=20px height=20px src='+OC.imagePath('radio','homepage.png')+'></a></td>\
|
||||
<td width=60px align=center><a href="'+station['homepage']+'" target="_blank"><img class=homepage width=20px height=20px src='+OC.imagePath('radio','homepage.png')+'></a></td>\
|
||||
</tr>');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user