Refractor component names.

For vue/multi-word-component-names
This commit is contained in:
FireMasterK 2022-01-13 05:10:11 +00:00
parent 762a71d332
commit 5d1dee9b08
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
9 changed files with 14 additions and 14 deletions

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="w-full min-h-screen px-1vw reset" :class="[theme]"> <div class="w-full min-h-screen px-1vw reset" :class="[theme]">
<Navigation /> <NavBar />
<router-view v-slot="{ Component }"> <router-view v-slot="{ Component }">
<keep-alive :max="5"> <keep-alive :max="5">
<component :is="Component" :key="$route.fullPath" /> <component :is="Component" :key="$route.fullPath" />
@ -20,10 +20,10 @@
</template> </template>
<script> <script>
import Navigation from "@/components/Navigation.vue"; import NavBar from "@/components/NavBar.vue";
export default { export default {
components: { components: {
Navigation, NavBar,
}, },
mounted() { mounted() {
if (window.location.pathname === "/" || window.location.pathname.length == 0) if (window.location.pathname === "/" || window.location.pathname.length == 0)

View file

@ -43,7 +43,7 @@
</template> </template>
<div v-show="showingReplies" v-if="replies" class="replies"> <div v-show="showingReplies" v-if="replies" class="replies">
<div v-for="reply in replies" :key="reply.commentId" class="w-full"> <div v-for="reply in replies" :key="reply.commentId" class="w-full">
<Comment :comment="reply" :uploader="uploader" :video-id="videoId" /> <CommentItem :comment="reply" :uploader="uploader" :video-id="videoId" />
</div> </div>
<div v-if="nextpage" @click="loadReplies"> <div v-if="nextpage" @click="loadReplies">
<a v-t="'actions.load_more_replies'" /> <a v-t="'actions.load_more_replies'" />

View file

@ -1,6 +1,6 @@
<template> <template>
<div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full z-50"> <div v-if="video && isEmbed" class="absolute top-0 left-0 h-full w-full z-50">
<Player <VideoPlayer
ref="videoPlayer" ref="videoPlayer"
:video="video" :video="video"
:sponsors="sponsors" :sponsors="sponsors"
@ -14,7 +14,7 @@
<ErrorHandler v-if="video && video.error" :message="video.message" :error="video.error" /> <ErrorHandler v-if="video && video.error" :message="video.message" :error="video.error" />
<div v-show="!video.error"> <div v-show="!video.error">
<Player <VideoPlayer
ref="videoPlayer" ref="videoPlayer"
:video="video" :video="video"
:sponsors="sponsors" :sponsors="sponsors"
@ -108,7 +108,7 @@
<div class="grid xl:grid-cols-5 sm:grid-cols-4 grid-cols-1"> <div class="grid xl:grid-cols-5 sm:grid-cols-4 grid-cols-1">
<div v-if="comments" ref="comments" class="xl:col-span-4 sm:col-span-3"> <div v-if="comments" ref="comments" class="xl:col-span-4 sm:col-span-3">
<Comment <CommentItem
v-for="comment in comments.comments" v-for="comment in comments.comments"
:key="comment.commentId" :key="comment.commentId"
:comment="comment" :comment="comment"
@ -140,19 +140,19 @@
</template> </template>
<script> <script>
import Player from "@/components/Player.vue"; import VideoPlayer from "@/components/VideoPlayer.vue";
import VideoItem from "@/components/VideoItem.vue"; import VideoItem from "@/components/VideoItem.vue";
import ErrorHandler from "@/components/ErrorHandler.vue"; import ErrorHandler from "@/components/ErrorHandler.vue";
import Comment from "@/components/Comment.vue"; import CommentItem from "@/components/CommentItem.vue";
import Chapters from "@/components/Chapters.vue"; import Chapters from "@/components/Chapters.vue";
export default { export default {
name: "App", name: "App",
components: { components: {
Player, VideoPlayer,
VideoItem, VideoItem,
ErrorHandler, ErrorHandler,
Comment, CommentItem,
Chapters, Chapters,
}, },
data() { data() {

View file

@ -9,7 +9,7 @@ const routes = [
{ {
path: "/preferences", path: "/preferences",
name: "Preferences", name: "Preferences",
component: () => import("../components/Preferences.vue"), component: () => import("../components/PreferencesPage.vue"),
}, },
{ {
path: "/results", path: "/results",
@ -19,7 +19,7 @@ const routes = [
{ {
path: "/playlist", path: "/playlist",
name: "Playlist", name: "Playlist",
component: () => import("../components/Playlist.vue"), component: () => import("../components/PlaylistPage.vue"),
}, },
{ {
path: "/:path(v|w|embed|shorts|watch)/:v?", path: "/:path(v|w|embed|shorts|watch)/:v?",
@ -29,7 +29,7 @@ const routes = [
{ {
path: "/:path(channel|user|c)/:channelId/:videos?", path: "/:path(channel|user|c)/:channelId/:videos?",
name: "Channel", name: "Channel",
component: () => import("../components/Channel.vue"), component: () => import("../components/ChannelPage.vue"),
}, },
{ {
path: "/login", path: "/login",