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

@@ -1,6 +1,6 @@
<template>
<MkContainer :show-header="props.showHeader" :naked="props.transparent">
<template #header><Fa :icon="faChartBar"/>{{ $t('_widgets.activity') }}</template>
<template #header><Fa :icon="faChartBar"/>{{ $ts._widgets.activity }}</template>
<template #func><button @click="toggleView()" class="_button"><Fa :icon="faSort"/></button></template>
<div>

View File

@@ -10,19 +10,19 @@
</div>
<div class="info">
<div>
<p>{{ $t('today') }}: <b>{{ dayP.toFixed(1) }}%</b></p>
<p>{{ $ts.today }}: <b>{{ dayP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${dayP}%` }"></div>
</div>
</div>
<div>
<p>{{ $t('thisMonth') }}: <b>{{ monthP.toFixed(1) }}%</b></p>
<p>{{ $ts.thisMonth }}: <b>{{ monthP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${monthP}%` }"></div>
</div>
</div>
<div>
<p>{{ $t('thisYear') }}: <b>{{ yearP.toFixed(1) }}%</b></p>
<p>{{ $ts.thisYear }}: <b>{{ yearP.toFixed(1) }}%</b></p>
<div class="meter">
<div class="val" :style="{ width: `${yearP}%` }"></div>
</div>
@@ -80,13 +80,13 @@ export default defineComponent({
this.month = nm + 1;
this.day = nd;
this.weekDay = [
this.$t('_weekday.sunday'),
this.$t('_weekday.monday'),
this.$t('_weekday.tuesday'),
this.$t('_weekday.wednesday'),
this.$t('_weekday.thursday'),
this.$t('_weekday.friday'),
this.$t('_weekday.saturday')
this.$ts._weekday.sunday,
this.$ts._weekday.monday,
this.$ts._weekday.tuesday,
this.$ts._weekday.wednesday,
this.$ts._weekday.thursday,
this.$ts._weekday.friday,
this.$ts._weekday.saturday
][now.getDay()];
const dayNumer = now.getTime() - new Date(ny, nm, nd).getTime();

View File

@@ -1,6 +1,6 @@
<template>
<MkContainer :show-header="props.showHeader" :body-togglable="bodyTogglable" :scrollable="scrollable">
<template #header><Fa :icon="faGlobe"/>{{ $t('_widgets.federation') }}</template>
<template #header><Fa :icon="faGlobe"/>{{ $ts._widgets.federation }}</template>
<div class="wbrkwalb">
<MkLoading v-if="fetching"/>

View File

@@ -1,10 +1,10 @@
<template>
<MkContainer :show-header="props.showHeader">
<template #header><Fa :icon="faStickyNote"/>{{ $t('_widgets.memo') }}</template>
<template #header><Fa :icon="faStickyNote"/>{{ $ts._widgets.memo }}</template>
<div class="otgbylcu">
<textarea v-model="text" :placeholder="$t('placeholder')" @input="onChange"></textarea>
<button @click="saveMemo" :disabled="!changed" class="_buttonPrimary">{{ $t('save') }}</button>
<textarea v-model="text" :placeholder="$ts.placeholder" @input="onChange"></textarea>
<button @click="saveMemo" :disabled="!changed" class="_buttonPrimary">{{ $ts.save }}</button>
</div>
</MkContainer>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<MkContainer :style="`height: ${props.height}px;`" :show-header="props.showHeader" :scrollable="true">
<template #header><Fa :icon="faBell"/>{{ $t('notifications') }}</template>
<template #header><Fa :icon="faBell"/>{{ $ts.notifications }}</template>
<template #func><button @click="configure()" class="_button"><Fa :icon="faCog"/></button></template>
<div>

View File

@@ -1,6 +1,6 @@
<template>
<MkContainer :show-header="props.showHeader" :naked="props.transparent" :class="$style.root" :data-transparent="props.transparent ? true : null">
<template #header><Fa :icon="faCamera"/>{{ $t('_widgets.photos') }}</template>
<template #header><Fa :icon="faCamera"/>{{ $ts._widgets.photos }}</template>
<div class="">
<MkLoading v-if="fetching"/>

View File

@@ -3,7 +3,7 @@
<div @click="choose">
<p v-if="props.folderId == null">
<template v-if="isCustomizeMode">{{ $t('folder-customize-mode') }}</template>
<template v-else>{{ $t('folder') }}</template>
<template v-else>{{ $ts.folder }}</template>
</p>
<p v-if="props.folderId != null && images.length === 0 && !fetching">{{ $t('no-image') }}</p>
<div ref="slideA" class="slide a"></div>

View File

@@ -90,19 +90,19 @@ export default defineComponent({
}
}));
os.modalMenu([{
text: this.$t('_timelines.home'),
text: this.$ts._timelines.home,
icon: faHome,
action: () => { this.setSrc('home') }
}, {
text: this.$t('_timelines.local'),
text: this.$ts._timelines.local,
icon: faComments,
action: () => { this.setSrc('local') }
}, {
text: this.$t('_timelines.social'),
text: this.$ts._timelines.social,
icon: faShareAlt,
action: () => { this.setSrc('social') }
}, {
text: this.$t('_timelines.global'),
text: this.$ts._timelines.global,
icon: faGlobe,
action: () => { this.setSrc('global') }
}, antennaItems.length > 0 ? null : undefined, ...antennaItems, listItems.length > 0 ? null : undefined, ...listItems], ev.currentTarget || ev.target).then(() => {

View File

@@ -1,6 +1,6 @@
<template>
<MkContainer :show-header="props.showHeader">
<template #header><Fa :icon="faHashtag"/>{{ $t('_widgets.trends') }}</template>
<template #header><Fa :icon="faHashtag"/>{{ $ts._widgets.trends }}</template>
<div class="wbrkwala">
<MkLoading v-if="fetching"/>