This commit is contained in:
syuilo
2020-12-26 10:47:36 +09:00
parent 9d81d06853
commit 5a8cc7851b
200 changed files with 1562 additions and 1533 deletions

View File

@@ -48,7 +48,7 @@ export default defineComponent({
created() {
this.menu = [{
icon: faCog,
text: this.$t('selectAntenna'),
text: this.$ts.selectAntenna,
action: this.setAntenna
}];
},
@@ -63,7 +63,7 @@ export default defineComponent({
async setAntenna() {
const antennas = await os.api('antennas/list');
const { canceled, result: antenna } = await os.dialog({
title: this.$t('selectAntenna'),
title: this.$ts.selectAntenna,
type: null,
select: {
items: antennas.map(x => ({

View File

@@ -136,10 +136,10 @@ export default defineComponent({
getMenu() {
const items = [{
icon: faPencilAlt,
text: this.$t('rename'),
text: this.$ts.rename,
action: () => {
os.dialog({
title: this.$t('rename'),
title: this.$ts.rename,
input: {
default: this.column.name,
allowEmpty: false
@@ -151,43 +151,43 @@ export default defineComponent({
}
}, null, {
icon: faArrowLeft,
text: this.$t('_deck.swapLeft'),
text: this.$ts._deck.swapLeft,
action: () => {
swapLeftColumn(this.column.id);
}
}, {
icon: faArrowRight,
text: this.$t('_deck.swapRight'),
text: this.$ts._deck.swapRight,
action: () => {
swapRightColumn(this.column.id);
}
}, this.isStacked ? {
icon: faArrowUp,
text: this.$t('_deck.swapUp'),
text: this.$ts._deck.swapUp,
action: () => {
swapUpColumn(this.column.id);
}
} : undefined, this.isStacked ? {
icon: faArrowDown,
text: this.$t('_deck.swapDown'),
text: this.$ts._deck.swapDown,
action: () => {
swapDownColumn(this.column.id);
}
} : undefined, null, {
icon: faWindowRestore,
text: this.$t('_deck.stackLeft'),
text: this.$ts._deck.stackLeft,
action: () => {
stackLeftColumn(this.column.id);
}
}, this.isStacked ? {
icon: faWindowMaximize,
text: this.$t('_deck.popRight'),
text: this.$ts._deck.popRight,
action: () => {
popRightColumn(this.column.id);
}
} : undefined, null, {
icon: faTrashAlt,
text: this.$t('remove'),
text: this.$ts.remove,
action: () => {
removeColumn(this.column.id);
}

View File

@@ -48,7 +48,7 @@ export default defineComponent({
created() {
this.menu = [{
icon: faCog,
text: this.$t('selectList'),
text: this.$ts.selectList,
action: this.setList
}];
},
@@ -63,7 +63,7 @@ export default defineComponent({
async setList() {
const lists = await os.api('users/lists/list');
const { canceled, result: list } = await os.dialog({
title: this.$t('selectList'),
title: this.$ts.selectList,
type: null,
select: {
items: lists.map(x => ({

View File

@@ -42,7 +42,7 @@ export default defineComponent({
created() {
this.menu = [{
icon: faCog,
text: this.$t('notificationSetting'),
text: this.$ts.notificationSetting,
action: () => {
os.popup(import('@/components/notification-setting-window.vue'), {
includingTypes: this.column.includingTypes,

View File

@@ -63,7 +63,7 @@ export default defineComponent({
created() {
this.menu = [{
icon: faCog,
text: this.$t('timeline'),
text: this.$ts.timeline,
action: this.setType
}];
},
@@ -81,17 +81,17 @@ export default defineComponent({
methods: {
async setType() {
const { canceled, result: src } = await os.dialog({
title: this.$t('timeline'),
title: this.$ts.timeline,
type: null,
select: {
items: [{
value: 'home', text: this.$t('_timelines.home')
value: 'home', text: this.$ts._timelines.home
}, {
value: 'local', text: this.$t('_timelines.local')
value: 'local', text: this.$ts._timelines.local
}, {
value: 'social', text: this.$t('_timelines.social')
value: 'social', text: this.$ts._timelines.social
}, {
value: 'global', text: this.$t('_timelines.global')
value: 'global', text: this.$ts._timelines.global
}]
},
});

View File

@@ -6,11 +6,11 @@
<template v-if="edit">
<header>
<MkSelect v-model:value="widgetAdderSelected" style="margin-bottom: var(--margin)">
<template #label>{{ $t('selectWidget') }}</template>
<template #label>{{ $ts.selectWidget }}</template>
<option v-for="widget in widgets" :value="widget" :key="widget">{{ $t(`_widgets.${widget}`) }}</option>
</MkSelect>
<MkButton inline @click="addWidget" primary><Fa :icon="faPlus"/> {{ $t('add') }}</MkButton>
<MkButton inline @click="edit = false">{{ $t('close') }}</MkButton>
<MkButton inline @click="addWidget" primary><Fa :icon="faPlus"/> {{ $ts.add }}</MkButton>
<MkButton inline @click="edit = false">{{ $ts.close }}</MkButton>
</header>
<XDraggable
v-model="_widgets"
@@ -84,7 +84,7 @@ export default defineComponent({
created() {
this.menu = [{
icon: faCog,
text: this.$t('edit'),
text: this.$ts.edit,
action: () => {
this.edit = !this.edit;
}