diff options
| author | xps2 <9610872+xps2@users.noreply.github.com> | 2018-08-26 10:11:47 +0900 |
|---|---|---|
| committer | xps2 <9610872+xps2@users.noreply.github.com> | 2018-08-26 10:14:43 +0900 |
| commit | 2d2e16d9f60bd31c90eb9fb62cf490b08dd754ce (patch) | |
| tree | 7da2f42f112360b65a40624a05f9ab69611317bc /src | |
| parent | 8.14.0 (diff) | |
| download | sharkey-2d2e16d9f60bd31c90eb9fb62cf490b08dd754ce.tar.gz sharkey-2d2e16d9f60bd31c90eb9fb62cf490b08dd754ce.tar.bz2 sharkey-2d2e16d9f60bd31c90eb9fb62cf490b08dd754ce.zip | |
donation、configのmaintainerを参照するよう変更
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/widgets/donation.vue | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/app/common/views/widgets/donation.vue b/src/client/app/common/views/widgets/donation.vue index 470576d5e6..4bc71b2b78 100644 --- a/src/client/app/common/views/widgets/donation.vue +++ b/src/client/app/common/views/widgets/donation.vue @@ -4,7 +4,7 @@ <h1>%fa:heart%%i18n:@title%</h1> <p> {{ '%i18n:@text%'.substr(0, '%i18n:@text%'.indexOf('{')) }} - <a href="https://syuilo.com">@syuilo</a> + <a :href="meta.maintainer.url">@{{ meta.maintainer.name }}</a> {{ '%i18n:@text%'.substr('%i18n:@text%'.indexOf('}') + 1) }} </p> </article> @@ -15,6 +15,17 @@ import define from '../../../common/define-widget'; export default define({ name: 'donation' +}).extend({ + data() { + return { + meta: null; + }; + }, + created() { + (this as any).os.getMeta().then(meta => { + this.meta = meta; + }); + } }); </script> |