Compare commits

...

223 Commits
3.0.0 ... main

Author SHA1 Message Date
86276dcfcc Merge pull request 'chore(deps): update dependency vue to ^3.5.13' (#201) from renovate/vue-3.x into main
All checks were successful
repod / xml (push) Successful in 18s
repod / php (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
Reviewed-on: #201
2024-11-17 22:36:29 +00:00
Renovate Bot
aa043623f6 chore(deps): update dependency vue to ^3.5.13
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-11-16 06:32:26 +00:00
4a82022cf0 Translated using Weblate (German)
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 1m13s
repod / nodejs (push) Successful in 1m19s
repod / release (push) Has been skipped
Currently translated at 66.6% (36 of 54 strings)

Co-authored-by: Michel Roux <xefir@crystalyx.net>
Translate-URL: https://translate.crystalyx.net/projects/repod/gitea/de/
Translation: RePod/Gitea
2024-11-15 21:02:49 +00:00
879bd15f1d merge conflict with weblate
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
2024-11-15 09:48:06 +01:00
592e6b6b68 docs: 📝 rework the features in readme
All checks were successful
repod / xml (push) Successful in 2m14s
repod / php (push) Successful in 1m24s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-11-15 09:36:28 +01:00
c332dcd986 docs: 📝 lower image size to reduce readme size
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m22s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-11-14 23:59:20 +01:00
28be29efae docs: 📝 lower image size to reduce readme size
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 23s
repod / php (push) Has been cancelled
2024-11-14 23:57:38 +01:00
9c4db19b59 chore: 🌐 update translations
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m23s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-11-14 23:24:43 +01:00
38e44b9731 fix: description is too large for title
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m16s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
2024-11-14 21:58:47 +01:00
26802b49a5 docs: 🌐 add note to participate on translations
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-11-14 21:09:35 +01:00
d7dfb25062 docs: 🌐 credit original translation author
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m10s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
2024-11-14 20:54:48 +01:00
99977b1db4 Translated using Weblate (German)
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 1m54s
repod / php (push) Successful in 1m21s
repod / nodejs (push) Has been cancelled
Currently translated at 100.0% (54 of 54 strings)

Co-authored-by: Michel Roux <xefir@crystalyx.net>
Translate-URL: https://translate.crystalyx.net/projects/repod/gitea/de/
Translation: RePod/Gitea
2024-11-14 19:50:39 +00:00
230b646ceb docs: ✏️ fix typo on changelog
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m9s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Successful in 1m26s
2024-11-12 22:16:08 +01:00
06acea519c docs: 📝 better wording
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-11-12 22:11:48 +01:00
f5c8689d50 docs: 📌 pin version 3.4.1
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 12s
repod / php (push) Has been cancelled
2024-11-12 22:10:38 +01:00
e99b2c972d perf: 🌐 add title for accessibility on skip on modal
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-11-12 22:02:18 +01:00
40ecea63d2 docs: 📝 chapter is supported now
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-11-12 21:44:52 +01:00
e43adc79a1 feat: chapters based on timecodes in description (fix #69)
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 22s
repod / php (push) Has been cancelled
2024-11-12 21:43:38 +01:00
eb6a4b2d9b fix: 🔒 lower security but fix #197
All checks were successful
repod / xml (push) Successful in 1m25s
repod / php (push) Successful in 1m10s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-11-12 20:10:19 +01:00
1d8ea08798 style: 🎨 add nextcloud/rector
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-11-12 10:11:21 +01:00
7e6536c7ee Merge pull request 'chore(deps): update dependency dompurify to ^3.2.0' (#198) from renovate/dompurify-3.x into main
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
Reviewed-on: #198
2024-11-12 08:12:50 +00:00
Renovate Bot
c1a6d29362 chore(deps): update dependency dompurify to ^3.2.0
All checks were successful
repod / xml (push) Successful in 37s
repod / php (push) Successful in 1m46s
repod / nodejs (push) Successful in 1m12s
repod / release (push) Has been skipped
2024-11-12 06:43:17 +00:00
13969d5c03 Merge pull request 'chore(deps): update dependency vite to ^5.4.11' (#196) from renovate/vite-5.x into main
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
Reviewed-on: #196
2024-11-11 13:32:12 +00:00
Renovate Bot
ebf8b501e5 chore(deps): update dependency vite to ^5.4.11
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-11-11 13:31:45 +00:00
e368baa0ee Actualiser renovate.json
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m22s
repod / release (push) Has been skipped
2024-11-11 12:53:36 +00:00
a90fcceb7b style: 💄 make a gap between player's control
All checks were successful
repod / xml (push) Successful in 32s
repod / php (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m32s
repod / release (push) Has been skipped
2024-11-10 22:53:50 +01:00
6c0976bc16 refactor: 👷 variabilize release dep
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m14s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-11-10 19:25:05 +01:00
c439f8585e style: 📝 no need for huge comment block on makefile
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m21s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-11-10 17:57:55 +01:00
d4e936b077 Merge pull request 'chore(deps): update dependency @vue/tsconfig to ^0.6.0' (#195) from renovate/vue-tsconfig-0.x into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m18s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
Reviewed-on: #195
2024-11-10 16:42:30 +00:00
Renovate Bot
ea8514016f chore(deps): update dependency @vue/tsconfig to ^0.6.0
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m13s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
2024-11-10 16:18:47 +00:00
c8fa87d03d style: 🎨 remove rule on php cs
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m7s
repod / release (push) Has been skipped
2024-11-10 16:01:21 +01:00
b7e114f131 fix: 🔨 make dev stage app independant
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-11-10 15:49:35 +01:00
a3879021e4 perf: remove vue-eslint-parser
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m5s
repod / release (push) Has been skipped
2024-11-10 15:40:25 +01:00
07fd241b2a perf: remove ts-node
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Has been cancelled
2024-11-10 15:38:02 +01:00
52bedda53d docs: 📝 add legend to links
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-11-10 14:47:54 +01:00
f98cc71d60 docs: 📝 update comparaison table
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m3s
repod / release (push) Has been skipped
2024-11-10 14:43:04 +01:00
25af5bdf54 feat: 🧑‍💻 add rector
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-11-10 13:18:53 +01:00
66cb15ee32 docs: 📝 update changelog
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m26s
repod / release (push) Successful in 1m38s
2024-11-09 22:21:44 +01:00
7480c56490 chore: 🔖 update version 2024-11-09 22:21:29 +01:00
e9166ff307 feat: Sleep timer (fix #119)
All checks were successful
repod / xml (push) Successful in 1m25s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-11-09 19:42:17 +01:00
8cb58fe388 feat: Skip back or forward (fix #159)
All checks were successful
repod / xml (push) Successful in 18s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
2024-11-09 00:28:19 +01:00
a9be73b88d fix: 🌐 add french mute texts
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m12s
repod / release (push) Has been skipped
2024-11-08 23:58:02 +01:00
0c26182721 fix: 💄 fix css padding on favorites
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 14s
repod / php (push) Successful in 38s
repod / nodejs (push) Has been cancelled
2024-11-08 23:56:37 +01:00
e439730a4d feat: Playback speed and volume setting doesn't stick (fix #185)
All checks were successful
repod / xml (push) Successful in 38s
repod / php (push) Successful in 1m16s
repod / nodejs (push) Successful in 1m38s
repod / release (push) Has been skipped
2024-11-08 23:49:43 +01:00
f0a2d199f9 refactor: 🔨 update tsconfig and package with latest app_template
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
2024-11-08 23:25:47 +01:00
8fe01c2222 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 1m35s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m34s
repod / release (push) Has been skipped
2024-11-08 23:09:39 +01:00
03baaa9875 perf: 👷 remove useless jobs in ci 2024-11-08 23:09:15 +01:00
d455385382 Merge pull request 'chore(deps): update dependency nextcloud/ocp to v30.0.2' (#194) from renovate/nextcloud-ocp-30.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 18s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
Reviewed-on: #194
2024-11-08 08:37:01 +00:00
Renovate Bot
08ce645960 chore(deps): update dependency nextcloud/ocp to v30.0.2
All checks were successful
repod / xml (push) Successful in 47s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m22s
repod / release (push) Has been skipped
2024-11-08 06:56:08 +00:00
a2e14d65f2 perf: remove devtools due to severall crashes
All checks were successful
repod / xml (push) Successful in 1m16s
repod / php (push) Successful in 48s
repod / nodejs (push) Successful in 1m30s
repod / release (push) Has been skipped
2024-11-06 23:32:09 +01:00
f247b83b90 Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.6.3' (#193) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 48s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
Reviewed-on: #193
2024-11-06 07:48:48 +00:00
Renovate Bot
c7f07e4562 chore(deps): update dependency vite-plugin-vue-devtools to v7.6.3
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-11-06 06:49:15 +00:00
e4f0ae8f83 Merge pull request 'chore(deps): update dependency pinia to v2.2.6' (#192) from renovate/pinia-2.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 47s
repod / nodejs (push) Successful in 1m28s
repod / release (push) Has been skipped
Reviewed-on: #192
2024-11-04 09:00:09 +00:00
0648f90768 Merge pull request 'chore(deps): update dependency @formatjs/intl-segmenter to v11.7.3' (#191) from renovate/formatjs-intl-segmenter-11.x-lockfile into main
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
Reviewed-on: #191
2024-11-04 08:59:56 +00:00
Renovate Bot
0514ce24ce chore(deps): update dependency pinia to v2.2.6
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
2024-11-04 06:55:52 +00:00
Renovate Bot
70bd8c191c chore(deps): update dependency @formatjs/intl-segmenter to v11.7.3
All checks were successful
repod / xml (push) Successful in 25s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 1m27s
repod / release (push) Has been skipped
2024-11-04 06:55:18 +00:00
c5b3434b31 Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.6.2' (#190) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 50s
repod / nodejs (push) Successful in 1m33s
repod / release (push) Has been skipped
Reviewed-on: #190
2024-11-01 15:52:35 +00:00
Renovate Bot
921b14b2d3 chore(deps): update dependency vite-plugin-vue-devtools to v7.6.2
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
2024-11-01 07:01:58 +00:00
f79a19116d Merge pull request 'chore(deps): update dependency vue-tsc to v2.1.10' (#188) from renovate/vue-tsc-2.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m28s
repod / release (push) Has been skipped
Reviewed-on: #188
2024-10-31 16:43:14 +00:00
34ad127a0b Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.6.1' (#187) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #187
2024-10-31 16:43:00 +00:00
697586e4de Merge pull request 'chore(deps): update dependency pinia to v2.2.5' (#186) from renovate/pinia-2.x-lockfile into main
Some checks are pending
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Waiting to run
Reviewed-on: #186
2024-10-31 16:42:06 +00:00
Renovate Bot
98011122b5 chore(deps): update dependency vite-plugin-vue-devtools to v7.6.1
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-10-31 06:46:59 +00:00
Renovate Bot
a4f2151ebe chore(deps): update dependency vue-tsc to v2.1.10
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 47s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-10-31 06:45:00 +00:00
Renovate Bot
6b44189f07 chore(deps): update dependency pinia to v2.2.5
All checks were successful
repod / xml (push) Successful in 51s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m23s
repod / release (push) Has been skipped
2024-10-30 06:38:28 +00:00
b606a239bc Merge pull request 'chore(deps): update dependency vue-tsc to v2.1.8' (#184) from renovate/vue-tsc-2.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 28s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m58s
repod / release (push) Has been skipped
Reviewed-on: #184
2024-10-27 10:12:15 +00:00
Renovate Bot
9823a1eadf chore(deps): update dependency vue-tsc to v2.1.8
All checks were successful
repod / xml (push) Successful in 1m32s
repod / php (push) Successful in 47s
repod / nodejs (push) Successful in 1m31s
repod / release (push) Has been skipped
2024-10-27 06:57:35 +00:00
d11f8d41c0 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 38s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
2024-10-25 16:56:14 +02:00
de52f111c5 fix: add title for mute and play button
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 38s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-10-25 16:51:26 +02:00
407c93ae49 Merge pull request 'chore(deps): update dependency @formatjs/intl-segmenter to v11.7.1' (#183) from renovate/formatjs-intl-segmenter-11.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 50s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
Reviewed-on: #183
2024-10-25 14:19:29 +00:00
17ef77ea6e fix: add title for accessibility
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
2024-10-25 16:18:16 +02:00
Renovate Bot
20a9a9f14d chore(deps): update dependency @formatjs/intl-segmenter to v11.7.1
All checks were successful
repod / xml (push) Successful in 8s
repod / php (push) Successful in 37s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-10-25 06:55:25 +00:00
676b1e0ea2 perf: ⬇️ downgrade to es6
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-10-25 08:44:44 +02:00
0edf8d2634 Revert "test: ⚗️ test if we can replace apt commands by actions"
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m30s
repod / release (push) Has been skipped
This reverts commit 56c9102284.
2024-10-24 23:57:01 +02:00
56c9102284 test: ⚗️ test if we can replace apt commands by actions
Some checks failed
repod / xml (push) Successful in 10s
repod / php (push) Failing after 4s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-10-24 23:54:05 +02:00
75aad7baab revert: revert new subscriptions loading model (fix #182)
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 36s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Successful in 1m18s
2024-10-24 23:42:22 +02:00
668c377c33 perf: move init loops to player store
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m21s
repod / release (push) Successful in 1m23s
2024-10-24 00:46:04 +02:00
3aa5a6020e style: 🎨 just a line
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 36s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-10-24 00:40:44 +02:00
5b0b1dcc81 perf: reduce time on conflict loop detection
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 36s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-10-24 00:36:59 +02:00
4f412c23c0 docs: 📝 fix date and version on changelog
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m26s
repod / release (push) Has been skipped
2024-10-24 00:25:53 +02:00
c34646b72c fix: 🐛 Prevent Firefox for going nuts when having Plasma Integration addon installed (fix #164)
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 14s
repod / php (push) Successful in 41s
repod / nodejs (push) Has been cancelled
2024-10-24 00:23:25 +02:00
43692a233c Merge pull request 'refine the subscription loading time (fix #178)' (#181) from metrics into main
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m32s
repod / release (push) Has been skipped
Reviewed-on: #181
2024-10-23 21:46:28 +00:00
6e289b02b4 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 40s
repod / nodejs (push) Successful in 1m12s
repod / release (push) Has been skipped
2024-10-23 22:49:00 +02:00
5a58b253d2 fix: 🚧 wip
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-10-23 22:38:56 +02:00
7b4c39499a refactor: 🚧 wip 2024-10-23 22:38:56 +02:00
427c6b2ee8 refactor: 🚧 rework metrics 2024-10-23 22:38:56 +02:00
cbe8750fd2 Merge pull request 'chore(deps): update dependency vite to v5.4.10' (#180) from renovate/vite-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
Reviewed-on: #180
2024-10-23 15:44:42 +00:00
Renovate Bot
bc6c22e3c5 chore(deps): update dependency vite to v5.4.10
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
2024-10-23 06:47:31 +00:00
785e6c7832 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 1m46s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 1m30s
repod / release (push) Has been skipped
2024-10-22 17:42:48 +02:00
b9f254f561 Merge pull request 'chore(deps): update dependency @formatjs/intl-segmenter to v11.6.0' (#179) from renovate/formatjs-intl-segmenter-11.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
Reviewed-on: #179
2024-10-22 07:25:35 +00:00
Renovate Bot
b182f7e752 chore(deps): update dependency @formatjs/intl-segmenter to v11.6.0
All checks were successful
repod / xml (push) Successful in 53s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m26s
repod / release (push) Has been skipped
2024-10-22 06:52:56 +00:00
ee48860a47 docs: 📝 fix date on changelog
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m34s
repod / release (push) Successful in 2m8s
2024-10-18 17:32:17 +02:00
64dcfe36fe docs: 📝 update changelog and update Cardo link
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Has been cancelled
2024-10-18 17:29:24 +02:00
1a65befeed chore: 🔖 update version
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-10-18 17:18:31 +02:00
082964d4e2 fix: 🐛 fix volume glitch
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 23s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Has been cancelled
2024-10-18 17:15:54 +02:00
3a503e1969 build: 👷 fix little things around ts building
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m28s
repod / release (push) Has been skipped
2024-10-18 15:48:39 +02:00
0024507ed5 refactor: 🚚 move routes to PHP anotations
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-10-18 15:19:45 +02:00
3232723602 fix: 🚑 crash on firefox 115 (fix #158)
All checks were successful
repod / xml (push) Successful in 28s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m43s
repod / release (push) Has been skipped
2024-10-18 14:41:47 +02:00
c3d6319402 Merge pull request 'chore(deps): update dependency nextcloud/ocp to v30.0.1' (#177) from renovate/nextcloud-ocp-30.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 20s
repod / php (push) Successful in 1m9s
repod / nodejs (push) Successful in 1m43s
repod / release (push) Has been skipped
Reviewed-on: #177
2024-10-18 08:55:36 +00:00
Renovate Bot
bf40156f68 chore(deps): update dependency nextcloud/ocp to v30.0.1
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m27s
repod / release (push) Has been skipped
2024-10-18 06:37:15 +00:00
2dd9578257 style: 💄 css not inline
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m23s
repod / release (push) Has been skipped
2024-10-17 16:29:49 +02:00
7cd45d3539 chore: ⬆️ upgrade deps
All checks were successful
repod / xml (push) Successful in 1m24s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m57s
repod / release (push) Has been skipped
2024-10-17 16:05:27 +02:00
8fd3eada75 Merge pull request 'chore(deps): update dependency vite to v5.4.9' (#174) from renovate/vite-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
Reviewed-on: #174
2024-10-16 19:40:33 +00:00
Renovate Bot
3ebfbf6df7 chore(deps): update dependency vite to v5.4.9
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-10-15 06:43:53 +00:00
133a8e8a09 Merge pull request 'chore(deps): update dependency vue to v3.5.12' (#173) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
Reviewed-on: #173
2024-10-13 04:41:28 +00:00
Renovate Bot
d00e72439e chore(deps): update dependency vue to v3.5.12
All checks were successful
repod / xml (push) Successful in 48s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 1m12s
repod / release (push) Has been skipped
2024-10-12 06:49:18 +00:00
4108ae57bc Merge pull request 'chore(deps): update dependency vue-material-design-icons to v5.3.1' (#172) from renovate/vue-material-design-icons-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
Reviewed-on: #172
2024-10-09 00:23:01 +00:00
Renovate Bot
92ad21d49b chore(deps): update dependency vue-material-design-icons to v5.3.1
All checks were successful
repod / xml (push) Successful in 31s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
2024-10-08 06:44:15 +00:00
761b3f1079 Merge pull request 'chore(deps): update dependency vue to v3.5.11' (#170) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
Reviewed-on: #170
2024-10-05 07:51:23 +00:00
fb586e7115 Merge pull request 'chore(deps): update dependency pinia to v2.2.4' (#169) from renovate/pinia-2.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #169
2024-10-05 07:51:01 +00:00
Renovate Bot
11e0e0e675 chore(deps): update dependency vue to v3.5.11
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
2024-10-04 06:33:21 +00:00
Renovate Bot
f2de304d60 chore(deps): update dependency pinia to v2.2.4
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-10-02 06:39:07 +00:00
cf298db3d7 Merge pull request 'chore(deps): update dependency pinia to v2.2.3' (#168) from renovate/pinia-2.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 20s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m7s
repod / release (push) Has been skipped
Reviewed-on: #168
2024-10-01 09:14:42 +00:00
Renovate Bot
749fc6e628 chore(deps): update dependency pinia to v2.2.3
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-10-01 06:29:15 +00:00
bfebf4996f Merge pull request 'chore(deps): update dependency vue to v3.5.10' (#167) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 50s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
Reviewed-on: #167
2024-09-28 13:12:24 +00:00
Renovate Bot
2a88b0d392 chore(deps): update dependency vue to v3.5.10
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-09-28 06:50:00 +00:00
b8035a21ee Merge pull request 'chore(deps): update dependency dompurify to v3.1.7' (#166) from renovate/dompurify-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 48s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped
Reviewed-on: #166
2024-09-28 01:47:49 +00:00
a51fefb321 Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.4.6' (#165) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #165
2024-09-28 01:47:33 +00:00
f1442c6c5f Merge pull request 'chore(deps): update dependency vue to v3.5.9' (#163) from renovate/vue-3.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #163
2024-09-28 01:47:13 +00:00
13515c3141 Merge pull request 'chore(deps): update dependency vite to v5.4.8' (#162) from renovate/vite-5.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #162
2024-09-28 01:46:48 +00:00
Renovate Bot
d53f9216c5 chore(deps): update dependency vue to v3.5.9
All checks were successful
repod / xml (push) Successful in 8s
repod / php (push) Successful in 40s
repod / nodejs (push) Successful in 1m1s
repod / release (push) Has been skipped
2024-09-27 06:55:31 +00:00
Renovate Bot
f4093378a9 chore(deps): update dependency dompurify to v3.1.7
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m5s
repod / release (push) Has been skipped
2024-09-27 06:55:00 +00:00
Renovate Bot
6992ce6e50 chore(deps): update dependency vite to v5.4.8
All checks were successful
repod / xml (push) Successful in 33s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 1m42s
repod / release (push) Has been skipped
2024-09-25 06:54:32 +00:00
Renovate Bot
f6630f91d8 chore(deps): update dependency vite-plugin-vue-devtools to v7.4.6
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-09-24 07:00:54 +00:00
70184c79b0 Merge pull request 'chore(deps): update dependency nextcloud/coding-standard to v1.3.1' (#161) from renovate/nextcloud-coding-standard-1.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
Reviewed-on: #161
2024-09-20 08:20:23 +00:00
Renovate Bot
9e934e6ca6 chore(deps): update dependency nextcloud/coding-standard to v1.3.1
All checks were successful
repod / xml (push) Successful in 1m15s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-09-20 06:46:03 +00:00
0d017bbc68 Merge pull request 'chore(deps): update nextcloud docker tag to v30' (#160) from renovate/nextcloud-30.x into main
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped
Reviewed-on: #160
2024-09-19 06:36:04 +00:00
Renovate Bot
3b2981d201 chore(deps): update nextcloud docker tag to v30
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 1m19s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-09-19 06:34:06 +00:00
25949e98c9 chore: ⬆️ update locks
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-09-19 08:27:04 +02:00
b002e3bab8 Merge pull request 'chore(deps): update dependency vue to v3.5.6' (#157) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 8s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m3s
repod / release (push) Has been skipped
Reviewed-on: #157
2024-09-17 07:15:01 +00:00
d80044934f Merge pull request 'chore(deps): update dependency vite to v5.4.6' (#156) from renovate/vite-5.x-lockfile into main
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 11s
repod / php (push) Has been cancelled
Reviewed-on: #156
2024-09-17 07:14:28 +00:00
Renovate Bot
4d88f485fb chore(deps): update dependency vue to v3.5.6
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 40s
repod / nodejs (push) Successful in 1m7s
repod / release (push) Has been skipped
2024-09-17 06:34:47 +00:00
Renovate Bot
ae66036a82 chore(deps): update dependency vite to v5.4.6
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped
2024-09-17 06:34:35 +00:00
674f0193db fix: 👷 update makefile to ignore new ts files
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Successful in 1m15s
2024-09-15 15:47:18 +02:00
ccc903be97 docs: 📝 better wording (#137)
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 40s
repod / nodejs (push) Successful in 1m3s
repod / release (push) Has been skipped
2024-09-15 15:41:30 +02:00
10c7a1f907 docs: 📝 add other app listing (#137)
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
2024-09-15 15:36:25 +02:00
a6ab9c69d9 chore: 📝 update changelog
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-09-15 15:28:52 +02:00
285e9f7dfb chore: 🔖 update version
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 41s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-09-15 15:07:47 +02:00
60fc620b79 fix: 📝 update first impressions (fix #137)
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 20s
repod / php (push) Successful in 44s
repod / nodejs (push) Has been cancelled
2024-09-15 15:06:00 +02:00
5588bb93e3 fix: 💄 add margin to make favorites more spaced
All checks were successful
repod / xml (push) Successful in 1m45s
repod / php (push) Successful in 52s
repod / nodejs (push) Successful in 1m43s
repod / release (push) Has been skipped
2024-09-15 14:34:13 +02:00
b97d4487bb fix: 🧑‍💻 fix sourcemap crashing on watch by disabling sourcemap entierly 2024-09-15 14:33:37 +02:00
29c29cdfdd Merge pull request 'typescript #149' (#152) from typescript into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 38s
repod / nodejs (push) Successful in 1m0s
repod / release (push) Has been skipped
Reviewed-on: #152
2024-09-14 15:26:16 +00:00
d7c3b87d8d chore: ⬆️ update locks
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 35s
repod / nodejs (push) Successful in 57s
repod / release (push) Has been skipped
2024-09-14 17:14:49 +02:00
9fa48c2da3 fix: 📱 fix subscribe button to the right
Some checks failed
repod / xml (push) Successful in 7s
repod / php (push) Failing after 19s
repod / nodejs (push) Successful in 50s
repod / release (push) Has been skipped
2024-09-14 17:11:11 +02:00
3cea8d3505 fix: 🎨 improve small tips 2024-09-14 17:11:11 +02:00
23280d68b9 fix: 🐛 fix all small bugs 2024-09-14 17:11:11 +02:00
1e1bb03c23 chore: ⬆️ update locks 2024-09-14 17:11:11 +02:00
fc86f62d93 refactor: ♻️ typescript ok, need tests 2024-09-14 17:10:56 +02:00
83e3358e9b refactor: 🚧 still working on typescript conversion 2024-09-14 17:10:56 +02:00
38bc986bb3 refactor: 🚧 introducing typescript (not working now) 2024-09-14 17:10:46 +02:00
eae106e72b Merge pull request 'chore(deps): update dependency vue to v3.5.5' (#154) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 39s
repod / nodejs (push) Successful in 54s
repod / release (push) Has been skipped
Reviewed-on: #154
2024-09-14 09:12:54 +00:00
3c358a3c5c Merge pull request 'chore(deps): update dependency vite to v5.4.5' (#153) from renovate/vite-5.x-lockfile into main
Some checks are pending
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
Reviewed-on: #153
2024-09-14 09:12:48 +00:00
Renovate Bot
79ee855f9b chore(deps): update dependency vue to v3.5.5
All checks were successful
repod / xml (push) Successful in 7s
repod / php (push) Successful in 37s
repod / nodejs (push) Successful in 43s
repod / release (push) Has been skipped
2024-09-14 06:57:27 +00:00
Renovate Bot
5150cb6501 chore(deps): update dependency vite to v5.4.5
All checks were successful
repod / xml (push) Successful in 1m4s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 53s
repod / release (push) Has been skipped
2024-09-14 06:57:16 +00:00
1d85811ad3 Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.7' (#150) from renovate/nextcloud-ocp-29.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 8s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 55s
repod / release (push) Has been skipped
Reviewed-on: #150
2024-09-13 07:32:52 +00:00
872b0ced0a Merge pull request 'chore(deps): update dependency vue-router to v4.4.5' (#151) from renovate/vue-router-4.x-lockfile into main
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 15s
repod / php (push) Has been cancelled
Reviewed-on: #151
2024-09-13 07:32:30 +00:00
Renovate Bot
2a280c3493 chore(deps): update dependency vue-router to v4.4.5
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 46s
repod / nodejs (push) Successful in 51s
repod / release (push) Has been skipped
2024-09-13 06:56:37 +00:00
Renovate Bot
c9f922b31d chore(deps): update dependency nextcloud/ocp to v29.0.7
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 57s
repod / release (push) Has been skipped
2024-09-13 06:56:20 +00:00
c983ab8d3b fix: disable iife and build with inlineCSS enable
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-09-12 22:10:10 +02:00
4f0685ccbd Merge pull request 'chore(deps): update dependency vite to v5.4.4' (#147) from renovate/vite-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 1m29s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
Reviewed-on: #147
2024-09-12 13:40:56 +00:00
e165a070c8 Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.4.5' (#148) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
Reviewed-on: #148
2024-09-12 13:40:48 +00:00
Renovate Bot
622f5ec635 chore(deps): update dependency vite-plugin-vue-devtools to v7.4.5
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 47s
repod / nodejs (push) Successful in 54s
repod / release (push) Has been skipped
2024-09-12 06:51:56 +00:00
Renovate Bot
7d64e3370c chore(deps): update dependency vite to v5.4.4
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-09-12 06:51:39 +00:00
fcf99e5bbf chore: ⬆️ update locks
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 52s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
2024-09-11 09:12:59 +02:00
924106202a docs: 📝 Add Cardo to list of compatible clients 2024-09-11 09:09:07 +02:00
ce2412fb01 Merge pull request 'chore(deps): update dependency vue-router to v4.4.4' (#146) from renovate/vue-router-4.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m0s
repod / release (push) Has been skipped
Reviewed-on: #146
2024-09-11 07:06:40 +00:00
6c348d5583 Merge pull request 'chore(deps): update dependency vue to v3.5.4' (#145) from renovate/vue-3.x-lockfile into main
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
Reviewed-on: #145
2024-09-11 07:06:25 +00:00
Renovate Bot
7eef3ceaf0 chore(deps): update dependency vue-router to v4.4.4
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 56s
repod / release (push) Has been skipped
2024-09-11 06:36:34 +00:00
Renovate Bot
5321c0a3bf chore(deps): update dependency vue to v3.5.4
All checks were successful
repod / xml (push) Successful in 1m32s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m42s
repod / release (push) Has been skipped
2024-09-11 06:36:19 +00:00
fe40b7c9f7 Merge pull request 'chore(deps): update dependency vimeo/psalm to v5.26.1' (#144) from renovate/vimeo-psalm-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m3s
repod / release (push) Has been skipped
Reviewed-on: #144
2024-09-10 07:14:57 +00:00
Renovate Bot
11a1db72c6 chore(deps): update dependency vimeo/psalm to v5.26.1
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
2024-09-10 06:43:50 +00:00
7f00696140 Merge pull request 'chore(deps): update dependency vimeo/psalm to v5.26.0' (#143) from renovate/vimeo-psalm-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
Reviewed-on: #143
2024-09-09 08:52:40 +00:00
Renovate Bot
33dcbe9162 chore(deps): update dependency vimeo/psalm to v5.26.0
All checks were successful
repod / xml (push) Successful in 1m46s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m45s
repod / release (push) Has been skipped
2024-09-09 06:49:32 +00:00
5c6542e60c Merge pull request 'chore(deps): update dependency vue to v3.5.3' (#142) from renovate/vue-3.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
Reviewed-on: #142
2024-09-06 07:13:09 +00:00
Renovate Bot
ea6704c537 chore(deps): update dependency vue to v3.5.3
All checks were successful
repod / xml (push) Successful in 1m30s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m35s
repod / release (push) Has been skipped
2024-09-06 06:49:43 +00:00
df4ac80554 Merge pull request 'chore(deps): update dependency vite-plugin-vue-devtools to v7.4.4' (#140) from renovate/vite-plugin-vue-devtools-7.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
Reviewed-on: #140
2024-09-05 07:08:30 +00:00
2b2ab2af8f Merge pull request 'chore(deps): update dependency vue to v3.5.1' (#141) from renovate/vue-3.x-lockfile into main
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
Reviewed-on: #141
2024-09-05 07:08:19 +00:00
Renovate Bot
7b00eb22ff chore(deps): update dependency vue to v3.5.1
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m0s
repod / release (push) Has been skipped
2024-09-05 06:31:41 +00:00
Renovate Bot
ecee6ff2a8 chore(deps): update dependency vite-plugin-vue-devtools to v7.4.4
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-09-05 06:31:31 +00:00
57a22d9390 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-09-04 10:48:22 +02:00
42c35d3856 Merge pull request 'chore(deps): update dependency vite to v5.4.3' (#139) from renovate/vite-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 1m54s
repod / php (push) Successful in 1m38s
repod / nodejs (push) Successful in 1m50s
repod / release (push) Has been skipped
Reviewed-on: #139
2024-09-04 08:41:03 +00:00
4d199bc02b Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.6' (#138) from renovate/nextcloud-ocp-29.x-lockfile into main
Some checks failed
repod / php (push) Waiting to run
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Has been cancelled
Reviewed-on: #138
2024-09-04 08:40:23 +00:00
Renovate Bot
8a89cc06cd chore(deps): update dependency vite to v5.4.3
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 53s
repod / release (push) Has been skipped
2024-09-04 06:59:04 +00:00
Renovate Bot
03740231c5 chore(deps): update dependency nextcloud/ocp to v29.0.6
All checks were successful
repod / xml (push) Successful in 36s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m1s
repod / release (push) Has been skipped
2024-09-04 06:58:41 +00:00
b54ab2be91 style: 💩 leverage the available space between the episode title and the play button (but hacky way) fix #59
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
2024-09-03 16:12:11 +02:00
d1658a9408 chore: ⬆️ update locks
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-09-03 14:44:19 +02:00
1eb8b35501 refactor: 🎨 cleanup some old css class
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped
2024-09-02 15:54:21 +02:00
fb7780fead fix: 🐛 the #list slot breaks navigation on AppContent
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 54s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-09-02 15:35:10 +02:00
19c56ef31d fix: 🔨 move vite dev to main
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
2024-09-02 14:43:39 +02:00
2bad1852d7 refactor: 🩹 use same condition system on all App atoms
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 50s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped
2024-09-02 14:13:57 +02:00
0302489924 fix: 🏗️ add missing slots on atoms
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m1s
repod / release (push) Has been skipped
2024-09-02 14:06:43 +02:00
81cb6a0191 fix: 💄 fix missing icon on empty contents
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-09-02 12:37:55 +02:00
094b7812cd Merge pull request 'new homepage based on favorites (fixes #130 #59)' (#131) from favorites into main
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Successful in 1m37s
Reviewed-on: #131
2024-09-02 09:27:56 +00:00
491ad89242 docs: 📝 update changelog
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 54s
repod / release (push) Has been skipped
2024-09-02 11:27:18 +02:00
01e2dabb65 chore: 🔖 update version 2024-09-02 11:27:10 +02:00
a86ea6ab3f chore: 🌐 update langs
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 54s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped
2024-09-02 11:12:58 +02:00
7b7ceef503 perf: write getters for accessible filtered cookies values
All checks were successful
repod / xml (push) Successful in 1m36s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m34s
repod / release (push) Has been skipped
2024-09-02 10:51:48 +02:00
437c7868dd fix: 🐛 fix wrong state placement on action (fix #136) 2024-09-02 10:51:21 +02:00
7c151d8f58 style: 💄 tweak home for mobile
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped
2024-08-27 17:39:53 +02:00
b7025a7aa1 fix: 💄 fix padding and routing
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-08-27 16:41:58 +02:00
42035d6e18 refactor: 💥 big rewrite to extract episode to his own component
All checks were successful
repod / xml (push) Successful in 35s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-08-27 16:11:12 +02:00
5ed33d1cf6 refactor: 🚚 rework how routing works
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-08-27 09:42:52 +02:00
4e4730efd5 style: 💄 use NcGuestContent to separate favorites
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-08-26 17:17:14 +02:00
9005b519f3 refactor: 💄 refacto NcEmptyContent
All checks were successful
repod / xml (push) Successful in 26s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-08-26 16:36:13 +02:00
b0132287f0 style: 💄 improve style and detection of gpodder sync 2024-08-26 16:23:58 +02:00
062da25264 Merge branch 'main' into favorites
All checks were successful
repod / xml (push) Successful in 28s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m21s
repod / release (push) Has been skipped
2024-08-26 13:14:56 +00:00
fd0f8f9c7a Merge pull request 'chore(deps): update dependency eslint-plugin-pinia to ^0.4.0' (#135) from renovate/eslint-plugin-pinia-0.x into main
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m1s
repod / release (push) Has been skipped
Reviewed-on: #135
2024-08-26 06:55:16 +00:00
Renovate Bot
35610ee8da chore(deps): update dependency eslint-plugin-pinia to ^0.4.0
All checks were successful
repod / xml (push) Successful in 1m44s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m41s
repod / release (push) Has been skipped
2024-08-26 06:40:11 +00:00
60aedf3be5 fix: ⬆️ update lock and fix severall typos
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Has been skipped
2024-08-25 09:53:52 +00:00
4bafb3306b Merge branch 'main' into favorites 2024-08-25 09:42:58 +00:00
58af1f6d40 Merge pull request 'chore(deps): update dependency nextcloud/coding-standard to v1.2.3' (#134) from renovate/nextcloud-coding-standard-1.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
Reviewed-on: #134
2024-08-24 07:18:48 +00:00
Renovate Bot
4eb9236ecb chore(deps): update dependency nextcloud/coding-standard to v1.2.3
All checks were successful
repod / xml (push) Successful in 1m38s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m13s
repod / release (push) Has been skipped
2024-08-24 06:52:06 +00:00
eb1196c841 feat: 🚧 wip on showing favorites
Some checks failed
repod / xml (push) Successful in 31s
repod / php (push) Failing after 1m8s
repod / nodejs (push) Failing after 1m20s
repod / release (push) Has been skipped
2024-08-22 17:35:05 +02:00
dd275a1f03 feat: 🧑‍💻 add vue devtools in dev 2024-08-22 17:34:27 +02:00
f205d3243f refactor: ♻️ rewrite data to arrow function 2024-08-22 13:30:52 +02:00
46b30f1ebb feat: ⚗️ implement waiting on home
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
2024-08-21 13:11:09 +00:00
9be107edc9 chore: ⬆️ update lock
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m11s
repod / release (push) Has been skipped
2024-08-21 09:33:30 +00:00
4e6eee96bf Merge branch 'main' into favorites
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m12s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
2024-08-21 09:25:09 +00:00
ddef81f92f Merge pull request 'chore(deps): update dependency vite to v5.4.2' (#133) from renovate/vite-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
Reviewed-on: #133
2024-08-21 07:43:23 +00:00
456592adfc Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.5' (#132) from renovate/nextcloud-ocp-29.x-lockfile into main
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 13s
repod / php (push) Has been cancelled
Reviewed-on: #132
2024-08-21 07:42:40 +00:00
Renovate Bot
147311013c chore(deps): update dependency vite to v5.4.2
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m0s
repod / release (push) Has been skipped
2024-08-21 06:36:56 +00:00
Renovate Bot
99dc3582c4 chore(deps): update dependency nextcloud/ocp to v29.0.5
All checks were successful
repod / xml (push) Successful in 1m55s
repod / php (push) Successful in 1m16s
repod / nodejs (push) Successful in 1m46s
repod / release (push) Has been skipped
2024-08-21 06:36:35 +00:00
2824431330 refactor: 🌐 rework read and add missing translations
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 58s
repod / release (push) Has been skipped
2024-08-17 18:19:45 +02:00
a30678bfd2 feat: add favorites (missing homepage)
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 1m12s
repod / release (push) Has been skipped
2024-08-17 17:56:12 +02:00
107 changed files with 4108 additions and 2508 deletions

View File

@ -9,5 +9,6 @@
/node_modules/
/js/
/css/
/build/

View File

@ -1,9 +1,11 @@
module.exports = {
extends: [
'@nextcloud',
'@vue/eslint-config-typescript/recommended',
'plugin:pinia/recommended',
'plugin:prettier/recommended',
],
parser: 'vue-eslint-parser',
rules: {
'jsdoc/require-jsdoc': 'off',
'vue/first-attribute-linebreak': 'off',

View File

@ -14,7 +14,7 @@ jobs:
php:
runs-on: ubuntu-latest
container: nextcloud:29
container: nextcloud:30
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
@ -30,15 +30,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: skjnldsv/read-package-engines-version-actions@v3
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^10'
- uses: actions/setup-node@v4
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
node-version: "^20"
- run: npm ci
- run: npm run lint
- run: npm run stylelint
@ -47,27 +41,21 @@ jobs:
release:
if: gitea.ref_type == 'tag'
runs-on: ubuntu-latest
container: nextcloud:29
container: nextcloud:30
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v4
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
- run: chmod +x /usr/local/bin/composer
- uses: skjnldsv/read-package-engines-version-actions@v3
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^10'
- uses: actions/setup-node@v4
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
node-version: "^20"
- run: make dist
- uses: akkuman/gitea-release-action@v1
with:
files: |
build/artifacts/repod.tar.gz
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
- uses: FKLC/sign-files-action@v1.0.0
with:
privateKey: ${{ secrets.PRIVATEKEY }}
@ -75,13 +63,13 @@ jobs:
extension: .sig
outputFolder: build/artifacts
files: |
build/artifacts/repod.tar.gz
build/artifacts/${{ gitea.event.repository.name }}.tar.gz
- id: sign
run: echo "SIGNATURE=$(cat build/artifacts/repod.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
run: echo "SIGNATURE=$(cat build/artifacts/${{ gitea.event.repository.name }}.tar.gz.sig | openssl base64 -A)" >> $GITHUB_OUTPUT
- uses: actionsflow/axios@v1
with:
url: https://apps.nextcloud.com/api/v1/apps/releases
method: POST
accept: 200,201
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }'
data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/<<<${{ gitea.ref_name }}>>>/repod.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'
data: '{ "download": "https://git.crystalyx.net/${{ gitea.repository }}/releases/download/<<<${{ gitea.ref_name }}>>>/${{ gitea.event.repository.name }}.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'

1
.gitignore vendored
View File

@ -9,5 +9,6 @@
/node_modules/
/js/
/css/
/build/

View File

@ -9,5 +9,6 @@ tests/.phpunit.cache
node_modules/
js/
css/
build/

View File

@ -13,9 +13,7 @@ class MyConfig extends Config
$rules = parent::getRules();
$rules['@PhpCsFixer'] = true;
$rules['curly_braces_position']['classes_opening_brace'] = 'next_line_unless_newline_at_signature_end';
$rules['phpdoc_separation'] = false;
$rules['phpdoc_to_comment'] = false;
$rules['single_line_comment_style'] = false;
return $rules;
}
}

View File

@ -1,4 +1,90 @@
## 3.0.0 - 2024-08-17
## 3.4.1 - Skip & Chill - 2024-11-12
### Changed
- 💄 Make a little gap between player's controls
### Fixed
- 📝 Descriptions are now well formatted
- ⏩ Chapters supported !
> Click on a timestamp in descriptions to skip to the specified part of the podcast
## 3.4.0 - Good Night - 2024-11-09
### Added
- ♿ Improve accessibility by adding titles when missing
- ✨ Playback speed and volume setting doesn't stick
[#185](https://git.crystalyx.net/Xefir/repod/issues/185) reported by @SteveDinn
- ✨ Skip back or forward
[#159](https://git.crystalyx.net/Xefir/repod/issues/159) reported by @moonlike8812
- ✨ Sleep timer
[#119](https://git.crystalyx.net/Xefir/repod/issues/119) reported by @Markusphi and @OiledAmoeba
### Changed
- 💄 Add padding around favorites on mobile
### Fixed
- 🔒 Increase security when Nextcloud is in debug mode
## 3.3.2 - What a Nightmare - 2024-10-24
### Fixed
- 🚑 Revert [#178](https://git.crystalyx.net/Xefir/repod/issues/178) not working on big subscriptions lists
[#182](https://git.crystalyx.net/Xefir/repod/issues/182) reported by @SteveDinn
## 3.3.1 - Breaking the Loop - 2024-10-24
### Changed
- ⚡ Speed up the loading time of subscriptions
[#178](https://git.crystalyx.net/Xefir/repod/issues/178) reported by @MikeAndrews
### Fixed
- 🐛 Prevent Firefox for going nuts when having Plasma Integration addon installed
[#164](https://git.crystalyx.net/Xefir/repod/issues/164) reported by @cichy1173, @Share1440 and @mark.collins
## 3.3.0 - Into The Jet Lag - 2024-10-18
### Changed
- 🧑‍💻 CSS isn't mixed in the main JS file anymore
### Fixed
- 🐛 App won't load on Firefox 115
[#158](https://git.crystalyx.net/Xefir/repod/issues/158) reported by @Jaunty and @mark.collins
- 🔇 Volume slider didn't work properly
### Deprecated
- 💣 Require Nextcloud 29 or more
## 3.2.0 - Typing fast - 2024-09-15
### Added
- 📝 Add Cardo to list of compatible clients
[#176](https://github.com/thrillfall/nextcloud-gpodder/pull/176) reported by @n0vella
### Changed
- 🧑‍💻 Switch entiere project to TypeScript
### Fixed
- 💄 Missing icon on home when aren't any favorites
- 💄 Tweaks spacing in several spaces on Home and banners
- 💩 Leverage the available space between the episode title and the play button (but hacky way for now)
[#59](https://git.crystalyx.net/Xefir/repod/issues/59#issuecomment-6246) reported by @W_LL_M
## 3.1.0 - Above the stars - 2024-09-02
### Added
- ⭐ You can now add favorites subscriptions !
It will show's up on the homepage instead of the recommendations witch appear only when you add a new subscription.
[#59](https://git.crystalyx.net/Xefir/repod/issues/59) suggested by @W_LL_M, @Jaunty and @Satalink
### Changed
- 💥 Use html5 routing instead of hashes. All the URLs has changed removing the `#/` part.
### Fixed
- 🐛 Regression on 3.0 that prevent seeking player to episode last listened position
[#136](https://git.crystalyx.net/Xefir/repod/issues/136) reported by @randomuser1967
- ⚡ Improve the detection off mis-installed or mis-enabled gpodder app
## 3.0.0 - What a vue - 2024-08-17
### Added
- 🌐 Add german translation
@ -16,7 +102,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Removed
- 🗑️ Temporary replacing @nextcloud/dialogs to toastyjs
## 2.3.3 - 2024-06-14
## 2.3.3 - The Cake is a Lie - 2024-06-14
### Changed
- ⬆️ Update @nextcloud/dialogs to 5.3.2
@ -25,18 +111,18 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
- 🐛 App crashed when no cache system available
[#107](https://git.crystalyx.net/Xefir/repod/issues/107) reported by @skvaller and @PhilTraere
## 2.3.2 - 2024-05-31
## 2.3.2 - Young Youth - 2024-05-31
### Fixed
- 🐛 New subscribe button on search not disapearing if subscribed
- ♿ Missing accessibility label on this button as well
## 2.3.1 - 2024-05-29
## 2.3.1 - Powerwash the Universe - 2024-05-29
### Changed
- ⚡ Reduce app size by not shipping sourcemap
## 2.3.0 - 2024-05-29
## 2.3.0 - Star Align - 2024-05-29
### Added
- Ability to subscribe to podcast from search list
@ -53,12 +139,12 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
- ⚰️ Drop support for PHP 8.0
- 🌐 Removed babel
## 2.2.1 - 2024-05-18
## 2.2.1 - Shami was here - 2024-05-18
### Removed
- ♻️ Rollback: Hide unreadable episodes because of insecure sources
## 2.2.0 - 2024-05-18
## 2.2.0 - Moving in and out - 2024-05-18
### Added
- 🚨 Linting the code with ESLint
@ -70,7 +156,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Fixed
- 🔓 Hide unreadable episodes because of insecure sources
## 2.1.0 - 2024-03-16
## 2.1.0 - Pocket Gundams - 2024-03-16
### Added
- 🔍 Add CTA for rating the app on the store
@ -84,7 +170,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
- 🔒 App wasn't working for non admin users
[#76](https://git.crystalyx.net/Xefir/repod/issues/76) reported by @devasservice
## 2.0.0 - 2024-03-05
## 2.0.0 - Taking Actions - 2024-03-05
### Added
- 🍪 Saving filters preference
@ -101,13 +187,13 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Fixed
- ❤️‍🔥 Better handling ended episodes
## 1.5.9 - 2024-02-21
## 1.5.9 - Just According to Keikaku - 2024-02-21
### Changed
- 🧑‍💻 Change some endpoints to match gPodder.net "specifications"
- ⬆️ Update @nextcloud/vue to 8.7.0
## 1.5.8 - 2024-02-11
## 1.5.8 - Goblet of Eonothem - 2024-02-11
### Fixed
- Fyyd API sometime send empty feeds, ignoring them
@ -125,19 +211,19 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Changed
- Update @nextcloud/vue to v8.6.2
## 1.5.5 - 2024-02-04
## 1.5.5 - Hide and seek - 2024-02-04
### Fixed
- Can't open podcast details if cache missing or misconfigured
[#58](https://git.crystalyx.net/Xefir/repod/issues/58) reported by @raxventus
## 1.5.4 - 2024-02-03
## 1.5.4 - In search of the truth - 2024-02-03
### Fixed
- Nextcloud search engine didn't work on Nextcloud 26 and 27
[#57](https://git.crystalyx.net/Xefir/repod/issues/57) reported by @JonOfUs
## 1.5.3 - 2024-02-01
## 1.5.3 - The date where it all ends - 2024-02-01
### Changed
- Update @nextcloud/vue to v8.6.1
@ -145,7 +231,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Fixed
- Fix episode listing crashing if an invalid publication date is present in the RSS
## 1.5.2 - 2024-02-01
## 1.5.2 - A little to the top - 2024-02-01
### Changed
- Update @nextcloud/router to v3.0.0
@ -153,7 +239,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Fixed
- Fix player alignment off by a couple of pixels
## 1.5.1 - 2024-01-30
## 1.5.1 - Play on the PlayHead - 2024-01-30
### Changed
- Update @nextcloud/vue to v8.6.0
@ -163,7 +249,7 @@ Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Fixed
- Force the placement of the filter settings to the top
## 1.5.0 - 2024-01-30
## 1.5.0 - Featuring the filtering - 2024-01-30
### Added
- Filtering options for each podcast section

View File

@ -1,4 +1,4 @@
FROM nextcloud:29
FROM nextcloud:30
ENV NEXTCLOUD_UPDATE=1
ENV NEXTCLOUD_ADMIN_USER=repod

View File

@ -1,39 +1,4 @@
# https://github.com/nextcloud/appstore/blob/fixed-templates/nextcloudappstore/scaffolding/app-templates/26/app/Makefile
# Generic Makefile for building and packaging a Nextcloud app which uses npm and
# Composer.
#
# Dependencies:
# * make
# * which
# * curl: used if phpunit and composer are not installed to fetch them from the web
# * tar: for building the archive
# * npm: for building and testing everything JS
#
# If no composer.json is in the app root directory, the Composer step
# will be skipped. The same goes for the package.json which can be located in
# the app root or the js/ directory.
#
# The npm command by launches the npm build script:
#
# npm run build
#
# The npm test command launches the npm test script:
#
# npm run test
#
# The idea behind this is to be completely testing and build tool agnostic. All
# build tools and additional package managers should be installed locally in
# your project, since this won't pollute people's global namespace.
#
# The following npm scripts in your package.json install and update the bower
# and npm dependencies and use gulp as build system (notice how everything is
# run from the node_modules folder):
#
# "scripts": {
# "test": "node node_modules/gulp-cli/bin/gulp.js karma",
# "prebuild": "npm install && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update",
# "build": "node node_modules/gulp-cli/bin/gulp.js"
# },
app_name=$(notdir $(CURDIR))
build_tools_directory=$(CURDIR)/build/tools
@ -140,8 +105,8 @@ appstore:
--exclude="$(app_name)/protractor\.*" \
--exclude="$(app_name)/.*" \
--exclude="$(app_name)/js/.*" \
--exclude="$(app_name)/webpack.js" \
--exclude="$(app_name)/stylelint.config.js" \
--exclude="$(app_name)/tsconfig.json" \
--exclude="$(app_name)/stylelint.config.cjs" \
--exclude="$(app_name)/README.md" \
--exclude="$(app_name)/package-lock.json" \
--exclude="$(app_name)/LICENSE" \
@ -153,17 +118,17 @@ appstore:
--exclude="$(app_name)/Dockerfile" \
--exclude="$(app_name)/psalm.xml" \
--exclude="$(app_name)/renovate.json" \
--exclude="$(app_name)/vite.config.mjs" \
--exclude="$(app_name)/vite.config.ts" \
$(app_name)
# Start a nextcloud server on Docker to kickstart developement
.PHONY: dev
dev: build
docker stop repod || true
docker rm repod || true
docker build -t repod .
docker run -itd --rm --name repod -v $(CURDIR):/var/www/html/apps/repod -p 80:80 repod
npm run watch
docker stop $(app_name) || true
docker rm $(app_name) || true
docker build -t $(app_name) .
docker run -itd --rm --name $(app_name) -v $(CURDIR):/var/www/html/apps/$(app_name) -p 80:80 $(app_name)
npm run watch || docker stop $(app_name)
# Generate translations
.PHONY: l10n

View File

@ -6,12 +6,12 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
## Features
- Browse podcasts and play them directly in Nextcloud
- Keep track of subscribed shows and episodes
- Sync them with GPodderSync compatible clients
- Import and export subscriptions
- Mobile friendly interface
- Unified search integration
- 🔍 Browse and subscribe huge collection of podcasts
- 🔊 Listen to episodes directly in Nextcloud
- 📋 Keep track of subscribed shows and episodes
- 🌐 Sync them with GPodderSync compatible clients
- 📱 Mobile friendly interface
- 📡 Import and export your subscriptions
## Comparaison with similar apps for Nextcloud
@ -19,34 +19,32 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
| --- | --- | --- | --- | --- |
| Actively maintened | ✅ | ✅ | ✅ | ❌ |
| Play your local music files | ❌ | ❌ | ✅ | ❌ |
| Sync with [GPodder clients](#clients-supporting-sync-of-gpoddersync) | ✅ | ✅ | ❌ | ❌ |
| Sync with [GPodder clients](#clients-supporting-sync-of-gpoddersync) | ✅ | ✅ | [](https://github.com/owncloud/music/issues/975) | [](https://git.project-insanity.org/onny/nextcloud-app-podcast/-/issues/103) |
| Add and manage subscriptions | ✅ | ❌ | ✅ | ✅ |
| Listen synced episodes by another clients | ✅ | ✅ | ❌ | ❌ |
| Fetch and listen new epidodes | ✅ | | ✅ | ✅ |
| Keep track of listened episodes | ✅ | ✅ | | ✅ |
| Fetch and listen new epidodes | ✅ | [](https://github.com/pbek/nextcloud-nextpod/issues/5) | ✅ | ✅ |
| Keep track of listened episodes | ✅ | ✅ | [](https://github.com/owncloud/music/issues/1148) | ✅ |
| Download epidodes | ✅ | ✅ | ❌ | ✅ |
| Import and export subscriptions | ✅ | ❌ | ❌ | ❌ |
| Sleep timer | ✅ | ❌ | [](https://github.com/owncloud/music/issues/884#issuecomment-921582302) | ❌ |
| Advanced player controls | ✅ | ❌ | ✅ | ✅ |
| Import and export subscriptions | ✅ | ❌ | [](https://github.com/owncloud/music/issues/904) | [](https://git.project-insanity.org/onny/nextcloud-app-podcast/-/issues/185) |
| Search and discover new podcasts | ✅ | ❌ | ❌ | ✅ |
| Open episode website and RSS feed | ✅ | ✅ | ❌ | ✅ |
| Integrate with Nextcloud search engine | ✅ | ❌ | ❌ | ✅ |
| Integrate with [Nextcloud Notes](https://apps.nextcloud.com/apps/notes) | ❌ | ✅ | ❌ | ❌ |
| Mobile friendly interface | ✅ | ❌ | ✅ | ✅ |
| Support chapters | ❌ | ❌ | ❌ | ✅ |
| Available in multiple languages | ⭕ (en/fr/de) | ❌ | ✅ | ⭕ (en/de) |
| Support chapters | ✅ | ❌ | ❌ | ✅ |
| Available in multiple languages | [](https://translate.crystalyx.net/projects/repod/gitea/) (en/fr/de) | ❌ | [](https://github.com/owncloud/music/issues/671#issuecomment-782746463) | [](https://www.transifex.com/project-insanityorg/podcast-1/dashboard/) (en/de) |
> Click on ⭕ to open the ticket
## Screenshots
### Homepage
![homepage](./screens/index.png)
### Search
![search](./screens/search.png)
### Episode list
![episodes](./screens/episodes.png)
### Episode description
![modal](./screens/modal.png)
<img src="./screens/index.png" width="230" title="Homepage" />
<img src="./screens/discover.png" width="230" title="Discover" />
<img src="./screens/search.png" width="230" title="Search" />
<img src="./screens/episodes.png" width="230" title="Episode list" />
<img src="./screens/modal.png" width="230" title="Episode description" />
## Clients supporting sync of GPodderSync
@ -55,11 +53,24 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
| [AntennaPod](https://antennapod.org) | Initial purpose for this project, as a synchronization endpoint for this client.<br> Support is available [as of version 2.5.1](https://github.com/AntennaPod/AntennaPod/pull/5243/). |
| [KDE Kasts](https://apps.kde.org/de/kasts/) | Supported since version 21.12 |
| [Podcast Merlin](https://github.com/yoyoooooooooo/Podcast-Merlin--Nextcloud-Gpodder-Client-For-Windows) | Full sync support podcast client for Windows |
| [Cardo](https://cardo-podcast.github.io/#/cardo) | Podcast client with sync support, for Windows, Mac and Linux |
## Installation
Either from the official Nextcloud [app store](https://apps.nextcloud.com/apps/repod) or by downloading the [latest release](https://git.crystalyx.net/Xefir/repod/releases/latest) and extracting it into your Nextcloud `apps/` directory.
## Known issues
- Conflict with Plasma Integration Firefox addon ([#164](https://git.crystalyx.net/Xefir/repod/issues/164))
## Translations
You can contribute to translate the app in your language and you don't need to have any development background to do so !
Please join the effort at our **[Weblate](https://translate.crystalyx.net/projects/repod/gitea/)** project.
Thank you so much if you decide to participate ❤️
## Credits
- [GPodder Sync](https://github.com/thrillfall/nextcloud-gpodder) for the database API

View File

@ -7,11 +7,14 @@
<description><![CDATA[## Features
- 🔍 Browse and subscribe huge collection of podcasts
- 🔊 Listen to episodes directly in Nextcloud
- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)
- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/) and [other apps](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)
- 📱 Mobile friendly interface
- 📡 Import and export your subscriptions
- ➡️ Full features comparison [here](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)
## Requirements
You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!]]></description>
<version>3.0.0</version>
<version>3.4.1</version>
<licence>agpl</licence>
<author mail="xefir@crystalyx.net" homepage="https://crystalyx.net">Michel Roux</author>
<namespace>RePod</namespace>
@ -20,17 +23,21 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
<website>https://git.crystalyx.net/Xefir/repod</website>
<bugs>https://git.crystalyx.net/Xefir/repod/issues</bugs>
<screenshot>https://git.crystalyx.net/Xefir/repod/raw/branch/main/screens/index.png</screenshot>
<screenshot>https://git.crystalyx.net/Xefir/repod/raw/branch/main/screens/discover.png</screenshot>
<screenshot>https://git.crystalyx.net/Xefir/repod/raw/branch/main/screens/search.png</screenshot>
<screenshot>https://git.crystalyx.net/Xefir/repod/raw/branch/main/screens/episodes.png</screenshot>
<screenshot>https://git.crystalyx.net/Xefir/repod/raw/branch/main/screens/modal.png</screenshot>
<dependencies>
<php min-version="8.1"/>
<nextcloud min-version="27" max-version="30"/>
<nextcloud min-version="29" max-version="30"/>
</dependencies>
<navigations>
<navigation>
<id>repod</id>
<name>Podcast</name>
<route>repod.page.index</route>
<icon>app.svg</icon>
<type>link</type>
</navigation>
</navigations>
</info>

View File

@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
/**
* Create your routes in here. The name is the lowercase name of the controller
* without the controller part, the stuff after the hash is the method.
* e.g. page#index -> OCA\RePod\Controller\PageController->index().
*
* The controller class has to be registered in the application.php file since
* it's instantiated in there
*/
return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'episodes#action', 'url' => '/episodes/action', 'verb' => 'GET'],
['name' => 'episodes#list', 'url' => '/episodes/list', 'verb' => 'GET'],
['name' => 'opml#export', 'url' => '/opml/export', 'verb' => 'GET'],
['name' => 'opml#import', 'url' => '/opml/import', 'verb' => 'POST'],
['name' => 'podcast#index', 'url' => '/podcast', 'verb' => 'GET'],
['name' => 'search#index', 'url' => '/search', 'verb' => 'GET'],
['name' => 'toplist#hot', 'url' => '/toplist/hot', 'verb' => 'GET'],
['name' => 'toplist#new', 'url' => '/toplist/new', 'verb' => 'GET'],
],
];

View File

@ -12,13 +12,19 @@
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
"cs:check": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"psalm": "psalm --threads=1 --no-cache --show-info=true"
"psalm": "psalm --threads=1 --no-cache --show-info=true",
"rector": "rector && composer cs:fix"
},
"require": {
"php": "^8.1"
},
"require-dev": {
"nextcloud/ocp": "^29.0.4",
"nextcloud/ocp": "^30.0.2",
"roave/security-advisories": "dev-latest",
"nextcloud/coding-standard": "^1.2.1",
"vimeo/psalm": "^5.25.0"
"nextcloud/coding-standard": "^1.3.2",
"nextcloud/rector": "^0.2.1",
"rector/rector": "^1.2.10",
"vimeo/psalm": "^5.26.1"
},
"config": {
"optimize-autoloader": true,

664
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,9 @@ OC.L10N.register(
"Podcast" : "Podcast",
"RePod" : "RePod",
"🔊 Browse, manage and listen to podcasts" : "🔊 Suchen, Verwalten und Anhören von Podcasts",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Funktionen\n- 🔍 Durchsuchen und abonnieren einer großen Sammlung von Podcasts\n- 🔊 Episoden direkt in Nextcloud anhören\n- 🌐 Synchronisiere deine Aktivität mit [AntennaPod](https://antennapod.org/)\n\n## Voraussetzungen\nDu musst [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installiert haben, um diese App zu benutzen!",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/) and [other apps](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Mobile friendly interface\n- 📡 Import and export your subscriptions\n- ➡️ Full features comparison [here](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Funktionen\n- 🔍 Durchsuchen und abonnieren einer großen Sammlung von Podcasts\n- 🔊 Episoden direkt in Nextcloud anhören\n- 🌐 Synchronisiere deine Aktivität mit [AntennaPod](https://antennapod.org/)\n- 📱 Mobile-freundliche Schnittstelle\n- 📡 Importieren und Exportieren Ihrer Abonnements\n- ➡️ Vollständiger Funktionsvergleich [hier](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Voraussetzungen\nDu musst [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installiert haben, um diese App zu benutzen!",
"Download" : "Herunterladen",
"Skip to {match}" : "Springen zu {match}",
"Add a RSS link" : "Einen RSS-Link hinzufügen",
"Subscribe" : "Abonnieren",
"Error while adding the feed" : "Fehler beim Hinzufügen des Feeds",
@ -18,11 +19,15 @@ OC.L10N.register(
"Link copied to the clipboard" : "Der Link des Feeds wurde in die Zwischenablage kopiert",
"Play" : "Abspielen",
"Stop" : "Stopp",
"Mark as read" : "Als gelesen markieren",
"Mark as unread" : "Als ungelesen markieren",
"Read" : "Gelesen",
"Open website" : "Webseite aufrufen",
"Could not fetch episodes" : "Folgen können nicht abgerufen werden",
"Could not change the status of the episode" : "Kann den Status der Folge nicht ändern",
"Could not fetch episodes" : "Folgen können nicht abgerufen werden",
"Rewind 10 seconds" : "10 Sekunden zurückspulen",
"Pause" : "Pause",
"Fast forward 30 seconds" : "30 Sekunden vorspulen",
"Mute" : "Stumm",
"Unmute" : "Stummschalten",
"Export subscriptions" : "Abonnements exportieren",
"Filtering episodes" : "Folgen filtern",
"Show all" : "Zeige alles",
@ -32,14 +37,23 @@ OC.L10N.register(
"Import subscriptions" : "Importiere Abonnements",
"Import OPML file" : "Importiere OPML-Datei",
"Rate RePod ❤️" : "Bewerte RePod ❤️",
"Sleep timer" : "Einschlaftimer",
"Minutes" : "Minuten",
"_%n min_::_%n mins_" : ["%n min","%n mins"],
"_%n sec_::_%n secs_" : ["%s sec","%n secs"],
"Playback speed" : "Wiedergabegeschwindigkeit",
"Favorite" : "Favorit",
"Are you sure you want to delete this subscription?" : "Bist Du sicher, dass Du das Abonnement löschen möchtest?",
"Error while removing the feed" : "Fehler beim Löschen des Feeds",
"You can only have 10 favorites" : "Du kannst nur 10 Favoriten haben",
"Add a podcast" : "Einen Podcast hinzufügen",
"Could not fetch subscriptions" : "Abonnements können nicht abgerufen werden",
"Find a podcast" : "Finde einen Podcast",
"Error loading feed" : "Fehler beim Laden des Feeds",
"Missing required app" : "Benötigte App fehlt",
"Install GPodder Sync" : "Installiere GPodder Sync"
"Install GPodder Sync" : "Installiere GPodder Sync",
"Pin some subscriptions to see their latest updates" : "Pinne einige Abonnements, um ihre neuesten Updates zu sehen",
"No favorites" : "Keine Favoriten",
"A browser extension conflict with RePod" : "Ein Browser-Erweiterungskonflikt mit RePod"
},
"");
"nplurals=2; plural=n != 1;");

View File

@ -3,8 +3,9 @@
"Podcast" : "Podcast",
"RePod" : "RePod",
"🔊 Browse, manage and listen to podcasts" : "🔊 Suchen, Verwalten und Anhören von Podcasts",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Funktionen\n- 🔍 Durchsuchen und abonnieren einer großen Sammlung von Podcasts\n- 🔊 Episoden direkt in Nextcloud anhören\n- 🌐 Synchronisiere deine Aktivität mit [AntennaPod](https://antennapod.org/)\n\n## Voraussetzungen\nDu musst [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installiert haben, um diese App zu benutzen!",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/) and [other apps](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Mobile friendly interface\n- 📡 Import and export your subscriptions\n- ➡️ Full features comparison [here](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Funktionen\n- 🔍 Durchsuchen und abonnieren einer großen Sammlung von Podcasts\n- 🔊 Episoden direkt in Nextcloud anhören\n- 🌐 Synchronisiere deine Aktivität mit [AntennaPod](https://antennapod.org/)\n- 📱 Mobile-freundliche Schnittstelle\n- 📡 Importieren und Exportieren Ihrer Abonnements\n- ➡️ Vollständiger Funktionsvergleich [hier](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Voraussetzungen\nDu musst [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installiert haben, um diese App zu benutzen!",
"Download" : "Herunterladen",
"Skip to {match}" : "Springen zu {match}",
"Add a RSS link" : "Einen RSS-Link hinzufügen",
"Subscribe" : "Abonnieren",
"Error while adding the feed" : "Fehler beim Hinzufügen des Feeds",
@ -16,11 +17,15 @@
"Link copied to the clipboard" : "Der Link des Feeds wurde in die Zwischenablage kopiert",
"Play" : "Abspielen",
"Stop" : "Stopp",
"Mark as read" : "Als gelesen markieren",
"Mark as unread" : "Als ungelesen markieren",
"Read" : "Gelesen",
"Open website" : "Webseite aufrufen",
"Could not fetch episodes" : "Folgen können nicht abgerufen werden",
"Could not change the status of the episode" : "Kann den Status der Folge nicht ändern",
"Could not fetch episodes" : "Folgen können nicht abgerufen werden",
"Rewind 10 seconds" : "10 Sekunden zurückspulen",
"Pause" : "Pause",
"Fast forward 30 seconds" : "30 Sekunden vorspulen",
"Mute" : "Stumm",
"Unmute" : "Stummschalten",
"Export subscriptions" : "Abonnements exportieren",
"Filtering episodes" : "Folgen filtern",
"Show all" : "Zeige alles",
@ -30,14 +35,23 @@
"Import subscriptions" : "Importiere Abonnements",
"Import OPML file" : "Importiere OPML-Datei",
"Rate RePod ❤️" : "Bewerte RePod ❤️",
"Sleep timer" : "Einschlaftimer",
"Minutes" : "Minuten",
"_%n min_::_%n mins_" : ["%n min","%n mins"],
"_%n sec_::_%n secs_" : ["%s sec","%n secs"],
"Playback speed" : "Wiedergabegeschwindigkeit",
"Favorite" : "Favorit",
"Are you sure you want to delete this subscription?" : "Bist Du sicher, dass Du das Abonnement löschen möchtest?",
"Error while removing the feed" : "Fehler beim Löschen des Feeds",
"You can only have 10 favorites" : "Du kannst nur 10 Favoriten haben",
"Add a podcast" : "Einen Podcast hinzufügen",
"Could not fetch subscriptions" : "Abonnements können nicht abgerufen werden",
"Find a podcast" : "Finde einen Podcast",
"Error loading feed" : "Fehler beim Laden des Feeds",
"Missing required app" : "Benötigte App fehlt",
"Install GPodder Sync" : "Installiere GPodder Sync"
},"pluralForm" :""
"Install GPodder Sync" : "Installiere GPodder Sync",
"Pin some subscriptions to see their latest updates" : "Pinne einige Abonnements, um ihre neuesten Updates zu sehen",
"No favorites" : "Keine Favoriten",
"A browser extension conflict with RePod" : "Ein Browser-Erweiterungskonflikt mit RePod"
},"pluralForm" :"nplurals=2; plural=n != 1;"
}

View File

@ -5,8 +5,9 @@ OC.L10N.register(
"Podcast" : "Podcast",
"RePod" : "RePod",
"🔊 Browse, manage and listen to podcasts" : "🔊 Parcourir, gérer et écouter vos podcasts",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/)\n\n## Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/) and [other apps](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Mobile friendly interface\n- 📡 Import and export your subscriptions\n- ➡️ Full features comparison [here](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/) et d'autres [applications](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Interface optimisée pour mobiles et ordinateurs\n- 📡 Import/export de ses abonnements\n- ➡️ Tableau récapitulatif complet des fonctionnalitées [ici](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
"Download" : "Télécharger",
"Skip to {match}" : "Sauter à {match}",
"Add a RSS link" : "Ajouter un lien RSS",
"Subscribe" : "S'abonner",
"Error while adding the feed" : "Erreur lors de l'ajout du flux",
@ -18,11 +19,15 @@ OC.L10N.register(
"Link copied to the clipboard" : "Lien vers le flux copié dans le presse-papiers",
"Play" : "Lecture",
"Stop" : "Arrêter",
"Mark as read" : "Marquer comme lu",
"Mark as unread" : "Marquer comme non lu",
"Read" : "Lu",
"Open website" : "Ouvrir le site web",
"Could not fetch episodes" : "Impossible de récuprer les épisodes",
"Could not change the status of the episode" : "Impossible de changer le status de l'épisode",
"Could not fetch episodes" : "Impossible de récuprer les épisodes",
"Rewind 10 seconds" : "Retour rapide de 10 secondes",
"Pause" : "Pause",
"Fast forward 30 seconds" : "Avance rapide de 30 secondes",
"Mute" : "Silencer",
"Unmute" : "Paroler",
"Export subscriptions" : "Exporter les abonnements",
"Filtering episodes" : "Filtrage des épisodes",
"Show all" : "Montrer tout",
@ -32,14 +37,23 @@ OC.L10N.register(
"Import subscriptions" : "Importer les abonnements",
"Import OPML file" : "Importer un fichier OPML",
"Rate RePod ❤️" : "Donnez votre avis ❤️",
"Sleep timer" : "Minuteur",
"Minutes" : "Minutes",
"_%n min_::_%n mins_" : ["%n min","%n mins"],
"_%n sec_::_%n secs_" : ["%s sec","%n secs"],
"Playback speed" : "Vitesse de lecture",
"Favorite" : "Favori",
"Are you sure you want to delete this subscription?" : "Êtes-vous sûr de vouloir supprimer ce flux ?",
"Error while removing the feed" : "Erreur lors de la suppression du flux",
"You can only have 10 favorites" : "Vous ne pouvez avoir que 10 favoris",
"Add a podcast" : "Ajouter un podcast",
"Could not fetch subscriptions" : "Impossible de récupérer les flux",
"Find a podcast" : "Chercher un podcast",
"Error loading feed" : "Erreur lors du chargement du flux",
"Missing required app" : "Une application requise est manquante",
"Install GPodder Sync" : "Installer GPodder Sync"
"Install GPodder Sync" : "Installer GPodder Sync",
"Pin some subscriptions to see their latest updates" : "Ajoutez des abonnements en favoris pour obtenir les dernières nouvelles ici",
"No favorites" : "Aucun favoris",
"A browser extension conflict with RePod" : "Une extension de votre navigateur entre en conflit avec RePod"
},
"");

View File

@ -3,8 +3,9 @@
"Podcast" : "Podcast",
"RePod" : "RePod",
"🔊 Browse, manage and listen to podcasts" : "🔊 Parcourir, gérer et écouter vos podcasts",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/)\n\n## Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
"## Features\n- 🔍 Browse and subscribe huge collection of podcasts\n- 🔊 Listen to episodes directly in Nextcloud\n- 🌐 Sync your activity with [AntennaPod](https://antennapod.org/) and [other apps](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Mobile friendly interface\n- 📡 Import and export your subscriptions\n- ➡️ Full features comparison [here](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Requirements\nYou need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!" : "## Fonctionnalités\n- 🔍 Parcourir et s'abonner à une grande collections de podcasts\n- 🔊 Écouter vos épisodes directement sur Nextcloud\n- 🌐 Synchroniser son activité avec [AntennaPod](https://antennapod.org/) et d'autres [applications](https://git.crystalyx.net/Xefir/repod#clients-supporting-sync-of-gpoddersync)\n- 📱 Interface optimisée pour mobiles et ordinateurs\n- 📡 Import/export de ses abonnements\n- ➡️ Tableau récapitulatif complet des fonctionnalitées [ici](https://git.crystalyx.net/Xefir/repod#comparaison-with-similar-apps-for-nextcloud)\n\n## Pré-requis\nVous devez avoir [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installé pour utiliser cette application !",
"Download" : "Télécharger",
"Skip to {match}" : "Sauter à {match}",
"Add a RSS link" : "Ajouter un lien RSS",
"Subscribe" : "S'abonner",
"Error while adding the feed" : "Erreur lors de l'ajout du flux",
@ -16,11 +17,15 @@
"Link copied to the clipboard" : "Lien vers le flux copié dans le presse-papiers",
"Play" : "Lecture",
"Stop" : "Arrêter",
"Mark as read" : "Marquer comme lu",
"Mark as unread" : "Marquer comme non lu",
"Read" : "Lu",
"Open website" : "Ouvrir le site web",
"Could not fetch episodes" : "Impossible de récuprer les épisodes",
"Could not change the status of the episode" : "Impossible de changer le status de l'épisode",
"Could not fetch episodes" : "Impossible de récuprer les épisodes",
"Rewind 10 seconds" : "Retour rapide de 10 secondes",
"Pause" : "Pause",
"Fast forward 30 seconds" : "Avance rapide de 30 secondes",
"Mute" : "Silencer",
"Unmute" : "Paroler",
"Export subscriptions" : "Exporter les abonnements",
"Filtering episodes" : "Filtrage des épisodes",
"Show all" : "Montrer tout",
@ -30,14 +35,23 @@
"Import subscriptions" : "Importer les abonnements",
"Import OPML file" : "Importer un fichier OPML",
"Rate RePod ❤️" : "Donnez votre avis ❤️",
"Sleep timer" : "Minuteur",
"Minutes" : "Minutes",
"_%n min_::_%n mins_" : ["%n min","%n mins"],
"_%n sec_::_%n secs_" : ["%s sec","%n secs"],
"Playback speed" : "Vitesse de lecture",
"Favorite" : "Favori",
"Are you sure you want to delete this subscription?" : "Êtes-vous sûr de vouloir supprimer ce flux ?",
"Error while removing the feed" : "Erreur lors de la suppression du flux",
"You can only have 10 favorites" : "Vous ne pouvez avoir que 10 favoris",
"Add a podcast" : "Ajouter un podcast",
"Could not fetch subscriptions" : "Impossible de récupérer les flux",
"Find a podcast" : "Chercher un podcast",
"Error loading feed" : "Erreur lors du chargement du flux",
"Missing required app" : "Une application requise est manquante",
"Install GPodder Sync" : "Installer GPodder Sync"
"Install GPodder Sync" : "Installer GPodder Sync",
"Pin some subscriptions to see their latest updates" : "Ajoutez des abonnements en favoris pour obtenir les dernières nouvelles ici",
"No favorites" : "Aucun favoris",
"A browser extension conflict with RePod" : "Une extension de votre navigateur entre en conflit avec RePod"
},"pluralForm" :""
}

View File

@ -16,6 +16,7 @@ use OCP\AppFramework\Services\IInitialState;
class Application extends App implements IBootstrap
{
public const APP_ID = 'repod';
private const GPODDERSYNC_ID = 'gpoddersync';
public function __construct() {
@ -32,11 +33,15 @@ class Application extends App implements IBootstrap
/** @var IInitialState $initialState */
$initialState = $appContainer->get(IInitialState::class);
if (null === $appManager->getAppInfo(self::GPODDERSYNC_ID)) {
$appManager->disableApp(self::GPODDERSYNC_ID);
}
$gpoddersync = $appManager->isEnabledForUser(self::GPODDERSYNC_ID);
if (!$gpoddersync) {
try {
$appManager->enableApp(self::GPODDERSYNC_ID);
} catch (AppPathNotFoundException $e) {
} catch (AppPathNotFoundException) {
}
}

View File

@ -11,6 +11,9 @@ use OCA\RePod\Core\EpisodeAction\EpisodeActionReader;
use OCA\RePod\Service\UserService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Http\Client\IClientService;
use OCP\IRequest;
@ -19,32 +22,30 @@ class EpisodesController extends Controller
{
public function __construct(
IRequest $request,
private EpisodeActionReader $episodeActionReader,
private EpisodeActionRepository $episodeActionRepository,
private IClientService $clientService,
private UserService $userService
private readonly EpisodeActionReader $episodeActionReader,
private readonly EpisodeActionRepository $episodeActionRepository,
private readonly IClientService $clientService,
private readonly UserService $userService
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/episodes/list')]
public function list(string $url): JSONResponse {
$client = $this->clientService->newClient();
$feed = $client->get($url);
$episodes = $this->episodeActionReader->parseRssXml((string) $feed->getBody());
usort($episodes, fn (EpisodeActionExtraData $a, EpisodeActionExtraData $b) => $b->getPubDate() <=> $a->getPubDate());
$episodes = array_values(array_intersect_key($episodes, array_unique(array_map(fn (EpisodeActionExtraData $episode) => $episode->getGuid(), $episodes))));
usort($episodes, fn (EpisodeActionExtraData $a, EpisodeActionExtraData $b): int => $b->getPubDate() <=> $a->getPubDate());
$episodes = array_values(array_intersect_key($episodes, array_unique(array_map(fn (EpisodeActionExtraData $episode): string => $episode->getGuid(), $episodes))));
return new JSONResponse($episodes, $feed->getStatusCode());
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/episodes/action')]
public function action(string $url): JSONResponse {
$action = $this->episodeActionRepository->findByEpisodeUrl($url, $this->userService->getUserUID());

View File

@ -10,6 +10,9 @@ use OCA\GPodderSync\Core\SubscriptionChange\SubscriptionChangeSaver;
use OCA\RePod\AppInfo\Application;
use OCA\RePod\Service\UserService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\DataDownloadResponse;
use OCP\AppFramework\Http\Response;
use OCP\IL10N;
@ -19,19 +22,18 @@ class OpmlController extends Controller
{
public function __construct(
IRequest $request,
private IL10N $l10n,
private PodcastDataReader $podcastDataReader,
private PodcastMetricsReader $podcastMetricsReader,
private SubscriptionChangeSaver $subscriptionChangeSaver,
private UserService $userService
private readonly IL10N $l10n,
private readonly PodcastDataReader $podcastDataReader,
private readonly PodcastMetricsReader $podcastMetricsReader,
private readonly SubscriptionChangeSaver $subscriptionChangeSaver,
private readonly UserService $userService
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/opml/export')]
public function export(): DataDownloadResponse {
// https://github.com/AntennaPod/AntennaPod/blob/master/core/src/main/java/de/danoeh/antennapod/core/export/opml/OpmlWriter.java
$xml = new \SimpleXMLElement('<opml/>', namespaceOrPrefix: 'http://xmlpull.org/v1/doc/features.html#indent-output');
@ -53,7 +55,7 @@ class OpmlController extends Controller
foreach ($subscriptions as $subscription) {
try {
$podcast = $this->podcastDataReader->getCachedOrFetchPodcastData($subscription->getUrl(), $this->userService->getUserUID());
} catch (\Exception $e) {
} catch (\Exception) {
continue;
}
@ -82,10 +84,9 @@ class OpmlController extends Controller
return new DataDownloadResponse((string) $xml->asXML(), 'repod-'.$dateCreated->getTimestamp().'.opml', ' application/xml');
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'POST', url: '/opml/import')]
public function import(): Response {
$file = $this->request->getUploadedFile('import');

View File

@ -6,18 +6,28 @@ namespace OCA\RePod\Controller;
use OCA\RePod\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
use OCP\Util;
class PageController extends Controller
{
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function __construct(
IRequest $request
) {
parent::__construct(Application::APP_ID, $request);
}
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/')]
public function index(): TemplateResponse {
Util::addScript(Application::APP_ID, 'main');
Util::addScript(Application::APP_ID, Application::APP_ID.'-main');
Util::addStyle(Application::APP_ID, Application::APP_ID.'-main');
$csp = new ContentSecurityPolicy();
$csp->addAllowedImageDomain('*');
@ -28,4 +38,18 @@ class PageController extends Controller
return $response;
}
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/discover')]
public function discover(): TemplateResponse {
return $this->index();
}
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/feed/{path}', requirements: ['path' => '.+'])]
public function feed(): TemplateResponse {
return $this->index();
}
}

View File

@ -8,6 +8,9 @@ use OCA\GPodderSync\Core\PodcastData\PodcastData;
use OCA\GPodderSync\Core\PodcastData\PodcastDataReader;
use OCA\RePod\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Http\Client\IClientService;
use OCP\ICacheFactory;
@ -17,24 +20,23 @@ class PodcastController extends Controller
{
public function __construct(
IRequest $request,
private ICacheFactory $cacheFactory,
private IClientService $clientService,
private PodcastDataReader $podcastDataReader
private readonly ICacheFactory $cacheFactory,
private readonly IClientService $clientService,
private readonly PodcastDataReader $podcastDataReader
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/podcast')]
public function index(string $url): JSONResponse {
$podcast = null;
if ($this->cacheFactory->isLocalCacheAvailable()) {
try {
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
} catch (\Exception $e) {
} catch (\Exception) {
}
}
@ -49,7 +51,7 @@ class PodcastController extends Controller
if ($this->cacheFactory->isLocalCacheAvailable()) {
try {
$this->podcastDataReader->trySetCachedPodcastData($url, $podcast);
} catch (\Exception $e) {
} catch (\Exception) {
}
}

View File

@ -7,6 +7,9 @@ namespace OCA\RePod\Controller;
use OCA\RePod\AppInfo\Application;
use OCA\RePod\Service\MultiPodService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest;
@ -14,15 +17,14 @@ class SearchController extends Controller
{
public function __construct(
IRequest $request,
private MultiPodService $multiPodService
private readonly MultiPodService $multiPodService
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/search')]
public function index(string $q): JSONResponse {
return new JSONResponse($this->multiPodService->search($q));
}

View File

@ -7,6 +7,9 @@ namespace OCA\RePod\Controller;
use OCA\RePod\AppInfo\Application;
use OCA\RePod\Service\FyydService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest;
@ -14,23 +17,21 @@ class ToplistController extends Controller
{
public function __construct(
IRequest $request,
private FyydService $fyydService
private readonly FyydService $fyydService
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/toplist/hot')]
public function hot(): JSONResponse {
return new JSONResponse($this->fyydService->hot());
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
#[NoAdminRequired]
#[NoCSRFRequired]
#[FrontpageRoute(verb: 'GET', url: '/toplist/new')]
public function new(): JSONResponse {
return new JSONResponse($this->fyydService->latest());
}

View File

@ -28,22 +28,22 @@ use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
* action: ?EpisodeActionType
* }
*/
class EpisodeActionExtraData implements \JsonSerializable
class EpisodeActionExtraData implements \JsonSerializable, \Stringable
{
public function __construct(
private string $title,
private ?string $url,
private string $name,
private ?string $link,
private ?string $image,
private ?string $description,
private int $fetchedAtUnix,
private string $guid,
private ?string $type,
private ?int $size,
private ?\DateTime $pubDate,
private ?string $duration,
private ?EpisodeAction $action
private readonly string $title,
private readonly ?string $url,
private readonly string $name,
private readonly ?string $link,
private readonly ?string $image,
private readonly ?string $description,
private readonly int $fetchedAtUnix,
private readonly string $guid,
private readonly ?string $type,
private readonly ?int $size,
private readonly ?\DateTime $pubDate,
private readonly ?string $duration,
private readonly ?EpisodeAction $action
) {}
public function __toString(): string {
@ -120,7 +120,7 @@ class EpisodeActionExtraData implements \JsonSerializable
'size' => $this->size,
'pubDate' => $this->pubDate,
'duration' => $this->duration,
'action' => $this->action ? $this->action->toArray() : null,
'action' => $this->action instanceof EpisodeAction ? $this->action->toArray() : null,
];
}

View File

@ -11,8 +11,8 @@ use OCA\RePod\Service\UserService;
class EpisodeActionReader extends CoreEpisodeActionReader
{
public function __construct(
private EpisodeActionRepository $episodeActionRepository,
private UserService $userService
private readonly EpisodeActionRepository $episodeActionRepository,
private readonly UserService $userService
) {}
/**
@ -20,7 +20,8 @@ class EpisodeActionReader extends CoreEpisodeActionReader
* Specs : https://github.com/Podcast-Standards-Project/PSP-1-Podcast-RSS-Specification/blob/main/README.md.
*
* @return EpisodeActionExtraData[]
* @throws \Exception if the XML data could not be parsed
*
* @throws \Exception if the XML data could not be parsed
*/
public function parseRssXml(string $xmlString, ?int $fetchedAtUnix = null): array {
$episodes = [];
@ -92,9 +93,6 @@ class EpisodeActionReader extends CoreEpisodeActionReader
$description = $this->stringOrNull($iTunesItemChildren->summary);
}
// Remove tags
$description = strip_tags(str_replace(['<br>', '<br/>', '<br />'], "\n", $description ?? ''));
// Get episode duration
if (isset($iTunesItemChildren)) {
$duration = $this->stringOrNull($iTunesItemChildren->duration);
@ -107,7 +105,7 @@ class EpisodeActionReader extends CoreEpisodeActionReader
if (isset($pubDate)) {
try {
$pubDate = new \DateTime($pubDate);
} catch (\Exception $e) {
} catch (\Exception) {
$pubDate = null;
}
}

View File

@ -13,9 +13,9 @@ class FyydService implements IPodProvider
private const BASE_URL = 'https://api.fyyd.de/0.2/';
public function __construct(
private IClientService $clientService,
private LoggerInterface $logger,
private UserService $userService
private readonly IClientService $clientService,
private readonly LoggerInterface $logger,
private readonly UserService $userService
) {}
public function search(string $value): array {
@ -94,8 +94,8 @@ class FyydService implements IPodProvider
if (array_key_exists('data', $langJson) && is_array($langJson['data'])) {
$language = in_array($userLang, $langJson['data']) ? $userLang : 'en';
}
} catch (\Exception $e) {
$this->logger->error($e->getMessage(), $e->getTrace());
} catch (\Exception $exception) {
$this->logger->error($exception->getMessage(), $exception->getTrace());
}
$podcastClient = $this->clientService->newClient();

View File

@ -12,8 +12,8 @@ class ItunesService implements IPodProvider
private const BASE_URL = 'https://itunes.apple.com/';
public function __construct(
private IClientService $clientService,
private UserService $userService
private readonly IClientService $clientService,
private readonly UserService $userService
) {}
public function search(string $value): array {

View File

@ -17,7 +17,7 @@ class MultiPodService implements IPodProvider
public function __construct(
FyydService $fyydService,
ItunesService $itunesService,
private LoggerInterface $logger
private readonly LoggerInterface $logger
) {
$this->providers = [$fyydService, $itunesService];
}
@ -36,7 +36,7 @@ class MultiPodService implements IPodProvider
}
}
usort($podcasts, fn (PodcastData $a, PodcastData $b) => $b->getFetchedAtUnix() <=> $a->getFetchedAtUnix());
usort($podcasts, fn (PodcastData $a, PodcastData $b): int => $b->getFetchedAtUnix() <=> $a->getFetchedAtUnix());
return array_values(
array_intersect_key(

View File

@ -16,9 +16,9 @@ use OCP\Search\SearchResultEntry;
class SearchProvider implements IProvider
{
public function __construct(
private IL10N $l10n,
private IURLGenerator $urlGenerator,
private MultiPodService $multiPodService
private readonly IL10N $l10n,
private readonly IURLGenerator $urlGenerator,
private readonly MultiPodService $multiPodService
) {}
public function getId(): string {
@ -30,7 +30,7 @@ class SearchProvider implements IProvider
}
public function getOrder(string $route, array $routeParameters): int {
if (0 === strpos($route, Application::APP_ID.'.')) {
if (str_starts_with($route, Application::APP_ID.'.')) {
// Active app, prefer my results
return -1;
}

View File

@ -10,8 +10,8 @@ use OCP\L10N\IFactory;
class UserService
{
public function __construct(
private IFactory $l10n,
private IUserSession $userSession
private readonly IFactory $l10n,
private readonly IUserSession $userSession
) {}
public function getUserUID(): string {
@ -27,7 +27,7 @@ class UserService
public function getCountryCode(): string {
$isoCodes = explode('_', $this->getIsoCode());
return isset($isoCodes[1]) ? $isoCodes[1] : 'us';
return $isoCodes[1] ?? 'us';
}
public function getLangCode(): string {

2772
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,43 +1,49 @@
{
"name": "repod",
"license": "AGPL-3.0-or-later",
"type": "module",
"scripts": {
"build": "vite build --mode production",
"dev": "vite build --mode development",
"dev:watch": "vite build --mode development --watch",
"watch": "npm run dev:watch",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"build": "vite build",
"dev": "vite --mode development build",
"lint": "vue-tsc && eslint src",
"lint:fix": "vue-tsc && eslint src --fix",
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css",
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix"
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix",
"watch": "vite --mode development build --watch"
},
"browserslist": [
"extends @nextcloud/browserslist-config"
],
"prettier": "@nextcloud/prettier-config",
"dependencies": {
"@nextcloud/axios": "^2.5.0",
"@formatjs/intl-segmenter": "^11.7.3",
"@nextcloud/axios": "^2.5.1",
"@nextcloud/initial-state": "^2.2.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vite-config": "^2.2.2",
"@nextcloud/vue": "9.0.0-alpha.5",
"dompurify": "^3.1.6",
"dompurify": "^3.2.0",
"linkify-html": "^4.1.3",
"pinia": "^2.2.2",
"pinia": "^2.2.6",
"toastify-js": "^1.12.0",
"vite": "^5.4.1",
"vue": "^3.4.38",
"vue-material-design-icons": "^5.3.0",
"vue-router": "^4.4.3"
"vite": "^5.4.11",
"vue": "^3.5.13",
"vue-material-design-icons": "^5.3.1",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@nextcloud/browserslist-config": "^3.0.1",
"@nextcloud/eslint-config": "^8.4.1",
"@nextcloud/prettier-config": "^1.1.0",
"@nextcloud/stylelint-config": "^3.0.1",
"@types/toastify-js": "^1.12.3",
"@vue/eslint-config-typescript": "^13",
"@vue/tsconfig": "^0.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-pinia": "^0.2.0",
"eslint-plugin-prettier": "^5.2.1"
"eslint-plugin-pinia": "^0.4.1",
"eslint-plugin-prettier": "^5.2.1",
"typescript": "5.5",
"vue-tsc": "^2.1.10"
}
}

34
rector.php Normal file
View File

@ -0,0 +1,34 @@
<?php
declare(strict_types=1);
use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__.'/appinfo',
__DIR__.'/lib',
])
->withPhpSets(php81: true)
->withSets([
NextcloudSets::NEXTCLOUD_27,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
codingStyle: true,
typeDeclarations: true,
privatization: true,
instanceOf: true,
earlyReturn: true,
strictBooleans: true,
rectorPreset: true,
phpunitCodeQuality: true,
doctrineCodeQuality: true,
symfonyCodeQuality: true,
symfonyConfigs: true,
twig: true,
phpunit: true,
)
;

View File

@ -1,3 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rangeStrategy": "bump"
}

BIN
screens/discover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 KiB

After

Width:  |  Height:  |  Size: 857 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 KiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 817 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 961 KiB

View File

@ -7,7 +7,7 @@
</NcContent>
</template>
<script>
<script lang="ts">
import 'toastify-js/src/toastify.css'
import { mapActions, mapState } from 'pinia'
import Bar from './components/Player/Bar.vue'
@ -15,7 +15,7 @@ import GPodder from './views/GPodder.vue'
import { NcContent } from '@nextcloud/vue'
import Subscriptions from './components/Sidebar/Subscriptions.vue'
import { loadState } from '@nextcloud/initial-state'
import { usePlayer } from './store/player.js'
import { usePlayer } from './store/player.ts'
export default {
name: 'App',
@ -33,15 +33,9 @@ export default {
},
mounted() {
this.init()
setInterval(this.loop, 40000)
},
methods: {
...mapActions(usePlayer, ['init', 'time']),
loop() {
if (this.paused === false) {
this.time()
}
},
...mapActions(usePlayer, ['init']),
},
}
</script>

View File

@ -1,13 +1,13 @@
<template>
<NcAppContent :class="{ padding: episode }">
<NcAppContent :class="{ episode }">
<slot />
</NcAppContent>
</template>
<script>
<script lang="ts">
import { NcAppContent } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'AppContent',
@ -21,7 +21,7 @@ export default {
</script>
<style scoped>
.padding {
.episode {
padding-bottom: 6rem;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<NcAppNavigation :class="{ padding: episode }">
<NcAppNavigation :class="{ episode }">
<slot />
<template #list>
<slot name="list" />
@ -10,10 +10,10 @@
</NcAppNavigation>
</template>
<script>
<script lang="ts">
import { NcAppNavigation } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'AppNavigation',
@ -27,7 +27,7 @@ export default {
</script>
<style scoped>
.padding {
.episode {
padding-bottom: 6rem;
}
</style>

View File

@ -0,0 +1,34 @@
<template>
<NcEmptyContent class="empty">
<slot />
<template #icon>
<slot name="icon" />
</template>
<template #name>
<slot name="name" />
</template>
<template #description>
<slot name="description" />
</template>
<template #action>
<slot name="action" />
</template>
</NcEmptyContent>
</template>
<script lang="ts">
import { NcEmptyContent } from '@nextcloud/vue'
export default {
name: 'EmptyContent',
components: {
NcEmptyContent,
},
}
</script>
<style scoped>
.empty {
height: 100%;
}
</style>

View File

@ -2,7 +2,7 @@
<NcLoadingIcon class="loading" />
</template>
<script>
<script lang="ts">
import { NcLoadingIcon } from '@nextcloud/vue'
export default {

View File

@ -1,37 +1,43 @@
<template>
<div class="flex">
<NcAvatar :display-name="name" :is-no-user="true" :size="256" :url="image" />
<h2>{{ name }}</h2>
<SafeHtml :source="description" />
<NcAvatar
:display-name="episode.name"
:is-no-user="true"
:size="256"
:url="episode.image" />
<h2>{{ episode.name }}</h2>
<SafeHtml :source="episode.description || ''" />
<div class="flex">
<NcButton v-if="link" :href="link" target="_blank">
<NcButton v-if="episode.link" :href="episode.link" target="_blank">
<template #icon>
<OpenInNewIcon :size="20" />
</template>
{{ title }}
{{ episode.title }}
</NcButton>
<NcButton
v-if="url"
:download="filenameFromUrl(url)"
:href="url"
v-if="episode.url"
:download="filenameFromUrl(episode.url)"
:href="episode.url"
target="_blank">
<template #icon>
<DownloadIcon :size="20" />
</template>
{{ t('repod', 'Download') }}
{{ size ? `(${humanFileSize(size)})` : '' }}
{{ episode.size ? `(${humanFileSize(episode.size)})` : '' }}
</NcButton>
</div>
</div>
</template>
<script>
<script lang="ts">
import { NcAvatar, NcButton } from '@nextcloud/vue'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
import type { EpisodeInterface } from '../../utils/types.ts'
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
import SafeHtml from './SafeHtml.vue'
import { filenameFromUrl } from '../../utils/url.js'
import { humanFileSize } from '../../utils/size.js'
import { filenameFromUrl } from '../../utils/url.ts'
import { humanFileSize } from '../../utils/size.ts'
import { t } from '@nextcloud/l10n'
export default {
name: 'Modal',
@ -43,38 +49,15 @@ export default {
SafeHtml,
},
props: {
description: {
type: String,
default: '',
},
image: {
type: String,
required: true,
},
link: {
type: String,
default: null,
},
name: {
type: String,
required: true,
},
size: {
type: Number,
default: null,
},
title: {
type: String,
required: true,
},
url: {
type: String,
episode: {
type: Object as () => EpisodeInterface,
required: true,
},
},
methods: {
filenameFromUrl,
humanFileSize,
t,
},
}
</script>

View File

@ -1,22 +1,44 @@
<template>
<div v-sanitize="source" class="html" />
<div ref="html" v-sanitize="source" class="html" />
</template>
<script>
<script lang="ts">
import dompurify from 'dompurify'
import linkifyHtml from 'linkify-html'
import { mapActions } from 'pinia'
import { t } from '@nextcloud/l10n'
import { timeToSeconds } from '../../utils/time.ts'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'SafeHtml',
directives: {
sanitize: {
mounted(el, binding) {
el.innerHTML = dompurify.sanitize(
linkifyHtml(binding.value, {
nl2br: true,
target: '_blank',
}),
)
el.innerHTML = dompurify
.sanitize(
linkifyHtml(binding.value, {
nl2br: true,
target: '_blank',
}),
)
.replace(
/(([0-9]?[0-9]):)?([0-5]?[0-9]):([0-5][0-9])/g,
(
match,
noop: string,
hours: string,
minutes: string,
seconds: string,
) =>
`<seekable time="${timeToSeconds(
parseInt(hours),
parseInt(minutes),
parseInt(seconds),
)}" title="${t('repod', 'Skip to {match}', { match })}">${
match
}</seekable>`,
)
},
},
},
@ -26,11 +48,31 @@ export default {
required: true,
},
},
mounted() {
const seekables = (this.$refs.html as HTMLElement).querySelectorAll(
'seekable',
)
for (const seekable of seekables) {
seekable.addEventListener('click', (event) => {
this.seek(
parseInt(
(event.target as HTMLElement).getAttribute('time') || '',
),
)
this.play()
})
}
},
methods: {
...mapActions(usePlayer, ['play', 'seek']),
},
}
</script>
<style>
.html a {
.html a,
seekable {
cursor: pointer;
text-decoration: underline;
}
</style>

View File

@ -1,8 +1,8 @@
<template>
<NcAppNavigationList>
<NcAppNavigationList class="list">
<NcAppNavigationNewItem
:name="t('repod', 'Add a RSS link')"
@new-item="addSubscription">
@new-item="(url) => $router.push(toFeedUrl(url))">
<template #icon>
<PlusIcon :size="20" />
</template>
@ -10,10 +10,11 @@
</NcAppNavigationList>
</template>
<script>
<script lang="ts">
import { NcAppNavigationList, NcAppNavigationNewItem } from '@nextcloud/vue'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import { encodeUrl } from '../../utils/url.js'
import { t } from '@nextcloud/l10n'
import { toFeedUrl } from '../../utils/url.ts'
export default {
name: 'AddRss',
@ -23,15 +24,14 @@ export default {
PlusIcon,
},
methods: {
addSubscription(feedUrl) {
this.$router.push(encodeUrl(feedUrl))
},
t,
toFeedUrl,
},
}
</script>
<style scoped>
ul {
.list {
margin-top: 2rem;
}
</style>

View File

@ -7,7 +7,7 @@
:key="feed.link"
:details="formatLocaleDate(new Date(feed.fetchedAtUnix * 1000))"
:name="feed.title"
:to="toUrl(feed.link)">
:to="toFeedUrl(feed.link)">
<template #icon>
<NcAvatar
:display-name="feed.author"
@ -19,7 +19,7 @@
</template>
<template #actions>
<NcActionButton
v-if="!subscriptions.includes(feed.link)"
v-if="!getSubByUrl(feed.link)"
:aria-label="t('repod', 'Subscribe')"
:name="t('repod', 'Subscribe')"
:title="t('repod', 'Subscribe')"
@ -34,18 +34,19 @@
</div>
</template>
<script>
<script lang="ts">
import { NcActionButton, NcAvatar, NcListItem } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import Loading from '../Atoms/Loading.vue'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import type { PodcastDataInterface } from '../../utils/types.ts'
import axios from '@nextcloud/axios'
import { debounce } from '../../utils/debounce.js'
import { formatLocaleDate } from '../../utils/time.js'
import { formatLocaleDate } from '../../utils/time.ts'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.js'
import { toUrl } from '../../utils/url.js'
import { useSubscriptions } from '../../store/subscriptions.js'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { toFeedUrl } from '../../utils/url.ts'
import { useSubscriptions } from '../../store/subscriptions.ts'
export default {
name: 'Search',
@ -62,25 +63,28 @@ export default {
required: true,
},
},
data() {
return {
feeds: [],
loading: false,
}
},
data: () => ({
feeds: [] as PodcastDataInterface[],
loading: false,
timeout: null as NodeJS.Timeout | null,
}),
computed: {
...mapState(useSubscriptions, ['subscriptions']),
...mapState(useSubscriptions, ['getSubByUrl']),
},
watch: {
value() {
this.search()
if (this.timeout) {
clearTimeout(this.timeout)
}
this.timeout = setTimeout(this.search, 200)
},
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
formatLocaleDate,
toUrl,
async addSubscription(url) {
t,
toFeedUrl,
async addSubscription(url: string) {
try {
await axios.post(
generateUrl('/apps/gpoddersync/subscription_change/create'),
@ -93,14 +97,13 @@ export default {
console.error(e)
showError(t('repod', 'Error while adding the feed'))
}
this.fetch()
},
search: debounce(async function value() {
async search() {
try {
this.loading = true
const currentSearch = this.value
const feeds = await axios.get(
const feeds = await axios.get<PodcastDataInterface[]>(
generateUrl('/apps/repod/search?q={value}', {
value: currentSearch,
}),
@ -118,7 +121,7 @@ export default {
this.loading = false
}
}
}, 200),
},
},
}
</script>

View File

@ -4,7 +4,7 @@
<Loading v-if="loading" />
<ul v-if="!loading">
<li v-for="top in tops" :key="top.link">
<router-link :to="toUrl(top.link)">
<router-link :to="toFeedUrl(top.link)">
<img :src="top.imageUrl" :title="top.author" />
</router-link>
</li>
@ -12,12 +12,14 @@
</div>
</template>
<script>
<script lang="ts">
import Loading from '../Atoms/Loading.vue'
import type { PodcastDataInterface } from '../../utils/types.ts'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.js'
import { toUrl } from '../../utils/url.js'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { toFeedUrl } from '../../utils/url.ts'
export default {
name: 'Toplist',
@ -30,12 +32,10 @@ export default {
required: true,
},
},
data() {
return {
loading: true,
tops: [],
}
},
data: () => ({
loading: true,
tops: [] as PodcastDataInterface[],
}),
computed: {
title() {
switch (this.type) {
@ -51,8 +51,8 @@ export default {
async mounted() {
try {
this.loading = true
const tops = await axios.get(
generateUrl(`/apps/repod/toplist/${this.type}`),
const tops = await axios.get<PodcastDataInterface[]>(
generateUrl('/apps/repod/toplist/{type}', { type: this.type }),
)
this.tops = tops.data
} catch (e) {
@ -63,7 +63,7 @@ export default {
}
},
methods: {
toUrl,
toFeedUrl,
},
}
</script>

View File

@ -1,13 +1,13 @@
<template>
<div class="header">
<img class="background" :src="imageUrl" />
<img class="background" :src="feed.imageUrl" />
<div class="content">
<div>
<NcAvatar
:display-name="author || title"
:display-name="feed.author || feed.title"
:is-no-user="true"
:size="128"
:url="imageUrl" />
:url="feed.imageUrl" />
<a class="feed" :href="url" @click.prevent="copyFeed">
<RssIcon :size="20" />
<i>{{ t('repod', 'Copy feed') }}</i>
@ -15,15 +15,15 @@
</div>
<div class="inner">
<div class="infos">
<h2>{{ title }}</h2>
<a :href="link" target="_blank">
<i>{{ author }}</i>
<h2>{{ feed.title }}</h2>
<a :href="feed.link" target="_blank">
<i>{{ feed.author }}</i>
</a>
<br /><br />
<SafeHtml :source="description" />
<SafeHtml :source="feed.description || ''" />
</div>
<NcAppNavigationNew
v-if="!subscriptions.includes(url)"
v-if="!getSubByUrl(url)"
:text="t('repod', 'Subscribe')"
@click="addSubscription">
<template #icon>
@ -35,17 +35,19 @@
</div>
</template>
<script>
<script lang="ts">
import { NcAppNavigationNew, NcAvatar } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import { showError, showSuccess } from '../../utils/toast.js'
import { showError, showSuccess } from '../../utils/toast.ts'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import type { PodcastDataInterface } from '../../utils/types.ts'
import RssIcon from 'vue-material-design-icons/Rss.vue'
import SafeHtml from '../Atoms/SafeHtml.vue'
import axios from '@nextcloud/axios'
import { decodeUrl } from '../../utils/url.js'
import { decodeUrl } from '../../utils/url.ts'
import { generateUrl } from '@nextcloud/router'
import { useSubscriptions } from '../../store/subscriptions.js'
import { t } from '@nextcloud/l10n'
import { useSubscriptions } from '../../store/subscriptions.ts'
export default {
name: 'Banner',
@ -57,35 +59,20 @@ export default {
SafeHtml,
},
props: {
author: {
type: String,
required: true,
},
description: {
type: String,
required: true,
},
imageUrl: {
type: String,
required: true,
},
link: {
type: String,
required: true,
},
title: {
type: String,
feed: {
type: Object as () => PodcastDataInterface,
required: true,
},
},
computed: {
...mapState(useSubscriptions, ['subscriptions']),
...mapState(useSubscriptions, ['getSubByUrl']),
url() {
return decodeUrl(this.$route.params.url)
return decodeUrl(this.$route.params.url as string)
},
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
t,
async addSubscription() {
try {
await axios.post(
@ -99,7 +86,6 @@ export default {
console.error(e)
showError(t('repod', 'Error while adding the feed'))
}
this.fetch()
},
copyFeed() {
@ -143,11 +129,13 @@ export default {
}
.infos {
flex: 1;
overflow: auto;
}
.inner {
display: flex;
flex: 1;
}
@media only screen and (max-width: 768px) {

View File

@ -0,0 +1,221 @@
<template>
<NcListItem
:active="isCurrentEpisode(episode)"
class="episode"
:details="
!oneLine && episode.pubDate
? formatLocaleDate(new Date(episode.pubDate?.date))
: ''
"
:force-display-actions="true"
:name="episode.name"
:one-line="oneLine"
:style="{ opacity: hasEnded(episode) ? 0.4 : 1 }"
@click="modalEpisode = episode">
<template #actions>
<NcActionButton
v-if="!isCurrentEpisode(episode)"
:aria-label="t('repod', 'Play')"
:title="t('repod', 'Play')"
@click="load(episode, url)">
<template #icon>
<PlayIcon :size="20" />
</template>
</NcActionButton>
<NcActionButton
v-if="isCurrentEpisode(episode)"
:aria-label="t('repod', 'Stop')"
:title="t('repod', 'Stop')"
@click="load(null)">
<template #icon>
<StopIcon :size="20" />
</template>
</NcActionButton>
</template>
<template #extra>
<NcActions>
<NcActionButton
v-if="episode.duration"
:aria-label="t('repod', 'Read')"
:disabled="loading"
:model-value="hasEnded(episode)"
:name="t('repod', 'Read')"
:title="t('repod', 'Read')"
@click="markAs(episode, !hasEnded(episode))">
<template #icon>
<PlaylistPlayIcon v-if="!hasEnded(episode)" :size="20" />
<PlaylistRemoveIcon v-if="hasEnded(episode)" :size="20" />
</template>
</NcActionButton>
<NcActionLink
v-if="episode.link"
:href="episode.link"
:name="t('repod', 'Open website')"
target="_blank"
:title="t('repod', 'Open website')">
<template #icon>
<OpenInNewIcon :size="20" />
</template>
</NcActionLink>
<NcActionLink
v-if="episode.url"
:download="filenameFromUrl(episode.url)"
:href="episode.url"
:name="t('repod', 'Download')"
target="_blank"
:title="t('repod', 'Download')">
<template #icon>
<DownloadIcon :size="20" />
</template>
</NcActionLink>
</NcActions>
<NcModal v-if="modalEpisode" @close="modalEpisode = null">
<Modal :episode="episode" />
</NcModal>
</template>
<template #icon>
<NcAvatar
:display-name="episode.name"
:is-no-user="true"
:url="episode.image" />
</template>
<template #indicator>
<NcProgressBar
v-if="episode.action && isListening(episode) && !oneLine"
class="progress"
:value="(episode.action.position * 100) / episode.action.total" />
</template>
<template #subname>
{{ episode.duration }}
</template>
</NcListItem>
</template>
<script lang="ts">
import {
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
} from '@nextcloud/vue'
import {
durationToSeconds,
formatEpisodeTimestamp,
formatLocaleDate,
} from '../../utils/time.ts'
import { hasEnded, isListening } from '../../utils/status.ts'
import { mapActions, mapState } from 'pinia'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
import type { EpisodeInterface } from '../../utils/types.ts'
import Modal from '../Atoms/Modal.vue'
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
import PlayIcon from 'vue-material-design-icons/Play.vue'
import PlaylistPlayIcon from 'vue-material-design-icons/PlaylistPlay.vue'
import PlaylistRemoveIcon from 'vue-material-design-icons/PlaylistRemove.vue'
import StopIcon from 'vue-material-design-icons/Stop.vue'
import axios from '@nextcloud/axios'
import { filenameFromUrl } from '../../utils/url.ts'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Episode',
components: {
DownloadIcon,
Modal,
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
OpenInNewIcon,
PlayIcon,
PlaylistPlayIcon,
PlaylistRemoveIcon,
StopIcon,
},
props: {
episode: {
type: Object as () => EpisodeInterface,
required: true,
},
oneLine: {
type: Boolean,
default: false,
},
url: {
type: String,
required: true,
},
},
data: () => ({
loading: false,
modalEpisode: null as EpisodeInterface | null,
}),
computed: {
...mapState(usePlayer, { playerEpisode: 'episode' }),
},
methods: {
...mapActions(usePlayer, ['load']),
filenameFromUrl,
formatLocaleDate,
hasEnded,
isListening,
t,
isCurrentEpisode(episode: EpisodeInterface) {
return this.playerEpisode?.url === episode.url
},
async markAs(episode: EpisodeInterface, read: boolean) {
try {
this.loading = true
episode.action = {
podcast: this.url,
episode: episode.url,
guid: episode.guid,
action: 'play',
timestamp: formatEpisodeTimestamp(new Date()),
started: episode.action?.started || 0,
position: read ? durationToSeconds(episode.duration || '') : 0,
total: durationToSeconds(episode.duration || ''),
}
await axios.post(
generateUrl('/apps/gpoddersync/episode_action/create'),
[episode.action],
)
if (read && this.isCurrentEpisode(episode)) {
this.load(null)
}
} catch (e) {
console.error(e)
showError(t('repod', 'Could not change the status of the episode'))
} finally {
this.loading = false
}
},
},
}
</script>
<style scoped>
.progress {
margin-top: 0.4rem;
}
</style>
<style>
.episode .list-item-content__name {
max-width: 100%;
}
.episode .list-item-content__subname {
flex-basis: auto;
flex-grow: 0;
}
</style>

View File

@ -2,175 +2,39 @@
<div>
<Loading v-if="loading" />
<ul v-if="!loading">
<NcListItem
<Episode
v-for="episode in filteredEpisodes"
:key="episode.guid"
:active="isCurrentEpisode(episode)"
:details="formatLocaleDate(new Date(episode.pubDate?.date))"
:force-display-actions="true"
:href="$route.href"
:name="episode.name"
:style="{ opacity: hasEnded(episode) ? 0.4 : 1 }"
target="_self"
:title="episode.description"
@click="modalEpisode = episode">
<template #actions>
<NcActionButton
v-if="!isCurrentEpisode(episode)"
:aria-label="t('repod', 'Play')"
:title="t('repod', 'Play')"
@click="load(episode, url)">
<template #icon>
<PlayIcon :size="20" />
</template>
</NcActionButton>
<NcActionButton
v-if="isCurrentEpisode(episode)"
:aria-label="t('repod', 'Stop')"
:title="t('repod', 'Stop')"
@click="load(null)">
<template #icon>
<StopIcon :size="20" />
</template>
</NcActionButton>
</template>
<template #extra>
<NcActions>
<NcActionButton
v-if="episode.duration && !hasEnded(episode)"
:aria-label="t('repod', 'Mark as read')"
:disabled="loadingAction"
:name="t('repod', 'Mark as read')"
:title="t('repod', 'Mark as read')"
@click="markAs(episode, true)">
<template #icon>
<PlaylistPlayIcon :size="20" />
</template>
</NcActionButton>
<NcActionButton
v-if="episode.duration && hasEnded(episode)"
:aria-label="t('repod', 'Mark as unread')"
:disabled="loadingAction"
:name="t('repod', 'Mark as unread')"
:title="t('repod', 'Mark as unread')"
@click="markAs(episode, false)">
<template #icon>
<PlaylistRemoveIcon :size="20" />
</template>
</NcActionButton>
<NcActionLink
v-if="episode.link"
:href="episode.link"
:name="t('repod', 'Open website')"
target="_blank"
:title="t('repod', 'Open website')">
<template #icon>
<OpenInNewIcon :size="20" />
</template>
</NcActionLink>
<NcActionLink
v-if="episode.url"
:download="filenameFromUrl(episode.url)"
:href="episode.url"
:name="t('repod', 'Download')"
target="_blank"
:title="t('repod', 'Download')">
<template #icon>
<DownloadIcon :size="20" />
</template>
</NcActionLink>
</NcActions>
</template>
<template #icon>
<NcAvatar
:display-name="episode.name"
:is-no-user="true"
:url="episode.image" />
</template>
<template #indicator>
<NcProgressBar
v-if="isListening(episode)"
class="progress"
:value="
(episode.action.position * 100) / episode.action.total
" />
</template>
<template #subname>
{{ episode.duration }}
</template>
</NcListItem>
:episode="episode"
:url="url" />
</ul>
<NcModal v-if="modalEpisode" @close="modalEpisode = null">
<Modal
:description="modalEpisode.description"
:image="modalEpisode.image"
:link="modalEpisode.link"
:name="modalEpisode.name"
:size="modalEpisode.size"
:title="modalEpisode.title"
:url="modalEpisode.url" />
</NcModal>
</div>
</template>
<script>
import {
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
} from '@nextcloud/vue'
import { decodeUrl, filenameFromUrl } from '../../utils/url.js'
import {
durationToSeconds,
formatEpisodeTimestamp,
formatLocaleDate,
} from '../../utils/time.js'
import { mapActions, mapState } from 'pinia'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
<script lang="ts">
import { hasEnded, isListening } from '../../utils/status.ts'
import Episode from './Episode.vue'
import type { EpisodeInterface } from '../../utils/types.ts'
import Loading from '../Atoms/Loading.vue'
import Modal from '../Atoms/Modal.vue'
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
import PlayIcon from 'vue-material-design-icons/Play.vue'
import PlaylistPlayIcon from 'vue-material-design-icons/PlaylistPlay.vue'
import PlaylistRemoveIcon from 'vue-material-design-icons/PlaylistRemove.vue'
import StopIcon from 'vue-material-design-icons/Stop.vue'
import axios from '@nextcloud/axios'
import { decodeUrl } from '../../utils/url.ts'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.js'
import { usePlayer } from '../../store/player.js'
import { useSettings } from '../../store/settings.js'
import { mapState } from 'pinia'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { usePlayer } from '../../store/player.ts'
import { useSettings } from '../../store/settings.ts'
export default {
name: 'Episodes',
components: {
DownloadIcon,
Episode,
Loading,
Modal,
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
OpenInNewIcon,
PlayIcon,
PlaylistPlayIcon,
PlaylistRemoveIcon,
StopIcon,
},
data() {
return {
episodes: [],
loading: true,
loadingAction: false,
modalEpisode: null,
}
},
data: () => ({
episodes: [] as EpisodeInterface[],
loading: true,
}),
computed: {
...mapState(usePlayer, ['episode']),
...mapState(useSettings, ['filters']),
@ -179,27 +43,24 @@ export default {
if (!this.filters.listened && this.hasEnded(episode)) {
return false
}
if (!this.filters.listening && this.isListening(episode)) {
return false
}
if (!this.filters.unlistened && !this.isListening(episode)) {
return false
}
return true
})
},
url() {
return decodeUrl(this.$route.params.url)
return decodeUrl(this.$route.params.url as string)
},
},
watch: {
episode() {
if (this.episode) {
this.episodes = this.episodes.map((e) =>
e.url === this.episode.url ? this.episode : e,
e.url === this.episode?.url ? this.episode : e,
)
}
},
@ -207,13 +68,15 @@ export default {
async mounted() {
try {
this.loading = true
const episodes = await axios.get(
const episodes = await axios.get<EpisodeInterface[]>(
generateUrl('/apps/repod/episodes/list?url={url}', {
url: this.url,
}),
)
this.episodes = [...episodes.data].sort(
(a, b) => new Date(b.pubDate?.date) - new Date(a.pubDate?.date),
(a, b) =>
new Date(b.pubDate?.date || '').getTime() -
new Date(a.pubDate?.date || '').getTime(),
)
} catch (e) {
console.error(e)
@ -223,63 +86,8 @@ export default {
}
},
methods: {
...mapActions(usePlayer, ['load']),
filenameFromUrl,
formatLocaleDate,
hasEnded(episode) {
return (
episode.action &&
(episode.action.action === 'DELETE' ||
(episode.action.position > 0 &&
episode.action.total > 0 &&
episode.action.position >= episode.action.total))
)
},
isCurrentEpisode(episode) {
return this.episode && this.episode.url === episode.url
},
isListening(episode) {
return (
episode.action &&
episode.action.action &&
episode.action.action.toLowerCase() === 'play' &&
episode.action.position > 0 &&
!this.hasEnded(episode)
)
},
async markAs(episode, read) {
try {
this.loadingAction = true
episode.action = {
podcast: this.url,
episode: episode.url,
guid: episode.guid,
action: 'play',
timestamp: formatEpisodeTimestamp(new Date()),
started: episode.action ? episode.action.started : 0,
position: read ? durationToSeconds(episode.duration) : 0,
total: durationToSeconds(episode.duration),
}
await axios.post(
generateUrl('/apps/gpoddersync/episode_action/create'),
[episode.action],
)
if (read && this.episode && episode.url === this.episode.url) {
this.load(null)
}
} catch (e) {
console.error(e)
showError(t('repod', 'Could not change the status of the episode'))
} finally {
this.loadingAction = false
}
},
hasEnded,
isListening,
},
}
</script>
<style scoped>
.progress {
margin-top: 0.4rem;
}
</style>

View File

@ -0,0 +1,106 @@
<template>
<NcGuestContent class="guest">
<Loading v-if="!feed.data" />
<NcAvatar
v-if="feed.data"
class="avatar"
:display-name="feed.data.author || feed.data.title"
:is-no-user="true"
:size="222"
:title="feed.data.author"
:url="feed.data.imageUrl" />
<div v-if="feed.data" class="list">
<h2 class="title">{{ feed.data.title }}</h2>
<Loading v-if="loading" />
<ul v-if="!loading">
<Episode
v-for="episode in episodes"
:key="episode.guid"
:episode="episode"
:one-line="true"
:url="feed.metrics.url" />
</ul>
</div>
</NcGuestContent>
</template>
<script lang="ts">
import type { EpisodeInterface, SubscriptionInterface } from '../../utils/types.ts'
import { NcAvatar, NcGuestContent } from '@nextcloud/vue'
import Episode from './Episode.vue'
import Loading from '../Atoms/Loading.vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { hasEnded } from '../../utils/status.ts'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
export default {
name: 'Favorite',
components: {
Episode,
Loading,
NcAvatar,
NcGuestContent,
},
props: {
feed: {
type: Object as () => SubscriptionInterface,
required: true,
},
},
data: () => ({
episodes: [] as EpisodeInterface[],
loading: true,
}),
async mounted() {
try {
this.loading = true
const episodes = await axios.get<EpisodeInterface[]>(
generateUrl('/apps/repod/episodes/list?url={url}', {
url: this.feed.metrics.url,
}),
)
this.episodes = [...episodes.data]
.sort(
(a, b) =>
new Date(b.pubDate?.date || '').getTime() -
new Date(a.pubDate?.date || '').getTime(),
)
.filter((episode) => !this.hasEnded(episode))
.slice(0, 4)
} catch (e) {
console.error(e)
showError(t('repod', 'Could not fetch episodes'))
} finally {
this.loading = false
}
},
methods: {
hasEnded,
},
}
</script>
<style scoped>
.guest {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin: 20px !important;
}
.list {
flex: 1;
}
.title {
text-align: center;
}
@media only screen and (max-width: 768px) {
.avatar {
display: none;
}
}
</style>

View File

@ -13,7 +13,7 @@
</div>
</template>
<script>
<script lang="ts">
import Controls from './Controls.vue'
import Infos from './Infos.vue'
import Loading from '../Atoms/Loading.vue'
@ -21,7 +21,7 @@ import ProgressBar from './ProgressBar.vue'
import Timer from './Timer.vue'
import Volume from './Volume.vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Bar',
@ -78,7 +78,7 @@ export default {
@media only screen and (max-width: 768px) {
.infos {
flex: 2;
flex: 1;
}
.timer,

View File

@ -1,27 +1,53 @@
<template>
<div class="controls">
<PauseIcon v-if="!paused" class="pointer" :size="50" @click="pause" />
<PlayIcon v-if="paused" class="pointer" :size="50" @click="play" />
<Rewind10Icon
class="pointer rewind"
:size="20"
:title="t('repod', 'Rewind 10 seconds')"
@click="seek((currentTime ?? 0) - 10)" />
<PauseIcon
v-if="!paused"
class="pointer"
:size="50"
:title="t('repod', 'Pause')"
@click="pause" />
<PlayIcon
v-if="paused"
class="pointer"
:size="50"
:title="t('repod', 'Play')"
@click="play" />
<FastForward30Icon
class="pointer forward"
:size="20"
:title="t('repod', 'Fast forward 30 seconds')"
@click="seek((currentTime ?? 0) + 30)" />
</div>
</template>
<script>
<script lang="ts">
import { mapActions, mapState } from 'pinia'
import FastForward30Icon from 'vue-material-design-icons/FastForward30.vue'
import PauseIcon from 'vue-material-design-icons/Pause.vue'
import PlayIcon from 'vue-material-design-icons/Play.vue'
import { usePlayer } from '../../store/player.js'
import Rewind10Icon from 'vue-material-design-icons/Rewind10.vue'
import { t } from '@nextcloud/l10n'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Controls',
components: {
FastForward30Icon,
PauseIcon,
PlayIcon,
Rewind10Icon,
},
computed: {
...mapState(usePlayer, ['paused']),
...mapState(usePlayer, ['currentTime', 'paused']),
},
methods: {
...mapActions(usePlayer, ['play', 'pause']),
...mapActions(usePlayer, ['play', 'pause', 'seek']),
t,
},
}
</script>
@ -29,9 +55,17 @@ export default {
<style scoped>
.controls {
display: flex;
gap: 0.5rem;
}
.pointer {
cursor: pointer;
}
@media only screen and (max-width: 768px) {
.forward,
.rewind {
display: none;
}
}
</style>

View File

@ -1,30 +1,23 @@
<template>
<div class="root">
<div v-if="episode && podcastUrl" class="root">
<strong class="pointer" @click="modal = true">
{{ episode.name }}
</strong>
<router-link :to="hash">
<router-link :to="toFeedUrl(podcastUrl)">
<i>{{ episode.title }}</i>
</router-link>
<NcModal v-if="modal" @close="modal = false">
<Modal
:description="episode.description"
:image="episode.image"
:link="episode.link"
:name="episode.name"
:size="episode.size"
:title="episode.title"
:url="episode.url" />
<Modal :episode="episode" />
</NcModal>
</div>
</template>
<script>
<script lang="ts">
import Modal from '../Atoms/Modal.vue'
import { NcModal } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { toUrl } from '../../utils/url.js'
import { usePlayer } from '../../store/player.js'
import { toFeedUrl } from '../../utils/url.ts'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Infos',
@ -32,16 +25,14 @@ export default {
Modal,
NcModal,
},
data() {
return {
modal: false,
}
},
data: () => ({
modal: false,
}),
computed: {
...mapState(usePlayer, ['episode', 'podcastUrl']),
hash() {
return toUrl(this.podcastUrl)
},
},
methods: {
toFeedUrl,
},
}
</script>

View File

@ -1,16 +1,19 @@
<template>
<input
v-if="duration"
class="progress"
:max="duration"
min="0"
type="range"
:value="currentTime"
@change="(event) => seek(event.target.value)" />
@change="
(event) => seek(parseInt((event.target as HTMLInputElement).value))
" />
</template>
<script>
<script lang="ts">
import { mapActions, mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'ProgressBar',

View File

@ -1,15 +1,15 @@
<template>
<div>
<div v-if="currentTime && duration" class="root">
<span>{{ formatTimer(new Date(currentTime * 1000)) }}</span>
<span>/</span>
<span>{{ formatTimer(new Date(duration * 1000)) }}</span>
</div>
</template>
<script>
import { formatTimer } from '../../utils/time.js'
<script lang="ts">
import { formatTimer } from '../../utils/time.ts'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Timer',
@ -23,7 +23,7 @@ export default {
</script>
<style scoped>
div {
.root {
align-items: center;
display: flex;
gap: 5px;

View File

@ -4,21 +4,25 @@
v-if="volume > 0.7"
class="pointer"
:size="30"
:title="t('repod', 'Mute')"
@click="mute" />
<VolumeLowIcon
v-if="volume > 0 && volume <= 0.3"
class="pointer"
:size="30"
:title="t('repod', 'Mute')"
@click="mute" />
<VolumeMediumIcon
v-if="volume > 0.3 && volume <= 0.7"
class="pointer"
:size="30"
:title="t('repod', 'Mute')"
@click="mute" />
<VolumeMuteIcon
v-if="volume === 0"
class="pointer"
:size="30"
:title="t('repod', 'Unmute')"
@click="setVolume(volumeMuted)" />
<input
max="1"
@ -26,17 +30,21 @@
step="0.1"
type="range"
:value="volume"
@change="(event) => setVolume(event.target.value)" />
@change="
(event) =>
setVolume(parseFloat((event.target as HTMLInputElement).value))
" />
</div>
</template>
<script>
<script lang="ts">
import { mapActions, mapState } from 'pinia'
import VolumeHighIcon from 'vue-material-design-icons/VolumeHigh.vue'
import VolumeLowIcon from 'vue-material-design-icons/VolumeLow.vue'
import VolumeMediumIcon from 'vue-material-design-icons/VolumeMedium.vue'
import VolumeMuteIcon from 'vue-material-design-icons/VolumeMute.vue'
import { usePlayer } from '../../store/player.js'
import { t } from '@nextcloud/l10n'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Volume',
@ -46,11 +54,9 @@ export default {
VolumeMediumIcon,
VolumeMuteIcon,
},
data() {
return {
volumeMuted: 0,
}
},
data: () => ({
volumeMuted: 0,
}),
computed: {
...mapState(usePlayer, ['volume']),
},
@ -60,6 +66,7 @@ export default {
this.volumeMuted = this.volume
this.setVolume(0)
},
t,
},
}
</script>

View File

@ -8,10 +8,11 @@
</NcAppNavigationItem>
</template>
<script>
<script lang="ts">
import ExportIcon from 'vue-material-design-icons/Export.vue'
import { NcAppNavigationItem } from '@nextcloud/vue'
import { generateUrl } from '@nextcloud/router'
import { t } from '@nextcloud/l10n'
export default {
name: 'Export',
@ -21,6 +22,7 @@ export default {
},
methods: {
generateUrl,
t,
},
}
</script>

View File

@ -1,6 +1,5 @@
<template>
<NcAppNavigationItem
:allow-collapse="true"
menu-placement="top"
:name="t('repod', 'Filtering episodes')">
<template #actions>
@ -39,13 +38,13 @@
</NcAppNavigationItem>
</template>
<script>
<script lang="ts">
import { NcActionCheckbox, NcAppNavigationItem } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import FilterIcon from 'vue-material-design-icons/Filter.vue'
import FilterSettingsIcon from 'vue-material-design-icons/FilterSettings.vue'
import { getCookie } from '../../utils/cookies.js'
import { useSettings } from '../../store/settings.js'
import { t } from '@nextcloud/l10n'
import { useSettings } from '../../store/settings.ts'
export default {
name: 'Filters',
@ -65,14 +64,9 @@ export default {
)
},
},
mounted() {
try {
const filters = getCookie('repod.filters')
this.filters = JSON.parse(filters)
} catch {}
},
methods: {
...mapActions(useSettings, ['setFilters']),
t,
},
}
</script>

View File

@ -29,12 +29,13 @@
</NcAppNavigationItem>
</template>
<script>
<script lang="ts">
import { NcAppNavigationItem, NcModal } from '@nextcloud/vue'
import ImportIcon from 'vue-material-design-icons/Import.vue'
import Loading from '../Atoms/Loading.vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { t } from '@nextcloud/l10n'
export default {
name: 'Import',
@ -44,19 +45,19 @@ export default {
NcAppNavigationItem,
NcModal,
},
data() {
return {
loading: false,
modal: false,
}
},
data: () => ({
loading: false,
modal: false,
}),
methods: {
generateUrl,
async importOpml(event) {
t,
async importOpml(event: Event) {
try {
const formData = new FormData(event.target)
this.importLoading = true
await axios.post(event.target.action, formData)
const target = event.target as HTMLFormElement
const formData = new FormData(target)
this.loading = true
await axios.post(target.action, formData)
} catch (e) {
console.error(e)
} finally {

View File

@ -8,9 +8,10 @@
</NcAppNavigationItem>
</template>
<script>
<script lang="ts">
import { NcAppNavigationItem } from '@nextcloud/vue'
import StarIcon from 'vue-material-design-icons/Star.vue'
import { t } from '@nextcloud/l10n'
export default {
name: 'Rate',
@ -18,5 +19,8 @@ export default {
NcAppNavigationItem,
StarIcon,
},
methods: {
t,
},
}
</script>

View File

@ -1,6 +1,7 @@
<template>
<NcAppNavigationSettings>
<Filters />
<Sleep />
<Speed />
<Import />
<Export />
@ -8,12 +9,13 @@
</NcAppNavigationSettings>
</template>
<script>
<script lang="ts">
import Export from './Export.vue'
import Filters from './Filters.vue'
import Import from './Import.vue'
import { NcAppNavigationSettings } from '@nextcloud/vue'
import Rate from './Rate.vue'
import Sleep from './Sleep.vue'
import Speed from './Speed.vue'
export default {
@ -24,6 +26,7 @@ export default {
Import,
NcAppNavigationSettings,
Rate,
Sleep,
Speed,
},
}

View File

@ -0,0 +1,103 @@
<template>
<NcAppNavigationItem menu-placement="top" :name="t('repod', 'Sleep timer')">
<template #actions>
<NcActionInput
v-if="!sleep"
v-model="input"
:label="t('repod', 'Minutes')"
:label-outside="false"
type="number"
@submit="setTimer">
<template #icon>
<ClockVue :size="20" />
</template>
</NcActionInput>
</template>
<template #extra>
<div v-if="sleep" class="extra">
{{ label }}
<BellCancel class="pointer" :size="20" @click="stopTimer" />
</div>
</template>
<template #icon>
<BellSleepIcon v-if="sleep" :size="20" />
<BellSleepOutlineIcon v-if="!sleep" :size="20" />
</template>
</NcAppNavigationItem>
</template>
<script lang="ts">
import { NcActionInput, NcAppNavigationItem } from '@nextcloud/vue'
import { n, t } from '@nextcloud/l10n'
import BellCancel from 'vue-material-design-icons/BellCancel.vue'
import BellSleepIcon from 'vue-material-design-icons/BellSleep.vue'
import BellSleepOutlineIcon from 'vue-material-design-icons/BellSleepOutline.vue'
import ClockVue from 'vue-material-design-icons/Clock.vue'
import { mapActions } from 'pinia'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Sleep',
components: {
BellCancel,
BellSleepIcon,
BellSleepOutlineIcon,
ClockVue,
NcActionInput,
NcAppNavigationItem,
},
data: () => ({
input: 10,
sleep: null as NodeJS.Timeout | null,
timer: 0,
}),
computed: {
label() {
if (this.timer > 60) {
return this.n(
'repod',
'%n min',
'%n mins',
Math.round(this.timer / 60),
)
} else {
return this.n('repod', '%n sec', '%n secs', this.timer)
}
},
},
methods: {
...mapActions(usePlayer, ['stop']),
n,
t,
setTimer() {
this.timer = this.input * 60
this.sleep = setInterval(() => {
if (this.timer > 0) {
this.timer--
} else if (this.sleep) {
this.stopTimer()
this.stop()
}
}, 1000)
},
stopTimer() {
if (this.sleep) {
clearTimeout(this.sleep)
this.sleep = null
}
},
},
}
</script>
<style scoped>
.extra {
align-items: center;
display: flex;
gap: 0.5rem;
}
.pointer {
cursor: pointer;
}
</style>

View File

@ -15,7 +15,7 @@
</NcAppNavigationItem>
</template>
<script>
<script lang="ts">
import { NcAppNavigationItem, NcCounterBubble } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import MinusIcon from 'vue-material-design-icons/Minus.vue'
@ -23,7 +23,8 @@ import PlusIcon from 'vue-material-design-icons/Plus.vue'
import SpeedometerIcon from 'vue-material-design-icons/Speedometer.vue'
import SpeedometerMediumIcon from 'vue-material-design-icons/SpeedometerMedium.vue'
import SpeedometerSlowIcon from 'vue-material-design-icons/SpeedometerSlow.vue'
import { usePlayer } from '../../store/player.js'
import { t } from '@nextcloud/l10n'
import { usePlayer } from '../../store/player.ts'
export default {
name: 'Speed',
@ -41,8 +42,9 @@ export default {
},
methods: {
...mapActions(usePlayer, ['setRate']),
changeRate(diff) {
const newRate = (this.rate + diff).toPrecision(2)
t,
changeRate(diff: number) {
const newRate = parseFloat((this.rate + diff).toPrecision(2))
this.setRate(newRate > 0 ? newRate : this.rate)
},
},

View File

@ -1,109 +0,0 @@
<template>
<NcAppNavigationItem
:loading="loading"
:name="feed ? feed.title : url"
:to="hash">
<template #actions>
<NcActionButton
:aria-label="t(`core`, 'Delete')"
:name="t(`core`, 'Delete')"
:title="t(`core`, 'Delete')"
@click="deleteSubscription">
<template #icon>
<DeleteIcon :size="20" />
</template>
</NcActionButton>
</template>
<template #icon>
<NcAvatar
v-if="feed"
:display-name="feed.author || feed.title"
:is-no-user="true"
:url="feed.imageUrl" />
<AlertIcon v-if="failed" />
</template>
</NcAppNavigationItem>
</template>
<script>
import { NcActionButton, NcAppNavigationItem, NcAvatar } from '@nextcloud/vue'
import AlertIcon from 'vue-material-design-icons/Alert.vue'
import DeleteIcon from 'vue-material-design-icons/Delete.vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { mapActions } from 'pinia'
import { showError } from '../../utils/toast.js'
import { toUrl } from '../../utils/url.js'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Item',
components: {
AlertIcon,
DeleteIcon,
NcActionButton,
NcAppNavigationItem,
NcAvatar,
},
props: {
url: {
type: String,
required: true,
},
},
data() {
return {
failed: false,
loading: true,
feed: null,
}
},
computed: {
hash() {
return toUrl(this.url)
},
},
async mounted() {
try {
const podcastData = await axios.get(
generateUrl(
'/apps/gpoddersync/personal_settings/podcast_data?url={url}',
{
url: this.url,
},
),
)
this.feed = podcastData.data.data
} catch (e) {
this.failed = true
console.error(e)
} finally {
this.loading = false
}
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
async deleteSubscription() {
if (
confirm(
t('repod', 'Are you sure you want to delete this subscription?'),
)
) {
try {
this.loading = true
await axios.post(
generateUrl('/apps/gpoddersync/subscription_change/create'),
{ add: [], remove: [this.url] },
)
} catch (e) {
console.error(e)
showError(t('repod', 'Error while removing the feed'))
} finally {
this.loading = false
this.fetch()
}
}
},
},
}
</script>

View File

@ -0,0 +1,149 @@
<template>
<NcAppNavigationItem
:loading="loading"
:name="feed?.data?.title || url"
:to="toFeedUrl(url)">
<template #actions>
<NcActionButton
:aria-label="t('repod', 'Favorite')"
:model-value="feed?.isFavorite"
:name="t('repod', 'Favorite')"
:title="t('repod', 'Favorite')"
@update:modelValue="switchFavorite($event)">
<template #icon>
<StarPlusIcon v-if="!feed?.isFavorite" :size="20" />
<StarRemoveIcon v-if="feed?.isFavorite" :size="20" />
</template>
</NcActionButton>
<NcActionButton
:aria-label="t(`core`, 'Delete')"
:name="t(`core`, 'Delete')"
:title="t(`core`, 'Delete')"
@click="deleteSubscription">
<template #icon>
<DeleteIcon :size="20" />
</template>
</NcActionButton>
</template>
<template #icon>
<NcAvatar
:display-name="feed?.data?.author || feed?.data?.title"
:is-no-user="true"
:title="feed?.data?.author"
:url="feed?.data?.imageUrl" />
<StarIcon v-if="feed?.isFavorite" class="star" :size="20" />
<AlertIcon v-if="failed" />
</template>
</NcAppNavigationItem>
</template>
<script lang="ts">
import { NcActionButton, NcAppNavigationItem, NcAvatar } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import AlertIcon from 'vue-material-design-icons/Alert.vue'
import DeleteIcon from 'vue-material-design-icons/Delete.vue'
import type { PersonalSettingsPodcastDataInterface } from '../../utils/types.ts'
import StarIcon from 'vue-material-design-icons/Star.vue'
import StarPlusIcon from 'vue-material-design-icons/StarPlus.vue'
import StarRemoveIcon from 'vue-material-design-icons/StarRemove.vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { toFeedUrl } from '../../utils/url.ts'
import { useSubscriptions } from '../../store/subscriptions.ts'
export default {
name: 'Subscription',
components: {
AlertIcon,
DeleteIcon,
NcActionButton,
NcAppNavigationItem,
NcAvatar,
StarIcon,
StarPlusIcon,
StarRemoveIcon,
},
props: {
url: {
type: String,
required: true,
},
},
data: () => ({
failed: false,
loading: true,
}),
computed: {
...mapState(useSubscriptions, ['getSubByUrl', 'subs']),
feed() {
return this.getSubByUrl(this.url)
},
},
async mounted() {
try {
const podcastData =
await axios.get<PersonalSettingsPodcastDataInterface>(
generateUrl(
'/apps/gpoddersync/personal_settings/podcast_data?url={url}',
{
url: this.url,
},
),
)
this.addMetadatas(this.url, podcastData.data.data)
} catch (e) {
this.failed = true
console.error(e)
} finally {
this.loading = false
}
},
methods: {
...mapActions(useSubscriptions, ['fetch', 'addMetadatas', 'setFavorite']),
t,
toFeedUrl,
async deleteSubscription() {
if (
confirm(
t('repod', 'Are you sure you want to delete this subscription?'),
)
) {
try {
this.loading = true
await axios.post(
generateUrl('/apps/gpoddersync/subscription_change/create'),
{ add: [], remove: [this.url] },
)
} catch (e) {
console.error(e)
showError(t('repod', 'Error while removing the feed'))
} finally {
this.setFavorite(this.url, false)
this.loading = false
this.fetch()
}
}
},
switchFavorite(value: boolean) {
if (value) {
if (this.subs.filter((sub) => sub.isFavorite).length >= 10) {
showError(t('repod', 'You can only have 10 favorites'))
return
}
}
this.setFavorite(this.url, value)
},
},
}
</script>
<style scoped>
.star {
bottom: 2px;
color: yellow;
left: 22px;
position: absolute;
}
</style>

View File

@ -2,7 +2,7 @@
<AppNavigation>
<template #list>
<NcAppContentList>
<router-link to="/">
<router-link to="/discover">
<NcAppNavigationNew :text="t('repod', 'Add a podcast')">
<template #icon>
<PlusIcon :size="20" />
@ -11,10 +11,14 @@
</router-link>
<Loading v-if="loading" />
<NcAppNavigationList v-if="!loading">
<Item
v-for="subscriptionUrl of subscriptions"
:key="subscriptionUrl"
:url="subscriptionUrl" />
<Subscription
v-for="sub of subs.filter((sub) => sub.isFavorite)"
:key="sub.metrics.url"
:url="sub.metrics.url" />
<Subscription
v-for="sub of subs.filter((sub) => !sub.isFavorite)"
:key="sub.metrics.url"
:url="sub.metrics.url" />
</NcAppNavigationList>
</NcAppContentList>
</template>
@ -24,7 +28,7 @@
</AppNavigation>
</template>
<script>
<script lang="ts">
import {
NcAppContentList,
NcAppNavigationList,
@ -32,32 +36,31 @@ import {
} from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import AppNavigation from '../Atoms/AppNavigation.vue'
import Item from './Item.vue'
import Loading from '../Atoms/Loading.vue'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import Settings from '../Settings/Settings.vue'
import { showError } from '../../utils/toast.js'
import { useSubscriptions } from '../../store/subscriptions.js'
import Subscription from './Subscription.vue'
import { showError } from '../../utils/toast.ts'
import { t } from '@nextcloud/l10n'
import { useSubscriptions } from '../../store/subscriptions.ts'
export default {
name: 'Subscriptions',
components: {
AppNavigation,
Item,
Loading,
NcAppContentList,
NcAppNavigationList,
NcAppNavigationNew,
PlusIcon,
Settings,
Subscription,
},
data() {
return {
loading: true,
}
},
data: () => ({
loading: true,
}),
computed: {
...mapState(useSubscriptions, ['subscriptions']),
...mapState(useSubscriptions, ['subs']),
},
async mounted() {
try {
@ -71,6 +74,7 @@ export default {
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
t,
},
}
</script>

View File

@ -1,13 +1,12 @@
import { n, t } from '@nextcloud/l10n'
import '@formatjs/intl-segmenter/polyfill'
import App from './App.vue'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router.js'
import router from './router.ts'
const Vue = createApp(App)
const pinia = createPinia()
Vue.mixin({ methods: { t, n } })
Vue.use(pinia)
Vue.use(router)
Vue.mount('#content')

View File

@ -1,17 +1,22 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import Discover from './views/Discover.vue'
import Feed from './views/Feed.vue'
import Home from './views/Home.vue'
import { generateUrl } from '@nextcloud/router'
const router = createRouter({
history: createWebHashHistory(generateUrl('apps/repod')),
history: createWebHistory(generateUrl('apps/repod')),
routes: [
{
path: '/',
component: Home,
},
{
path: '/discover',
component: Discover,
},
{
path: '/:url',
path: '/feed/:url',
component: Feed,
},
],

View File

@ -1,24 +1,32 @@
import type { EpisodeActionInterface, EpisodeInterface } from '../utils/types.ts'
import { getCookie, setCookie } from '../utils/cookies.ts'
import axios from '@nextcloud/axios'
import { defineStore } from 'pinia'
import { formatEpisodeTimestamp } from '../utils/time.js'
import { formatEpisodeTimestamp } from '../utils/time.ts'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../utils/toast.ts'
import { t } from '@nextcloud/l10n'
const audio = new Audio()
export const usePlayer = defineStore('player', {
state: () => ({
currentTime: null,
duration: null,
episode: null,
currentTime: null as number | null,
duration: null as number | null,
episode: null as EpisodeInterface | null,
loaded: false,
paused: null,
podcastUrl: null,
paused: true,
playCount: 0,
podcastUrl: null as string | null,
volume: 1,
rate: 1,
started: 0,
}),
actions: {
init() {
audio.playbackRate = parseFloat(getCookie('repod.rate') || '1')
audio.volume = parseFloat(getCookie('repod.volume') || '1')
audio.ondurationchange = () => (this.duration = audio.duration)
audio.onended = () => this.stop()
audio.onloadeddata = () => (this.loaded = true)
@ -28,28 +36,38 @@ export const usePlayer = defineStore('player', {
audio.onseeked = () => (this.currentTime = audio.currentTime)
audio.ontimeupdate = () => (this.currentTime = audio.currentTime)
audio.onvolumechange = () => (this.volume = audio.volume)
},
async load(episode, podcastUrl) {
this.episode = episode
this.podcastUrl = podcastUrl
if (this.episode) {
setInterval(this.act, 40000)
setInterval(this.conflict, 1000)
},
act() {
if (this.paused === false) {
this.time()
}
},
conflict() {
this.playCount = 0
},
async load(episode: EpisodeInterface | null, podcastUrl?: string) {
this.episode = episode
this.podcastUrl = podcastUrl || null
if (this.episode?.url) {
audio.src = this.episode.url
audio.load()
try {
const action = await axios.get(
const action = await axios.get<EpisodeActionInterface>(
generateUrl('/apps/repod/episodes/action?url={url}', {
url: this.episode.url,
}),
)
this.episode.action = action
this.episode.action = action.data
} catch {}
if (
this.episode.action &&
this.episode.action.position &&
this.episode.action.position < this.episode.action.total
) {
audio.currentTime = this.episode.action.position
@ -69,11 +87,17 @@ export const usePlayer = defineStore('player', {
this.time()
},
play() {
audio.play()
this.paused = false
this.started = audio.currentTime
this.playCount++
if (this.playCount > 10) {
showError(t('repod', 'A browser extension conflict with RePod'))
} else {
audio.play()
this.paused = false
this.started = audio.currentTime
}
},
seek(currentTime) {
seek(currentTime: number) {
audio.currentTime = currentTime
this.time()
},
@ -82,6 +106,10 @@ export const usePlayer = defineStore('player', {
this.episode = null
},
time() {
if (!this.podcastUrl || !this.episode?.url) {
return
}
this.episode.action = {
podcast: this.podcastUrl,
episode: this.episode.url,
@ -92,15 +120,18 @@ export const usePlayer = defineStore('player', {
position: Math.round(audio.currentTime),
total: Math.round(audio.duration),
}
axios.post(generateUrl('/apps/gpoddersync/episode_action/create'), [
this.episode.action,
])
},
setVolume(volume) {
setVolume(volume: number) {
audio.volume = volume
setCookie('repod.volume', volume.toString(), 365)
},
setRate(rate) {
setRate(rate: number) {
audio.playbackRate = rate
setCookie('repod.rate', rate.toString(), 365)
},
},
})

View File

@ -1,18 +0,0 @@
import { defineStore } from 'pinia'
import { setCookie } from '../utils/cookies.js'
export const useSettings = defineStore('settings', {
state: () => ({
filters: {
listened: true,
listening: true,
unlistened: true,
},
}),
actions: {
setFilters(filters) {
this.filters = { ...this.filters, ...filters }
setCookie('repod.filters', JSON.stringify(this.filters), 365)
},
},
})

37
src/store/settings.ts Normal file
View File

@ -0,0 +1,37 @@
import { getCookie, setCookie } from '../utils/cookies.ts'
import type { FiltersInterface } from '../utils/types.ts'
import { defineStore } from 'pinia'
export const useSettings = defineStore('settings', {
state: () => {
try {
const filters = JSON.parse(getCookie('repod.filters') || '{}') || {}
if (!filters.length) {
throw new Error('Empty cookie')
}
return {
filters: {
listened: filters.listened,
listening: filters.listening,
unlistened: filters.unlistened,
},
}
} catch {
return {
filters: {
listened: true,
listening: true,
unlistened: true,
},
}
}
},
actions: {
setFilters(filters: Partial<FiltersInterface>) {
this.filters = { ...this.filters, ...filters }
setCookie('repod.filters', JSON.stringify(this.filters), 365)
},
},
})

View File

@ -1,20 +0,0 @@
import axios from '@nextcloud/axios'
import { defineStore } from 'pinia'
import { generateUrl } from '@nextcloud/router'
export const useSubscriptions = defineStore('subscriptions', {
state: () => ({
subscriptions: [],
}),
actions: {
async fetch() {
const metrics = await axios.get(
generateUrl('/apps/gpoddersync/personal_settings/metrics'),
)
const subs = [...metrics.data.subscriptions].sort(
(a, b) => b.listenedSeconds - a.listenedSeconds,
)
this.subscriptions = subs.map((sub) => sub.url)
},
},
})

View File

@ -0,0 +1,59 @@
import type {
PersonalSettingsMetricsInterface,
PodcastDataInterface,
SubscriptionInterface,
} from '../utils/types.ts'
import { getCookie, setCookie } from '../utils/cookies.ts'
import axios from '@nextcloud/axios'
import { defineStore } from 'pinia'
import { generateUrl } from '@nextcloud/router'
export const useSubscriptions = defineStore('subscriptions', {
state: () => ({
subs: [] as SubscriptionInterface[],
}),
getters: {
getSubByUrl: (state) => (url: string) =>
state.subs.find((sub) => sub.metrics.url === url),
},
actions: {
async fetch() {
let favorites: string[] = []
try {
favorites = JSON.parse(getCookie('repod.favorites') || '[]') || []
} catch {}
const metrics = await axios.get<PersonalSettingsMetricsInterface>(
generateUrl('/apps/gpoddersync/personal_settings/metrics'),
)
this.subs = [...metrics.data.subscriptions]
.sort((a, b) => b.listenedSeconds - a.listenedSeconds)
.map((sub) => ({
metrics: sub,
isFavorite: favorites.includes(sub.url),
data: this.getSubByUrl(sub.url)?.data,
}))
},
addMetadatas(link: string, data: PodcastDataInterface) {
this.subs = this.subs.map((sub) =>
sub.metrics.url === link ? { ...sub, data } : sub,
)
},
setFavorite(link: string, isFavorite: boolean) {
this.subs = this.subs.map((sub) =>
sub.metrics.url === link ? { ...sub, isFavorite } : sub,
)
setCookie(
'repod.favorites',
JSON.stringify(
this.subs
.filter((sub) => sub.isFavorite)
.map((sub) => sub.metrics.url),
),
365,
)
},
},
})

View File

@ -4,7 +4,7 @@
* @param {string} name Nom du cookie à récupérer
* @return {string|null}
*/
export const getCookie = (name) => {
export const getCookie = (name: string): string | null => {
const cookies = document.cookie.split('; ')
const value = cookies.find((c) => c.startsWith(name + '='))?.split('=')[1]
if (value === undefined) {
@ -19,7 +19,7 @@ export const getCookie = (name) => {
* @param {string} value Value du cookie
* @param {number} days Durée de vie du cookie (en jours)
*/
export const setCookie = (name, value, days) => {
export const setCookie = (name: string, value: string, days: number) => {
const date = new Date()
date.setDate(date.getDate() + days)
document.cookie = `${name}=${encodeURIComponent(value)}; expires=${date.toUTCString()}; SameSite=Strict;`

View File

@ -1,12 +0,0 @@
// https://stackoverflow.com/a/53486112
export const debounce = (fn, delay) => {
let timeoutID = null
return function () {
clearTimeout(timeoutID)
const args = arguments
const that = this
timeoutID = setTimeout(function () {
fn.apply(that, args)
}, delay)
}
}

View File

@ -1,8 +1,8 @@
// https://stackoverflow.com/a/20732091
export const humanFileSize = (size) => {
export const humanFileSize = (size: number) => {
const i = size === 0 ? 0 : Math.floor(Math.log(size) / Math.log(1024))
return (
(size / Math.pow(1024, i)).toFixed(2) * 1 +
(size / Math.pow(1024, i)).toFixed(2) +
' ' +
['B', 'kB', 'MB', 'GB', 'TB'][i]
)

16
src/utils/status.ts Normal file
View File

@ -0,0 +1,16 @@
import type { EpisodeInterface } from './types'
export const hasEnded = (episode: EpisodeInterface) =>
episode.action &&
episode.action.action &&
(episode.action.action.toLowerCase() === 'delete' ||
(episode.action.position > 0 &&
episode.action.total > 0 &&
episode.action.position >= episode.action.total))
export const isListening = (episode: EpisodeInterface) =>
episode.action &&
episode.action.action &&
episode.action.action.toLowerCase() === 'play' &&
episode.action.position > 0 &&
!hasEnded(episode)

View File

@ -3,9 +3,9 @@
* @param {Date} date The date
* @return {string}
*/
export const formatTimer = (date) => {
const minutes = date.getUTCMinutes().toString().padStart(2, 0)
const seconds = date.getUTCSeconds().toString().padStart(2, 0)
export const formatTimer = (date: Date): string => {
const minutes = date.getUTCMinutes().toString().padStart(2, '0')
const seconds = date.getUTCSeconds().toString().padStart(2, '0')
let timer = `${minutes}:${seconds}`
if (date.getUTCHours()) {
@ -20,7 +20,7 @@ export const formatTimer = (date) => {
* @param {Date} date The date
* @return {string}
*/
export const formatEpisodeTimestamp = (date) => {
export const formatEpisodeTimestamp = (date: Date): string => {
const year = date.getFullYear()
const month = (date.getMonth() + 1).toString().padStart(2, '0')
const day = date.getDate().toString().padStart(2, '0')
@ -36,7 +36,7 @@ export const formatEpisodeTimestamp = (date) => {
* @param {Date} date The date
* @return {string}
*/
export const formatLocaleDate = (date) =>
export const formatLocaleDate = (date: Date): string =>
date.toLocaleDateString(undefined, { dateStyle: 'medium' })
/**
@ -44,10 +44,23 @@ export const formatLocaleDate = (date) =>
* @param {string} duration The duration feed's entry
* @return {number}
*/
export const durationToSeconds = (duration) => {
export const durationToSeconds = (duration: string): number => {
const splitDuration = duration.split(':').reverse()
let seconds = parseInt(splitDuration[0])
seconds += splitDuration.length > 1 ? parseInt(splitDuration[1]) * 60 : 0
seconds += splitDuration.length > 2 ? parseInt(splitDuration[2]) * 60 * 60 : 0
return seconds
}
/**
* Convert splitted time to seconds
* @param {number} hours The number of seconds
* @param {number} minutes The number of seconds
* @param {number} seconds The number of seconds
* @return {number}
*/
export const timeToSeconds = (
hours: number,
minutes: number,
seconds: number,
): number => hours * 3600 + minutes * 60 + seconds

View File

@ -1,12 +0,0 @@
import toastify from 'toastify-js'
export const showMessage = (text, backgroundColor) =>
toastify({
text,
backgroundColor,
}).showToast()
export const showError = (text) => showMessage(text, 'var(--color-error)')
export const showWarning = (text) => showMessage(text, 'var(--color-warning)')
export const showInfo = (text) => showMessage(text, 'var(--color-primary)')
export const showSuccess = (text) => showMessage(text, 'var(--color-success)')

14
src/utils/toast.ts Normal file
View File

@ -0,0 +1,14 @@
import toastify from 'toastify-js'
export const showMessage = (text: string, backgroundColor: string) =>
toastify({
text,
backgroundColor,
}).showToast()
export const showError = (text: string) => showMessage(text, 'var(--color-error)')
export const showWarning = (text: string) =>
showMessage(text, 'var(--color-warning)')
export const showInfo = (text: string) => showMessage(text, 'var(--color-primary)')
export const showSuccess = (text: string) =>
showMessage(text, 'var(--color-success)')

73
src/utils/types.ts Normal file
View File

@ -0,0 +1,73 @@
export interface EpisodeActionInterface {
podcast: string
episode: string
action: string
timestamp: string
started: number
position: number
total: number
guid?: string
id?: number
}
export interface EpisodeInterface {
title: string
url: string
name: string
link?: string
image?: string
description?: string
fetchedAtUnix: number
guid: string
type?: string
size?: number
pubDate?: {
date: string
timezone_type: number
timezone: string
}
duration?: string
action?: EpisodeActionInterface
}
export interface FiltersInterface {
listened: boolean
listening: boolean
unlistened: boolean
}
export interface PodcastDataInterface {
title: string
author?: string
link: string
description?: string
imageUrl?: string
fetchedAtUnix: number
imageBlob?: string | null
}
export interface PodcastMetricsInterface {
url: string
listenedSeconds: number
actionCounts: {
delete: number
download: number
flattr: number
new: number
play: number
}
}
export interface SubscriptionInterface {
data?: PodcastDataInterface
isFavorite?: boolean
metrics: PodcastMetricsInterface
}
export interface PersonalSettingsMetricsInterface {
subscriptions: PodcastMetricsInterface[]
}
export interface PersonalSettingsPodcastDataInterface {
data: PodcastDataInterface
}

View File

@ -1,7 +0,0 @@
export const encodeUrl = (url) => encodeURIComponent(btoa(url))
export const decodeUrl = (url) => atob(decodeURIComponent(url))
export const toUrl = (url) => `/${encodeUrl(url)}`
export const filenameFromUrl = (str) => {
const url = new URL(str)
return url.pathname.split('/').pop()
}

5
src/utils/url.ts Normal file
View File

@ -0,0 +1,5 @@
export const encodeUrl = (url: string) => encodeURIComponent(btoa(url))
export const decodeUrl = (url: string) => atob(decodeURIComponent(url))
export const toFeedUrl = (url: string) => `/feed/${encodeUrl(url)}`
export const filenameFromUrl = (url: string) =>
new URL(url).pathname.split('/').pop()

View File

@ -1,5 +1,5 @@
<template>
<AppContent class="main">
<AppContent class="padding">
<NcTextField v-model="search" :label="t('repod', 'Find a podcast')">
<template #icon>
<Magnify :size="20" />
@ -12,13 +12,14 @@
</AppContent>
</template>
<script>
<script lang="ts">
import AddRss from '../components/Discover/AddRss.vue'
import AppContent from '../components/Atoms/AppContent.vue'
import Magnify from 'vue-material-design-icons/Magnify.vue'
import { NcTextField } from '@nextcloud/vue'
import Search from '../components/Discover/Search.vue'
import Toplist from '../components/Discover/Toplist.vue'
import { t } from '@nextcloud/l10n'
export default {
name: 'Discover',
@ -30,16 +31,17 @@ export default {
Search,
Toplist,
},
data() {
return {
search: '',
}
data: () => ({
search: '',
}),
methods: {
t,
},
}
</script>
<style scoped>
.main {
.padding {
padding: 15px 51px;
}
</style>

View File

@ -1,35 +1,28 @@
<template>
<AppContent>
<Loading v-if="loading" />
<NcEmptyContent
v-if="failed"
class="error"
:name="t('repod', 'Error loading feed')">
<EmptyContent v-if="failed" :name="t('repod', 'Error loading feed')">
<template #icon>
<Alert />
</template>
</NcEmptyContent>
<Banner
v-if="feed"
:author="feed.author"
:description="feed.description"
:image-url="feed.imageUrl"
:link="feed.link"
:title="feed.title" />
</EmptyContent>
<Banner v-if="feed" :feed="feed" />
<Episodes v-if="feed" />
</AppContent>
</template>
<script>
<script lang="ts">
import Alert from 'vue-material-design-icons/Alert.vue'
import AppContent from '../components/Atoms/AppContent.vue'
import Banner from '../components/Feed/Banner.vue'
import EmptyContent from '../components/Atoms/EmptyContent.vue'
import Episodes from '../components/Feed/Episodes.vue'
import Loading from '../components/Atoms/Loading.vue'
import { NcEmptyContent } from '@nextcloud/vue'
import type { PodcastDataInterface } from '../utils/types.ts'
import axios from '@nextcloud/axios'
import { decodeUrl } from '../utils/url.js'
import { decodeUrl } from '../utils/url.ts'
import { generateUrl } from '@nextcloud/router'
import { t } from '@nextcloud/l10n'
export default {
name: 'Feed',
@ -37,25 +30,24 @@ export default {
Alert,
AppContent,
Banner,
EmptyContent,
Episodes,
Loading,
NcEmptyContent,
},
data() {
return {
failed: false,
loading: true,
feed: null,
}
},
data: () => ({
failed: false,
loading: true,
feed: null as PodcastDataInterface | null,
}),
computed: {
url() {
return decodeUrl(this.$route.params.url)
return decodeUrl(this.$route.params.url as string)
},
},
async mounted() {
try {
const podcastData = await axios.get(
this.loading = true
const podcastData = await axios.get<PodcastDataInterface>(
generateUrl('/apps/repod/podcast?url={url}', { url: this.url }),
)
this.feed = podcastData.data
@ -66,11 +58,8 @@ export default {
this.loading = false
}
},
methods: {
t,
},
}
</script>
<style scoped>
.error {
margin: 2rem;
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<NcAppContent class="content">
<NcEmptyContent :name="t('repod', 'Missing required app')">
<AppContent>
<EmptyContent :name="t('repod', 'Missing required app')">
<template #action>
<NcButton :href="gPodderSyncUrl">
{{ t('repod', 'Install GPodder Sync') }}
@ -9,27 +9,33 @@
<template #icon>
<Alert />
</template>
</NcEmptyContent>
</NcAppContent>
</EmptyContent>
</AppContent>
</template>
<script>
import { NcAppContent, NcButton, NcEmptyContent } from '@nextcloud/vue'
<script lang="ts">
import Alert from 'vue-material-design-icons/Alert.vue'
import AppContent from '../components/Atoms/AppContent.vue'
import EmptyContent from '../components/Atoms/EmptyContent.vue'
import { NcButton } from '@nextcloud/vue'
import { generateUrl } from '@nextcloud/router'
import { t } from '@nextcloud/l10n'
export default {
name: 'GPodder',
components: {
Alert,
NcAppContent,
AppContent,
EmptyContent,
NcButton,
NcEmptyContent,
},
computed: {
gPodderSyncUrl() {
return generateUrl('/settings/apps/installed/gpoddersync')
},
},
methods: {
t,
},
}
</script>

55
src/views/Home.vue Normal file
View File

@ -0,0 +1,55 @@
<template>
<AppContent>
<EmptyContent
v-if="!favorites.length"
class="padding"
:description="
t('repod', 'Pin some subscriptions to see their latest updates')
"
:name="t('repod', 'No favorites')">
<template #icon>
<StarOffIcon />
</template>
</EmptyContent>
<ul v-if="favorites.length">
<li v-for="favorite in favorites" :key="favorite.metrics.url">
<Favorite :feed="favorite" />
</li>
</ul>
</AppContent>
</template>
<script lang="ts">
import AppContent from '../components/Atoms/AppContent.vue'
import EmptyContent from '../components/Atoms/EmptyContent.vue'
import Favorite from '../components/Feed/Favorite.vue'
import StarOffIcon from 'vue-material-design-icons/StarOff.vue'
import { mapState } from 'pinia'
import { t } from '@nextcloud/l10n'
import { useSubscriptions } from '../store/subscriptions.ts'
export default {
name: 'Home',
components: {
AppContent,
EmptyContent,
Favorite,
StarOffIcon,
},
computed: {
...mapState(useSubscriptions, ['subs']),
favorites() {
return this.subs.filter((sub) => sub.isFavorite)
},
},
methods: {
t,
},
}
</script>
<style scoped>
.padding {
padding: 15px 51px;
}
</style>

View File

@ -7,8 +7,10 @@ namespace OCA\GPodderSync\Core\EpisodeAction;
class EpisodeActionReader
{
/**
* @param array $episodeActionsArray []
* @param array $episodeActionsArray []
*
* @return EpisodeAction[]
*
* @throws \InvalidArgumentException
*/
public function fromArray(array $episodeActionsArray) {}

View File

@ -29,7 +29,8 @@ class PodcastData implements \JsonSerializable
/**
* @return PodcastData
* @throws \Exception if the XML data could not be parsed
*
* @throws \Exception if the XML data could not be parsed
*/
public static function parseRssXml(string $xmlString, ?int $fetchedAtUnix = null) {}
@ -81,7 +82,8 @@ class PodcastData implements \JsonSerializable
public function jsonSerialize(): mixed {}
/**
* @param PodcastDataType $data
* @param PodcastDataType $data
*
* @return PodcastData
*/
public static function fromArray(array $data) {}

View File

@ -6,7 +6,9 @@ namespace OCA\GPodderSync\Core\SubscriptionChange;
class SubscriptionChangeRequestParser
{
public function __construct(private SubscriptionChangesReader $subscriptionChangeReader) {}
public function __construct(
private SubscriptionChangesReader $subscriptionChangeReader
) {}
/**
* @return SubscriptionChange[]

View File

@ -21,6 +21,7 @@ class EpisodeActionMapper extends QBMapper
/**
* @return EpisodeActionEntity[]
*
* @throws Exception
*/
public function findAll(int $sinceTimestamp, string $userId) {}

View File

@ -8,7 +8,9 @@ use OCA\GPodderSync\Core\EpisodeAction\EpisodeAction;
class EpisodeActionRepository
{
public function __construct(private EpisodeActionMapper $episodeActionMapper) {}
public function __construct(
private EpisodeActionMapper $episodeActionMapper
) {}
/**
* @return EpisodeAction[]

View File

@ -8,16 +8,20 @@ use OCP\DB\Exception;
class EpisodeActionWriter
{
public function __construct(private EpisodeActionMapper $episodeActionMapper) {}
public function __construct(
private EpisodeActionMapper $episodeActionMapper
) {}
/**
* @return EpisodeActionEntity
*
* @throws Exception
*/
public function save(EpisodeActionEntity $episodeActionEntity) {}
/**
* @return EpisodeActionEntity
*
* @throws Exception
*/
public function update(EpisodeActionEntity $episodeActionEntity) {}

View File

@ -6,7 +6,9 @@ namespace OCA\GPodderSync\Db\SubscriptionChange;
class SubscriptionChangeRepository
{
public function __construct(private SubscriptionChangeMapper $subscriptionChangeMapper) {}
public function __construct(
private SubscriptionChangeMapper $subscriptionChangeMapper
) {}
/**
* @return SubscriptionChangeEntity[]

View File

@ -6,7 +6,9 @@ namespace OCA\GPodderSync\Db\SubscriptionChange;
class SubscriptionChangeWriter
{
public function __construct(private SubscriptionChangeMapper $subscriptionChangeMapper) {}
public function __construct(
private SubscriptionChangeMapper $subscriptionChangeMapper
) {}
public function purge(): void {}

Some files were not shown because too many files have changed in this diff Show More