chore: format code style and update linting configuration

This commit is contained in:
Megghy
2025-10-02 10:38:23 +08:00
parent 6fd046adcd
commit 758549d29d
253 changed files with 16258 additions and 15833 deletions

View File

@@ -1,3 +1,26 @@
<script setup>
import { ref, watch } from 'vue'
import * as models from '../../../data/chat/models'
const props = defineProps({
imgUrl: String,
height: String,
width: String,
})
const showImgUrl = ref(props.imgUrl)
watch(() => props.imgUrl, (val) => {
showImgUrl.value = val
})
function onLoadError() {
if (showImgUrl.value !== models.DEFAULT_AVATAR_URL) {
showImgUrl.value = models.DEFAULT_AVATAR_URL
}
}
</script>
<template>
<yt-img-shadow
class="no-transition"
@@ -19,27 +42,4 @@
</yt-img-shadow>
</template>
<script setup>
import { ref, watch } from 'vue'
import * as models from '../../../data/chat/models'
const props = defineProps({
imgUrl: String,
height: String,
width: String
})
const showImgUrl = ref(props.imgUrl)
watch(() => props.imgUrl, (val) => {
showImgUrl.value = val
})
function onLoadError() {
if (showImgUrl.value !== models.DEFAULT_AVATAR_URL) {
showImgUrl.value = models.DEFAULT_AVATAR_URL
}
}
</script>
<style src="@/assets/css/youtube/yt-img-shadow.css"></style>