1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-09-15 13:32:10 +02:00

Compare commits

2 Commits

Author SHA1 Message Date
Nextcloud bot
d6a99e270a Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-04-27 03:09:45 +00:00
7338574821 Improve visibility of links in dark theme (#2215)
Signed-off-by: chylex <contact@chylex.com>
2023-04-26 15:41:10 +02:00
6 changed files with 10 additions and 18 deletions

View File

@@ -5,7 +5,7 @@ The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1
# Unreleased
## [21.x.x]
### Changed
- Improve visibility of links in dark theme (#2215)
### Fixed

View File

@@ -465,6 +465,11 @@
line-height: 1;
}
#app-content .feed-view .utils .title {
background: none !important;
padding-left: 10px;
}
#app-content .utils .title h1 a {
/*text-overflow: ellipsis;*/
white-space: nowrap;

View File

@@ -8,6 +8,7 @@ OC.L10N.register(
"Internal server error! Please check your data/nextcloud.log file for additional information!" : "Внутрішня помилка сервера! Щоб отримати додаткову інформацію, перевірте файл data/nextcloud.log!",
"Request failed, Nextcloud is in currently in maintenance mode!" : "Помилка запиту, Nextcloud зараз у режимі обслуговування!",
"Unread articles" : "Непрочитані статті",
"News" : "Новини",
"Last job ran {relativeTime}." : "Останнє завдання виконано {relativeTime}.",
"Use system cron for updates" : "Використовуйте системний cron для оновлень",
"Maximum read count per feed" : "Максимальна кількість статей для стрічки",

View File

@@ -6,6 +6,7 @@
"Internal server error! Please check your data/nextcloud.log file for additional information!" : "Внутрішня помилка сервера! Щоб отримати додаткову інформацію, перевірте файл data/nextcloud.log!",
"Request failed, Nextcloud is in currently in maintenance mode!" : "Помилка запиту, Nextcloud зараз у режимі обслуговування!",
"Unread articles" : "Непрочитані статті",
"News" : "Новини",
"Last job ran {relativeTime}." : "Останнє завдання виконано {relativeTime}.",
"Use system cron for updates" : "Використовуйте системний cron для оновлень",
"Maximum read count per feed" : "Максимальна кількість статей для стрічки",

View File

@@ -360,10 +360,6 @@ class Item extends Entity implements IAPI, \JsonSerializable
return json_decode($this->getCategoriesJson());
}
public function getWordCount(): int {
return self::countWords(strip_tags($this->getBody()));
}
/**
* Turns entity attributes into an array
*/
@@ -388,12 +384,11 @@ class Item extends Entity implements IAPI, \JsonSerializable
'starred' => $this->isStarred(),
'lastModified' => $this->getLastModified(),
'rtl' => $this->getRtl(),
'intro' => mb_substr($this->getIntro(), 0, 500),
'intro' => $this->getIntro(),
'fingerprint' => $this->getFingerprint(),
'categories' => $this->getCategories(),
'sharedBy' => $this->getSharedBy(),
'sharedByDisplayName' => $this->getSharedByDisplayName(),
'wordCount' => $this->getWordCount(),
'sharedByDisplayName' => $this->getSharedByDisplayName()
];
}
@@ -760,11 +755,4 @@ class Item extends Entity implements IAPI, \JsonSerializable
stripos($mime, 'image/') !== false ||
stripos($mime, 'video/') !== false));
}
private static function countWords(string $text): int
{
$text = preg_replace('/[\pP\pM]/u', '', $text); // strip punctuation (P) and combination marks (M)
$text = preg_replace('/[^\pL\pN]+/u', ' ', $text); // convert every sequence of non-letters (L) and non-numbers (N) to a space
return 1 + substr_count($text, ' ');
}
}

View File

@@ -62,9 +62,6 @@
{{ item.pubDate*1000 | relativeTimestamp }}
</time>
</li>
<li class="only-in-compact">
<span class="date">{{ item.wordCount }} words</span>
</li>
<li ng-click="Content.toggleStar(item.id)"
class="util"
news-stop-propagation>