This commit is contained in:
syuilo
2018-11-09 13:47:22 +09:00
parent 21d9afebc3
commit c8081ed353
10 changed files with 31 additions and 31 deletions

View File

@ -7,9 +7,9 @@
<div class="card map">
<header>
<select v-model="mapName" :placeholder="$t('placeholder')" @change="onMapChange">
<select v-model="mapName" :placeholder="$t('choose-map')" @change="onMapChange">
<option label="-Custom-" :value="mapName" v-if="mapName == '-Custom-'"/>
<option :label="$t('label')" :value="null"/>
<option :label="$t('random')" :value="null"/>
<optgroup v-for="c in mapCategories" :key="c" :label="c">
<option v-for="m in maps" v-if="m.category == c" :key="m.name" :label="m.name" :value="m.name">{{ m.name }}</option>
</optgroup>

View File

@ -8,7 +8,7 @@
ref="textarea"
@keypress="onKeypress"
@paste="onPaste"
:placeholder="$t('placeholder')"
:placeholder="$t('input-message-here')"
v-autocomplete="'text'"
></textarea>
<div class="file" @click="file = null" v-if="file">{{ file.name }}</div>

View File

@ -3,7 +3,7 @@
<div class="search" v-if="!compact" :style="{ top: headerTop + 'px' }">
<div class="form">
<label for="search-input"><i><fa icon="search"/></i></label>
<input v-model="q" type="search" @input="search" @keydown="onSearchKeydown" :placeholder="$t('placeholder')"/>
<input v-model="q" type="search" @input="search" @keydown="onSearchKeydown" :placeholder="$t('search-user')"/>
</div>
<div class="result">
<ol class="users" v-if="result.length > 0" ref="searchResult">

View File

@ -2,11 +2,11 @@
<div class="nicnklzforebnpfgasiypmpdaaglujqm">
<label>
<span>{{ $t('light-theme') }}</span>
<ui-select v-model="light" :placeholder="$t('placeholder')">
<optgroup :label="$t('label')">
<ui-select v-model="light" :placeholder="$t('light-theme')">
<optgroup :label="$t('light-themes')">
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
<optgroup :label="$t('label')">
<optgroup :label="$t('dark-themes')">
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
</ui-select>
@ -14,11 +14,11 @@
<label>
<span>{{ $t('dark-theme') }}</span>
<ui-select v-model="dark" :placeholder="$t('placeholder')">
<optgroup :label="$t('label')">
<ui-select v-model="dark" :placeholder="$t('dark-theme')">
<optgroup :label="$t('dark-themes')">
<option v-for="x in darkThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
<optgroup :label="$t('label')">
<optgroup :label="$t('light-themes')">
<option v-for="x in lightThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
</ui-select>
@ -68,14 +68,14 @@
<details>
<summary><fa icon="folder-open"/> {{ $t('manage-themes') }}</summary>
<ui-select v-model="selectedThemeId" :placeholder="$t('placeholder')">
<optgroup :label="$t('label')">
<ui-select v-model="selectedThemeId" :placeholder="$t('select-theme')">
<optgroup :label="$t('builtin-themes')">
<option v-for="x in builtinThemes" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
<optgroup :label="$t('label')">
<optgroup :label="$t('my-themes')">
<option v-for="x in installedThemes.filter(t => t.author == this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
<optgroup :label="$t('label')">
<optgroup :label="$t('installed-themes')">
<option v-for="x in installedThemes.filter(t => t.author != this.$store.state.i.username)" :value="x.id" :key="x.id">{{ x.name }}</option>
</optgroup>
</ui-select>