diff --git a/.dockerignore b/.dockerignore index 5fa8b99..20248c6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,8 +1,13 @@ -*.iml -.idea -/.php-cs-fixer.cache -/.php_cs.cache -/build/ +/.idea/ +/*.iml + /vendor/ -js/ -node_modules/ +/vendor-bin/*/vendor/ + +/.php-cs-fixer.cache +/tests/.phpunit.cache + +/node_modules/ +/js/ + +/build/ diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index a4e6f3b..0000000 --- a/.eslintignore +++ /dev/null @@ -1,9 +0,0 @@ -*.iml -.idea -/.php-cs-fixer.cache -/.php_cs.cache -/build/ -/vendor/ -js/ -node_modules/ -l10n/ diff --git a/.l10nignore b/.l10nignore index 2ca12bf..dc590f0 100644 --- a/.l10nignore +++ b/.l10nignore @@ -1,8 +1,13 @@ +.idea/ *.iml -.idea -/.php-cs-fixer.cache -/.php_cs.cache -build/ + vendor/ -js/ +vendor-bin/*/vendor/ + +.php-cs-fixer.cache +tests/.phpunit.cache + node_modules/ +js/ + +build/ diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index cd676f8..4b71520 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -23,11 +23,11 @@ class MyConfig extends Config $config = new MyConfig(); $config ->getFinder() - ->ignoreVCSIgnored(true) ->notPath('build') ->notPath('l10n') ->notPath('node_modules') ->notPath('src') ->notPath('vendor') ->in(__DIR__); + return $config; diff --git a/composer.json b/composer.json index c2f8d9f..33c9471 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,12 @@ { "name": "nextcloud/repod", "description": "🔊 Browse, manage and listen to podcasts", - "type": "project", "license": "AGPL-3.0-or-later", - "version": "2.3.0", - "require-dev": { - "nextcloud/ocp": "^29.0.1", - "roave/security-advisories": "dev-latest", - "nextcloud/coding-standard": "^1.2.1", - "vimeo/psalm": "^5.24.0" + "autoload": { + "psr-4": { + "OCA\\RePod\\": "lib/", + "OCA\\GPodderSync\\": "stubs/OCA/GPodderSync/" + } }, "scripts": { "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l", @@ -16,11 +14,11 @@ "cs:fix": "php-cs-fixer fix", "psalm": "psalm --threads=1 --no-cache --show-info=true" }, - "autoload": { - "psr-4": { - "OCA\\RePod\\": "lib/", - "OCA\\GPodderSync\\": "stubs/OCA/GPodderSync/" - } + "require-dev": { + "nextcloud/ocp": "^29.0.1", + "roave/security-advisories": "dev-latest", + "nextcloud/coding-standard": "^1.2.1", + "vimeo/psalm": "^5.24.0" }, "config": { "optimize-autoloader": true, diff --git a/composer.lock b/composer.lock index e4ee5ee..ca828e7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6fbdd24b91ec2a3afe776062f3fbddb6", + "content-hash": "65775ebb89b46239e28c1e32a3e02324", "packages": [], "packages-dev": [ { @@ -1304,12 +1304,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "a73032ab55e80a4fef2732a9a8a3396c345f953b" + "reference": "e567d8d7d81fe18d93e87f64427a49caf3d5511f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/a73032ab55e80a4fef2732a9a8a3396c345f953b", - "reference": "a73032ab55e80a4fef2732a9a8a3396c345f953b", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/e567d8d7d81fe18d93e87f64427a49caf3d5511f", + "reference": "e567d8d7d81fe18d93e87f64427a49caf3d5511f", "shasum": "" }, "conflict": { @@ -1317,6 +1317,7 @@ "admidio/admidio": "<4.2.13", "adodb/adodb-php": "<=5.20.20|>=5.21,<=5.21.3", "aheinze/cockpit": "<2.2", + "aimeos/aimeos-core": ">=2022.04.1,<2022.10.17|>=2023.04.1,<2023.10.17|>=2024.04.1,<2024.04.7", "aimeos/aimeos-typo3": "<19.10.12|>=20,<20.10.5", "airesvsg/acf-to-rest-api": "<=3.1", "akaunting/akaunting": "<2.1.13", @@ -2095,7 +2096,7 @@ "type": "tidelift" } ], - "time": "2024-05-29T12:12:50+00:00" + "time": "2024-05-29T15:04:31+00:00" }, { "name": "sebastian/diff", diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index abab04e..c37e9f1 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -8,31 +8,22 @@ use OCA\RePod\AppInfo\Application; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\ContentSecurityPolicy; use OCP\AppFramework\Http\TemplateResponse; -use OCP\IConfig; -use OCP\IRequest; use OCP\Util; class PageController extends Controller { - public function __construct( - IRequest $request, - private IConfig $config - ) { - parent::__construct(Application::APP_ID, $request); - } - /** * @NoAdminRequired * @NoCSRFRequired */ public function index(): TemplateResponse { - Util::addScript(Application::APP_ID, 'repod-main'); + Util::addScript(Application::APP_ID, 'main'); $csp = new ContentSecurityPolicy(); $csp->addAllowedImageDomain('*'); $csp->addAllowedMediaDomain('*'); - $response = new TemplateResponse(Application::APP_ID, 'main'); + $response = new TemplateResponse(Application::APP_ID, 'index'); $response->setContentSecurityPolicy($csp); return $response; diff --git a/package-lock.json b/package-lock.json index 2183e25..0ec461c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,10 @@ { "name": "repod", - "version": "2.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "repod", - "version": "2.3.0", "license": "AGPL-3.0-or-later", "dependencies": { "@nextcloud/axios": "^2.5.0", diff --git a/package.json b/package.json index 4fc8763..8cafb83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "repod", - "version": "2.3.0", "license": "AGPL-3.0-or-later", "scripts": { "build": "NODE_ENV=production webpack --config webpack.js --progress", diff --git a/templates/index.php b/templates/index.php new file mode 100644 index 0000000..33cfaeb --- /dev/null +++ b/templates/index.php @@ -0,0 +1 @@ +
diff --git a/templates/main.php b/templates/main.php deleted file mode 100644 index e53e4d4..0000000 --- a/templates/main.php +++ /dev/null @@ -1,10 +0,0 @@ - -