forked from FoundKeyGang/FoundKey
refactor(client): improve $i type
This commit is contained in:
parent
cb16ff866c
commit
f607faef0b
1 changed files with 2 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { del, get, set } from '@/scripts/idb-proxy';
|
import { del, get, set } from '@/scripts/idb-proxy';
|
||||||
import { reactive } from 'vue';
|
import { reactive } from 'vue';
|
||||||
|
import * as misskey from 'misskey-js';
|
||||||
import { apiUrl } from '@/config';
|
import { apiUrl } from '@/config';
|
||||||
import { waiting, api, popup, popupMenu, success } from '@/os';
|
import { waiting, api, popup, popupMenu, success } from '@/os';
|
||||||
import { unisonReload, reloadChannel } from '@/scripts/unison-reload';
|
import { unisonReload, reloadChannel } from '@/scripts/unison-reload';
|
||||||
|
@ -8,13 +9,7 @@ import { i18n } from './i18n';
|
||||||
|
|
||||||
// TODO: 他のタブと永続化されたstateを同期
|
// TODO: 他のタブと永続化されたstateを同期
|
||||||
|
|
||||||
type Account = {
|
type Account = misskey.entities.MeDetailed;
|
||||||
id: string;
|
|
||||||
token: string;
|
|
||||||
isModerator: boolean;
|
|
||||||
isAdmin: boolean;
|
|
||||||
isDeleted: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
const data = localStorage.getItem('account');
|
const data = localStorage.getItem('account');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue