donation、configのmaintainerを参照するよう変更
This commit is contained in:
		
							parent
							
								
									ecf2eb4738
								
							
						
					
					
						commit
						2d2e16d9f6
					
				
					 1 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
					@ -4,7 +4,7 @@
 | 
				
			||||||
		<h1>%fa:heart%%i18n:@title%</h1>
 | 
							<h1>%fa:heart%%i18n:@title%</h1>
 | 
				
			||||||
		<p>
 | 
							<p>
 | 
				
			||||||
			{{ '%i18n:@text%'.substr(0, '%i18n:@text%'.indexOf('{')) }}
 | 
								{{ '%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) }}
 | 
								{{ '%i18n:@text%'.substr('%i18n:@text%'.indexOf('}') + 1) }}
 | 
				
			||||||
		</p>
 | 
							</p>
 | 
				
			||||||
	</article>
 | 
						</article>
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,17 @@
 | 
				
			||||||
import define from '../../../common/define-widget';
 | 
					import define from '../../../common/define-widget';
 | 
				
			||||||
export default define({
 | 
					export default define({
 | 
				
			||||||
	name: 'donation'
 | 
						name: 'donation'
 | 
				
			||||||
 | 
					}).extend({
 | 
				
			||||||
 | 
						data() {
 | 
				
			||||||
 | 
							return {
 | 
				
			||||||
 | 
								meta: null;
 | 
				
			||||||
 | 
							};
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						created() {
 | 
				
			||||||
 | 
							(this as any).os.getMeta().then(meta => {
 | 
				
			||||||
 | 
								this.meta = meta;
 | 
				
			||||||
 | 
							});
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue