Compare commits

...

143 Commits
2.3.0 ... main

Author SHA1 Message Date
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
6bc8d70016 docs: 📝 update changelog
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m5s
repod / release (push) Successful in 1m35s
2024-08-17 14:40:30 +02:00
c42d455d4b chore: 🔖 bump to 3.0
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 52s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-08-17 14:25:29 +02:00
5b08cf970e Merge pull request 'Migrate to vue3 (fix #126)' (#127) from vue3 into main
Some checks failed
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Successful in 14s
repod / php (push) Has been cancelled
Reviewed-on: #127
2024-08-17 12:24:26 +00:00
cf6dd25378 Merge branch 'main' into vue3
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped
2024-08-17 14:18:57 +02:00
a2c3b389ba refactor: ♻️ move filename from url on utils
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 14s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Has been cancelled
2024-08-17 14:17:24 +02:00
5917c59610 Merge pull request 'chore(deps): update dependency @nextcloud/dialogs to v6' (#129) from renovate/nextcloud-dialogs-6.x into main
All checks were successful
repod / xml (push) Successful in 18s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
Reviewed-on: #129
2024-08-17 12:03:39 +00:00
Renovate Bot
6cf868dc51 chore(deps): update dependency @nextcloud/dialogs to v6
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 54s
repod / nodejs (push) Successful in 1m20s
repod / release (push) Has been skipped
2024-08-17 06:49:02 +00:00
66b59c52fa revert: css is on js, no need for ignoring
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 55s
repod / release (push) Has been skipped
2024-08-17 00:13:58 +02:00
36c3bd875b build: 📝 fix build and remove COC for now
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-08-17 00:10:17 +02:00
5742d1a762 fix: fix episode ending status with watch
All checks were successful
repod / xml (push) Successful in 31s
repod / php (push) Successful in 1m13s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-08-16 23:50:36 +02:00
bd9e3691b9 chore: ⬆️ update pinia
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
2024-08-15 22:04:10 +02:00
19427809ca fix: add download on episode list
All checks were successful
repod / xml (push) Successful in 37s
repod / php (push) Successful in 1m12s
repod / nodejs (push) Successful in 1m57s
repod / release (push) Has been skipped
2024-08-15 21:50:44 +02:00
544c91edee fix: 🐛 fix loop action
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 1m8s
repod / release (push) Has been skipped
2024-08-15 21:18:20 +02:00
cf6bd440bf refactor: move autoload to init in the right vue
All checks were successful
repod / xml (push) Successful in 18s
repod / php (push) Successful in 1m9s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
2024-08-15 19:10:19 +02:00
891d4762d0 fix: ✏️ fix typo on setRate
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m3s
repod / release (push) Has been skipped
2024-08-15 18:52:50 +02:00
a2b63241cc build: 🦺 add eslint plugin pinia and update deps 2024-08-15 18:52:34 +02:00
5db93914d2 fix: 🐛 fix filters
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-08-15 17:07:15 +02:00
68ada2b0e0 fix: 🐛 fix current active episode
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Successful in 1m15s
repod / release (push) Has been skipped
2024-08-15 16:42:51 +02:00
c91c17ae66 fix: 🐛 fix opacity
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped
2024-08-15 16:25:11 +02:00
b4160d23d2 chore: ⬆️ update deps
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-08-15 15:29:25 +02:00
caf0bb7ec0 fix: 🐛 fix forgotten player pinia trasition
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m2s
repod / release (push) Has been skipped
2024-08-11 21:48:13 +02:00
5f528e6b9b revert: revert extra-actions
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 38s
repod / php (push) Successful in 1m10s
repod / nodejs (push) Has been cancelled
2024-08-11 21:45:10 +02:00
196bc23b1a feat: add download attribute to download button
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
2024-08-10 22:30:35 +02:00
e78e3b2565 fix: 🐛 fix modal alignment
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m1s
repod / release (push) Has been skipped
2024-08-10 22:21:26 +02:00
b67123b578 fix: 🐛 fix modal
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m6s
repod / release (push) Has been skipped
2024-08-10 22:05:06 +02:00
53543a259f fix: 🐛 fix description bug
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 1m10s
repod / release (push) Has been skipped
2024-08-10 20:59:15 +02:00
7efb0327d4 fix: 🐛 fix prototype with async
All checks were successful
repod / xml (push) Successful in 1m47s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-08-09 22:51:32 +02:00
81af0c219f fix: 🐛 fix crash NcTextField
Some checks failed
repod / xml (push) Successful in 1m38s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Failing after 1m6s
repod / release (push) Has been skipped
2024-08-09 22:21:07 +02:00
1feb0291bb fix: 🎉 first working basic functionnalities
All checks were successful
repod / xml (push) Successful in 33s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m23s
repod / release (push) Has been skipped
2024-08-09 16:50:24 +02:00
989d5d38e1 perf: improve build by removing sourcemaps
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped
2024-08-09 10:10:58 +00:00
b4ccd98f77 fix: 📦 make it build !
Some checks failed
repod / xml (push) Successful in 13s
repod / php (push) Successful in 58s
repod / nodejs (push) Failing after 48s
repod / release (push) Has been skipped
2024-08-09 09:52:56 +00:00
75da02e05b refactor: 🏗️ rework to use pinia
Some checks failed
repod / xml (push) Successful in 1m38s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Failing after 57s
repod / release (push) Has been skipped
2024-08-09 09:38:00 +00:00
1530e8b294 style: 🎨 remove useless spaces
Some checks failed
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Failing after 59s
repod / release (push) Has been skipped
2024-08-09 01:11:44 +02:00
7e359bdf29 fix: 📈 forgot time loop
Some checks failed
repod / xml (push) Successful in 12s
repod / php (push) Successful in 58s
repod / nodejs (push) Failing after 45s
repod / release (push) Has been skipped
2024-08-09 01:02:39 +02:00
082161e177 refactor: ♻️ rewrite player store to pinia
Some checks failed
repod / xml (push) Successful in 28s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Failing after 58s
repod / release (push) Has been skipped
2024-08-09 00:58:25 +02:00
04ed6b101a build: 💄 use toastify instead of dialogs
Some checks failed
repod / xml (push) Successful in 33s
repod / php (push) Successful in 1m7s
repod / nodejs (push) Failing after 1m4s
repod / release (push) Has been skipped
2024-08-08 22:39:43 +02:00
6456ccc3d0 refactor: 🧱 first commit to enable vue3 support
Some checks failed
repod / xml (push) Successful in 27s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Failing after 2m29s
repod / release (push) Has been skipped
2024-08-08 15:20:54 +00:00
e190a9eeb6 refactor: ♻️ use linkify and dompurify to show good descriptions
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-08-08 11:37:48 +02:00
e63ff6ef04 fix: 🔧 use new ENV syntax for dockerfile
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m33s
repod / release (push) Has been skipped
2024-08-08 09:56:42 +02:00
a50947ffaf fix: 💄 use NcActionButton instead of NcButton
All checks were successful
repod / xml (push) Successful in 15s
repod / php (push) Successful in 1m1s
repod / nodejs (push) Successful in 1m41s
repod / release (push) Has been skipped
2024-08-07 22:17:51 +02:00
c97e927a15 style: 💄 use the new extra-actions on NcListItem
All checks were successful
repod / xml (push) Successful in 33s
repod / php (push) Successful in 1m13s
repod / nodejs (push) Successful in 1m36s
repod / release (push) Has been skipped
2024-08-07 22:05:50 +02:00
a6a0f0d4f8 chore: 📌 update lock
All checks were successful
repod / xml (push) Successful in 1m20s
repod / php (push) Successful in 1m9s
repod / nodejs (push) Successful in 1m44s
repod / release (push) Has been skipped
2024-08-07 20:24:17 +02:00
358c1d06c8 chore: 📌 update to nextcloud 30
All checks were successful
repod / xml (push) Successful in 1m54s
repod / php (push) Successful in 1m17s
repod / nodejs (push) Successful in 1m49s
repod / release (push) Has been skipped
2024-08-07 10:15:10 +02:00
1e452263a7 Merge pull request 'chore(deps): update dependency @nextcloud/vue to v8.16.0' (#125) from renovate/nextcloud-vue-8.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 58s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
Reviewed-on: #125
2024-08-06 06:47:13 +00:00
Renovate Bot
bfa9cde661 chore(deps): update dependency @nextcloud/vue to v8.16.0
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-08-06 06:41:14 +00:00
0238107be2 chore: ⬆️ update deps
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m30s
repod / release (push) Has been skipped
2024-08-05 09:51:30 +02:00
f94b529d6d fix: 💄 take itunes image first
All checks were successful
repod / xml (push) Successful in 1m36s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m28s
repod / release (push) Has been skipped
2024-08-05 09:38:37 +02:00
1302c82fdb Merge pull request 'chore(deps): update dependency @nextcloud/vue to v8.15.1' (#124) from renovate/nextcloud-vue-8.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m43s
repod / release (push) Has been skipped
Reviewed-on: #124
2024-07-30 07:26:04 +00:00
Renovate Bot
08b327e408 chore(deps): update dependency @nextcloud/vue to v8.15.1
All checks were successful
repod / xml (push) Successful in 1m34s
repod / php (push) Successful in 1m6s
repod / nodejs (push) Successful in 2m5s
repod / release (push) Has been skipped
2024-07-30 06:40:01 +00:00
2104e2e6d8 Merge pull request 'chore(deps): update dependency @nextcloud/vue to v8.15.0' (#123) from renovate/nextcloud-vue-8.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m15s
repod / nodejs (push) Successful in 1m45s
repod / release (push) Has been skipped
Reviewed-on: #123
2024-07-23 09:37:37 +00:00
Renovate Bot
c73e53d04e chore(deps): update dependency @nextcloud/vue to v8.15.0
All checks were successful
repod / xml (push) Successful in 1m44s
repod / php (push) Successful in 1m36s
repod / nodejs (push) Successful in 2m3s
repod / release (push) Has been skipped
2024-07-23 06:42:44 +00:00
cee28f51a6 Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.4' (#122) from renovate/nextcloud-ocp-29.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 17s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m32s
repod / release (push) Has been skipped
Reviewed-on: #122
2024-07-19 12:11:43 +00:00
Renovate Bot
1665e1e193 chore(deps): update dependency nextcloud/ocp to v29.0.4
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 53s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-07-19 06:30:15 +00:00
1d73de5925 Merge pull request 'chore(deps): update dependency eslint-plugin-prettier to v5.2.1' (#121) from renovate/eslint-plugin-prettier-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m28s
repod / release (push) Has been skipped
Reviewed-on: #121
2024-07-18 14:14:50 +00:00
Renovate Bot
a753d1d634 chore(deps): update dependency eslint-plugin-prettier to v5.2.1
All checks were successful
repod / xml (push) Successful in 1m53s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 2m4s
repod / release (push) Has been skipped
2024-07-18 06:50:42 +00:00
a91648848b fix: 🌐 fix translation
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m26s
repod / release (push) Has been skipped
2024-07-15 16:41:31 +02:00
a538b38160 fix: ⬆️ update deps
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 47s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Has been skipped
2024-07-15 16:19:55 +02:00
8479cc1553 feat: 🌐 add german translation #120
All checks were successful
repod / xml (push) Successful in 1m7s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m58s
repod / release (push) Has been skipped
2024-07-15 16:14:02 +02:00
69a2c20338 docs: 📈 add more comparaisons between nextcloud apps
All checks were successful
repod / xml (push) Successful in 30s
repod / php (push) Successful in 1m3s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-07-09 15:40:46 +02:00
55ee2634df fix: 🗑️ DELETE should show ended
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 1m4s
repod / nodejs (push) Successful in 1m22s
repod / release (push) Has been skipped
2024-07-09 14:58:50 +02:00
f3090c5490 chore: ⬆️ update deps
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 3m29s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Has been cancelled
2024-07-09 14:53:28 +02:00
d57189490e Merge pull request 'chore(deps): update dependency @nextcloud/vue to v8.14.0' (#118) from renovate/nextcloud-vue-8.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 1m17s
repod / release (push) Has been skipped
Reviewed-on: #118
2024-07-05 08:05:18 +00:00
d5c34fa719 Merge pull request 'chore(deps): update dependency @nextcloud/dialogs to v5.3.5' (#117) from renovate/nextcloud-dialogs-5.x-lockfile into main
Some checks failed
repod / release (push) Waiting to run
repod / xml (push) Successful in 26s
repod / php (push) Successful in 55s
repod / nodejs (push) Has been cancelled
Reviewed-on: #117
2024-07-05 08:02:53 +00:00
Renovate Bot
57b581fa54 chore(deps): update dependency @nextcloud/vue to v8.14.0
All checks were successful
repod / xml (push) Successful in 29s
repod / php (push) Successful in 1m11s
repod / nodejs (push) Successful in 2m8s
repod / release (push) Has been skipped
2024-07-05 06:43:08 +00:00
Renovate Bot
74fa105d5a chore(deps): update dependency @nextcloud/dialogs to v5.3.5
All checks were successful
repod / xml (push) Successful in 1m34s
repod / php (push) Successful in 56s
repod / nodejs (push) Successful in 1m55s
repod / release (push) Has been skipped
2024-07-04 06:34:16 +00:00
d81e6b505c Merge pull request 'chore(deps): update dependency @nextcloud/vue to v8.13.0' (#115) from renovate/nextcloud-vue-8.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 1m0s
repod / nodejs (push) Successful in 1m43s
repod / release (push) Has been skipped
Reviewed-on: #115
2024-06-27 07:30:21 +00:00
Renovate Bot
ef66427afc chore(deps): update dependency @nextcloud/vue to v8.13.0
All checks were successful
repod / xml (push) Successful in 31s
repod / php (push) Successful in 1m2s
repod / nodejs (push) Successful in 1m44s
repod / release (push) Has been skipped
2024-06-27 06:37:35 +00:00
f9b0c8fa39 Merge pull request 'chore(deps): update dependency @nextcloud/dialogs to v5.3.4' (#113) from renovate/nextcloud-dialogs-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m40s
repod / release (push) Has been skipped
Reviewed-on: #113
2024-06-26 06:42:49 +00:00
b8466aebf1 Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.3' (#114) from renovate/nextcloud-ocp-29.x-lockfile into main
Some checks are pending
repod / nodejs (push) Waiting to run
repod / release (push) Waiting to run
repod / xml (push) Waiting to run
repod / php (push) Waiting to run
Reviewed-on: #114
2024-06-26 06:42:34 +00:00
Renovate Bot
1aa6dad3ba chore(deps): update dependency nextcloud/ocp to v29.0.3
All checks were successful
repod / xml (push) Successful in 20s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m36s
repod / release (push) Has been skipped
2024-06-26 06:37:29 +00:00
Renovate Bot
0c0946559a chore(deps): update dependency @nextcloud/dialogs to v5.3.4
All checks were successful
repod / xml (push) Successful in 1m31s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 2m7s
repod / release (push) Has been skipped
2024-06-26 06:37:02 +00:00
fcf389f925 Merge pull request 'chore(deps): update dependency @nextcloud/dialogs to v5.3.3' (#112) from renovate/nextcloud-dialogs-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 34s
repod / php (push) Successful in 1m5s
repod / nodejs (push) Successful in 2m22s
repod / release (push) Has been skipped
Reviewed-on: #112
2024-06-23 14:02:31 +00:00
Renovate Bot
6c59851cb9 chore(deps): update dependency @nextcloud/dialogs to v5.3.3
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m29s
repod / release (push) Has been skipped
2024-06-22 06:39:27 +00:00
1d15ade42e Merge pull request 'chore(deps): update dependency vimeo/psalm to v5.25.0' (#111) from renovate/vimeo-psalm-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 12s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Has been skipped
Reviewed-on: #111
2024-06-20 07:30:16 +00:00
Renovate Bot
c85a347032 chore(deps): update dependency vimeo/psalm to v5.25.0
All checks were successful
repod / xml (push) Successful in 1m18s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 1m51s
repod / release (push) Has been skipped
2024-06-20 06:55:41 +00:00
ec605fde0a docs: 📝 update changelog
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m24s
repod / release (push) Successful in 1m46s
2024-06-14 20:06:45 +02:00
46b7d80652 chore: 📌 update version
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-06-14 19:53:35 +02:00
541c669dd5 chore: ⬆️ update deps
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 39s
repod / nodejs (push) Successful in 1m19s
repod / release (push) Has been skipped
2024-06-14 19:41:51 +02:00
79c6fbcc16 chore: 💚 fix psalm 2024-06-14 19:40:32 +02:00
42bfdb530b fix: 🐛 fix crash if no cache is configured
Some checks failed
repod / xml (push) Successful in 1m10s
repod / php (push) Failing after 44s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-06-14 19:32:26 +02:00
bc8db22fce Merge pull request 'chore(deps): update dependency @nextcloud/dialogs to v5.3.2' (#109) from renovate/nextcloud-dialogs-5.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 43s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
Reviewed-on: #109
2024-06-11 14:04:36 +00:00
Renovate Bot
a4a00d4aea chore(deps): update dependency @nextcloud/dialogs to v5.3.2
All checks were successful
repod / xml (push) Successful in 1m29s
repod / php (push) Successful in 45s
repod / nodejs (push) Successful in 2m0s
repod / release (push) Has been skipped
2024-06-11 06:38:37 +00:00
8d13fac7aa Merge pull request 'chore(deps): update dependency nextcloud/ocp to v29.0.2' (#108) from renovate/nextcloud-ocp-29.x-lockfile into main
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 49s
repod / nodejs (push) Successful in 1m17s
repod / release (push) Has been skipped
Reviewed-on: #108
2024-06-07 07:04:32 +00:00
Renovate Bot
83e519d4c5 chore(deps): update dependency nextcloud/ocp to v29.0.2
All checks were successful
repod / xml (push) Successful in 1m28s
repod / php (push) Successful in 1m22s
repod / nodejs (push) Successful in 1m57s
repod / release (push) Has been skipped
2024-06-07 06:44:13 +00:00
7ba27d7c9c docs: 📝 wrong label for current changelog
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 38s
repod / nodejs (push) Successful in 1m16s
repod / release (push) Successful in 1m43s
2024-05-31 13:59:28 +02:00
5d75b51c63 docs: 📝 update changelog
Some checks failed
repod / xml (push) Successful in 9s
repod / php (push) Successful in 39s
repod / nodejs (push) Has been cancelled
repod / release (push) Has been cancelled
2024-05-31 13:58:36 +02:00
a60341f352 chore: 🔖 update version and deps
All checks were successful
repod / xml (push) Successful in 22s
repod / php (push) Successful in 40s
repod / nodejs (push) Successful in 1m25s
repod / release (push) Has been skipped
2024-05-31 13:53:47 +02:00
c27f358f71 fix: missing aria-lebel on new subscribe on search button 2024-05-31 13:47:11 +02:00
691ee72ac5 fix: 🐛 do not show add if already subscribed
All checks were successful
repod / xml (push) Successful in 16s
repod / php (push) Successful in 42s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-05-30 07:31:47 +00:00
7a4bbd8e47 fix: 🗑️ do not include screens on release
All checks were successful
repod / xml (push) Successful in 9s
repod / php (push) Successful in 37s
repod / nodejs (push) Successful in 1m14s
repod / release (push) Successful in 1m29s
2024-05-30 00:24:33 +02:00
a53bab8be5 chore: 🔖 update version and changelog
All checks were successful
repod / xml (push) Successful in 8s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m18s
repod / release (push) Has been skipped
2024-05-30 00:21:45 +02:00
93b3cdbdc0 perf: disable sourcemap when building in prod
All checks were successful
repod / xml (push) Successful in 10s
repod / php (push) Successful in 39s
repod / nodejs (push) Successful in 1m19s
repod / release (push) Has been skipped
2024-05-30 00:18:50 +02:00
64 changed files with 5438 additions and 6504 deletions

View File

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

View File

@ -1,3 +1,56 @@
## 3.1.0 - 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 - 2024-08-17
### Added
- 🌐 Add german translation
Thanks to @OiledAmoeba [#120](https://git.crystalyx.net/Xefir/repod/issues/120)
### Changed
- 🎉 Migrate to Vue 3
- 🔖 Support Nextcloud 30
- 🏗️ Switch from Vuex to Pinia
### Fixed
- 💄 Use iTunes image first for episode if available
- 💄 Displaying styles and proper HTML on episode's modal descriptions
### Removed
- 🗑️ Temporary replacing @nextcloud/dialogs to toastyjs
## 2.3.3 - 2024-06-14
### Changed
- ⬆️ Update @nextcloud/dialogs to 5.3.2
### Fixed
- 🐛 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
### Fixed
- 🐛 New subscribe button on search not disapearing if subscribed
- ♿ Missing accessibility label on this button as well
## 2.3.1 - 2024-05-29
### Changed
- ⚡ Reduce app size by not shipping sourcemap
## 2.3.0 - 2024-05-29
### Added

View File

@ -1,9 +0,0 @@
In the Nextcloud community, participants from all over the world come together to create Free Software for a free internet. This is made possible by the support, hard work and enthusiasm of thousands of people, including those who create and use Nextcloud software.
Our code of conduct offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.
The Code of Conduct is shared by all contributors and users who engage with the Nextcloud team and its community services. It presents a summary of the shared values and “common sense” thinking in our community.
You can find our full code of conduct on our website: https://nextcloud.com/code-of-conduct/
Please, keep our CoC in mind when you contribute! That way, everyone can be a part of our community in a productive, positive, creative and fun way.

View File

@ -1,10 +1,10 @@
FROM nextcloud:29
ENV NEXTCLOUD_UPDATE 1
ENV NEXTCLOUD_ADMIN_USER repod
ENV NEXTCLOUD_ADMIN_PASSWORD repod
ENV NEXTCLOUD_INIT_HTACCESS 1
ENV SQLITE_DATABASE repod
ENV NEXTCLOUD_UPDATE=1
ENV NEXTCLOUD_ADMIN_USER=repod
ENV NEXTCLOUD_ADMIN_PASSWORD=repod
ENV NEXTCLOUD_INIT_HTACCESS=1
ENV SQLITE_DATABASE=repod
RUN apt-get update && \
apt-get install -y nodejs npm sqlite3 && \

View File

@ -103,14 +103,14 @@ dist: build
source:
rm -rf $(source_build_directory)
mkdir -p $(source_build_directory)
tar cvzf $(source_package_name).tar.gz \
tar -C .. -cvzf $(source_package_name).tar.gz \
--exclude-vcs \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/js/node_modules" \
--exclude="../$(app_name)/node_modules" \
--exclude="../$(app_name)/*.log" \
--exclude="../$(app_name)/js/*.log" \
../$(app_name)
--exclude="$(app_name)/build" \
--exclude="$(app_name)/js/node_modules" \
--exclude="$(app_name)/node_modules" \
--exclude="$(app_name)/*.log" \
--exclude="$(app_name)/js/*.log" \
$(app_name)
# Builds the source package for the app store, ignores php tests, js tests
# and build related folders that are unnecessary for an appstore release
@ -118,41 +118,43 @@ source:
appstore:
rm -rf $(appstore_build_directory)
mkdir -p $(appstore_build_directory)
tar cvzf $(appstore_package_name).tar.gz \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \
--exclude="../$(app_name)/*.log" \
--exclude="../$(app_name)/phpunit*xml" \
--exclude="../$(app_name)/composer.*" \
--exclude="../$(app_name)/node_modules" \
--exclude="../$(app_name)/js/node_modules" \
--exclude="../$(app_name)/js/tests" \
--exclude="../$(app_name)/js/test" \
--exclude="../$(app_name)/js/*.log" \
--exclude="../$(app_name)/js/package.json" \
--exclude="../$(app_name)/js/bower.json" \
--exclude="../$(app_name)/js/karma.*" \
--exclude="../$(app_name)/js/protractor.*" \
--exclude="../$(app_name)/package.json" \
--exclude="../$(app_name)/bower.json" \
--exclude="../$(app_name)/karma.*" \
--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)/README.md" \
--exclude="../$(app_name)/package-lock.json" \
--exclude="../$(app_name)/LICENSE" \
--exclude="../$(app_name)/src" \
--exclude="../$(app_name)/stubs" \
--exclude="../$(app_name)/vendor" \
--exclude="../$(app_name)/translationfiles" \
--exclude="../$(app_name)/Dockerfile" \
--exclude="../$(app_name)/psalm.xml" \
--exclude="../$(app_name)/renovate.json" \
../$(app_name)
tar -C .. -cvzf $(appstore_package_name).tar.gz \
--exclude="$(app_name)/build" \
--exclude="$(app_name)/tests" \
--exclude="$(app_name)/Makefile" \
--exclude="$(app_name)/*.log" \
--exclude="$(app_name)/phpunit*xml" \
--exclude="$(app_name)/composer.*" \
--exclude="$(app_name)/node_modules" \
--exclude="$(app_name)/js/node_modules" \
--exclude="$(app_name)/js/tests" \
--exclude="$(app_name)/js/test" \
--exclude="$(app_name)/js/*.log" \
--exclude="$(app_name)/js/package.json" \
--exclude="$(app_name)/js/bower.json" \
--exclude="$(app_name)/js/karma.*" \
--exclude="$(app_name)/js/protractor.*" \
--exclude="$(app_name)/package.json" \
--exclude="$(app_name)/bower.json" \
--exclude="$(app_name)/karma.*" \
--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)/README.md" \
--exclude="$(app_name)/package-lock.json" \
--exclude="$(app_name)/LICENSE" \
--exclude="$(app_name)/src" \
--exclude="$(app_name)/stubs" \
--exclude="$(app_name)/screens" \
--exclude="$(app_name)/vendor" \
--exclude="$(app_name)/translationfiles" \
--exclude="$(app_name)/Dockerfile" \
--exclude="$(app_name)/psalm.xml" \
--exclude="$(app_name)/renovate.json" \
--exclude="$(app_name)/vite.config.mjs" \
$(app_name)
# Start a nextcloud server on Docker to kickstart developement
.PHONY: dev

View File

@ -12,7 +12,6 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
- Import and export subscriptions
- Mobile friendly interface
- Unified search integration
- Interface in multiple languages
## Comparaison with similar apps for Nextcloud
@ -25,11 +24,15 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
| Listen synced episodes by another clients | ✅ | ✅ | ❌ | ❌ |
| Fetch and listen new epidodes | ✅ | ❌ | ✅ | ✅ |
| Keep track of listened episodes | ✅ | ✅ | ❌ | ✅ |
| Download epidodes | ✅ | ✅ | ❌ | ✅ |
| Import and export subscriptions | ✅ | ❌ | ❌ | ❌ |
| 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) |
## Screenshots

View File

@ -11,7 +11,7 @@
## Requirements
You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!]]></description>
<version>2.3.0</version>
<version>3.1.0</version>
<licence>agpl</licence>
<author mail="xefir@crystalyx.net" homepage="https://crystalyx.net">Michel Roux</author>
<namespace>RePod</namespace>
@ -25,7 +25,7 @@ You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) inst
<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="29"/>
<nextcloud min-version="27" max-version="30"/>
</dependencies>
<navigations>
<navigation>

View File

@ -13,6 +13,8 @@ declare(strict_types=1);
return [
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#feed', 'url' => '/feed/{path}', 'verb' => 'GET', 'requirements' => ['path' => '.+']],
['name' => 'page#discover', 'url' => '/discover', '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'],

View File

@ -15,10 +15,10 @@
"psalm": "psalm --threads=1 --no-cache --show-info=true"
},
"require-dev": {
"nextcloud/ocp": "^29.0.1",
"nextcloud/ocp": "^29.0.6",
"roave/security-advisories": "dev-latest",
"nextcloud/coding-standard": "^1.2.1",
"vimeo/psalm": "^5.24.0"
"nextcloud/coding-standard": "^1.2.3",
"vimeo/psalm": "^5.25.0"
},
"config": {
"optimize-autoloader": true,

387
composer.lock generated

File diff suppressed because it is too large Load Diff

48
l10n/de.js Normal file
View File

@ -0,0 +1,48 @@
OC.L10N.register(
"repod",
{
"RePod Subscriptions" : "RePod Abonnements",
"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!",
"Download" : "Herunterladen",
"Add a RSS link" : "Einen RSS-Link hinzufügen",
"Subscribe" : "Abonnieren",
"Error while adding the feed" : "Fehler beim Hinzufügen des Feeds",
"Could not fetch search results" : "Suchergebnisse können nicht geladen werden",
"New podcasts" : "Neue Podcasts",
"Hot podcasts" : "Beliebte Podcasts",
"Could not fetch tops" : "Titel können nicht abgerufen werden",
"Copy feed" : "Feed kopieren",
"Link copied to the clipboard" : "Der Link des Feeds wurde in die Zwischenablage kopiert",
"Play" : "Abspielen",
"Stop" : "Stopp",
"Read" : "Gelesen",
"Open website" : "Webseite aufrufen",
"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",
"Export subscriptions" : "Abonnements exportieren",
"Filtering episodes" : "Folgen filtern",
"Show all" : "Zeige alles",
"Listened" : "Gehört",
"Listening" : "Läuft",
"Unlistened" : "Nicht angehört",
"Import subscriptions" : "Importiere Abonnements",
"Import OPML file" : "Importiere OPML-Datei",
"Rate RePod ❤️" : "Bewerte RePod ❤️",
"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",
"Pin some subscriptions to see their latest updates" : "Pinne einige Abonnements, um ihre neuesten Updates zu sehen",
"No favorites" : "Keine Favoriten"
},
"");

46
l10n/de.json Normal file
View File

@ -0,0 +1,46 @@
{ "translations": {
"RePod Subscriptions" : "RePod Abonnements",
"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!",
"Download" : "Herunterladen",
"Add a RSS link" : "Einen RSS-Link hinzufügen",
"Subscribe" : "Abonnieren",
"Error while adding the feed" : "Fehler beim Hinzufügen des Feeds",
"Could not fetch search results" : "Suchergebnisse können nicht geladen werden",
"New podcasts" : "Neue Podcasts",
"Hot podcasts" : "Beliebte Podcasts",
"Could not fetch tops" : "Titel können nicht abgerufen werden",
"Copy feed" : "Feed kopieren",
"Link copied to the clipboard" : "Der Link des Feeds wurde in die Zwischenablage kopiert",
"Play" : "Abspielen",
"Stop" : "Stopp",
"Read" : "Gelesen",
"Open website" : "Webseite aufrufen",
"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",
"Export subscriptions" : "Abonnements exportieren",
"Filtering episodes" : "Folgen filtern",
"Show all" : "Zeige alles",
"Listened" : "Gehört",
"Listening" : "Läuft",
"Unlistened" : "Nicht angehört",
"Import subscriptions" : "Importiere Abonnements",
"Import OPML file" : "Importiere OPML-Datei",
"Rate RePod ❤️" : "Bewerte RePod ❤️",
"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",
"Pin some subscriptions to see their latest updates" : "Pinne einige Abonnements, um ihre neuesten Updates zu sehen",
"No favorites" : "Keine Favoriten"
},"pluralForm" :""
}

View File

@ -15,13 +15,13 @@ OC.L10N.register(
"Hot podcasts" : "Tendances",
"Could not fetch tops" : "Impossible de récupérer les tops",
"Copy feed" : "Copier le flux",
"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",
"Export subscriptions" : "Exporter les abonnements",
"Filtering episodes" : "Filtrage des épisodes",
"Show all" : "Montrer tout",
@ -32,14 +32,17 @@ OC.L10N.register(
"Import OPML file" : "Importer un fichier OPML",
"Rate RePod ❤️" : "Donnez votre avis ❤️",
"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",
"Feed's link copied to the clipboard" : "Lien vers le flux copié dans le presse-papiers"
"Pin some subscriptions to see their latest updates" : "Ajoutez des abonnements en favoris pour obtenir les dernières nouvelles ici",
"No favorites" : "Aucun favoris"
},
"");

View File

@ -13,13 +13,13 @@
"Hot podcasts" : "Tendances",
"Could not fetch tops" : "Impossible de récupérer les tops",
"Copy feed" : "Copier le flux",
"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",
"Export subscriptions" : "Exporter les abonnements",
"Filtering episodes" : "Filtrage des épisodes",
"Show all" : "Montrer tout",
@ -30,14 +30,17 @@
"Import OPML file" : "Importer un fichier OPML",
"Rate RePod ❤️" : "Donnez votre avis ❤️",
"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",
"Feed's link copied to the clipboard" : "Lien vers le flux copié dans le presse-papiers"
"Pin some subscriptions to see their latest updates" : "Ajoutez des abonnements en favoris pour obtenir les dernières nouvelles ici",
"No favorites" : "Aucun favoris"
},"pluralForm" :""
}

View File

@ -32,6 +32,10 @@ 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 {

View File

@ -8,10 +8,19 @@ use OCA\RePod\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IRequest;
use OCP\Util;
class PageController extends Controller
{
public function __construct(
IRequest $request,
private IConfig $config
) {
parent::__construct(Application::APP_ID, $request);
}
/**
* @NoAdminRequired
* @NoCSRFRequired
@ -23,9 +32,32 @@ class PageController extends Controller
$csp->addAllowedImageDomain('*');
$csp->addAllowedMediaDomain('*');
if ($this->config->getSystemValueBool('debug', false)) {
/** @psalm-suppress DeprecatedMethod */
$csp->allowEvalScript();
$csp->addAllowedConnectDomain('*');
$csp->addAllowedScriptDomain('*');
}
$response = new TemplateResponse(Application::APP_ID, 'main');
$response->setContentSecurityPolicy($csp);
return $response;
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function discover(): TemplateResponse {
return $this->index();
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function feed(): TemplateResponse {
return $this->index();
}
}

View File

@ -10,12 +10,14 @@ use OCA\RePod\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use OCP\Http\Client\IClientService;
use OCP\ICacheFactory;
use OCP\IRequest;
class PodcastController extends Controller
{
public function __construct(
IRequest $request,
private ICacheFactory $cacheFactory,
private IClientService $clientService,
private PodcastDataReader $podcastDataReader
) {
@ -27,10 +29,13 @@ class PodcastController extends Controller
* @NoCSRFRequired
*/
public function index(string $url): JSONResponse {
try {
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
} catch (\Exception $e) {
$podcast = null;
$podcast = null;
if ($this->cacheFactory->isLocalCacheAvailable()) {
try {
$podcast = $this->podcastDataReader->tryGetCachedPodcastData($url);
} catch (\Exception $e) {
}
}
if ($podcast) {
@ -41,9 +46,11 @@ class PodcastController extends Controller
$feed = $client->get($url);
$podcast = PodcastData::parseRssXml((string) $feed->getBody());
try {
$this->podcastDataReader->trySetCachedPodcastData($url, $podcast);
} catch (\Exception $e) {
if ($this->cacheFactory->isLocalCacheAvailable()) {
try {
$this->podcastDataReader->trySetCachedPodcastData($url, $podcast);
} catch (\Exception $e) {
}
}
return new JSONResponse($podcast, $feed->getStatusCode());

View File

@ -55,22 +55,24 @@ class EpisodeActionReader extends CoreEpisodeActionReader
$link = $this->stringOrNull($item->link);
// Get episode image
$image = $this->stringOrNull($item->image->url);
if (!isset($image) && isset($iTunesItemChildren)) {
if (isset($iTunesItemChildren)) {
$imageAttributes = $iTunesItemChildren->image->attributes();
$image = $this->stringOrNull(isset($imageAttributes) ? (string) $imageAttributes->href : '');
}
if (!isset($image)) {
$image = $this->stringOrNull($channel->image->url);
}
if (!isset($image) && isset($iTunesChannelChildren)) {
$imageAttributes = $iTunesChannelChildren->image->attributes();
$image = $this->stringOrNull(isset($imageAttributes) ? (string) $imageAttributes->href : '');
}
if (!isset($image)) {
$image = $this->stringOrNull($item->image->url);
}
if (!isset($image)) {
$image = $this->stringOrNull($channel->image->url);
}
if (!isset($image)) {
preg_match('/<itunes:image\s+href="([^"]+)"/', $xmlString, $matches);
if (count($matches) > 1) {

9172
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,11 +2,14 @@
"name": "repod",
"license": "AGPL-3.0-or-later",
"scripts": {
"build": "NODE_ENV=production webpack --config webpack.js --progress",
"dev": "NODE_ENV=development webpack --config webpack.js --progress",
"watch": "NODE_ENV=development webpack --config webpack.js --progress --watch",
"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",
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css"
"lint:fix": "eslint src --fix",
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css",
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix"
},
"browserslist": [
"extends @nextcloud/browserslist-config"
@ -14,25 +17,28 @@
"prettier": "@nextcloud/prettier-config",
"dependencies": {
"@nextcloud/axios": "^2.5.0",
"@nextcloud/dialogs": "^5.3.1",
"@nextcloud/initial-state": "^2.2.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^8.12.0",
"vue": "^2",
"@nextcloud/vite-config": "^2.2.2",
"@nextcloud/vue": "9.0.0-alpha.5",
"dompurify": "^3.1.6",
"linkify-html": "^4.1.3",
"pinia": "^2.2.2",
"toastify-js": "^1.12.0",
"vite": "^5.4.3",
"vite-plugin-vue-devtools": "^7.4.3",
"vue": "^3.5.0",
"vue-material-design-icons": "^5.3.0",
"vue-router": "^3",
"vuex": "^3"
"vue-router": "^4.4.3"
},
"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",
"@nextcloud/webpack-vue-config": "^6.0.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-webpack-plugin": "^4.2.0",
"stylelint-webpack-plugin": "^5.0.1"
"eslint-plugin-pinia": "^0.4.1",
"eslint-plugin-prettier": "^5.2.1"
}
}

View File

@ -8,12 +8,14 @@
</template>
<script>
import '@nextcloud/dialogs/style.css'
import 'toastify-js/src/toastify.css'
import { mapActions, mapState } from 'pinia'
import Bar from './components/Player/Bar.vue'
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'
export default {
name: 'App',
@ -24,9 +26,22 @@ export default {
Subscriptions,
},
computed: {
...mapState(usePlayer, ['paused']),
gpodder() {
return loadState('repod', 'gpodder', false)
},
},
mounted() {
this.init()
setInterval(this.loop, 40000)
},
methods: {
...mapActions(usePlayer, ['init', 'time']),
loop() {
if (this.paused === false) {
this.time()
}
},
},
}
</script>

View File

@ -1,11 +1,13 @@
<template>
<NcAppContent :class="episode ? 'padding' : ''">
<NcAppContent :class="{ episode }">
<slot />
</NcAppContent>
</template>
<script>
import { NcAppContent } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
export default {
name: 'AppContent',
@ -13,15 +15,13 @@ export default {
NcAppContent,
},
computed: {
episode() {
return this.$store.state.player.episode
},
...mapState(usePlayer, ['episode']),
},
}
</script>
<style scoped>
.padding {
.episode {
padding-bottom: 6rem;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<NcAppNavigation :class="episode ? 'padding' : ''">
<NcAppNavigation :class="{ episode }">
<slot />
<template #list>
<slot name="list" />
@ -12,6 +12,8 @@
<script>
import { NcAppNavigation } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
export default {
name: 'AppNavigation',
@ -19,15 +21,13 @@ export default {
NcAppNavigation,
},
computed: {
episode() {
return this.$store.state.player.episode
},
...mapState(usePlayer, ['episode']),
},
}
</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>
import { NcEmptyContent } from '@nextcloud/vue'
export default {
name: 'EmptyContent',
components: {
NcEmptyContent,
},
}
</script>
<style scoped>
.empty {
height: 100%;
}
</style>

View File

@ -1,21 +1,29 @@
<!-- eslint-disable vue/no-v-html -->
<template>
<div>
<NcAvatar :display-name="name" :is-no-user="true" :size="256" :url="image" />
<h2>{{ name }}</h2>
<p v-html="strippedDescription" />
<div>
<NcButton v-if="link" :href="link" target="_blank">
<div class="flex">
<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="episode.link" :href="episode.link" target="_blank">
<template #icon>
<OpenInNewIcon :size="20" />
</template>
{{ title }}
{{ episode.title }}
</NcButton>
<NcButton v-if="url" :href="url" target="_blank">
<NcButton
v-if="episode.url"
:download="filenameFromUrl(episode.url)"
:href="episode.url"
target="_blank">
<template #icon>
<DownloadIcon :size="20" />
</template>
{{ t('repod', 'Download') }} {{ size ? `(${episodeFileSize})` : '' }}
{{ t('repod', 'Download') }}
{{ episode.size ? `(${humanFileSize(episode.size)})` : '' }}
</NcButton>
</div>
</div>
@ -25,7 +33,8 @@
import { NcAvatar, NcButton } from '@nextcloud/vue'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
import { cleanHtml } from '../../utils/text.js'
import SafeHtml from './SafeHtml.vue'
import { filenameFromUrl } from '../../utils/url.js'
import { humanFileSize } from '../../utils/size.js'
export default {
@ -35,50 +44,23 @@ export default {
NcAvatar,
NcButton,
OpenInNewIcon,
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,
required: true,
},
},
computed: {
episodeFileSize() {
return humanFileSize(this.size)
},
strippedDescription() {
return cleanHtml(this.description)
},
methods: {
filenameFromUrl,
humanFileSize,
},
}
</script>
<style scoped>
div {
.flex {
align-items: center;
display: flex;
flex-direction: column;

View File

@ -0,0 +1,36 @@
<template>
<div v-sanitize="source" class="html" />
</template>
<script>
import dompurify from 'dompurify'
import linkifyHtml from 'linkify-html'
export default {
name: 'SafeHtml',
directives: {
sanitize: {
mounted(el, binding) {
el.innerHTML = dompurify.sanitize(
linkifyHtml(binding.value, {
nl2br: true,
target: '_blank',
}),
)
},
},
},
props: {
source: {
type: String,
required: true,
},
},
}
</script>
<style>
.html a {
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>
@ -13,7 +13,7 @@
<script>
import { NcAppNavigationList, NcAppNavigationNewItem } from '@nextcloud/vue'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import { encodeUrl } from '../../utils/url.js'
import { toFeedUrl } from '../../utils/url.js'
export default {
name: 'AddRss',
@ -23,15 +23,13 @@ export default {
PlusIcon,
},
methods: {
addSubscription(feedUrl) {
this.$router.push(encodeUrl(feedUrl))
},
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,8 @@
</template>
<template #actions>
<NcActionButton
v-if="!isSubscribed"
v-if="!getSubscriptions.includes(feed.link)"
:aria-label="t('repod', 'Subscribe')"
:name="t('repod', 'Subscribe')"
:title="t('repod', 'Subscribe')"
@click="addSubscription(feed.link)">
@ -35,14 +36,16 @@
<script>
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 axios from '@nextcloud/axios'
import { debounce } from '../../utils/debounce.js'
import { formatLocaleDate } from '../../utils/time.js'
import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import { toUrl } from '../../utils/url.js'
import { showError } from '../../utils/toast.js'
import { toFeedUrl } from '../../utils/url.js'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Search',
@ -59,11 +62,12 @@ export default {
required: true,
},
},
data() {
return {
feeds: [],
loading: false,
}
data: () => ({
feeds: [],
loading: false,
}),
computed: {
...mapState(useSubscriptions, ['getSubscriptions']),
},
watch: {
value() {
@ -71,8 +75,9 @@ export default {
},
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
formatLocaleDate,
toUrl,
toFeedUrl,
async addSubscription(url) {
try {
await axios.post(
@ -87,7 +92,7 @@ export default {
showError(t('repod', 'Error while adding the feed'))
}
this.$store.dispatch('subscriptions/fetch')
this.fetch()
},
search: debounce(async function value() {
try {

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>
@ -16,8 +16,8 @@
import Loading from '../Atoms/Loading.vue'
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import { toUrl } from '../../utils/url.js'
import { showError } from '../../utils/toast.js'
import { toFeedUrl } from '../../utils/url.js'
export default {
name: 'Toplist',
@ -30,12 +30,10 @@ export default {
required: true,
},
},
data() {
return {
loading: true,
tops: [],
}
},
data: () => ({
loading: true,
tops: [],
}),
computed: {
title() {
switch (this.type) {
@ -63,7 +61,7 @@ export default {
}
},
methods: {
toUrl,
toFeedUrl,
},
}
</script>

View File

@ -1,4 +1,3 @@
<!-- eslint-disable vue/no-v-html -->
<template>
<div class="header">
<img class="background" :src="imageUrl" />
@ -21,12 +20,10 @@
<i>{{ author }}</i>
</a>
<br /><br />
<p>
<small v-html="strippedDescription" />
</p>
<SafeHtml :source="description" />
</div>
<NcAppNavigationNew
v-if="!isSubscribed"
v-if="!getSubscriptions.includes(url)"
:text="t('repod', 'Subscribe')"
@click="addSubscription">
<template #icon>
@ -40,13 +37,15 @@
<script>
import { NcAppNavigationNew, NcAvatar } from '@nextcloud/vue'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { mapActions, mapState } from 'pinia'
import { showError, showSuccess } from '../../utils/toast.js'
import PlusIcon from 'vue-material-design-icons/Plus.vue'
import RssIcon from 'vue-material-design-icons/Rss.vue'
import SafeHtml from '../Atoms/SafeHtml.vue'
import axios from '@nextcloud/axios'
import { cleanHtml } from '../../utils/text.js'
import { decodeUrl } from '../../utils/url.js'
import { generateUrl } from '@nextcloud/router'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Banner',
@ -55,6 +54,7 @@ export default {
NcAppNavigationNew,
PlusIcon,
RssIcon,
SafeHtml,
},
props: {
author: {
@ -79,17 +79,13 @@ export default {
},
},
computed: {
...mapState(useSubscriptions, ['getSubscriptions']),
url() {
return decodeUrl(this.$route.params.url)
},
isSubscribed() {
return this.$store.state.subscriptions.subscriptions.includes(this.url)
},
strippedDescription() {
return cleanHtml(this.description)
},
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
async addSubscription() {
try {
await axios.post(
@ -104,11 +100,11 @@ export default {
showError(t('repod', 'Error while adding the feed'))
}
this.$store.dispatch('subscriptions/fetch')
this.fetch()
},
copyFeed() {
window.navigator.clipboard.writeText(this.url)
showSuccess(t('repod', "Feed's link copied to the clipboard"))
showSuccess(t('repod', 'Link copied to the clipboard'))
},
},
}

View File

@ -0,0 +1,215 @@
<template>
<NcListItem
:active="isCurrentEpisode(episode)"
class="episode"
:details="!oneLine ? formatLocaleDate(new Date(episode.pubDate?.date)) : ''"
:force-display-actions="true"
:name="episode.name"
:one-line="oneLine"
:style="{ opacity: hasEnded(episode) ? 0.4 : 1 }"
: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"
: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="isListening(episode) && !oneLine"
class="progress"
:value="(episode.action.position * 100) / episode.action.total" />
</template>
<template #subname>
{{ episode.duration }}
</template>
</NcListItem>
</template>
<script>
import {
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
} from '@nextcloud/vue'
import {
durationToSeconds,
formatEpisodeTimestamp,
formatLocaleDate,
} from '../../utils/time.js'
import { hasEnded, isListening } from '../../utils/status.js'
import { mapActions, mapState } from 'pinia'
import DownloadIcon from 'vue-material-design-icons/Download.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 { filenameFromUrl } from '../../utils/url.js'
import { generateUrl } from '@nextcloud/router'
import { showError } from '../../utils/toast.js'
import { usePlayer } from '../../store/player.js'
export default {
name: 'Episode',
components: {
DownloadIcon,
Modal,
NcActionButton,
NcActionLink,
NcActions,
NcAvatar,
NcListItem,
NcModal,
NcProgressBar,
OpenInNewIcon,
PlayIcon,
PlaylistPlayIcon,
PlaylistRemoveIcon,
StopIcon,
},
props: {
episode: {
type: Object,
required: true,
},
oneLine: {
type: Boolean,
default: false,
},
url: {
type: String,
required: true,
},
},
data: () => ({
loading: false,
modalEpisode: null,
}),
computed: {
...mapState(usePlayer, { playerEpisode: 'episode' }),
},
methods: {
...mapActions(usePlayer, ['load']),
formatLocaleDate,
hasEnded,
isListening,
filenameFromUrl,
isCurrentEpisode(episode) {
return this.playerEpisode?.url === episode.url
},
async markAs(episode, read) {
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,179 +2,40 @@
<div>
<Loading v-if="loading" />
<ul v-if="!loading">
<NcListItem
<Episode
v-for="episode in filteredEpisodes"
:key="episode.guid"
:active="isCurrentEpisode(episode)"
:class="hasEnded(episode) ? 'ended' : ''"
:details="formatLocaleDate(new Date(episode.pubDate?.date))"
:force-display-actions="true"
:name="episode.name"
:title="episode.description"
@click="modalEpisode = episode">
<template #actions>
<NcActionButton
v-if="!isCurrentEpisode(episode)"
:aria-label="t('repod', 'Play')"
:name="t('repod', 'Play')"
:title="t('repod', 'Play')"
@click="load(episode)">
<template #icon>
<PlayIcon :size="20" />
</template>
</NcActionButton>
<NcActionButton
v-if="isCurrentEpisode(episode)"
:aria-label="t('repod', 'Stop')"
:name="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"
: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 {
durationToSeconds,
formatEpisodeTimestamp,
formatLocaleDate,
} from '../../utils/time.js'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
import { EventBus } from '../../store/bus.js'
import { hasEnded, isListening } from '../../utils/status.js'
import Episode from './Episode.vue'
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.js'
import { generateUrl } from '@nextcloud/router'
import { showError } from '@nextcloud/dialogs'
import { mapState } from 'pinia'
import { showError } from '../../utils/toast.js'
import { usePlayer } from '../../store/player.js'
import { useSettings } from '../../store/settings.js'
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: [],
loading: true,
}),
computed: {
currentEpisode() {
return this.$store.state.player.episode
},
filters() {
return this.$store.state.settings.filters
},
...mapState(usePlayer, ['episode']),
...mapState(useSettings, ['filters']),
filteredEpisodes() {
return this.episodes.filter((episode) => {
if (!this.filters.listened && this.hasEnded(episode)) {
@ -196,6 +57,15 @@ export default {
return decodeUrl(this.$route.params.url)
},
},
watch: {
episode() {
if (this.episode) {
this.episodes = this.episodes.map((e) =>
e.url === this.episode.url ? this.episode : e,
)
}
},
},
async mounted() {
try {
this.loading = true
@ -207,7 +77,6 @@ export default {
this.episodes = [...episodes.data].sort(
(a, b) => new Date(b.pubDate?.date) - new Date(a.pubDate?.date),
)
EventBus.$on('updateEpisodesList', this.updateList)
} catch (e) {
console.error(e)
showError(t('repod', 'Could not fetch episodes'))
@ -215,72 +84,9 @@ export default {
this.loading = false
}
},
destroyed() {
EventBus.$off('updateEpisodesList')
},
methods: {
formatLocaleDate,
hasEnded(episode) {
return (
episode.action &&
episode.action.position > 0 &&
episode.action.total > 0 &&
episode.action.position >= episode.action.total
)
},
isCurrentEpisode(episode) {
return this.currentEpisode && this.currentEpisode.url === episode.url
},
isListening(episode) {
return (
episode.action &&
episode.action.action.toLowerCase() === 'play' &&
!this.hasEnded(episode)
)
},
load(episode) {
this.$store.dispatch('player/load', 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],
)
this.updateList(episode)
} catch (e) {
console.error(e)
showError(t('repod', 'Could not change the status of the episode'))
} finally {
this.loadingAction = false
}
},
updateList(episode) {
this.episodes = this.episodes.map((e) =>
e.url === episode.url ? episode : e,
)
},
hasEnded,
isListening,
},
}
</script>
<style scoped>
.ended {
opacity: 0.4;
}
.progress {
margin-top: 0.4rem;
}
</style>

View File

@ -0,0 +1,108 @@
<template>
<NcGuestContent class="guest">
<Loading v-if="!currentFavoriteData" />
<NcAvatar
v-if="currentFavoriteData"
class="avatar"
:display-name="currentFavoriteData.author || currentFavoriteData.title"
:is-no-user="true"
:size="222"
:url="currentFavoriteData.imageUrl" />
<div class="list">
<h2 class="title">{{ currentFavoriteData.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="url" />
</ul>
</div>
</NcGuestContent>
</template>
<script>
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.js'
import { mapState } from 'pinia'
import { showError } from '../../utils/toast.js'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Favorite',
components: {
Episode,
Loading,
NcAvatar,
NcGuestContent,
},
props: {
url: {
type: String,
required: true,
},
},
data: () => ({
episodes: [],
loading: true,
}),
computed: {
...mapState(useSubscriptions, ['getFavorites']),
currentFavoriteData() {
return this.getFavorites.find((fav) => fav.url === this.url)
},
},
async mounted() {
try {
this.loading = true
const episodes = await axios.get(
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),
)
.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;
}
.list {
flex: 1;
}
.title {
text-align: center;
}
@media only screen and (max-width: 768px) {
.avatar {
display: none;
}
}
</style>

View File

@ -1,10 +1,10 @@
<template>
<div v-if="player.episode" class="footer">
<img class="background" :src="player.episode.image" />
<Loading v-if="!player.loaded" />
<ProgressBar v-if="player.loaded" />
<div v-if="player.loaded" class="player">
<img :src="player.episode.image" />
<div v-if="episode" class="footer">
<img class="background" :src="episode.image" />
<Loading v-if="!loaded" />
<ProgressBar v-if="loaded" />
<div v-if="loaded" class="player">
<img :src="episode.image" />
<Infos class="infos" />
<Controls class="controls" />
<Timer class="timer" />
@ -20,6 +20,8 @@ import Loading from '../Atoms/Loading.vue'
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'
export default {
name: 'Bar',
@ -32,9 +34,7 @@ export default {
Volume,
},
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['episode', 'loaded']),
},
}
</script>
@ -78,7 +78,7 @@ export default {
@media only screen and (max-width: 768px) {
.infos {
flex: 2;
flex: 1;
}
.timer,

View File

@ -1,21 +1,15 @@
<template>
<div class="controls">
<PauseIcon
v-if="!player.paused"
class="pointer"
:size="50"
@click="$store.dispatch('player/pause')" />
<PlayIcon
v-if="player.paused"
class="pointer"
:size="50"
@click="$store.dispatch('player/play')" />
<PauseIcon v-if="!paused" class="pointer" :size="50" @click="pause" />
<PlayIcon v-if="paused" class="pointer" :size="50" @click="play" />
</div>
</template>
<script>
import { mapActions, mapState } from 'pinia'
import PauseIcon from 'vue-material-design-icons/Pause.vue'
import PlayIcon from 'vue-material-design-icons/Play.vue'
import { usePlayer } from '../../store/player.js'
export default {
name: 'Controls',
@ -24,9 +18,10 @@ export default {
PlayIcon,
},
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['paused']),
},
methods: {
...mapActions(usePlayer, ['play', 'pause']),
},
}
</script>

View File

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

View File

@ -1,20 +1,24 @@
<template>
<input
class="progress"
:max="player.duration"
:max="duration"
min="0"
type="range"
:value="player.currentTime"
@change="(event) => $store.dispatch('player/seek', event.target.value)" />
:value="currentTime"
@change="(event) => seek(event.target.value)" />
</template>
<script>
import { mapActions, mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
export default {
name: 'ProgressBar',
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['duration', 'currentTime']),
},
methods: {
...mapActions(usePlayer, ['seek']),
},
}
</script>

View File

@ -1,20 +1,20 @@
<template>
<div>
<span>{{ formatTimer(new Date(player.currentTime * 1000)) }}</span>
<div class="root">
<span>{{ formatTimer(new Date(currentTime * 1000)) }}</span>
<span>/</span>
<span>{{ formatTimer(new Date(player.duration * 1000)) }}</span>
<span>{{ formatTimer(new Date(duration * 1000)) }}</span>
</div>
</template>
<script>
import { formatTimer } from '../../utils/time.js'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
export default {
name: 'Timer',
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['duration', 'currentTime']),
},
methods: {
formatTimer,
@ -23,7 +23,7 @@ export default {
</script>
<style scoped>
div {
.root {
align-items: center;
display: flex;
gap: 5px;

View File

@ -1,42 +1,42 @@
<template>
<div>
<VolumeHighIcon
v-if="player.volume > 0.7"
v-if="volume > 0.7"
class="pointer"
:size="30"
@click="mute" />
<VolumeLowIcon
v-if="player.volume > 0 && player.volume <= 0.3"
v-if="volume > 0 && volume <= 0.3"
class="pointer"
:size="30"
@click="mute" />
<VolumeMediumIcon
v-if="player.volume > 0.3 && player.volume <= 0.7"
v-if="volume > 0.3 && volume <= 0.7"
class="pointer"
:size="30"
@click="mute" />
<VolumeMuteIcon
v-if="player.volume === 0"
v-if="volume === 0"
class="pointer"
:size="30"
@click="$store.dispatch('player/volume', volumeMuted)" />
@click="setVolume(volumeMuted)" />
<input
max="1"
min="0"
step="0.1"
type="range"
:value="player.volume"
@change="
(event) => $store.dispatch('player/volume', event.target.value)
" />
:value="volume"
@change="(event) => setVolume(event.target.value)" />
</div>
</template>
<script>
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'
export default {
name: 'Volume',
@ -46,20 +46,17 @@ export default {
VolumeMediumIcon,
VolumeMuteIcon,
},
data() {
return {
volumeMuted: 0,
}
},
data: () => ({
volumeMuted: 0,
}),
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['volume']),
},
methods: {
...mapActions(usePlayer, ['setVolume']),
mute() {
this.volumeMuted = this.player.volume
this.$store.dispatch('player/volume', 0)
this.volumeMuted = this.volume
this.setVolume(0)
},
},
}

View File

@ -5,40 +5,30 @@
:name="t('repod', 'Filtering episodes')">
<template #actions>
<NcActionCheckbox
:checked="all"
:disabled="all"
@update:checked="
(checked) =>
$store.commit('settings/filters', {
listened: checked,
listening: checked,
unlistened: checked,
})
:model-value="all"
@change="
setFilters({
listened: true,
listening: true,
unlistened: true,
})
">
{{ t('repod', 'Show all') }}
</NcActionCheckbox>
<NcActionCheckbox
:checked="filters.listened"
@update:checked="
(checked) =>
$store.commit('settings/filters', { listened: checked })
">
:model-value="filters.listened"
@change="setFilters({ listened: !filters.listened })">
{{ t('repod', 'Listened') }}
</NcActionCheckbox>
<NcActionCheckbox
:checked="filters.listening"
@update:checked="
(checked) =>
$store.commit('settings/filters', { listening: checked })
">
:model-value="filters.listening"
@change="setFilters({ listening: !filters.listening })">
{{ t('repod', 'Listening') }}
</NcActionCheckbox>
<NcActionCheckbox
:checked="filters.unlistened"
@update:checked="
(checked) =>
$store.commit('settings/filters', { unlistened: checked })
">
:model-value="filters.unlistened"
@change="setFilters({ unlistened: !filters.unlistened })">
{{ t('repod', 'Unlistened') }}
</NcActionCheckbox>
</template>
@ -51,8 +41,10 @@
<script>
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 { useSettings } from '../../store/settings.js'
export default {
name: 'Filters',
@ -63,6 +55,7 @@ export default {
NcActionCheckbox,
},
computed: {
...mapState(useSettings, ['filters']),
all() {
return (
this.filters.listened &&
@ -70,12 +63,9 @@ export default {
this.filters.unlistened
)
},
filters() {
return this.$store.state.settings.filters
},
},
mounted() {
this.$store.dispatch('settings/fetch')
methods: {
...mapActions(useSettings, ['setFilters']),
},
}
</script>

View File

@ -44,12 +44,10 @@ export default {
NcAppNavigationItem,
NcModal,
},
data() {
return {
loading: false,
modal: false,
}
},
data: () => ({
loading: false,
modal: false,
}),
methods: {
generateUrl,
async importOpml(event) {

View File

@ -3,27 +3,27 @@
<template #extra>
<div class="extra">
<MinusIcon class="pointer" :size="20" @click="changeRate(-0.1)" />
<NcCounterBubble class="counter">
x{{ player.rate }}
</NcCounterBubble>
<NcCounterBubble class="counter">x{{ rate }}</NcCounterBubble>
<PlusIcon class="pointer" :size="20" @click="changeRate(0.1)" />
</div>
</template>
<template #icon>
<SpeedometerSlowIcon v-if="player.rate < 1" :size="20" />
<SpeedometerMediumIcon v-if="player.rate === 1" :size="20" />
<SpeedometerIcon v-if="player.rate > 1" :size="20" />
<SpeedometerSlowIcon v-if="rate < 1" :size="20" />
<SpeedometerMediumIcon v-if="rate === 1" :size="20" />
<SpeedometerIcon v-if="rate > 1" :size="20" />
</template>
</NcAppNavigationItem>
</template>
<script>
import { NcAppNavigationItem, NcCounterBubble } from '@nextcloud/vue'
import { mapActions, mapState } from 'pinia'
import MinusIcon from 'vue-material-design-icons/Minus.vue'
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'
export default {
name: 'Speed',
@ -37,17 +37,13 @@ export default {
SpeedometerSlowIcon,
},
computed: {
player() {
return this.$store.state.player
},
...mapState(usePlayer, ['rate']),
},
methods: {
...mapActions(usePlayer, ['setRate']),
changeRate(diff) {
const newRate = (this.player.rate + diff).toPrecision(2)
this.$store.dispatch(
'player/rate',
newRate > 0 ? newRate : this.player.rate,
)
const newRate = (this.rate + diff).toPrecision(2)
this.setRate(newRate > 0 ? newRate : this.rate)
},
},
}

View File

@ -2,8 +2,19 @@
<NcAppNavigationItem
:loading="loading"
:name="feed ? feed.title : url"
:to="hash">
:to="toFeedUrl(url)">
<template #actions>
<NcActionButton
:aria-label="t('repod', 'Favorite')"
:model-value="isFavorite"
:name="t('repod', 'Favorite')"
:title="t('repod', 'Favorite')"
@update:modelValue="switchFavorite($event)">
<template #icon>
<StarPlusIcon v-if="!isFavorite" :size="20" />
<StarRemoveIcon v-if="isFavorite" :size="20" />
</template>
</NcActionButton>
<NcActionButton
:aria-label="t(`core`, 'Delete')"
:name="t(`core`, 'Delete')"
@ -20,6 +31,7 @@
:display-name="feed.author || feed.title"
:is-no-user="true"
:url="feed.imageUrl" />
<StarIcon v-if="feed && isFavorite" class="star" :size="20" />
<AlertIcon v-if="failed" />
</template>
</NcAppNavigationItem>
@ -27,21 +39,29 @@
<script>
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 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 '@nextcloud/dialogs'
import { toUrl } from '../../utils/url.js'
import { showError } from '../../utils/toast.js'
import { toFeedUrl } from '../../utils/url.js'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Item',
name: 'Subscription',
components: {
AlertIcon,
DeleteIcon,
NcActionButton,
NcAppNavigationItem,
NcAvatar,
StarIcon,
StarPlusIcon,
StarRemoveIcon,
},
props: {
url: {
@ -49,16 +69,15 @@ export default {
required: true,
},
},
data() {
return {
failed: false,
loading: true,
feed: null,
}
},
data: () => ({
failed: false,
loading: true,
feed: null,
}),
computed: {
hash() {
return toUrl(this.url)
...mapState(useSubscriptions, ['getFavorites']),
isFavorite() {
return this.getFavorites.map((fav) => fav.url).includes(this.url)
},
},
async mounted() {
@ -72,6 +91,7 @@ export default {
),
)
this.feed = podcastData.data.data
this.editFavoriteData(this.url, podcastData.data.data)
} catch (e) {
this.failed = true
console.error(e)
@ -80,6 +100,13 @@ export default {
}
},
methods: {
...mapActions(useSubscriptions, [
'fetch',
'addFavorite',
'editFavoriteData',
'removeFavorite',
]),
toFeedUrl,
async deleteSubscription() {
if (
confirm(
@ -96,11 +123,33 @@ export default {
console.error(e)
showError(t('repod', 'Error while removing the feed'))
} finally {
this.removeFavorite(this.url)
this.loading = false
this.$store.dispatch('subscriptions/fetch')
this.fetch()
}
}
},
switchFavorite(value) {
if (value) {
if (this.getFavorites.length >= 10) {
showError(t('repod', 'You can only have 10 favorites'))
return
}
this.addFavorite(this.url)
} else {
this.removeFavorite(this.url)
}
},
},
}
</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,17 @@
</router-link>
<Loading v-if="loading" />
<NcAppNavigationList v-if="!loading">
<Item
v-for="subscriptionUrl of subscriptions"
:key="subscriptionUrl"
:url="subscriptionUrl" />
<Subscription
v-for="url of getFavorites.map((fav) => fav.url)"
:key="url"
:url="url" />
<Subscription
v-for="url of getSubscriptions.filter(
(sub) =>
!getFavorites.map((fav) => fav.url).includes(sub),
)"
:key="url"
:url="url" />
</NcAppNavigationList>
</NcAppContentList>
</template>
@ -30,38 +37,36 @@ import {
NcAppNavigationList,
NcAppNavigationNew,
} 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 '@nextcloud/dialogs'
import Subscription from './Subscription.vue'
import { showError } from '../../utils/toast.js'
import { useSubscriptions } from '../../store/subscriptions.js'
export default {
name: 'Subscriptions',
components: {
AppNavigation,
Item,
Loading,
NcAppContentList,
NcAppNavigationList,
NcAppNavigationNew,
PlusIcon,
Settings,
Subscription,
},
data() {
return {
loading: true,
}
},
data: () => ({
loading: true,
}),
computed: {
subscriptions() {
return this.$store.state.subscriptions.subscriptions
},
...mapState(useSubscriptions, ['getSubscriptions', 'getFavorites']),
},
async mounted() {
try {
await this.$store.dispatch('subscriptions/fetch')
await this.fetch()
} catch (e) {
console.error(e)
showError(t('repod', 'Could not fetch subscriptions'))
@ -69,5 +74,8 @@ export default {
this.loading = false
}
},
methods: {
...mapActions(useSubscriptions, ['fetch']),
},
}
</script>

View File

@ -1,13 +1,13 @@
import { n, t } from '@nextcloud/l10n'
import App from './App.vue'
import Vue from 'vue'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router.js'
import store from './store/main.js'
const Vue = createApp(App)
const pinia = createPinia()
Vue.mixin({ methods: { t, n } })
const View = Vue.extend(App)
new View({
router,
store,
}).$mount('#content')
Vue.use(pinia)
Vue.use(router)
Vue.mount('#content')

View File

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

View File

@ -1,3 +0,0 @@
import Vue from 'vue'
export const EventBus = new Vue()

View File

@ -1,17 +0,0 @@
import Vuex, { Store } from 'vuex'
import Vue from 'vue'
import { player } from './player.js'
import { settings } from './settings.js'
import { subscriptions } from './subscriptions.js'
Vue.use(Vuex)
const store = new Store({
modules: {
player,
settings,
subscriptions,
},
})
export default store

View File

@ -1,25 +1,12 @@
import { EventBus } from './bus.js'
import axios from '@nextcloud/axios'
import { decodeUrl } from '../utils/url.js'
import { defineStore } from 'pinia'
import { formatEpisodeTimestamp } from '../utils/time.js'
import { generateUrl } from '@nextcloud/router'
import router from '../router.js'
import store from './main.js'
const audio = new Audio()
audio.ondurationchange = () => store.commit('player/duration', audio.duration)
audio.onended = () => store.dispatch('player/stop')
audio.onloadeddata = () => store.commit('player/loaded', true)
audio.onplay = () => store.dispatch('player/play')
audio.onpause = () => store.dispatch('player/pause')
audio.onratechange = () => store.commit('player/rate', audio.playbackRate)
audio.onseeked = () => store.commit('player/currentTime', audio.currentTime)
audio.ontimeupdate = () => store.commit('player/currentTime', audio.currentTime)
audio.onvolumechange = () => store.commit('player/volume', audio.volume)
export const player = {
namespaced: true,
state: {
export const usePlayer = defineStore('player', {
state: () => ({
currentTime: null,
duration: null,
episode: null,
@ -29,119 +16,90 @@ export const player = {
volume: 1,
rate: 1,
started: 0,
},
mutations: {
action: (state, action) => {
state.episode.action = action
}),
actions: {
init() {
audio.ondurationchange = () => (this.duration = audio.duration)
audio.onended = () => this.stop()
audio.onloadeddata = () => (this.loaded = true)
audio.onpause = () => this.pause()
audio.onplay = () => this.play()
audio.onratechange = () => (this.rate = audio.playbackRate)
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 (action && action.position && action.position < action.total) {
audio.currentTime = action.position
state.started = audio.currentTime
}
},
currentTime: (state, currentTime) => {
state.currentTime = currentTime
},
duration: (state, duration) => {
state.duration = duration
},
episode: (state, episode) => {
state.episode = episode
if (episode) {
state.podcastUrl = decodeUrl(router.currentRoute.params.url)
audio.src = episode.url
if (this.episode) {
audio.src = this.episode.url
audio.load()
audio.play()
try {
const action = await axios.get(
generateUrl('/apps/repod/episodes/action?url={url}', {
url: this.episode.url,
}),
)
this.episode.action = action.data
} catch {}
if (
episode.action &&
episode.action.position &&
episode.action.position < episode.action.total
this.episode.action &&
this.episode.action.position < this.episode.action.total
) {
audio.currentTime = episode.action.position
state.started = audio.currentTime
audio.currentTime = this.episode.action.position
this.started = audio.currentTime
}
audio.play()
} else {
state.loaded = false
state.podcastUrl = null
this.loaded = false
this.podcastUrl = null
audio.src = ''
}
},
loaded: (state, loaded) => {
state.loaded = loaded
},
paused: (state, paused) => {
state.paused = paused
},
volume: (state, volume) => {
state.volume = volume
},
rate: (state, rate) => {
state.rate = rate
},
started: (state, started) => {
state.started = started
},
},
actions: {
load: async (context, episode) => {
context.commit('episode', episode)
try {
const action = await axios.get(
generateUrl('/apps/repod/episodes/action?url={url}', {
url: episode.url,
}),
)
context.commit('action', action.data)
} catch {}
},
pause: (context) => {
pause() {
audio.pause()
context.commit('paused', true)
context.dispatch('time')
this.paused = true
this.time()
},
play: (context) => {
play() {
audio.play()
context.commit('paused', false)
context.commit('started', audio.currentTime)
this.paused = false
this.started = audio.currentTime
},
seek: (context, currentTime) => {
seek(currentTime) {
audio.currentTime = currentTime
context.dispatch('time')
this.time()
},
stop: (context) => {
context.dispatch('pause')
context.commit('episode', null)
stop() {
this.pause()
this.episode = null
},
time: async (context) => {
const episode = context.state.episode
episode.action = {
podcast: context.state.podcastUrl,
episode: context.state.episode.url,
guid: context.state.episode.guid,
time() {
this.episode.action = {
podcast: this.podcastUrl,
episode: this.episode.url,
guid: this.episode.guid,
action: 'play',
timestamp: formatEpisodeTimestamp(new Date()),
started: Math.round(context.state.started),
started: Math.round(this.started),
position: Math.round(audio.currentTime),
total: Math.round(audio.duration),
}
axios.post(generateUrl('/apps/gpoddersync/episode_action/create'), [
episode.action,
this.episode.action,
])
EventBus.$emit('updateEpisodesList', episode)
},
volume: (_, volume) => {
setVolume(volume) {
audio.volume = volume
},
rate: (_, rate) => {
setRate(rate) {
audio.playbackRate = rate
},
},
}
setInterval(() => {
if (player.state.paused === false) {
store.dispatch('player/time')
}
}, 40000)
})

View File

@ -1,28 +1,31 @@
import { getCookie, setCookie } from '../utils/cookies.js'
import { defineStore } from 'pinia'
export const settings = {
namespaced: true,
state: {
filters: {
listened: true,
listening: true,
unlistened: true,
},
},
mutations: {
filters: (state, filters) => {
state.filters = { ...state.filters, ...filters }
setCookie('repod.filters', JSON.stringify(state.filters), 365)
},
export const useSettings = defineStore('settings', {
state: () => {
try {
const filters = JSON.parse(getCookie('repod.filters'))
return {
filters: {
listened: filters.listened,
listening: filters.listening,
unlistened: filters.unlistened,
},
}
} catch {
return {
filters: {
listened: true,
listening: true,
unlistened: true,
},
}
}
},
actions: {
fetch: (context) => {
try {
const filters = getCookie('repod.filters')
context.commit('filters', JSON.parse(filters))
} catch (e) {
// nothing
}
setFilters(filters) {
this.filters = { ...this.filters, ...filters }
setCookie('repod.filters', JSON.stringify(this.filters), 365)
},
},
}
})

View File

@ -1,28 +1,58 @@
import { getCookie, setCookie } from '../utils/cookies.js'
import axios from '@nextcloud/axios'
import { defineStore } from 'pinia'
import { generateUrl } from '@nextcloud/router'
export const subscriptions = {
namespaced: true,
state: {
subscriptions: [],
},
mutations: {
set: (state, subscriptions) => {
state.subscriptions = subscriptions
export const useSubscriptions = defineStore('subscriptions', {
state: () => ({
subs: [],
favs: [],
}),
getters: {
getSubscriptions: (state) => {
return state.subs
},
getFavorites: (state) => {
return state.favs
.filter((fav) => state.subs.includes(fav.url))
.sort((fav) => fav.lastPub)
},
},
actions: {
fetch: async (context) => {
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,
)
context.commit(
'set',
subs.map((sub) => sub.url),
this.subs = subs.map((sub) => sub.url)
try {
const favs = JSON.parse(getCookie('repod.favorites')) || []
this.favs = favs.map((url) => ({ url }))
} catch {}
},
addFavorite(url) {
this.favs.push({ url })
setCookie(
'repod.favorites',
JSON.stringify(this.favs.map((fav) => fav.url)),
365,
)
},
editFavoriteData(url, data) {
this.favs = this.favs.map((fav) =>
fav.url === url ? { ...fav, ...data } : fav,
)
},
removeFavorite(url) {
this.favs = this.favs.filter((fav) => fav.url !== url)
setCookie(
'repod.favorites',
JSON.stringify(this.favs.map((fav) => fav.url)),
365,
)
},
},
}
})

14
src/utils/status.js Normal file
View File

@ -0,0 +1,14 @@
export const hasEnded = (episode) =>
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) =>
episode.action &&
episode.action.action &&
episode.action.action.toLowerCase() === 'play' &&
episode.action.position > 0 &&
!hasEnded(episode)

View File

@ -1,7 +0,0 @@
// https://stackoverflow.com/a/5002618
export const cleanHtml = (text) => {
const pre = document.createElement('pre')
pre.innerHTML = text.replace(/<br\s*\/?>/gm, '\n')
const strippedText = pre.textContent || pre.innerText || ''
return strippedText.replace(/\n/gm, '<br>')
}

12
src/utils/toast.js Normal file
View File

@ -0,0 +1,12 @@
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)')

View File

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

View File

@ -1,7 +1,9 @@
<template>
<AppContent class="main">
<NcTextField :label="t('repod', 'Find a podcast')" :value.sync="search">
<Magnify :size="20" />
<AppContent class="padding">
<NcTextField v-model="search" :label="t('repod', 'Find a podcast')">
<template #icon>
<Magnify :size="20" />
</template>
</NcTextField>
<Search v-if="search" :value="search" />
<Toplist v-if="!search" type="hot" />
@ -28,16 +30,14 @@ export default {
Search,
Toplist,
},
data() {
return {
search: '',
}
},
data: () => ({
search: '',
}),
}
</script>
<style scoped>
.main {
.padding {
padding: 15px 51px;
}
</style>

View File

@ -1,14 +1,11 @@
<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>
</EmptyContent>
<Banner
v-if="feed"
:author="feed.author"
@ -24,9 +21,9 @@
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 axios from '@nextcloud/axios'
import { decodeUrl } from '../utils/url.js'
import { generateUrl } from '@nextcloud/router'
@ -37,17 +34,15 @@ export default {
Alert,
AppContent,
Banner,
EmptyContent,
Episodes,
Loading,
NcEmptyContent,
},
data() {
return {
failed: false,
loading: true,
feed: null,
}
},
data: () => ({
failed: false,
loading: true,
feed: null,
}),
computed: {
url() {
return decodeUrl(this.$route.params.url)
@ -68,9 +63,3 @@ export default {
},
}
</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,22 +9,24 @@
<template #icon>
<Alert />
</template>
</NcEmptyContent>
</NcAppContent>
</EmptyContent>
</AppContent>
</template>
<script>
import { NcAppContent, NcButton, NcEmptyContent } from '@nextcloud/vue'
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'
export default {
name: 'GPodder',
components: {
Alert,
NcAppContent,
AppContent,
EmptyContent,
NcButton,
NcEmptyContent,
},
computed: {
gPodderSyncUrl() {

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

@ -0,0 +1,41 @@
<template>
<AppContent>
<EmptyContent
v-if="!getFavorites.length"
:description="
t('repod', 'Pin some subscriptions to see their latest updates')
"
:name="t('repod', 'No favorites')">
<template #icon>
<StarOffIcon />
</template>
</EmptyContent>
<ul v-if="getFavorites.length">
<li v-for="url in getFavorites.map((fav) => fav.url)" :key="url">
<Favorite :url="url" />
</li>
</ul>
</AppContent>
</template>
<script>
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 { useSubscriptions } from '../store/subscriptions.js'
export default {
name: 'Home',
components: {
AppContent,
EmptyContent,
Favorite,
StarOffIcon,
},
computed: {
...mapState(useSubscriptions, ['getFavorites']),
},
}
</script>

View File

@ -0,0 +1,162 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the Nextcloud package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Nextcloud 3.14159\n"
"Report-Msgid-Bugs-To: translations\\@example.com\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: OiledAmoeba <florian+crystalyx@ruhnke.cloud>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "RePod Subscriptions"
msgstr "RePod Abonnements"
msgid "Podcast"
msgstr "Podcast"
msgid "RePod"
msgstr "RePod"
msgid "🔊 Browse, manage and listen to podcasts"
msgstr "🔊 Suchen, Verwalten und Anhören von Podcasts"
msgid ""
"## 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\n"
"You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) "
"installed to use this app!"
msgstr ""
"## 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\n"
"Du musst [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) "
"installiert haben, um diese App zu benutzen!"
msgid "Download"
msgstr "Herunterladen"
msgid "Add a RSS link"
msgstr "Einen RSS-Link hinzufügen"
msgid "Subscribe"
msgstr "Abonnieren"
msgid "Error while adding the feed"
msgstr "Fehler beim Hinzufügen des Feeds"
msgid "Could not fetch search results"
msgstr "Suchergebnisse können nicht geladen werden"
msgid "New podcasts"
msgstr "Neue Podcasts"
msgid "Hot podcasts"
msgstr "Beliebte Podcasts"
msgid "Could not fetch tops"
msgstr "Titel können nicht abgerufen werden"
msgid "Copy feed"
msgstr "Feed kopieren"
msgid "Link copied to the clipboard"
msgstr "Der Link des Feeds wurde in die Zwischenablage kopiert"
msgid "Play"
msgstr "Abspielen"
msgid "Stop"
msgstr "Stopp"
msgid "Read"
msgstr "Gelesen"
msgid "Open website"
msgstr "Webseite aufrufen"
msgid "Could not change the status of the episode"
msgstr "Kann den Status der Folge nicht ändern"
msgid "Could not fetch episodes"
msgstr "Folgen können nicht abgerufen werden"
msgid "Export subscriptions"
msgstr "Abonnements exportieren"
msgid "Filtering episodes"
msgstr "Folgen filtern"
msgid "Show all"
msgstr "Zeige alles"
msgid "Listened"
msgstr "Gehört"
msgid "Listening"
msgstr "Läuft"
msgid "Unlistened"
msgstr "Nicht angehört"
msgid "Import subscriptions"
msgstr "Importiere Abonnements"
msgid "Import OPML file"
msgstr "Importiere OPML-Datei"
msgid "Rate RePod ❤️"
msgstr "Bewerte RePod ❤️"
msgid "Playback speed"
msgstr "Wiedergabegeschwindigkeit"
msgid "Favorite"
msgstr "Favorit"
msgid "Are you sure you want to delete this subscription?"
msgstr "Bist Du sicher, dass Du das Abonnement löschen möchtest?"
msgid "Error while removing the feed"
msgstr "Fehler beim Löschen des Feeds"
msgid "You can only have 10 favorites"
msgstr "Du kannst nur 10 Favoriten haben"
msgid "Add a podcast"
msgstr "Einen Podcast hinzufügen"
msgid "Could not fetch subscriptions"
msgstr "Abonnements können nicht abgerufen werden"
msgid "Find a podcast"
msgstr "Finde einen Podcast"
msgid "Error loading feed"
msgstr "Fehler beim Laden des Feeds"
msgid "Missing required app"
msgstr "Benötigte App fehlt"
msgid "Install GPodder Sync"
msgstr "Installiere GPodder Sync"
msgid "Pin some subscriptions to see their latest updates"
msgstr "Pinne einige Abonnements, um ihre neuesten Updates zu sehen"
msgid "No favorites"
msgstr "Keine Favoriten"

View File

@ -9,9 +9,9 @@ msgstr ""
"Project-Id-Version: Nextcloud 3.14159\n"
"Report-Msgid-Bugs-To: translations\\@example.com\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: Michel Roux <xefir@crystalyx.net>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@ -74,27 +74,27 @@ msgstr "Impossible de récupérer les tops"
msgid "Copy feed"
msgstr "Copier le flux"
msgid "Link copied to the clipboard"
msgstr "Lien vers le flux copié dans le presse-papiers"
msgid "Play"
msgstr "Lecture"
msgid "Stop"
msgstr "Arrêter"
msgid "Mark as read"
msgstr "Marquer comme lu"
msgid "Mark as unread"
msgstr "Marquer comme non lu"
msgid "Read"
msgstr "Lu"
msgid "Open website"
msgstr "Ouvrir le site web"
msgid "Could not fetch episodes"
msgstr "Impossible de récuprer les épisodes"
msgid "Could not change the status of the episode"
msgstr "Impossible de changer le status de l'épisode"
msgid "Could not fetch episodes"
msgstr "Impossible de récuprer les épisodes"
msgid "Export subscriptions"
msgstr "Exporter les abonnements"
@ -125,12 +125,18 @@ msgstr "Donnez votre avis ❤️"
msgid "Playback speed"
msgstr "Vitesse de lecture"
msgid "Favorite"
msgstr "Favori"
msgid "Are you sure you want to delete this subscription?"
msgstr "Êtes-vous sûr de vouloir supprimer ce flux ?"
msgid "Error while removing the feed"
msgstr "Erreur lors de la suppression du flux"
msgid "You can only have 10 favorites"
msgstr "Vous ne pouvez avoir que 10 favoris"
msgid "Add a podcast"
msgstr "Ajouter un podcast"
@ -149,5 +155,8 @@ msgstr "Une application requise est manquante"
msgid "Install GPodder Sync"
msgstr "Installer GPodder Sync"
msgid "Feed's link copied to the clipboard"
msgstr "Lien vers le flux copié dans le presse-papiers"
msgid "Pin some subscriptions to see their latest updates"
msgstr "Ajoutez des abonnements en favoris pour obtenir les dernières nouvelles ici"
msgid "No favorites"
msgstr "Aucun favoris"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Nextcloud 3.14159\n"
"Report-Msgid-Bugs-To: translations\\@example.com\n"
"POT-Creation-Date: 2024-05-29 14:56+0000\n"
"POT-Creation-Date: 2024-09-02 09:08+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -48,8 +48,8 @@ msgid ""
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:1
#: /app/specialVueFakeDummyForL10nScript.js:27
#: /app/specialVueFakeDummyForL10nScript.js:28
#: /app/specialVueFakeDummyForL10nScript.js:24
#: /app/specialVueFakeDummyForL10nScript.js:25
msgid "Download"
msgstr ""
@ -59,42 +59,45 @@ msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:3
#: /app/specialVueFakeDummyForL10nScript.js:4
#: /app/specialVueFakeDummyForL10nScript.js:11
#: /app/specialVueFakeDummyForL10nScript.js:5
#: /app/specialVueFakeDummyForL10nScript.js:12
msgid "Subscribe"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:5
#: /app/specialVueFakeDummyForL10nScript.js:12
#: /app/specialVueFakeDummyForL10nScript.js:6
#: /app/specialVueFakeDummyForL10nScript.js:13
msgid "Error while adding the feed"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:6
#: /app/specialVueFakeDummyForL10nScript.js:7
msgid "Could not fetch search results"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:7
#: /app/specialVueFakeDummyForL10nScript.js:8
msgid "New podcasts"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:8
#: /app/specialVueFakeDummyForL10nScript.js:9
msgid "Hot podcasts"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:9
#: /app/specialVueFakeDummyForL10nScript.js:10
msgid "Could not fetch tops"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:10
#: /app/specialVueFakeDummyForL10nScript.js:11
msgid "Copy feed"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:13
#: /app/specialVueFakeDummyForL10nScript.js:14
msgid "Link copied to the clipboard"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:15
#: /app/specialVueFakeDummyForL10nScript.js:16
msgid "Play"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:16
#: /app/specialVueFakeDummyForL10nScript.js:17
#: /app/specialVueFakeDummyForL10nScript.js:18
msgid "Stop"
@ -103,96 +106,109 @@ msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:19
#: /app/specialVueFakeDummyForL10nScript.js:20
#: /app/specialVueFakeDummyForL10nScript.js:21
msgid "Mark as read"
msgid "Read"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:22
#: /app/specialVueFakeDummyForL10nScript.js:23
#: /app/specialVueFakeDummyForL10nScript.js:24
msgid "Mark as unread"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:25
#: /app/specialVueFakeDummyForL10nScript.js:26
msgid "Open website"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:29
msgid "Could not fetch episodes"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:30
#: /app/specialVueFakeDummyForL10nScript.js:26
msgid "Could not change the status of the episode"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:31
#: /app/specialVueFakeDummyForL10nScript.js:27
#: /app/specialVueFakeDummyForL10nScript.js:28
msgid "Could not fetch episodes"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:29
msgid "Export subscriptions"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:32
#: /app/specialVueFakeDummyForL10nScript.js:30
msgid "Filtering episodes"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:33
#: /app/specialVueFakeDummyForL10nScript.js:31
msgid "Show all"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:34
#: /app/specialVueFakeDummyForL10nScript.js:32
msgid "Listened"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:35
#: /app/specialVueFakeDummyForL10nScript.js:33
msgid "Listening"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:36
#: /app/specialVueFakeDummyForL10nScript.js:34
msgid "Unlistened"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:37
#: /app/specialVueFakeDummyForL10nScript.js:35
msgid "Import subscriptions"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:38
#: /app/specialVueFakeDummyForL10nScript.js:36
msgid "Import OPML file"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:39
#: /app/specialVueFakeDummyForL10nScript.js:37
msgid "Rate RePod ❤️"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:40
#: /app/specialVueFakeDummyForL10nScript.js:38
msgid "Playback speed"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:39
#: /app/specialVueFakeDummyForL10nScript.js:40
#: /app/specialVueFakeDummyForL10nScript.js:41
msgid "Are you sure you want to delete this subscription?"
msgid "Favorite"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:42
msgid "Error while removing the feed"
msgid "Are you sure you want to delete this subscription?"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:43
msgid "Add a podcast"
msgid "Error while removing the feed"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:44
msgid "Could not fetch subscriptions"
msgid "You can only have 10 favorites"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:45
msgid "Find a podcast"
msgid "Add a podcast"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:46
msgid "Error loading feed"
msgid "Could not fetch subscriptions"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:47
msgid "Missing required app"
msgid "Find a podcast"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:48
msgid "Error loading feed"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:49
msgid "Missing required app"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:50
msgid "Install GPodder Sync"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:51
msgid "Pin some subscriptions to see their latest updates"
msgstr ""
#: /app/specialVueFakeDummyForL10nScript.js:52
msgid "No favorites"
msgstr ""

27
vite.config.mjs Normal file
View File

@ -0,0 +1,27 @@
import { createAppConfig } from '@nextcloud/vite-config'
import { defineConfig } from 'vite'
import vueDevTools from 'vite-plugin-vue-devtools'
const config = defineConfig(({ mode }) => ({
build: {
rollupOptions: {
output: {
entryFileNames: 'js/[name].js',
format: 'iife',
manualChunks: false,
},
},
sourcemap: mode !== 'production',
},
define: {
__VUE_PROD_DEVTOOLS__: mode !== 'production',
},
plugins: [vueDevTools()],
}))
export default createAppConfig(
{
main: 'src/main.js',
},
{ config },
)

View File

@ -1,27 +0,0 @@
const webpackConfig = require('@nextcloud/webpack-vue-config')
const ESLintPlugin = require('eslint-webpack-plugin')
const StyleLintPlugin = require('stylelint-webpack-plugin')
const path = require('path')
webpackConfig.entry = {
main: { import: path.join(__dirname, 'src', 'main.js'), filename: 'main.js' },
}
webpackConfig.plugins.push(
new ESLintPlugin({
extensions: ['js', 'vue'],
files: 'src',
}),
)
webpackConfig.plugins.push(
new StyleLintPlugin({
files: 'src/**/*.{css,scss,vue}',
}),
)
webpackConfig.module.rules.push({
test: /\.svg$/i,
type: 'asset/source',
})
module.exports = webpackConfig