diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-06-13 16:46:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-13 16:46:01 +0900 |
| commit | 7093662ce5c17a8096c33712d0056de9fd4b5a41 (patch) | |
| tree | a89436b3c3b474a1b1c985876d9e769ea1ac9f9e /packages/frontend/src/instance.ts | |
| parent | Merge pull request #10961 from misskey-dev/develop (diff) | |
| parent | ユーザー統計表示機能を削除 (diff) | |
| download | misskey-7093662ce5c17a8096c33712d0056de9fd4b5a41.tar.gz misskey-7093662ce5c17a8096c33712d0056de9fd4b5a41.tar.bz2 misskey-7093662ce5c17a8096c33712d0056de9fd4b5a41.zip | |
Merge pull request #10990 from misskey-dev/develop
Release: 13.13.2
Diffstat (limited to 'packages/frontend/src/instance.ts')
| -rw-r--r-- | packages/frontend/src/instance.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/frontend/src/instance.ts b/packages/frontend/src/instance.ts index f4c1988704..9cfcbcbc3f 100644 --- a/packages/frontend/src/instance.ts +++ b/packages/frontend/src/instance.ts @@ -1,7 +1,8 @@ -import { reactive } from 'vue'; +import { computed, reactive } from 'vue'; import * as Misskey from 'misskey-js'; import { api } from './os'; import { miLocalStorage } from './local-storage'; +import { DEFAULT_INFO_IMAGE_URL, DEFAULT_NOT_FOUND_IMAGE_URL, DEFAULT_SERVER_ERROR_IMAGE_URL } from '@/const'; // TODO: 他のタブと永続化されたstateを同期 @@ -13,6 +14,12 @@ export const instance: Misskey.entities.InstanceMetadata = reactive(cached ? JSO // TODO: set default values }); +export const serverErrorImageUrl = computed(() => instance.serverErrorImageUrl ?? DEFAULT_SERVER_ERROR_IMAGE_URL); + +export const infoImageUrl = computed(() => instance.infoImageUrl ?? DEFAULT_INFO_IMAGE_URL); + +export const notFoundImageUrl = computed(() => instance.notFoundImageUrl ?? DEFAULT_NOT_FOUND_IMAGE_URL); + export async function fetchInstance() { const meta = await api('meta', { detail: false, |