mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	Remove reactive computed values
This commit is contained in:
		
							parent
							
								
									495a19540b
								
							
						
					
					
						commit
						5bb9b63f62
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -41,7 +41,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script lang="ts" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { ref, nextTick, computed, watch, onDeactivated, onMounted } from 'vue';
 | 
					import { ref, nextTick, watch, onDeactivated, onMounted } from 'vue';
 | 
				
			||||||
import * as Misskey from 'misskey-js';
 | 
					import * as Misskey from 'misskey-js';
 | 
				
			||||||
import { i18n } from '@/i18n.js';
 | 
					import { i18n } from '@/i18n.js';
 | 
				
			||||||
import { defaultStore } from '@/store.js';
 | 
					import { defaultStore } from '@/store.js';
 | 
				
			||||||
| 
						 | 
					@ -70,9 +70,9 @@ const props = defineProps<{
 | 
				
			||||||
	module: Misskey.entities.DriveFile
 | 
						module: Misskey.entities.DriveFile
 | 
				
			||||||
}>();
 | 
					}>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const isSensitive = computed(() => { return props.module.isSensitive; });
 | 
					const isSensitive = props.module.isSensitive;
 | 
				
			||||||
const url = computed(() => { return props.module.url; });
 | 
					const url = props.module.url;
 | 
				
			||||||
let hide = ref((defaultStore.state.nsfw === 'force') ? true : isSensitive.value && (defaultStore.state.nsfw !== 'ignore'));
 | 
					let hide = ref((defaultStore.state.nsfw === 'force') ? true : isSensitive && (defaultStore.state.nsfw !== 'ignore'));
 | 
				
			||||||
let patternHide = ref(false);
 | 
					let patternHide = ref(false);
 | 
				
			||||||
let playing = ref(false);
 | 
					let playing = ref(false);
 | 
				
			||||||
let displayCanvas = ref<HTMLCanvasElement>();
 | 
					let displayCanvas = ref<HTMLCanvasElement>();
 | 
				
			||||||
| 
						 | 
					@ -111,7 +111,7 @@ function bakeNumberRow() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
onMounted(() => {
 | 
					onMounted(() => {
 | 
				
			||||||
	player.value.load(url.value).then((result) => {
 | 
						player.value.load(url).then((result) => {
 | 
				
			||||||
		buffer = result;
 | 
							buffer = result;
 | 
				
			||||||
		try {
 | 
							try {
 | 
				
			||||||
			player.value.play(buffer);
 | 
								player.value.play(buffer);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue