[Client] Resolve #3500

This commit is contained in:
syuilo 2018-12-05 17:27:27 +09:00
parent 65d0dbb7d8
commit 20c0690352
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
8 changed files with 0 additions and 76 deletions

View file

@ -171,7 +171,6 @@ common:
polls: "アンケート" polls: "アンケート"
post-form: "投稿フォーム" post-form: "投稿フォーム"
server: "サーバー情報" server: "サーバー情報"
donation: "寄付のお願い"
nav: "ナビゲーション" nav: "ナビゲーション"
tips: "ヒント" tips: "ヒント"
hashtags: "ハッシュタグ" hashtags: "ハッシュタグ"
@ -530,10 +529,6 @@ common/views/widgets/calendar.vue:
this-month: "今月:" this-month: "今月:"
this-year: "今年:" this-year: "今年:"
common/views/widgets/donation.vue:
title: "寄付のお願い"
text: "Misskeyの運営にはドメイン、サーバー等のコストが掛かります。Misskeyは広告を掲載したりしないため、収入を皆様からの寄付に頼っています。もしご興味があれば、{}までご連絡ください。ご協力ありがとうございます。"
common/views/widgets/photo-stream.vue: common/views/widgets/photo-stream.vue:
title: "フォトストリーム" title: "フォトストリーム"
no-photos: "写真はありません" no-photos: "写真はありません"

View file

@ -1,56 +0,0 @@
<template>
<div>
<mk-widget-container :show-header="false">
<article class="dolfvtibguprpxxhfndqaosjitixjohx">
<h1><fa icon="heart"/>{{ $t('title') }}</h1>
<p v-if="meta">
{{ this.$t('text').substr(0, this.$t('text').indexOf('{')) }}
<a :href="'mailto:' + meta.maintainer.email">{{ meta.maintainer.name }}</a>
{{ this.$t('text').substr(this.$t('text').indexOf('}') + 1) }}
</p>
</article>
</mk-widget-container>
</div>
</template>
<script lang="ts">
import define from '../../../common/define-widget';
import i18n from '../../../i18n';
export default define({
name: 'donation'
}).extend({
i18n: i18n('common/views/widgets/donation.vue'),
data() {
return {
meta: null
};
},
created() {
this.$root.getMeta().then(meta => {
this.meta = meta;
});
}
});
</script>
<style lang="stylus" scoped>
.dolfvtibguprpxxhfndqaosjitixjohx
padding 20px
background var(--donationBg)
color var(--donationFg)
> h1
margin 0 0 5px 0
font-size 1em
> [data-icon]
margin-right 0.25em
> p
display block
z-index 1
margin 0
font-size 0.8em
</style>

View file

@ -11,7 +11,6 @@ import wCalendar from './calendar.vue';
import wPhotoStream from './photo-stream.vue'; import wPhotoStream from './photo-stream.vue';
import wSlideshow from './slideshow.vue'; import wSlideshow from './slideshow.vue';
import wTips from './tips.vue'; import wTips from './tips.vue';
import wDonation from './donation.vue';
import wNav from './nav.vue'; import wNav from './nav.vue';
import wHashtags from './hashtags.vue'; import wHashtags from './hashtags.vue';
@ -21,7 +20,6 @@ Vue.component('mkw-calendar', wCalendar);
Vue.component('mkw-photo-stream', wPhotoStream); Vue.component('mkw-photo-stream', wPhotoStream);
Vue.component('mkw-slideshow', wSlideshow); Vue.component('mkw-slideshow', wSlideshow);
Vue.component('mkw-tips', wTips); Vue.component('mkw-tips', wTips);
Vue.component('mkw-donation', wDonation);
Vue.component('mkw-broadcast', wBroadcast); Vue.component('mkw-broadcast', wBroadcast);
Vue.component('mkw-server', wServer); Vue.component('mkw-server', wServer);
Vue.component('mkw-posts-monitor', wPostsMonitor); Vue.component('mkw-posts-monitor', wPostsMonitor);

View file

