Set the Vue compiler whitespace option to condense (#3101)

This commit is contained in:
absidue 2023-01-25 21:58:51 +01:00 committed by GitHub
parent 5424122339
commit 15bd1cb958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 5 deletions

View File

@ -42,6 +42,11 @@ const config = {
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
compilerOptions: {
whitespace: 'condense',
}
}
},
{
test: /\.scss$/,

View File

@ -42,7 +42,12 @@ const config = {
},
{
test: /\.vue$/,
loader: 'vue-loader'
loader: 'vue-loader',
options: {
compilerOptions: {
whitespace: 'condense',
}
}
},
{
test: /\.scss$/,

View File

@ -95,22 +95,22 @@
<span>{{ channelName }}</span>
</router-link>
<template v-if="!isLive && !isUpcoming && !isPremium && !hideViews">
<span class="viewCount"> {{ parsedViewCount }}</span>
<span class="viewCount"> {{ parsedViewCount }} </span>
<span v-if="viewCount === 1">{{ $t("Video.View").toLowerCase() }}</span>
<span v-else>{{ $t("Video.Views").toLowerCase() }}</span>
</template>
<span
v-if="uploadedTime !== '' && !isLive && !inHistory"
class="uploadedTime"
> {{ uploadedTime }}</span>
> {{ uploadedTime }}</span>
<span
v-if="inHistory"
class="uploadedTime"
> {{ publishedText }}</span>
> {{ publishedText }}</span>
<span
v-if="isLive && !hideViews"
class="viewCount"
> {{ parsedViewCount }} {{ $t("Video.Watching").toLowerCase() }}</span>
> {{ parsedViewCount }} {{ $t("Video.Watching").toLowerCase() }}</span>
</div>
<p
v-if="listType !== 'grid' && appearance === 'result'"