refactor(dashboard): reorganize menu actions across sidebar/header/profile

Move shutdown into header popup + profile, move remote into sidebar above
settings, add flag-only language switcher in header, and add language card
plus shutdown/logout actions to the profile page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-06 16:05:44 +07:00
parent 293cf40455
commit f161b295a5
6 changed files with 235 additions and 107 deletions

View File

@@ -0,0 +1,36 @@
// Centralized locale display flags (shared across UI components)
export const LOCALE_FLAGS = {
"en": "🇺🇸",
"vi": "🇻🇳",
"zh-CN": "🇨🇳",
"zh-TW": "🇹🇼",
"ja": "🇯🇵",
"pt-BR": "🇧🇷",
"pt-PT": "🇵🇹",
"ko": "🇰🇷",
"es": "🇪🇸",
"de": "🇩🇪",
"fr": "🇫🇷",
"he": "🇮🇱",
"ar": "🇸🇦",
"ru": "🇷🇺",
"pl": "🇵🇱",
"cs": "🇨🇿",
"nl": "🇳🇱",
"tr": "🇹🇷",
"uk": "🇺🇦",
"tl": "🇵🇭",
"id": "🇮🇩",
"th": "🇹🇭",
"hi": "🇮🇳",
"bn": "🇧🇩",
"ur": "🇵🇰",
"ro": "🇷🇴",
"sv": "🇸🇪",
"it": "🇮🇹",
"el": "🇬🇷",
"hu": "🇭🇺",
"fi": "🇫🇮",
"da": "🇩🇰",
"no": "🇳🇴",
};