🐛 Fix(custom): fix an issue eslint not worked as expected

This commit is contained in:
Kuingsmile
2025-12-30 13:20:28 +08:00
parent 4fb5a26270
commit b53eccce13
185 changed files with 8014 additions and 7627 deletions

View File

@@ -54,15 +54,15 @@ async function getWebdavHeader(key: string) {
formatEndpoint(props.config.endpoint, props.config.sslEnabled || false),
`/${key.replace(/^\//, '')}`,
props.config.username,
props.config.password
props.config.password,
)
headers = {
Authorization: authHeader
Authorization: authHeader,
}
} else {
headers = {
Authorization:
'Basic ' + window.node.buffer.from(`${props.config.username}:${props.config.password}`).toString('base64')
'Basic ' + window.node.buffer.from(`${props.config.username}:${props.config.password}`).toString('base64'),
}
}
return headers
@@ -107,36 +107,36 @@ onMounted(fetchImage)
<style scoped>
.image-container {
height: 100px;
width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
width: 100%;
height: 100px;
}
.image {
max-height: 100%;
max-width: 100%;
object-fit: contain;
display: block;
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.loading-placeholder {
display: flex;
align-items: center;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.loading-spinner {
width: 24px;
height: 24px;
border: 2px solid #e4e7ed;
border-top: 2px solid #409eff;
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
}
@@ -144,6 +144,7 @@ onMounted(fetchImage)
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}