This commit is contained in:
syuilo 2018-06-07 01:17:29 +09:00
parent c75ca2f62f
commit 7296bac71b
6 changed files with 29 additions and 17 deletions

View file

@ -76,6 +76,18 @@ common:
nav: "ナビゲーション" nav: "ナビゲーション"
tips: "ヒント" tips: "ヒント"
deck:
widgets: "ウィジェット"
home: "ホーム"
local: "ローカル"
global: "グローバル"
notifications: "通知"
list: "リスト"
swap-left: "左に移動"
swap-right: "右に移動"
remove: "カラムを削除"
add-column: "カラムを追加"
common/views/components/connect-failed.vue: common/views/components/connect-failed.vue:
title: "サーバーに接続できません" title: "サーバーに接続できません"
description: "インターネット回線に問題があるか、サーバーがダウンまたはメンテナンスしている可能性があります。しばらくしてから{再度お試し}ください。" description: "インターネット回線に問題があるか、サーバーがダウンまたはメンテナンスしている可能性があります。しばらくしてから{再度お試し}ください。"

View file

@ -75,17 +75,17 @@ export default Vue.extend({
showMenu() { showMenu() {
const items = [{ const items = [{
content: '%fa:arrow-left% %i18n:@swap-left%', content: '%fa:arrow-left% %i18n:common.deck.swap-left%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/swapLeftDeckColumn', this.id); this.$store.dispatch('settings/swapLeftDeckColumn', this.id);
} }
}, { }, {
content: '%fa:arrow-right% %i18n:@swap-right%', content: '%fa:arrow-right% %i18n:common.deck.swap-right%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/swapRightDeckColumn', this.id); this.$store.dispatch('settings/swapRightDeckColumn', this.id);
} }
}, { }, {
content: '%fa:trash-alt R% %i18n:@remove%', content: '%fa:trash-alt R% %i18n:common.deck.remove%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/removeDeckColumn', this.id); this.$store.dispatch('settings/removeDeckColumn', this.id);
} }

View file

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<x-column :id="id"> <x-column :id="id">
<span slot="header">%fa:bell R%%i18n:@notifications%</span> <span slot="header">%fa:bell R%%i18n:common.deck.notifications%</span>
<x-notifications/> <x-notifications/>
</x-column> </x-column>

View file

@ -2,9 +2,9 @@
<div> <div>
<x-column :id="column.id"> <x-column :id="column.id">
<span slot="header"> <span slot="header">
<template v-if="column.type == 'home'">%fa:home%%i18n:@home%</template> <template v-if="column.type == 'home'">%fa:home%%i18n:common.deck.home%</template>
<template v-if="column.type == 'local'">%fa:R comments%%i18n:@local%</template> <template v-if="column.type == 'local'">%fa:R comments%%i18n:common.deck.local%</template>
<template v-if="column.type == 'global'">%fa:globe%%i18n:@global%</template> <template v-if="column.type == 'global'">%fa:globe%%i18n:common.deck.global%</template>
<template v-if="column.type == 'list'">%fa:list%{{ column.list.title }}</template> <template v-if="column.type == 'list'">%fa:list%{{ column.list.title }}</template>
</span> </span>

View file

@ -9,7 +9,7 @@
<x-tl-column v-if="column.type == 'global'" :key="column.id" :column="column"/> <x-tl-column v-if="column.type == 'global'" :key="column.id" :column="column"/>
<x-tl-column v-if="column.type == 'list'" :key="column.id" :column="column"/> <x-tl-column v-if="column.type == 'list'" :key="column.id" :column="column"/>
</template> </template>
<button ref="add" @click="add">%fa:plus%</button> <button ref="add" @click="add" title="%i18n:common.deck.add-column%">%fa:plus%</button>
</div> </div>
</mk-ui> </mk-ui>
</template> </template>
@ -79,7 +79,7 @@ export default Vue.extend({
source: this.$refs.add, source: this.$refs.add,
compact: true, compact: true,
items: [{ items: [{
content: '%i18n:@home%', content: '%i18n:common.deck.home%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/addDeckColumn', { this.$store.dispatch('settings/addDeckColumn', {
id: uuid(), id: uuid(),
@ -87,7 +87,7 @@ export default Vue.extend({
}); });
} }
}, { }, {
content: '%i18n:@local%', content: '%i18n:common.deck.local%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/addDeckColumn', { this.$store.dispatch('settings/addDeckColumn', {
id: uuid(), id: uuid(),
@ -95,7 +95,7 @@ export default Vue.extend({
}); });
} }
}, { }, {
content: '%i18n:@global%', content: '%i18n:common.deck.global%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/addDeckColumn', { this.$store.dispatch('settings/addDeckColumn', {
id: uuid(), id: uuid(),
@ -103,7 +103,7 @@ export default Vue.extend({
}); });
} }
}, { }, {
content: '%i18n:@list%', content: '%i18n:common.deck.list%',
onClick: () => { onClick: () => {
const w = (this as any).os.new(MkUserListsWindow); const w = (this as any).os.new(MkUserListsWindow);
w.$once('choosen', list => { w.$once('choosen', list => {
@ -116,7 +116,7 @@ export default Vue.extend({
}); });
} }
}, { }, {
content: '%i18n:@notifications%', content: '%i18n:common.deck.notifications%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/addDeckColumn', { this.$store.dispatch('settings/addDeckColumn', {
id: uuid(), id: uuid(),
@ -124,7 +124,7 @@ export default Vue.extend({
}); });
} }
}, { }, {
content: '%i18n:@widgets%', content: '%i18n:common.deck.widgets%',
onClick: () => { onClick: () => {
this.$store.dispatch('settings/addDeckColumn', { this.$store.dispatch('settings/addDeckColumn', {
id: uuid(), id: uuid(),
@ -155,7 +155,7 @@ root(isDark)
overflow auto overflow auto
> div > div
margin-right 16px margin-right 8px
&:last-of-type &:last-of-type
margin-right 0 margin-right 0

View file

@ -1,7 +1,7 @@
<template> <template>
<div class="wtdtxvecapixsepjtcupubtsmometobz"> <div class="wtdtxvecapixsepjtcupubtsmometobz">
<x-column :id="column.id" :menu="menu" :naked="true" :narrow="true"> <x-column :id="column.id" :menu="menu" :naked="true" :narrow="true">
<span slot="header">%fa:calculator%%i18n:@widgets%</span> <span slot="header">%fa:calculator%%i18n:common.deck.widgets%</span>
<div class="gqpwvtwtprsbmnssnbicggtwqhmylhnq"> <div class="gqpwvtwtprsbmnssnbicggtwqhmylhnq">
<template v-if="edit"> <template v-if="edit">
@ -29,7 +29,7 @@
<option value="nav">%i18n:common.widgets.nav%</option> <option value="nav">%i18n:common.widgets.nav%</option>
<option value="tips">%i18n:common.widgets.tips%</option> <option value="tips">%i18n:common.widgets.tips%</option>
</select> </select>
<button @click="addWidget">追加</button> <button @click="addWidget">%i18n:@add%</button>
</header> </header>
<x-draggable <x-draggable
:list="column.widgets" :list="column.widgets"