diff --git a/README.md b/README.md index c121e36..06c1654 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ This experimental app uses the radio-browser.info api and offers radio stations ## 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 +docker build -t nextcloud-testing https://git.project-insanity.org/onny/docker-nextcloud.git +docker run -v /tmp/nextcloud-app-radio:/opt/nextcloud/apps/radio -d --name nextcloud -p 80:80 nextcloud-testing ``` First part of -v is the path to the cloned or downloaded nextcloud radio app. Debug running container it with: ``` diff --git a/appinfo/app.php b/appinfo/app.php index f2c3f61..572e8af 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -28,7 +28,7 @@ $g = \OC::$server->getURLGenerator(); OC::$server->getNavigationManager()->add( array( 'id' => 'radio', 'order' => 74, - 'href' => $g->linkTo( 'radio', 'index.php' ), + 'href' => $g->linkTo( 'apps', 'radio' ), 'icon' => $g->imagePath( 'radio', 'radio.png' ), 'name' => 'Radio' )); diff --git a/appinfo/routes.php b/appinfo/routes.php index d76bf6e..6d5c9b4 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -12,14 +12,14 @@ return [ ], 'routes' => [ ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], - ['name' => 'page#favorites', 'url' => '/', 'verb' => 'GET'], - ['name' => 'page#recent', 'url' => '/', 'verb' => 'GET'], - ['name' => 'page#categories', 'url' => '/', 'verb' => 'GET'], - ['name' => 'page#top', 'url' => '/', 'verb' => 'GET'], - ['name' => 'settings#getMenuState', 'url' => '/getMenuState', 'verb' => 'GET'], - ['name' => 'settings#getVolumeState', 'url' => '/getVolumeState', 'verb' => 'GET'], - ['name' => 'settings#saveMenuState', 'url' => '/saveMenuState', 'verb' => 'POST'], - ['name' => 'settings#saveVolumeState', 'url' => '/saveVolumeState', 'verb' => 'POST'], + ['name' => 'page#favorites', 'url' => '/', 'verb' => 'GET'], + ['name' => 'page#recent', 'url' => '/', 'verb' => 'GET'], + ['name' => 'page#categories', 'url' => '/', 'verb' => 'GET'], + ['name' => 'page#top', 'url' => '/', 'verb' => 'GET'], + ['name' => 'settings#getMenuState', 'url' => '/getMenuState', 'verb' => 'GET'], + ['name' => 'settings#getVolumeState', 'url' => '/getVolumeState', 'verb' => 'GET'], + ['name' => 'settings#saveMenuState', 'url' => '/saveMenuState', 'verb' => 'POST'], + ['name' => 'settings#saveVolumeState', 'url' => '/saveVolumeState', 'verb' => 'POST'], ['name' => 'station_api#preflighted_cors', 'url' => '/api/0.1/{path}', 'verb' => 'OPTIONS', 'requirements' => ['path' => '.+']] ] diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..d205ce2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,18 @@ +{ + "name": "nextcloud-app-radio", + "version": "0.7.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "howler": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/howler/-/howler-2.2.0.tgz", + "integrity": "sha512-sGPkrAQy7jh5mNDbkRNG0F82R2HFDYNsQXBcX4smXQT0y0F4UMsa/+jXaGwWvcrajWr2tDB7JUkH7G5qSnuIyQ==" + }, + "jquery": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz", + "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..e2b51fd --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "nextcloud-app-radio", + "version": "0.7.0", + "description": "Radio app for Nextcloud", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://git.project-insanity.org/onny/nextcloud-app-radio.git" + }, + "author": "Jonas Heinrich", + "license": "MIT", + "dependencies": { + "howler": "^2.2.0", + "jquery": "^3.5.1" + } +}