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

742 Commits

Author SHA1 Message Date
cde02ce5e2
Add article word count & limit intro length 2024-08-02 16:09:01 +02:00
ManuelSailer
bdae594403 Sort select options by name (ignore case)
Signed-off-by: ManuelSailer <github.com@manuel-sailer.de>
2023-04-17 14:27:44 +02:00
ManuelSailer
bf0ffd7921 Fix display issue in NC26+ (#2192)
Signed-off-by: ManuelSailer <github.com@manuel-sailer.de>
2023-04-16 10:40:11 +02:00
Rhys Tyers
0822765c82 Fix cron job warning layout in NC25
Signed-off-by: Rhys Tyers <mail@rhy.si>
2022-10-23 12:48:39 +02:00
rhyst
a9771c27a9 Use correct PHP tag for rendering version
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: rhyst <5313660+rhyst@users.noreply.github.com>
Signed-off-by: Rhys Tyers <mail@rhy.si>
2022-10-22 14:31:01 +02:00
rhyst
031a1726cf Fix NC25 UI issues
Signed-off-by: Rhys Tyers <mail@rhy.si>
2022-10-22 14:31:01 +02:00
Carl Schwan
753e88793e
Port admin settings to vue (#1880)
* Port admin settings to vue

Co-authored-by: anoy. <anoymouserver@users.noreply.github.com>
Co-authored-by: Benjamin Brahmer <info@b-brahmer.de>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-30 18:07:25 +02:00
Dennis Müller
dbf6db8bff Update shortcuts
Shortcut "q" is not supported anymore as stated in https://github.com/nextcloud/news/issues/1613#issuecomment-991891468
Shortcuts "c" and "v" seemed to have swapped descriptions.

Signed-off-by: Dennis Müller <dennis.mueller@bib.uni-mannheim.de>
2022-02-21 17:31:49 +01:00
Greg
c7a265fedf Update add folder and unread feed icons
Give both add folder and unread feed icons their own unique icons instead of sharing them with subscribe and all articles.

Signed-off-by: Greg Ross <greg@toolstack.com>
2021-10-21 16:02:34 +02:00
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
mormegil
34c1f5c7a5 Fix favicon element making broken requests
The markup for favicon `<img>` element in feed item used `src` instead of
`ng-src`, causing browser to make broken requests for
`.../apps/news/%7B%7B%20::Content.getFeed(item.feedId).faviconLink%20%7D%7D`

Changing the attribute to `ng-src` fixed that.

Signed-off-by: mormegil <mormegil@centrum.cz>
2021-08-23 17:44:41 +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
Tucker McKnight
83cdcb016b Add a Vue component, remove extras
Fixes the problem of the vue components directory not
existing. Also removed the demo components that were
not meant to be committed.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Tucker McKnight
8809bb2c56 Add Vue and ng-vue packages
Also adds related parts for compiling Vue components
into the existing Javascript bundle.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00
Benjamin Brahmer
cfd9ad6c0a fix missing "
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-23 19:37:06 +02:00
Benjamin Brahmer
11483b5221 fix broken link
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-22 12:06:56 +02:00
Benjamin Brahmer
79e469fd33 Refactor News documentation with mkdocs and mkdocs-material
- move all pages to new structure
- use gh-pages to host html version
- use github actions for automatic build

Co-authored-by: anoy <anoymouserver+github@mailbox.org>

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2021-05-19 14:58:29 +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
31c4e2830a 🧹 Cleanup css
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
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
Marco Nassabain
f6a5b8e29a 💄 Update dropdown: center checkmark
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
3494e60290 Shared items: show sharer display name
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Nicolas Wendling
19b7d6ad7d 🐛 Fix broken commit
Signed-off-by: Nicolas Wendling <nicolas.wendling1011@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
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
Marco Nassabain
a8c928b316 ♻️ 💄 Refactor dropdown + fix opacity + realign
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
77d7cfb797 Fix li dropdown
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
4780e8c369 Fix dropdown in compact view
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
00f2fbcfd2 🚑 Fix HTML tags error + indentation
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
d95e7c3f43 💡 part.content.php: Fix indentation
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
996197d7ae 🔀 Fix latest broken merge
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.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
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
f7820fffd0 💄 News Item: make sharedBy name unclickable
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
467b4dea57 💄 News Item: fix appearance for shared items
- if the article has no author and is shared it's displayed as:
"shared by ..." instead of "- shared by ..."

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
7bde786c8c ♻️ Refactor dropdown menu code
- reorder html tags
- fix indentation
- adapt css to changes

Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
75a71cce78 Change display name in dropdown share
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
caa847fa32 Add traduction for body in share by mail
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Aurélien
76dfa014ea Add traduction subject sharing by mail
Signed-off-by: Aurélien <dav.aurelien@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
099ec7f418 Show shared_by in every view
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
Nicolas Wendling
088ebcc63a 🎨 Load icons from the server and delete SVGs
Signed-off-by: Nicolas Wendling <nicolas.wendling1011@gmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
ce1db3f5dc ✏️ Cleanup part.content.php + fix typo
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00
Marco Nassabain
a77cdad828 💄 Update dropdown style
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08 23:17:31 +02:00