2018-02-15 12:36:42 +09:00
|
|
|
<template>
|
2018-09-28 19:59:19 +09:00
|
|
|
<div>
|
|
|
|
<mk-widget-container :show-header="false">
|
|
|
|
<article class="dolfvtibguprpxxhfndqaosjitixjohx">
|
2018-11-09 03:44:35 +09:00
|
|
|
<h1><fa icon="heart"/>{{ $t('title') }}</h1>
|
2018-09-28 19:59:19 +09:00
|
|
|
<p v-if="meta">
|
2018-11-09 03:44:35 +09:00
|
|
|
{{ this.$t('text').substr(0, this.$t('text').indexOf('{')) }}
|
2018-11-07 01:12:26 +09:00
|
|
|
<a :href="'mailto:' + meta.maintainer.email">{{ meta.maintainer.name }}</a>
|
2018-11-09 03:44:35 +09:00
|
|
|
{{ this.$t('text').substr(this.$t('text').indexOf('}') + 1) }}
|
2018-09-28 19:59:19 +09:00
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
</mk-widget-container>
|
2018-02-15 12:36:42 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-25 00:18:09 +09:00
|
|
|
import define from '../../../common/define-widget';
|
2018-11-09 03:44:35 +09:00
|
|
|
import i18n from '../../../i18n';
|
|
|
|
|
2018-02-15 12:36:42 +09:00
|
|
|
export default define({
|
|
|
|
name: 'donation'
|
2018-08-26 10:11:47 +09:00
|
|
|
}).extend({
|
2018-11-09 03:44:35 +09:00
|
|
|
i18n: i18n('common/views/widgets/donation.vue'),
|
2018-08-26 10:11:47 +09:00
|
|
|
data() {
|
|
|
|
return {
|
2018-08-26 10:29:24 +09:00
|
|
|
meta: null
|
2018-08-26 10:11:47 +09:00
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
(this as any).os.getMeta().then(meta => {
|
|
|
|
this.meta = meta;
|
|
|
|
});
|
|
|
|
}
|
2018-02-15 12:36:42 +09:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-28 19:59:19 +09:00
|
|
|
.dolfvtibguprpxxhfndqaosjitixjohx
|
|
|
|
padding 20px
|
|
|
|
background var(--donationBg)
|
|
|
|
color var(--donationFg)
|
|
|
|
|
|
|
|
> h1
|
|
|
|
margin 0 0 5px 0
|
|
|
|
font-size 1em
|
|
|
|
|
2018-11-06 01:40:11 +09:00
|
|
|
> [data-icon]
|
2018-09-28 19:59:19 +09:00
|
|
|
margin-right 0.25em
|
|
|
|
|
|
|
|
> p
|
|
|
|
display block
|
|
|
|
z-index 1
|
|
|
|
margin 0
|
|
|
|
font-size 0.8em
|
2018-04-20 07:45:37 +09:00
|
|
|
|
2018-02-15 12:36:42 +09:00
|
|
|
</style>
|