Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat(league): personalizar icone, fundo do perfil e status (#260)
antonio52117a8a4dc1
diff --git a/src-tauri/src/commands/league/mod.rs b/src-tauri/src/commands/league/mod.rsindex 8812835e..7ab955ff 100644--- a/src-tauri/src/commands/league/mod.rs+++ b/src-tauri/src/commands/league/mod.rs@@ -1362,6 +1362,136 @@ pub async fn league_champion_meta(}))}+/// Sets the summoner icon. Any owned icon id works; the client rejects ids the+/// account does not own, and that error is surfaced as-is.+#[tauri::command]+pub async fn league_set_icon(icon_id: i64) -> Result<Value, String> {+ ensure_enabled()?;+ if icon_id < 0 {+ return Err("invalid icon".to_string());+ }+ let client = get_client().await?;+ lcu_send(+ &client,+ reqwest::Method::PUT,+ "/lol-summoner/v1/current-summoner/icon",+ Some(json!({ "profileIconId": icon_id })),+ )+ .await+}++/// Sets the splash art behind the profile, chosen from a skin the account owns.+#[tauri::command]+pub async fn league_set_profile_background(skin_id: i64) -> Result<Value, String> {+ ensure_enabled()?;+ if skin_id <= 0 {+ return Err("invalid skin".to_string());+ }+ let client = get_client().await?;+ lcu_send(+ &client,+ reqwest::Method::POST,+ "/lol-summoner/v1/current-summoner/summoner-profile",+ Some(json!({ "key": "backgroundSkinId", "value": skin_id })),+ )+ .await+}++/// Chat availability and status message. Only the fields the user changed are+/// touched: the payload is read first and patched, because a full replacement+/// wipes the presence data the client keeps there.+#[tauri::command]+pub async fn league_set_status(+ availability: Option<String>,+ message: Option<String>,+) -> Result<Value, String> {+ ensure_enabled()?;+ if let Some(availability) = availability.as_deref() {+ if !matches!(availability, "chat" | "away" | "dnd" | "offline" | "mobile") {+ return Err("invalid availability".to_string());+ }+ }+ if message.as_deref().map(str::len).unwrap_or(0) > 140 {+ return Err("status message too long".to_string());+ }+ let client = get_client().await?;+ let mut me = lcu_get_raw(&client, "/lol-chat/v1/me").await?;+ if let Some(availability) = availability {+ me["availability"] = json!(availability);+ }+ if let Some(message) = message {+ me["statusMessage"] = json!(message);+ }+ lcu_send(&client, reqwest::Method::PUT, "/lol-chat/v1/me", Some(me)).await+}++/// Skins the account owns for a champion, so the background picker offers only+/// what can actually be set.+#[tauri::command]+pub async fn league_owned_skins(champion_id: i64) -> Result<Value, String> {+ ensure_enabled()?;+ if champion_id <= 0 {+ return Err("invalid champion".to_string());+ }+ let client = get_client().await?;+ let champion = lcu_get_raw(+ &client,+ &format!("/lol-champions/v1/inventories/{}/champions", champion_id),+ )+ .await+ .unwrap_or(Value::Null);+ let skins: Vec<Value> = champion+ .get("skins")+ .and_then(Value::as_array)+ .map(|arr| {+ arr.iter()+ .filter(|s| {+ s.get("ownership")+ .and_then(|o| o.get("owned"))+ .and_then(Value::as_bool)+ .unwrap_or(false)+ })+ .filter_map(|s| {+ Some(json!({+ "id": s.get("id").and_then(Value::as_i64)?,+ "name": s.get("name").and_then(Value::as_str).unwrap_or(""),+ }))+ })+ .collect()+ })+ .unwrap_or_default();+ Ok(json!({ "skins": skins }))+}++/// Role preferences for the next queue. The client takes both slots at once, and+/// the second may be empty ("FILL" is expressed as an unset second choice).+#[tauri::command]+pub async fn league_set_positions(first: String, second: Option<String>) -> Result<Value, String> {+ ensure_enabled()?;+ const ROLES: [&str; 6] = ["TOP", "JUNGLE", "MIDDLE", "BOTTOM", "UTILITY", "FILL"];+ let second = second.unwrap_or_else(|| "FILL".to_string());+ if !ROLES.contains(&first.as_str()) || !ROLES.contains(&second.as_str()) {+ return Err("invalid position".to_string());+ }+ let client = get_client().await?;+ lcu_send(+ &client,+ reqwest::Method::PUT,+ "/lol-lobby/v2/lobby/members/localMember/position-preferences",+ Some(json!({ "firstPreference": first, "secondPreference": second })),+ )+ .await+}++/// End-of-game summary the client shows on its own screen, useful when that+/// screen was dismissed too fast.+#[tauri::command]+pub async fn league_end_of_game_stats() -> Result<Value, String> {+ ensure_enabled()?;+ let client = get_client().await?;+ lcu_get_raw(&client, "/lol-end-of-game/v1/eog-stats-block").await+}+/// Objective respawn estimates and a readable feed of what just happened,/// derived from the in-game event log.#[tauri::command]diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex 670c6f37..65f600cf 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -809,6 +809,12 @@ pub fn run() {commands::auth_webview::open_auth_webview,commands::league::league_status,commands::league::league_get,+ commands::league::league_set_positions,+ commands::league::league_end_of_game_stats,+ commands::league::league_set_icon,+ commands::league::league_set_profile_background,+ commands::league::league_set_status,+ commands::league::league_owned_skins,commands::league::league_summoner,commands::league::league_ranked,commands::league::league_gameflow,diff --git a/src/components/league/OverviewTab.svelte b/src/components/league/OverviewTab.svelteindex 4660de12..0091df4d 100644--- a/src/components/league/OverviewTab.svelte+++ b/src/components/league/OverviewTab.svelte@@ -12,6 +12,7 @@lobby,queues,actionError,+ champions,championById,championByAlias,onAction,@@ -24,6 +25,7 @@lobby: any;queues: LobbyQueue[];actionError: string;+ champions: Champion[];championById: Map<number, Champion>;championByAlias: Map<string, Champion>;onAction: (cmd: string, args?: Record<string, unknown>) => void;@@ -69,6 +71,51 @@};}+ const LOBBY_ROLES = ["TOP", "JUNGLE", "MIDDLE", "BOTTOM", "UTILITY", "FILL"] as const;+ let firstRole = $state("FILL");+ let secondRole = $state("FILL");+ let roleError = $state("");++ async function saveRoles() {+ roleError = "";+ try {+ await invoke("league_set_positions", { first: firstRole, second: secondRole });+ } catch (e: any) {+ roleError = typeof e === "string" ? e : (e?.message ?? String(e));+ }+ }++ let profileOpen = $state(false);+ let iconInput = $state<number | null>(null);+ let statusMessage = $state("");+ let bgChampion = $state<number>(0);+ let ownedSkins = $state<{ id: number; name: string }[]>([]);+ let profileError = $state("");+ let profileSaved = $state("");++ async function runProfileAction(action: () => Promise<unknown>, saved: string) {+ profileError = "";+ profileSaved = "";+ try {+ await action();+ profileSaved = saved;+ setTimeout(() => { if (profileSaved === saved) profileSaved = ""; }, 2000);+ } catch (e: any) {+ profileError = typeof e === "string" ? e : (e?.message ?? String(e));+ }+ }++ async function loadOwnedSkins(championId: number) {+ ownedSkins = [];+ if (championId <= 0) return;+ try {+ const res = await invoke<any>("league_owned_skins", { championId });+ ownedSkins = res?.skins ?? [];+ } catch {+ ownedSkins = [];+ }+ }+let restartConfirming = $state(false);let restartLoading = $state(false);let restartError = $state("");@@ -138,6 +185,73 @@{#if restartError}<div class="action-error" role="alert">{restartError}</div>{/if}+{#if summoner}+ <details class="profile-tools" bind:open={profileOpen}>+ <summary>{$t("league.profile_tools")}</summary>+ {#if profileError}+ <p class="action-error" role="alert">{profileError}</p>+ {/if}+ {#if profileSaved}+ <p class="profile-saved">{profileSaved}</p>+ {/if}+ <div class="profile-tool-row">+ <span class="list-label">{$t("league.profile_icon")}</span>+ <input class="input-text tiny-input" type="number" min="0" bind:value={iconInput} aria-label={$t("league.profile_icon") as string} />+ <button+ class="button"+ disabled={iconInput === null}+ onclick={() => runProfileAction(() => invoke("league_set_icon", { iconId: iconInput }), $t("league.profile_icon_saved") as string)}+ >{$t("league.apply")}</button>+ </div>+ <div class="profile-tool-row">+ <span class="list-label">{$t("league.profile_status")}</span>+ <div class="seg-group" role="radiogroup" aria-label={$t("league.profile_status") as string}>+ {#each ["chat", "away", "dnd"] as value (value)}+ <button+ class="seg"+ role="radio"+ aria-checked={false}+ onclick={() => runProfileAction(() => invoke("league_set_status", { availability: value }), $t("league.profile_status_saved") as string)}+ >{$t(`league.status_${value}`)}</button>+ {/each}+ </div>+ </div>+ <div class="profile-tool-row">+ <span class="list-label">{$t("league.profile_message")}</span>+ <input class="input-text" maxlength="140" bind:value={statusMessage} placeholder={$t("league.profile_message") as string} />+ <button+ class="button"+ onclick={() => runProfileAction(() => invoke("league_set_status", { message: statusMessage }), $t("league.profile_message_saved") as string)}+ >{$t("league.apply")}</button>+ </div>+ <div class="profile-tool-row">+ <span class="list-label">{$t("league.profile_background")}</span>+ <select+ class="select-role"+ bind:value={bgChampion}+ onchange={() => loadOwnedSkins(bgChampion)}+ aria-label={$t("league.profile_background") as string}+ >+ <option value={0}>{$t("league.build_champion")}</option>+ {#each champions as ch (ch.id)}+ <option value={ch.id}>{ch.name}</option>+ {/each}+ </select>+ {#if ownedSkins.length > 0}+ <div class="skin-options">+ {#each ownedSkins as skin (skin.id)}+ <button+ class="button subtle"+ onclick={() => runProfileAction(() => invoke("league_set_profile_background", { skinId: skin.id }), $t("league.profile_background_saved") as string)}+ >{skin.name}</button>+ {/each}+ </div>+ {:else if bgChampion > 0}+ <span class="dim">{$t("league.profile_no_skins")}</span>+ {/if}+ </div>+ </details>+{/if}<div class="repair-row">{#if restartConfirming}<span class="repair-note">{$t("league.restart_ux_warning")}</span>@@ -251,6 +365,23 @@<button class="button primary" onclick={() => onAction("league_start_matchmaking")}>{$t("league.start_queue")}</button><button class="button" onclick={() => onAction("league_leave_lobby")}>{$t("league.leave_lobby")}</button></div>+ {#if roleError}+ <p class="action-error" role="alert">{roleError}</p>+ {/if}+ <div class="profile-tool-row">+ <span class="list-label">{$t("league.role_preference")}</span>+ <select class="select-role" bind:value={firstRole} aria-label={$t("league.role_first") as string}>+ {#each LOBBY_ROLES as role (role)}+ <option value={role}>{$t(`league.role_${role.toLowerCase()}`)}</option>+ {/each}+ </select>+ <select class="select-role" bind:value={secondRole} aria-label={$t("league.role_second") as string}>+ {#each LOBBY_ROLES as role (role)}+ <option value={role}>{$t(`league.role_${role.toLowerCase()}`)}</option>+ {/each}+ </select>+ <button class="button" onclick={saveRoles}>{$t("league.apply")}</button>+ </div>{:else if phase === "EndOfGame" || phase === "PreEndOfGame" || phase === "WaitingForStats"}<div class="lobby-actions"><button class="button primary" onclick={() => onAction("league_play_again")}>{$t("league.play_again")}</button>diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.jsonindex e489174e..19571f43 100644--- a/src/lib/i18n/el.json+++ b/src/lib/i18n/el.json@@ -163,6 +163,10 @@"role_middle": "Mid","role_bottom": "Bot","role_utility": "Support",+ "role_fill": "Fill",+ "role_preference": "Προτίμηση ρόλου",+ "role_first": "Κύριος ρόλος",+ "role_second": "Δεύτερος ρόλος","scout_title": "Ανάλυση αγώνα","scout_allies": "Σύμμαχοι","scout_enemies": "Αντίπαλοι",@@ -226,6 +230,20 @@"dodge": "Dodge","dodge_warning": "Αν φύγεις τώρα μετράει ως dodge: χάνεις LP και παίρνεις καθυστέρηση ουράς.","dodge_confirm": "Φύγε ούτως ή άλλως",+ "profile_tools": "Προσαρμογή προφίλ",+ "profile_icon": "Εικονίδιο summoner",+ "profile_icon_saved": "Το εικονίδιο ενημερώθηκε.",+ "profile_status": "Διαθεσιμότητα",+ "profile_status_saved": "Η διαθεσιμότητα ενημερώθηκε.",+ "status_chat": "Συνδεδεμένος",+ "status_away": "Απών",+ "status_dnd": "Απασχολημένος",+ "profile_message": "Μήνυμα κατάστασης",+ "profile_message_saved": "Το μήνυμα ενημερώθηκε.",+ "profile_background": "Φόντο προφίλ",+ "profile_background_saved": "Το φόντο ενημερώθηκε.",+ "profile_no_skins": "Δεν υπάρχουν skins αυτού του ήρωα στον λογαριασμό.",+ "apply": "Εφαρμογή","restart_ux": "Επανεκκίνηση διεπαφής πελάτη","restart_ux_warning": "Φορτώνει ξανά τη διεπαφή του client. Η θέση στην ουρά και η επιλογή ηρώων διατηρούνται.","restart_ux_confirm": "Επανεκκίνηση διεπαφής",diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.jsonindex e94922b2..dbb146fc 100644--- a/src/lib/i18n/en.json+++ b/src/lib/i18n/en.json@@ -181,6 +181,10 @@"role_middle": "Mid","role_bottom": "Bot","role_utility": "Support",+ "role_fill": "Fill",+ "role_preference": "Role preference",+ "role_first": "Primary role",+ "role_second": "Secondary role","scout_title": "Match scouting","scout_allies": "Allies","scout_enemies": "Enemies",@@ -244,6 +248,20 @@"dodge": "Dodge","dodge_warning": "Leaving now counts as a dodge: you lose LP and get a queue delay.","dodge_confirm": "Dodge anyway",+ "profile_tools": "Customise profile",+ "profile_icon": "Summoner icon",+ "profile_icon_saved": "Icon updated.",+ "profile_status": "Availability",+ "profile_status_saved": "Availability updated.",+ "status_chat": "Online",+ "status_away": "Away",+ "status_dnd": "Busy",+ "profile_message": "Status message",+ "profile_message_saved": "Status message updated.",+ "profile_background": "Profile background",+ "profile_background_saved": "Background updated.",+ "profile_no_skins": "No owned skins for this champion.",+ "apply": "Apply","restart_ux": "Restart client interface","restart_ux_warning": "Reloads the client's interface. Your queue spot and champion select are kept.","restart_ux_confirm": "Restart interface",diff --git a/src/lib/i18n/es.json b/src/lib/i18n/es.jsonindex cb73d3b7..8178ac3b 100644--- a/src/lib/i18n/es.json+++ b/src/lib/i18n/es.json@@ -163,6 +163,10 @@"role_middle": "Central","role_bottom": "Tirador","role_utility": "Soporte",+ "role_fill": "Rellenar",+ "role_preference": "Preferencia de rol",+ "role_first": "Rol principal",+ "role_second": "Rol secundario","scout_title": "Análisis de la partida","scout_allies": "Aliados","scout_enemies": "Enemigos",@@ -226,6 +230,20 @@"dodge": "Dodge","dodge_warning": "Salir ahora cuenta como dodge: pierdes PL y recibes retraso de cola.","dodge_confirm": "Salir igualmente",+ "profile_tools": "Personalizar perfil",+ "profile_icon": "Icono de invocador",+ "profile_icon_saved": "Icono actualizado.",+ "profile_status": "Disponibilidad",+ "profile_status_saved": "Disponibilidad actualizada.",+ "status_chat": "En línea",+ "status_away": "Ausente",+ "status_dnd": "Ocupado",+ "profile_message": "Mensaje de estado",+ "profile_message_saved": "Mensaje actualizado.",+ "profile_background": "Fondo del perfil",+ "profile_background_saved": "Fondo actualizado.",+ "profile_no_skins": "No tienes aspectos de este campeón.",+ "apply": "Aplicar","restart_ux": "Reiniciar la interfaz del cliente","restart_ux_warning": "Recarga la interfaz del cliente. Se mantiene tu lugar en la cola y la selección de campeones.","restart_ux_confirm": "Reiniciar interfaz",diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.jsonindex 461500ea..a05a58ae 100644--- a/src/lib/i18n/fr.json+++ b/src/lib/i18n/fr.json@@ -163,6 +163,10 @@"role_middle": "Milieu","role_bottom": "Tireur","role_utility": "Support",+ "role_fill": "Remplissage",+ "role_preference": "Préférence de rôle",+ "role_first": "Rôle principal",+ "role_second": "Rôle secondaire","scout_title": "Analyse de la partie","scout_allies": "Alliés","scout_enemies": "Ennemis",@@ -226,6 +230,20 @@"dodge": "Dodge","dodge_warning": "Quitter maintenant compte comme un dodge : perte de PL et délai de file.","dodge_confirm": "Quitter quand même",+ "profile_tools": "Personnaliser le profil",+ "profile_icon": "Icône d'invocateur",+ "profile_icon_saved": "Icône mise à jour.",+ "profile_status": "Disponibilité",+ "profile_status_saved": "Disponibilité mise à jour.",+ "status_chat": "En ligne",+ "status_away": "Absent",+ "status_dnd": "Occupé",+ "profile_message": "Message de statut",+ "profile_message_saved": "Message mis à jour.",+ "profile_background": "Fond du profil",+ "profile_background_saved": "Fond mis à jour.",+ "profile_no_skins": "Aucun skin de ce champion sur le compte.",+ "apply": "Appliquer","restart_ux": "Redémarrer l'interface du client","restart_ux_warning": "Recharge l'interface du client. Votre place dans la file et la sélection des champions sont conservées.","restart_ux_confirm": "Redémarrer l'interface",diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.jsonindex a5f66aeb..7dda446c 100644--- a/src/lib/i18n/it.json+++ b/src/lib/i18n/it.json@@ -163,6 +163,10 @@"role_middle": "Mid","role_bottom": "Tiratore","role_utility": "Supporto",+ "role_fill": "Riempimento",+ "role_preference": "Preferenza di ruolo",+ "role_first": "Ruolo principale",+ "role_second": "Ruolo secondario","scout_title": "Analisi della partita","scout_allies": "Alleati","scout_enemies": "Nemici",@@ -226,6 +230,20 @@"dodge": "Dodge","dodge_warning": "Uscire ora conta come dodge: perdi PL e subisci un ritardo in coda.","dodge_confirm": "Esci comunque",+ "profile_tools": "Personalizza profilo",+ "profile_icon": "Icona evocatore",+ "profile_icon_saved": "Icona aggiornata.",+ "profile_status": "Disponibilità",+ "profile_status_saved": "Disponibilità aggiornata.",+ "status_chat": "Online",+ "status_away": "Assente",+ "status_dnd": "Occupato",+ "profile_message": "Messaggio di stato",+ "profile_message_saved": "Messaggio aggiornato.",+ "profile_background": "Sfondo del profilo",+ "profile_background_saved": "Sfondo aggiornato.",+ "profile_no_skins": "Nessuna skin di questo campione sull'account.",+ "apply": "Applica","restart_ux": "Riavvia l'interfaccia del client","restart_ux_warning": "Ricarica l'interfaccia del client. La posizione in coda e la selezione dei campioni vengono mantenute.","restart_ux_confirm": "Riavvia interfaccia",diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.jsonindex 6ae27171..827e3976 100644--- a/src/lib/i18n/ja.json+++ b/src/lib/i18n/ja.json@@ -163,6 +163,10 @@"role_middle": "ミッド","role_bottom": "ボット","role_utility": "サポート",+ "role_fill": "おまかせ",+ "role_preference": "ロール希望",+ "role_first": "第1ロール",+ "role_second": "第2ロール","scout_title": "マッチ分析","scout_allies": "味方","scout_enemies": "敵",@@ -226,6 +230,20 @@"dodge": "ドッジ","dodge_warning": "今退出するとドッジ扱いになり、LPを失いキュー制限を受けます。","dodge_confirm": "それでも退出",+ "profile_tools": "プロフィールを設定",+ "profile_icon": "サモナーアイコン",+ "profile_icon_saved": "アイコンを更新しました。",+ "profile_status": "ステータス",+ "profile_status_saved": "ステータスを更新しました。",+ "status_chat": "オンライン",+ "status_away": "離席中",+ "status_dnd": "取り込み中",+ "profile_message": "ステータスメッセージ",+ "profile_message_saved": "メッセージを更新しました。",+ "profile_background": "プロフィール背景",+ "profile_background_saved": "背景を更新しました。",+ "profile_no_skins": "このチャンピオンの所持スキンがありません。",+ "apply": "適用","restart_ux": "クライアントのUIを再起動","restart_ux_warning": "クライアントのUIを再読み込みします。キューの順番とチャンピオン選択は保持されます。","restart_ux_confirm": "UIを再起動",diff --git a/src/lib/i18n/keys.ts b/src/lib/i18n/keys.tsindex 03c218a5..47882706 100644--- a/src/lib/i18n/keys.ts+++ b/src/lib/i18n/keys.ts@@ -395,6 +395,7 @@ export type TranslationKeys =| 'league.accept_delay_desc'| 'league.accept_delay_instant'| 'league.accept_now'+ | 'league.apply'| 'league.auto_accept'| 'league.auto_accept_desc'| 'league.auto_ban'@@ -547,6 +548,16 @@ export type TranslationKeys =| 'league.premade_source_history'| 'league.premade_source_party'| 'league.premades'+ | 'league.profile_background'+ | 'league.profile_background_saved'+ | 'league.profile_icon'+ | 'league.profile_icon_saved'+ | 'league.profile_message'+ | 'league.profile_message_saved'+ | 'league.profile_no_skins'+ | 'league.profile_status'+ | 'league.profile_status_saved'+ | 'league.profile_tools'| 'league.ranked_flex'| 'league.ranked_solo'| 'league.refresh'@@ -559,8 +570,12 @@ export type TranslationKeys =| 'league.restart_ux_confirm'| 'league.restart_ux_warning'| 'league.role_bottom'+ | 'league.role_fill'+ | 'league.role_first'| 'league.role_jungle'| 'league.role_middle'+ | 'league.role_preference'+ | 'league.role_second'| 'league.role_top'| 'league.role_utility'| 'league.runes_apply'@@ -610,6 +625,9 @@ export type TranslationKeys =| 'league.squad_enemy'| 'league.start_queue'| 'league.stat_winrate'+ | 'league.status_away'+ | 'league.status_chat'+ | 'league.status_dnd'| 'league.stop_queue'| 'league.summary_games'| 'league.summary_loss_short'diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.jsonindex 3bb54200..7646cec0 100644--- a/src/lib/i18n/pt.json+++ b/src/lib/i18n/pt.json@@ -163,6 +163,10 @@"role_middle": "Meio","role_bottom": "Atirador","role_utility": "Suporte",+ "role_fill": "Preencher",+ "role_preference": "Preferência de rota",+ "role_first": "Rota principal",+ "role_second": "Rota secundária","scout_title": "Análise da partida","scout_allies": "Aliados","scout_enemies": "Inimigos",@@ -226,6 +230,20 @@"dodge": "Dodge","dodge_warning": "Sair agora conta como dodge: você perde PDL e pega atraso de fila.","dodge_confirm": "Sair mesmo assim",+ "profile_tools": "Personalizar perfil",+ "profile_icon": "Ícone de invocador",+ "profile_icon_saved": "Ícone atualizado.",+ "profile_status": "Disponibilidade",+ "profile_status_saved": "Disponibilidade atualizada.",+ "status_chat": "Online",+ "status_away": "Ausente",+ "status_dnd": "Ocupado",+ "profile_message": "Mensagem de status",+ "profile_message_saved": "Mensagem atualizada.",+ "profile_background": "Fundo do perfil",+ "profile_background_saved": "Fundo atualizado.",+ "profile_no_skins": "Nenhuma skin deste campeão na conta.",+ "apply": "Aplicar","restart_ux": "Reiniciar a interface do cliente","restart_ux_warning": "Recarrega a interface do cliente. Sua posição na fila e a seleção de campeões são preservadas.","restart_ux_confirm": "Reiniciar interface",diff --git a/src/lib/i18n/ru.json b/src/lib/i18n/ru.jsonindex 56a8bf48..d27a8ee8 100644--- a/src/lib/i18n/ru.json+++ b/src/lib/i18n/ru.json@@ -163,6 +163,10 @@"role_middle": "Мид","role_bottom": "Бот","role_utility": "Саппорт",+ "role_fill": "Любая",+ "role_preference": "Предпочтение роли",+ "role_first": "Основная роль",+ "role_second": "Вторая роль","scout_title": "Разведка матча","scout_allies": "Союзники","scout_enemies": "Противники",@@ -226,6 +230,20 @@"dodge": "Додж","dodge_warning": "Выход сейчас считается доджем: вы потеряете LP и получите задержку очереди.","dodge_confirm": "Всё равно выйти",+ "profile_tools": "Настроить профиль",+ "profile_icon": "Иконка призывателя",+ "profile_icon_saved": "Иконка обновлена.",+ "profile_status": "Доступность",+ "profile_status_saved": "Доступность обновлена.",+ "status_chat": "В сети",+ "status_away": "Отошёл",+ "status_dnd": "Занят",+ "profile_message": "Сообщение статуса",+ "profile_message_saved": "Сообщение обновлено.",+ "profile_background": "Фон профиля",+ "profile_background_saved": "Фон обновлён.",+ "profile_no_skins": "Нет облики этого чемпиона на аккаунте.",+ "apply": "Применить","restart_ux": "Перезапустить интерфейс клиента","restart_ux_warning": "Перезагружает интерфейс клиента. Место в очереди и выбор чемпионов сохраняются.","restart_ux_confirm": "Перезапустить интерфейс",diff --git a/src/lib/i18n/zh-TW.json b/src/lib/i18n/zh-TW.jsonindex 79790e9f..7bd26dff 100644--- a/src/lib/i18n/zh-TW.json+++ b/src/lib/i18n/zh-TW.json@@ -163,6 +163,10 @@"role_middle": "中路","role_bottom": "射手","role_utility": "輔助",+ "role_fill": "補位",+ "role_preference": "分路偏好",+ "role_first": "主選分路",+ "role_second": "副選分路","scout_title": "對戰分析","scout_allies": "隊友","scout_enemies": "敵方",@@ -226,6 +230,20 @@"dodge": "閃退","dodge_warning": "現在退出將視為閃退:你會失去積分並受到排隊延遲。","dodge_confirm": "仍要退出",+ "profile_tools": "自訂個人檔案",+ "profile_icon": "召喚師頭像",+ "profile_icon_saved": "頭像已更新。",+ "profile_status": "上線狀態",+ "profile_status_saved": "上線狀態已更新。",+ "status_chat": "上線",+ "status_away": "離開",+ "status_dnd": "忙碌",+ "profile_message": "狀態訊息",+ "profile_message_saved": "狀態訊息已更新。",+ "profile_background": "生涯背景",+ "profile_background_saved": "背景已更新。",+ "profile_no_skins": "帳號沒有該英雄的造型。",+ "apply": "套用","restart_ux": "重啟客戶端介面","restart_ux_warning": "重新載入客戶端介面。你的排隊位置與英雄選擇會保留。","restart_ux_confirm": "重啟介面",diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.jsonindex 7cdafbd6..2f06d127 100644--- a/src/lib/i18n/zh.json+++ b/src/lib/i18n/zh.json@@ -163,6 +163,10 @@"role_middle": "中单","role_bottom": "射手","role_utility": "辅助",+ "role_fill": "补位",+ "role_preference": "分路偏好",+ "role_first": "主选分路",+ "role_second": "副选分路","scout_title": "对局分析","scout_allies": "队友","scout_enemies": "敌方",@@ -226,6 +230,20 @@"dodge": "秒退","dodge_warning": "现在退出将视为秒退:你会扣除胜点并受到排队惩罚。","dodge_confirm": "仍要退出",+ "profile_tools": "自定义资料",+ "profile_icon": "召唤师图标",+ "profile_icon_saved": "图标已更新。",+ "profile_status": "在线状态",+ "profile_status_saved": "在线状态已更新。",+ "status_chat": "在线",+ "status_away": "离开",+ "status_dnd": "忙碌",+ "profile_message": "状态信息",+ "profile_message_saved": "状态信息已更新。",+ "profile_background": "生涯背景",+ "profile_background_saved": "背景已更新。",+ "profile_no_skins": "账号没有该英雄的皮肤。",+ "apply": "应用","restart_ux": "重启客户端界面","restart_ux_warning": "重新加载客户端界面。你的排队位置和英雄选择会保留。","restart_ux_confirm": "重启界面",diff --git a/src/routes/league/+page.svelte b/src/routes/league/+page.svelteindex b4cde180..6112b8e2 100644--- a/src/routes/league/+page.svelte+++ b/src/routes/league/+page.svelte@@ -450,7 +450,7 @@timers, expanded games) survives switching, and the meta tab'sauto-rune effect keeps working from any tab. --><div class="tab-panel" class:active={tab === "overview"}>- <OverviewTab {summoner} {ranked} {phase} {champSelect} {liveGame} {lobby} {queues} {actionError} {championById} {championByAlias} onAction={action} />+ <OverviewTab {summoner} {ranked} {phase} {champSelect} {liveGame} {lobby} {queues} {actionError} {champions} {championById} {championByAlias} onAction={action} /></div><div class="tab-panel" class:active={tab === "analysis"}><AnalysisTab {analysis} {analysisLoading} onRefreshAnalysis={loadAnalysis} {phase} {scoutPlayers} {scoutReports} {scoutLoading} onRefreshScouting={loadScouting} {championById} {notes} onSaveNote={saveNote} {timesSeenBefore} />@@ -1922,6 +1922,41 @@background: var(--surface-hover);}+ .league-page :global(.profile-tools) {+ margin-bottom: 10px;+ }++ .league-page :global(.profile-tools summary) {+ cursor: pointer;+ font-size: 12.5px;+ color: var(--text-secondary);+ padding: 4px 0;+ }++ .league-page :global(.profile-tool-row) {+ display: flex;+ align-items: center;+ gap: 8px;+ flex-wrap: wrap;+ margin: 8px 0;+ }++ .league-page :global(.tiny-input) {+ max-width: 96px;+ }++ .league-page :global(.skin-options) {+ display: flex;+ gap: 6px;+ flex-wrap: wrap;+ }++ .league-page :global(.profile-saved) {+ font-size: 12px;+ color: var(--success);+ margin: 4px 0;+ }+.league-page :global(.skill-order) {display: flex;gap: 3px;