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$/, test: /\.vue$/,
loader: 'vue-loader', loader: 'vue-loader',
options: {
compilerOptions: {
whitespace: 'condense',
}
}
}, },
{ {
test: /\.scss$/, test: /\.scss$/,

View File

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

View File

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