Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Mar 4, 2025
1 parent adf2214 commit 19384ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkMention.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<img :class="$style.icon" :src="avatarUrl" alt="">
<span>
<span>@{{ username }}</span>
<span v-if="(host != localHost) || defaultStore.state.showFullAcct" :class="$style.host">@{{ toUnicode(host) }}</span>
<span v-if="(host != localHost)" :class="$style.host">@{{ toUnicode(host) }}</span>
</span>
</MkA>
</template>
Expand All @@ -17,10 +17,10 @@ SPDX-License-Identifier: AGPL-3.0-only
import { toUnicode } from 'punycode.js';
import { computed } from 'vue';
import { host as localHost } from '@@/js/config.js';
import type { MkABehavior } from '@/components/global/MkA.vue';
import { $i } from '@/account.js';
import { defaultStore } from '@/store.js';
import { getStaticImageUrl } from '@/scripts/media-proxy.js';
import type { MkABehavior } from '@/components/global/MkA.vue';

const props = defineProps<{
username: string;
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/components/global/MkAcct.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<span>
<span>@{{ user.username }}</span>
<span v-if="user.host || detail || defaultStore.state.showFullAcct" style="opacity: 0.5;">@{{ user.host || host }}</span>
<span v-if="user.host || detail" style="opacity: 0.5;">@{{ user.host || host }}</span>
</span>
</template>

<script lang="ts" setup>
import * as Misskey from 'misskey-js';
import { toUnicode } from 'punycode.js';
import { host as hostRaw } from '@@/js/config.js';
import { defaultStore } from '@/store.js';

defineProps<{
user: Misskey.entities.UserLite;
Expand Down
6 changes: 1 addition & 5 deletions packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import lightTheme from '@@/themes/l-light.json5';
import darkTheme from '@@/themes/d-green-lime.json5';
import type { SoundType } from '@/scripts/sound.js';
import type { Ast } from '@syuilo/aiscript';
import { DEFAULT_DEVICE_KIND } from '@/scripts/device-kind.js';
import type { DeviceKind } from '@/scripts/device-kind.js';
import { DEFAULT_DEVICE_KIND } from '@/scripts/device-kind.js';
import { miLocalStorage } from '@/local-storage.js';
import { Storage } from '@/pizzax.js';

Expand Down Expand Up @@ -89,10 +89,6 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'account',
default: true,
},
showFullAcct: {
where: 'account',
default: false,
},
collapseRenotes: {
where: 'account',
default: true,
Expand Down

0 comments on commit 19384ef

Please sign in to comment.