mirror of https://github.com/hykilpikonna/AquaDX
fix: add navigation to i18n, tooltip for profile
parent
586d108d32
commit
b23385ba28
|
@ -7,8 +7,9 @@
|
||||||
import { USER } from "./libs/sdk";
|
import { USER } from "./libs/sdk";
|
||||||
import type { AquaNetUser } from "./libs/generalTypes";
|
import type { AquaNetUser } from "./libs/generalTypes";
|
||||||
import Settings from "./pages/User/Settings.svelte";
|
import Settings from "./pages/User/Settings.svelte";
|
||||||
import { pfp } from "./libs/ui"
|
import { pfp, tooltip } from "./libs/ui"
|
||||||
import { ANNOUNCEMENT } from "./libs/config";
|
import { ANNOUNCEMENT } from "./libs/config";
|
||||||
|
import { t } from "./libs/i18n";
|
||||||
|
|
||||||
console.log(`%c
|
console.log(`%c
|
||||||
┏━┓ ┳━┓━┓┏━
|
┏━┓ ┳━┓━┓┏━
|
||||||
|
@ -39,15 +40,15 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if ANNOUNCEMENT}
|
{#if ANNOUNCEMENT}
|
||||||
<div class="announcement">
|
<div class="announcement">
|
||||||
<strong>Notice</strong>: {ANNOUNCEMENT}
|
<strong>{t('navigation.notice').toLowerCase()}</strong>: {ANNOUNCEMENT}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<a href="/home">home</a>
|
<a href="/home">{t('navigation.home').toLowerCase()}</a>
|
||||||
<div on:click={() => alert("Coming soon™")} on:keydown={e => e.key === "Enter" && alert("Coming soon™")}
|
<div on:click={() => alert("Coming soon™")} on:keydown={e => e.key === "Enter" && alert("Coming soon™")}
|
||||||
role="button" tabindex="0">maps</div>
|
role="button" tabindex="0">{t('navigation.maps').toLowerCase()}</div>
|
||||||
<a href="/ranking">rankings</a>
|
<a href="/ranking">{t('navigation.rankings').toLowerCase()}</a>
|
||||||
{#if me}
|
{#if me}
|
||||||
<a href="/u/{me.username}">
|
<a href="/u/{me.username}" use:tooltip={t('navigation.profile')}>
|
||||||
<img alt="profile" class="pfp" use:pfp={me}/>
|
<img alt="profile" class="pfp" use:pfp={me}/>
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -72,6 +72,11 @@ export const EN_REF_GENERAL = {
|
||||||
'action.refresh': 'Refresh',
|
'action.refresh': 'Refresh',
|
||||||
'action.cancel': 'Cancel',
|
'action.cancel': 'Cancel',
|
||||||
'action.confirm': 'Confirm',
|
'action.confirm': 'Confirm',
|
||||||
|
'navigation.profile': 'Profile',
|
||||||
|
'navigation.maps': 'Maps',
|
||||||
|
'navigation.home': 'Home',
|
||||||
|
'navigation.rankings': 'Rankings',
|
||||||
|
'navigation.notice': 'Notice'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EN_REF_HOME = {
|
export const EN_REF_HOME = {
|
||||||
|
|
Loading…
Reference in New Issue