tweak of cd8274888
This commit is contained in:
parent
ff56511638
commit
f6830885d7
|
@ -1064,6 +1064,7 @@ export interface Locale {
|
||||||
"later": string;
|
"later": string;
|
||||||
"goToMisskey": string;
|
"goToMisskey": string;
|
||||||
"additionalEmojiDictionary": string;
|
"additionalEmojiDictionary": string;
|
||||||
|
"installed": string;
|
||||||
"_initialAccountSetting": {
|
"_initialAccountSetting": {
|
||||||
"accountCreated": string;
|
"accountCreated": string;
|
||||||
"letsStartAccountSetup": string;
|
"letsStartAccountSetup": string;
|
||||||
|
|
|
@ -1061,6 +1061,7 @@ changeReactionConfirm: "リアクションを変更しますか?"
|
||||||
later: "あとで"
|
later: "あとで"
|
||||||
goToMisskey: "Misskeyへ"
|
goToMisskey: "Misskeyへ"
|
||||||
additionalEmojiDictionary: "絵文字の追加辞書"
|
additionalEmojiDictionary: "絵文字の追加辞書"
|
||||||
|
installed: "インストール済み"
|
||||||
|
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "アカウントの作成が完了しました!"
|
accountCreated: "アカウントの作成が完了しました!"
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<div class="_gaps_s">
|
<div class="_gaps_s">
|
||||||
<MkSwitch v-model="showFixedPostForm">{{ i18n.ts.showFixedPostForm }}</MkSwitch>
|
<MkSwitch v-model="showFixedPostForm">{{ i18n.ts.showFixedPostForm }}</MkSwitch>
|
||||||
<MkSwitch v-model="showFixedPostFormInChannel">{{ i18n.ts.showFixedPostFormInChannel }}</MkSwitch>
|
<MkSwitch v-model="showFixedPostFormInChannel">{{ i18n.ts.showFixedPostFormInChannel }}</MkSwitch>
|
||||||
|
<MkSwitch v-model="showTimelineReplies">{{ i18n.ts.flagShowTimelineReplies }}<template #caption>{{ i18n.ts.flagShowTimelineRepliesDescription }} {{ i18n.ts.reflectMayTakeTime }}</template></MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
|
@ -149,9 +150,11 @@
|
||||||
<div class="_gaps">
|
<div class="_gaps">
|
||||||
<MkFolder>
|
<MkFolder>
|
||||||
<template #label>{{ i18n.ts.additionalEmojiDictionary }}</template>
|
<template #label>{{ i18n.ts.additionalEmojiDictionary }}</template>
|
||||||
<MkButton @click="downloadEmojiIndex('en-US')"><i class="ti ti-download"></i> en-US</MkButton>
|
<div v-for="lang in emojiIndexLangs" class="_buttons">
|
||||||
|
<MkButton @click="downloadEmojiIndex(lang)"><i class="ti ti-download"></i> {{ lang }}{{ defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang] ? ` (${ i18n.ts.installed })` : '' }}</MkButton>
|
||||||
|
<MkButton v-if="defaultStore.reactiveState.additionalUnicodeEmojiIndexes.value[lang]" danger @click="removeEmojiIndex(lang)"><i class="ti ti-trash"></i> {{ i18n.ts.remove }}</MkButton>
|
||||||
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkSwitch v-model="showTimelineReplies">{{ i18n.ts.flagShowTimelineReplies }}<template #caption>{{ i18n.ts.flagShowTimelineRepliesDescription }} {{ i18n.ts.reflectMayTakeTime }}</template></MkSwitch>
|
|
||||||
<FormLink to="/settings/deck">{{ i18n.ts.deck }}</FormLink>
|
<FormLink to="/settings/deck">{{ i18n.ts.deck }}</FormLink>
|
||||||
<FormLink to="/settings/custom-css"><template #icon><i class="ti ti-code"></i></template>{{ i18n.ts.customCss }}</FormLink>
|
<FormLink to="/settings/custom-css"><template #icon><i class="ti ti-code"></i></template>{{ i18n.ts.customCss }}</FormLink>
|
||||||
</div>
|
</div>
|
||||||
|
@ -259,7 +262,9 @@ watch([
|
||||||
await reloadAsk();
|
await reloadAsk();
|
||||||
});
|
});
|
||||||
|
|
||||||
async function downloadEmojiIndex(lang: string) {
|
const emojiIndexLangs = ['en-US'];
|
||||||
|
|
||||||
|
function downloadEmojiIndex(lang: string) {
|
||||||
async function main() {
|
async function main() {
|
||||||
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
||||||
function download() {
|
function download() {
|
||||||
|
@ -269,7 +274,17 @@ async function downloadEmojiIndex(lang: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
currentIndexes[lang] = await download();
|
currentIndexes[lang] = await download();
|
||||||
defaultStore.set('additionalUnicodeEmojiIndexes', currentIndexes);
|
await defaultStore.set('additionalUnicodeEmojiIndexes', currentIndexes);
|
||||||
|
}
|
||||||
|
|
||||||
|
os.promiseDialog(main());
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeEmojiIndex(lang: string) {
|
||||||
|
async function main() {
|
||||||
|
const currentIndexes = defaultStore.state.additionalUnicodeEmojiIndexes;
|
||||||
|
delete currentIndexes[lang];
|
||||||
|
await defaultStore.set('additionalUnicodeEmojiIndexes', currentIndexes);
|
||||||
}
|
}
|
||||||
|
|
||||||
os.promiseDialog(main());
|
os.promiseDialog(main());
|
||||||
|
|
Loading…
Reference in New Issue