mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-04-24 14:57:15 +00:00
I was playing around with the newsfeed notification system (`ARTICLE_MORE_DETAILS`, `ARTICLE_TOGGLE_FULL`, …) and discovered some issues with the full article view: The iframe was loading the CORS proxy URL instead of the actual article URL, which could cause blank screens depending on the feed. Also, many news sites block iframes entirely (`X-Frame-Options: DENY`) and the user got no feedback at all — just an empty page. On top of that, scrolling used `window.scrollTo()` which moved the entire MagicMirror page instead of just the article. This PR cleans that up: - Use the raw article URL for the iframe (CORS proxy is only needed for server-side feed fetching) - Check `X-Frame-Options` / `Content-Security-Policy` headers server-side before showing the iframe — if the site blocks it, show a brief "Article cannot be displayed here." message and return to normal view - Show the iframe as a fixed full-screen overlay so other modules aren't affected, scroll via `container.scrollTop` - Keep the progressive disclosure behavior for `ARTICLE_MORE_DETAILS` (title → description → iframe → scroll) - Delete `fullarticle.njk`, replace with `getDom()` override - Fix `ARTICLE_INFO_RESPONSE` returning proxy URL instead of real URL - A few smaller fixes (negative scroll, null guard) - Add `NEWSFEED_ARTICLE_UNAVAILABLE` translation to all 47 language files - Add e2e tests for the notification handlers (`ARTICLE_NEXT`, `ARTICLE_PREVIOUS`, `ARTICLE_INFO_REQUEST`, `ARTICLE_LESS_DETAILS`) ## What this means for users - The full article view now works reliably across different feeds - If a news site blocks iframes, the user sees a brief message instead of a blank screen - Additional e2e tests make the module more robust and less likely to break silently in future MagicMirror versions
54 lines
1.9 KiB
JSON
54 lines
1.9 KiB
JSON
{
|
||
"LOADING": "Yükleniyor …",
|
||
|
||
"YESTERDAY": "Dün",
|
||
"TODAY": "Bugün",
|
||
"TOMORROW": "Yarın",
|
||
"DAYAFTERTOMORROW": "İki gün içinde",
|
||
"RUNNING": "Biten",
|
||
"EMPTY": "Yakında etkinlik yok.",
|
||
"WEEK": "Hafta {weekNumber}",
|
||
|
||
"N": "K",
|
||
"NNE": "KKD",
|
||
"NE": "KD",
|
||
"ENE": "DKD",
|
||
"E": "D",
|
||
"ESE": "DGD",
|
||
"SE": "GD",
|
||
"SSE": "GGD",
|
||
"S": "G",
|
||
"SSW": "GGB",
|
||
"SW": "GB",
|
||
"WSW": "BGB",
|
||
"W": "B",
|
||
"WNW": "BKB",
|
||
"NW": "KB",
|
||
"NNW": "KKB",
|
||
|
||
"FEELS": "Hissedilen {DEGREE}",
|
||
"PRECIP_POP": "Yağış",
|
||
"PRECIP_AMOUNT": "Yağış miktarı",
|
||
|
||
"MODULE_CONFIG_CHANGED": "{MODULE_NAME} modülü için yapılandırma seçenekleri değiştirildi.\nLütfen belgeleri kontrol edin.",
|
||
"MODULE_CONFIG_ERROR": "{MODULE_NAME} modülünde hata. {ERROR}",
|
||
"MODULE_ERROR_MALFORMED_URL": "Hatalı URL.",
|
||
"MODULE_ERROR_NO_CONNECTION": "İnternet bağlantısı yok.",
|
||
"MODULE_ERROR_UNAUTHORIZED": "Yetkilendirme başarısız.",
|
||
"MODULE_ERROR_RATE_LIMITED": "Çok fazla istek. Daha sonra yeniden deneniyor.",
|
||
"MODULE_ERROR_SERVER_ERROR": "Sunucu hatası. Daha sonra yeniden deneniyor.",
|
||
"MODULE_ERROR_CLIENT_ERROR": "İstek başarısız oldu.",
|
||
"MODULE_ERROR_UNSPECIFIED": "Daha fazla ayrıntı için günlükleri kontrol edin.",
|
||
|
||
"NEWSFEED_NO_ITEMS": "Şu anda haber yok.",
|
||
"NEWSFEED_ARTICLE_UNAVAILABLE": "Makale burada görüntülenemiyor.",
|
||
|
||
"UPDATE_NOTIFICATION": "MagicMirror² güncellemesi mevcut.",
|
||
"UPDATE_NOTIFICATION_MODULE": "{MODULE_NAME} modulü için güncelleme mevcut.",
|
||
"UPDATE_INFO_SINGLE": "Sahip olduğunuz kurulum {BRANCH_NAME} branchinden {COMMIT_COUNT} commit geridedir.",
|
||
"UPDATE_INFO_MULTIPLE": "Sahip olduğunuz kurulum {BRANCH_NAME} branchinden {COMMIT_COUNT} commit geridedir.",
|
||
"UPDATE_NOTIFICATION_DONE": "Güncelleme tamamlandı.",
|
||
"UPDATE_NOTIFICATION_ERROR": "Güncelleme sırasında hata oluştu.",
|
||
"UPDATE_NOTIFICATION_NEED-RESTART": "MagicMirror'ün yeniden başlatılması gerekiyor."
|
||
}
|