動きのあるMFMを無効にするオプションを実装
This commit is contained in:
		
							parent
							
								
									daed63d66c
								
							
						
					
					
						commit
						9a2ff56a79
					
				
					 4 changed files with 17 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -63,7 +63,7 @@ export default Vue.component('misskey-flavored-markdown', {
 | 
			
		|||
						attrs: {
 | 
			
		||||
							style: 'display: inline-block; font-size: 200%;'
 | 
			
		||||
						},
 | 
			
		||||
						directives: [{
 | 
			
		||||
						directives: [this.$store.state.settings.disableAnimatedMfm ? {} : {
 | 
			
		||||
							name: 'animate-css',
 | 
			
		||||
							value: { classes: 'tada', iteration: 'infinite' }
 | 
			
		||||
						}]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,6 +55,7 @@
 | 
			
		|||
				<span>%i18n:@show-maps-desc%</span>
 | 
			
		||||
			</mk-switch>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.reversiBoardLabels" @change="onChangeReversiBoardLabels" text="%i18n:common.show-reversi-board-labels%"/>
 | 
			
		||||
			<mk-switch v-model="$store.state.settings.disableAnimatedMfm" @change="onChangeDisableAnimatedMfm" text="%i18n:common.disable-animated-mfm%"/>
 | 
			
		||||
		</section>
 | 
			
		||||
 | 
			
		||||
		<section class="web" v-show="page == 'web'">
 | 
			
		||||
| 
						 | 
				
			
			@ -376,6 +377,12 @@ export default Vue.extend({
 | 
			
		|||
				value: v
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		onChangeDisableAnimatedMfm(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'disableAnimatedMfm',
 | 
			
		||||
				value: v
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		onChangeGradientWindowHeader(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'gradientWindowHeader',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,6 +14,7 @@
 | 
			
		|||
				<ui-switch v-model="$store.state.settings.circleIcons" @change="onChangeCircleIcons">%i18n:@circle-icons%</ui-switch>
 | 
			
		||||
				<ui-switch v-model="$store.state.settings.iLikeSushi" @change="onChangeILikeSushi">%i18n:common.i-like-sushi%</ui-switch>
 | 
			
		||||
				<ui-switch v-model="$store.state.settings.reversiBoardLabels" @change="onChangeReversiBoardLabels">%i18n:common.show-reversi-board-labels%</ui-switch>
 | 
			
		||||
				<ui-switch v-model="$store.state.settings.disableAnimatedMfm" @change="onChangeDisableAnimatedMfm">%i18n:common.disable-animated-mfm%</ui-switch>
 | 
			
		||||
 | 
			
		||||
				<div>
 | 
			
		||||
					<div>%i18n:@timeline%</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -192,6 +193,13 @@ export default Vue.extend({
 | 
			
		|||
			});
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onChangeDisableAnimatedMfm(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'disableAnimatedMfm',
 | 
			
		||||
				value: v
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		onChangeShowReplyTarget(v) {
 | 
			
		||||
			this.$store.dispatch('settings/set', {
 | 
			
		||||
				key: 'showReplyTarget',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue