|
@@ -18,6 +18,16 @@
|
|
|
>
|
|
>
|
|
|
排行榜
|
|
排行榜
|
|
|
</a>
|
|
</a>
|
|
|
|
|
+ <a
|
|
|
|
|
+ :class="{
|
|
|
|
|
+ item: 1,
|
|
|
|
|
+ active: router.currentRoute.value.name === routerName.support,
|
|
|
|
|
+ }"
|
|
|
|
|
+ href="/support"
|
|
|
|
|
+ @click.prevent="router.push({ name: routerName.support })"
|
|
|
|
|
+ >
|
|
|
|
|
+ 付费支持
|
|
|
|
|
+ </a>
|
|
|
<div
|
|
<div
|
|
|
v-for="(item, index) in navLeftList.filter(
|
|
v-for="(item, index) in navLeftList.filter(
|
|
|
(item) => router.currentRoute.value.query.liveType === item.liveType
|
|
(item) => router.currentRoute.value.query.liveType === item.liveType
|
|
@@ -73,6 +83,13 @@
|
|
|
>
|
|
>
|
|
|
赞助
|
|
赞助
|
|
|
</a>
|
|
</a>
|
|
|
|
|
+ <a
|
|
|
|
|
+ class="about"
|
|
|
|
|
+ href="/about"
|
|
|
|
|
+ @click.prevent="router.push({ name: routerName.about })"
|
|
|
|
|
+ >
|
|
|
|
|
+ 关于
|
|
|
|
|
+ </a>
|
|
|
<a
|
|
<a
|
|
|
class="bilibili"
|
|
class="bilibili"
|
|
|
target="_blank"
|
|
target="_blank"
|
|
@@ -85,7 +102,11 @@
|
|
|
target="_blank"
|
|
target="_blank"
|
|
|
href="https://github.com/galaxy-s10/billd-live"
|
|
href="https://github.com/galaxy-s10/billd-live"
|
|
|
>
|
|
>
|
|
|
- github
|
|
|
|
|
|
|
+ <span class="txt">github</span>
|
|
|
|
|
+ <img
|
|
|
|
|
+ :src="githubStar"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
</a>
|
|
</a>
|
|
|
|
|
|
|
|
<n-dropdown
|
|
<n-dropdown
|
|
@@ -112,6 +133,8 @@ import { useUserStore } from '@/store/user';
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
|
|
+const githubStar = ref('');
|
|
|
|
|
+
|
|
|
const navLeftList = ref([
|
|
const navLeftList = ref([
|
|
|
{
|
|
{
|
|
|
title: 'Webrtc Push',
|
|
title: 'Webrtc Push',
|
|
@@ -161,6 +184,11 @@ const options = ref([
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ githubStar.value =
|
|
|
|
|
+ 'https://img.shields.io/github/stars/galaxy-s10/billd-live?label=Star&logo=GitHub&labelColor=white&logoColor=black&style=social&cacheSeconds=3600';
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
function handleUserSelect(key) {
|
|
function handleUserSelect(key) {
|
|
|
if (key === '1') {
|
|
if (key === '1') {
|
|
|
userStore.logout();
|
|
userStore.logout();
|
|
@@ -174,8 +202,6 @@ function handlePushSelect(key) {
|
|
|
openToTarget(url.href);
|
|
openToTarget(url.href);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-onMounted(() => {});
|
|
|
|
|
-
|
|
|
|
|
function goPushPage(routerName: string) {
|
|
function goPushPage(routerName: string) {
|
|
|
const url = router.resolve({ name: routerName });
|
|
const url = router.resolve({ name: routerName });
|
|
|
openToTarget(url.href);
|
|
openToTarget(url.href);
|
|
@@ -264,6 +290,7 @@ function goPushPage(routerName: string) {
|
|
|
|
|
|
|
|
.sponsors,
|
|
.sponsors,
|
|
|
.bilibili,
|
|
.bilibili,
|
|
|
|
|
+ .about,
|
|
|
.github {
|
|
.github {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
@@ -296,6 +323,13 @@ function goPushPage(routerName: string) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .github {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .txt {
|
|
|
|
|
+ margin-right: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
.start-live {
|
|
.start-live {
|
|
|
margin-right: 10px;
|
|
margin-right: 10px;
|
|
|
padding: 5px 10px;
|
|
padding: 5px 10px;
|