feat(header): add GitHub star button to top bar
Compact pill (GitHub icon | star count) placed left of the version display. Star count is fetched from the GitHub API once per 24h and cached in localStorage; the button hides entirely when no count is available (e.g. air-gapped deployments), matching the existing update- check graceful-degradation pattern. Fetch is bounded by a 4s abort timeout to avoid hanging requests offline.
This commit is contained in:
@@ -169,6 +169,7 @@ export default {
|
||||
'common.time.hour': 'hour',
|
||||
'common.time.minute': 'minutes',
|
||||
'common.issue.report': 'Report an issue',
|
||||
'common.github.star.tooltip': 'Star us on GitHub',
|
||||
'common.social.discord': 'Join Our Discord',
|
||||
'common.table.mark': 'Comment',
|
||||
'common.table.rollback.mark': 'Rollback Comment',
|
||||
|
||||
@@ -170,6 +170,7 @@ export default {
|
||||
'common.time.hour': '時間',
|
||||
'common.time.minute': '分',
|
||||
'common.issue.report': '問題を報告',
|
||||
'common.github.star.tooltip': 'GitHub でスターをつける',
|
||||
'common.social.discord': 'Discordに参加',
|
||||
'common.table.mark': 'コメント',
|
||||
'common.table.rollback.mark': 'ロールバックコメント',
|
||||
|
||||
@@ -167,6 +167,7 @@ export default {
|
||||
'common.time.hour': 'Час',
|
||||
'common.time.minute': 'Минута',
|
||||
'common.issue.report': 'Сообщить о проблеме',
|
||||
'common.github.star.tooltip': 'Поставьте нам звезду на GitHub',
|
||||
'common.social.discord': 'Присоединиться к Discord',
|
||||
'common.table.mark': 'Комментарий',
|
||||
'common.table.rollback.mark': 'Комментарий к откату',
|
||||
|
||||
@@ -167,6 +167,7 @@ export default {
|
||||
'common.time.hour': 'saat',
|
||||
'common.time.minute': 'dakika',
|
||||
'common.issue.report': 'Sorun bildir',
|
||||
'common.github.star.tooltip': "GitHub'da bize yıldız verin",
|
||||
'common.social.discord': "Discord'umuza Katılın",
|
||||
'common.table.mark': 'Yorum',
|
||||
'common.table.rollback.mark': 'Geri Alma Yorumu',
|
||||
|
||||
@@ -161,6 +161,7 @@ export default {
|
||||
'common.time.hour': '小时',
|
||||
'common.time.minute': '分钟',
|
||||
'common.issue.report': '问题反馈',
|
||||
'common.github.star.tooltip': '在 GitHub 上 Star 我们',
|
||||
'common.social.discord': '加入我们的Discord',
|
||||
'common.table.mark': '备注',
|
||||
'common.table.rollback.mark': '回滚备注',
|
||||
|
||||
Reference in New Issue
Block a user