1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2024-11-22 07:42:49 +01:00
Commit Graph

151 Commits

Author SHA1 Message Date
Benjamin Brahmer
1f8880c8de Revert Add Vue and ng-vue packages
This reverts commits:
8809bb2c56
d2a5c26ee1
3344431a9b
83cdcb016b
36d304ec76

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-09-02 11:32:44 +02:00
Alec Kojaev
65c15dac38 Reimplement relative time formatting as a filter, dropping dependency on deprecated moment.js
Signed-off-by: Alec Kojaev <alec@kojaev.name>
2021-07-24 14:52:34 +02:00
Tucker McKnight
36d304ec76 Use front-end translation function
PHP is not parsing the Vue components, so use Nextcloud's
t() Javascript function instead. This commit adds t() as a
global variable on the AppController so that it can be
passed into components.

Also move vue-loader and vue-template-compiler to devDependencies
in package.json.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Marco Nassabain
b0b08326a8 🩹 Fix rebase issues
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Nicolas Wendling
acd944a6ef 🎨 twitter / facebook / mail share - removed the mail intro and set sizes into vars
Signed-off-by: Nicolas Wendling <nicolas.wendling1011@gmail.com>
2021-04-08 23:17:31 +02:00
cherguimalih
b9fec49b66 ShareController : Add intro in links
Signed-off-by: cherguimalih <ilyes.chergui-malih@etu.unistra.fr>
2021-04-08 23:17:31 +02:00
Marco Nassabain
7be636f26a 💄 Hide social media sharing if apps disabled
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
4e9875d5c6 Reverse concat in user search
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
5444bc6f3c Fix bug when search user
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
299c3428e1 Share dropdown: catch sharee api error, show msg
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
0f6a0d7902 🐛 Share dropdown: only show results of most recent search
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Nicolas Wendling
ffa476190f ♻️ use Share.getEmailUrl method to share an article via an email.
Signed-off-by: Nicolas Wendling <nicolas.wendling1011@gmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
2e316f8f64 Add directive ClickOutside for hide dropdown
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
792082e2e0 Social share: show if socialsharing app active
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
c14fa3eaf6 💡 ShareController: add comments to new fcts
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
a86f78a0a7 🔀 Fix last broken merge
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
1da543a702 Add function getFacebookUrl and getTwitterUrl
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
3d9027a914 ShareController: catch share error & display
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
3a02101e66 ♻️ ShareController: refactor dictionary + fncts
- updated dictionary structure to contain share status
- divided code into functions
- adapted code to match new implementation

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
4fcd483030 🧹 Cleanup ShareController & ShareResource
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
04cf2672c3 🎨 Adapt front-end to match new implementation
- remove share-specific code since new solution uses dummy feeds

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
cfea34ba14 🧹 Cleanup code to match master
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
00f48c70dd 💡 ContentController: update comments feed cache
- shared items are still in the owners feeds
- since we don't have access to those feeds, we don't cache them

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
dc407c5d7d 🩹 ContentController: Remove unused ShareResource
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
a6dba240c9 (+) ui : dropdown on click (i.t of hover)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
63dddc342e (+) checkmark on sent users
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
e7afafba29 🎨 Cleanup code marco in ShareController
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
9bfbb7c21f Fix Loading which doesn't end
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
02a84c583f added nextcloud router
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
86949f992b (+) isSharedUnread (depending on getSharedCount(): function done
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
7609fdbabf Add Loading for searchUser and share
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
a78287a777 (+) Blocking multiple sharing request to the same user
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
e5ccff97a6 Shared menu: get and show sharedCount
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
WENDLING NICOLAS
c469d3221a 🐛 Change to singlequotes - Fix build error
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
0d5443d6ee (+) sharedButton
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
1ff8c26ac0 (+) Shared href navigation
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
5342837d40 NewsItem: share with user on click (front-end)
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
marco.nassabain@etu.unistra.fr
ea4178620b 🎨 create ShareController and moved share logic
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
marco.nassabain@etu.unistra.fr
4a86db338d 🎨 rename UserResource to ShareResource
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
marco.nassabain@etu.unistra.fr
4b1102972e 🐛 Use the sharee api to get users for sharing
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Jimmy Huynh
cf00206da0 (+) Dynamic userlist on input change
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
da7d43e2b3 added searchUsers function in ContentController
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
4a7e092b98 🔥 Remove front-end edit from back-end pr
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
a1edb03e19 🔥 Remove changes from front-end for back-end pr
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
Marco Nassabain
b27226d4ae 🚑 Fix bug - other user feeds show for shared item
- findAllFeeds doesn't return feeds of shared articles
- Disable feed cache handling for shared items

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 22:31:21 +02:00
skiingwiz
04519388ce Allow directly adding a feed without going through the discovery process
Signed-off-by: skiingwiz <skiingwiz@gmail.com>
2021-04-02 11:15:17 +02:00
Tucker McKnight
5ba6f04bae Fix incorrect article sorting
Currently, an article with an ID of 1000 will show up
earlier than one with ID = 900, because the IDs are being treated
as strings and compared alphabetically. (1 comes before 9, and
the comparison stops there.)

We need to parse them as integers to ensure that 900 is less than
1000.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-02-22 19:44:33 +01:00
anoy
112cc727ea add locale-aware sorting for folders and feeds
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-11-09 16:58:44 +01:00
anoy
b5340676dc fixed active menu item and reload for unread
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-04-24 18:24:08 +02:00
SuliacLEGUILLOU
ed59aeeeeb Translate youtube channel and user URL into their feed (#612)
Youtube rss system is hiden inside their api to encourage account creation.

I have added a step to transform automaticaly a user or a channel url like `https://www.youtube.com/user/scilabus` into its feed url: `https://www.youtube.com/feeds/videos.xml?user=scilabus`

Signed-off-by: s18alg <s18alg@protonmail.com>
2020-01-11 15:07:23 +01:00