@ -26,7 +26,6 @@
<option value="hashtags">{{ $t('@.widgets.hashtags') }}</option> <option value="hashtags">{{ $t('@.widgets.hashtags') }}</option>
<option value="posts-monitor">{{ $t('@.widgets.posts-monitor') }}</option> <option value="posts-monitor">{{ $t('@.widgets.posts-monitor') }}</option>
<option value="server">{{ $t('@.widgets.server') }}</option> <option value="server">{{ $t('@.widgets.server') }}</option>
<option value="donation">{{ $t('@.widgets.donation') }}</option>
<option value="nav">{{ $t('@.widgets.nav') }}</option> <option value="nav">{{ $t('@.widgets.nav') }}</option>
<option value="tips">{{ $t('@.widgets.tips') }}</option> <option value="tips">{{ $t('@.widgets.tips') }}</option>
</select> </select>
@ -95,7 +94,6 @@ const defaultDesktopHomeWidgets = {
'users', 'users',
'polls', 'polls',
'server', 'server',
'donation',
'nav', 'nav',
'tips' 'tips'
] ]

View file

@ -26,7 +26,6 @@
<option value="hashtags">{{ $t('@.widgets.hashtags') }}</option> <option value="hashtags">{{ $t('@.widgets.hashtags') }}</option>
<option value="posts-monitor">{{ $t('@.widgets.posts-monitor') }}</option> <option value="posts-monitor">{{ $t('@.widgets.posts-monitor') }}</option>
<option value="server">{{ $t('@.widgets.server') }}</option> <option value="server">{{ $t('@.widgets.server') }}</option>
<option value="donation">{{ $t('@.widgets.donation') }}</option>
<option value="nav">{{ $t('@.widgets.nav') }}</option> <option value="nav">{{ $t('@.widgets.nav') }}</option>
<option value="tips">{{ $t('@.widgets.tips') }}</option> <option value="tips">{{ $t('@.widgets.tips') }}</option>
</select> </select>

View file

@ -20,7 +20,6 @@
<option value="version">{{ $t('@.widgets.version') }}</option> <option value="version">{{ $t('@.widgets.version') }}</option>
<option value="server">{{ $t('@.widgets.server') }}</option> <option value="server">{{ $t('@.widgets.server') }}</option>
<option value="memo">{{ $t('@.widgets.memo') }}</option> <option value="memo">{{ $t('@.widgets.memo') }}</option>
<option value="donation">{{ $t('@.widgets.donation') }}</option>
<option value="nav">{{ $t('@.widgets.nav') }}</option> <option value="nav">{{ $t('@.widgets.nav') }}</option>
<option value="tips">{{ $t('@.widgets.tips') }}</option> <option value="tips">{{ $t('@.widgets.tips') }}</option>
</select> </select>
@ -89,9 +88,6 @@ export default Vue.extend({
}, { }, {
name: 'photo-stream', name: 'photo-stream',
id: 'd', data: {} id: 'd', data: {}
}, {
name: 'donation',
id: 'e', data: {}
}, { }, {
name: 'nav', name: 'nav',
id: 'f', data: {} id: 'f', data: {}

View file

@ -111,9 +111,6 @@
announcementsTitle: '#539eff', announcementsTitle: '#539eff',
announcementsText: '#fff', announcementsText: '#fff',
donationBg: '#5d5242',
donationFg: '#e4dbce',
googleSearchBg: 'rgba(0, 0, 0, 0.2)', googleSearchBg: 'rgba(0, 0, 0, 0.2)',
googleSearchFg: '#dee4e8', googleSearchFg: '#dee4e8',
googleSearchBorder: 'rgba(255, 255, 255, 0.2)', googleSearchBorder: 'rgba(255, 255, 255, 0.2)',

View file

@ -111,9 +111,6 @@
announcementsTitle: '#4078c0', announcementsTitle: '#4078c0',
announcementsText: '#57616f', announcementsText: '#57616f',
donationBg: '#fbead4',
donationFg: '#777d71',
googleSearchBg: '#fff', googleSearchBg: '#fff',
googleSearchFg: '#55595c', googleSearchFg: '#55595c',
googleSearchBorder: 'rgba(0, 0, 0, 0.2)', googleSearchBorder: 'rgba(0, 0, 0, 0.2)',