mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
update cn url
This commit is contained in:
@@ -36,7 +36,7 @@ export const BASE_HUB_URL =
|
|||||||
export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0'
|
export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0'
|
||||||
|
|
||||||
export const CURRENT_HOST = `${window.location.protocol}//${window.location.host}/`
|
export const CURRENT_HOST = `${window.location.protocol}//${window.location.host}/`
|
||||||
export const CN_HOST = 'https://cn.vtsuru.suki.club/'
|
export const CN_HOST = 'https://vtsuru.suki.club/'
|
||||||
|
|
||||||
export const USER_API_URL = BASE_API_URL + 'user/'
|
export const USER_API_URL = BASE_API_URL + 'user/'
|
||||||
export const ACCOUNT_API_URL = BASE_API_URL + 'account/'
|
export const ACCOUNT_API_URL = BASE_API_URL + 'account/'
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NAlert type="success" style="width: 100%; ">
|
<NAlert type="success" style="width: 100%; ">
|
||||||
本站新增国内镜像: {{ CN_HOST }}, 访问更快
|
本站新增国内镜像: <NButton text tag="a" :href="CN_HOST" target="_blank">{{ CN_HOST }}</NButton>, 访问更快
|
||||||
</NAlert>
|
</NAlert>
|
||||||
<NDivider />
|
<NDivider />
|
||||||
<NFlex justify="center" align="center" vertical style="margin: 0 auto; max-width: 1500px;">
|
<NFlex justify="center" align="center" vertical style="margin: 0 auto; max-width: 1500px;">
|
||||||
@@ -491,7 +491,7 @@ onUnmounted(() => {
|
|||||||
</NTooltip>
|
</NTooltip>
|
||||||
</NInputGroup>
|
</NInputGroup>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
|
<NDivider />
|
||||||
<VueTurnstile ref="turnstile" :site-key="TURNSTILE_KEY" v-model="token" theme="auto" style="text-align: center" />
|
<VueTurnstile ref="turnstile" :site-key="TURNSTILE_KEY" v-model="token" theme="auto" style="text-align: center" />
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NButton @click="accountInfo?.isBiliVerified ? ChangeBili() : BindBili()" type="success"
|
<NButton @click="accountInfo?.isBiliVerified ? ChangeBili() : BindBili()" type="success"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {
|
|||||||
EventDataTypes,
|
EventDataTypes,
|
||||||
EventModel,
|
EventModel,
|
||||||
FunctionTypes,
|
FunctionTypes,
|
||||||
|
OpenLiveInfo,
|
||||||
QueueSortType,
|
QueueSortType,
|
||||||
Setting_LiveRequest,
|
Setting_LiveRequest,
|
||||||
SongRequestFrom,
|
SongRequestFrom,
|
||||||
@@ -15,7 +16,6 @@ import {
|
|||||||
import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query'
|
import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query'
|
||||||
import SongPlayer from '@/components/SongPlayer.vue'
|
import SongPlayer from '@/components/SongPlayer.vue'
|
||||||
import { CURRENT_HOST, SONG_REQUEST_API_URL } from '@/data/constants'
|
import { CURRENT_HOST, SONG_REQUEST_API_URL } from '@/data/constants'
|
||||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
|
||||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||||
import {
|
import {
|
||||||
Checkmark12Regular,
|
Checkmark12Regular,
|
||||||
@@ -129,7 +129,7 @@ const settings = computed({
|
|||||||
const selectedSong = ref<SongsInfo>()
|
const selectedSong = ref<SongsInfo>()
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
isOpenLive?: boolean
|
isOpenLive?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DownloadConfig, UploadConfig, useAccount } from '@/api/account'
|
import { DownloadConfig, UploadConfig, useAccount } from '@/api/account'
|
||||||
import { DanmakuUserInfo, EventModel, SongFrom, SongsInfo } from '@/api/api-models'
|
import { DanmakuUserInfo, EventModel, OpenLiveInfo, SongFrom, SongsInfo } from '@/api/api-models'
|
||||||
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
||||||
import { CURRENT_HOST, MUSIC_REQUEST_API_URL, SONG_API_URL } from '@/data/constants'
|
import { CURRENT_HOST, MUSIC_REQUEST_API_URL, SONG_API_URL } from '@/data/constants'
|
||||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||||
@@ -43,7 +43,6 @@ import { computed, onMounted, onUnmounted, ref } from 'vue'
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { clearInterval, setInterval } from 'worker-timers'
|
import { clearInterval, setInterval } from 'worker-timers'
|
||||||
import MusicRequestOBS from '../obs/MusicRequestOBS.vue'
|
import MusicRequestOBS from '../obs/MusicRequestOBS.vue'
|
||||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
|
||||||
|
|
||||||
type Music = {
|
type Music = {
|
||||||
id: number
|
id: number
|
||||||
@@ -68,7 +67,7 @@ const musicRquestStore = useMusicRequestProvider()
|
|||||||
const client = await useDanmakuClient().initClient()
|
const client = await useDanmakuClient().initClient()
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
isOpenLive?: boolean
|
isOpenLive?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useAccount } from '@/api/account';
|
import { useAccount } from '@/api/account';
|
||||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient';
|
import { OpenLiveInfo } from '@/api/api-models';
|
||||||
import { NAlert, NButton, NCard, NDivider, NSpace } from 'naive-ui';
|
import { NAlert, NButton, NCard, NDivider, NSpace } from 'naive-ui';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useAccount } from '@/api/account'
|
import { useAccount } from '@/api/account'
|
||||||
import { OpenLiveLotteryType, OpenLiveLotteryUserInfo, UpdateLiveLotteryUsersModel } from '@/api/api-models'
|
import { OpenLiveInfo, OpenLiveLotteryType, OpenLiveLotteryUserInfo, UpdateLiveLotteryUsersModel } from '@/api/api-models'
|
||||||
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
||||||
import { CURRENT_HOST, LOTTERY_API_URL } from '@/data/constants'
|
import { CURRENT_HOST, LOTTERY_API_URL } from '@/data/constants'
|
||||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||||
@@ -44,7 +44,7 @@ import {
|
|||||||
import { h, onMounted, onUnmounted, ref } from 'vue'
|
import { h, onMounted, onUnmounted, ref } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import LiveLotteryOBS from '../obs/LiveLotteryOBS.vue'
|
import LiveLotteryOBS from '../obs/LiveLotteryOBS.vue'
|
||||||
import { DanmakuInfo, GiftInfo, RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
import { DanmakuInfo, GiftInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||||
|
|
||||||
interface LotteryOption {
|
interface LotteryOption {
|
||||||
resultCount: number
|
resultCount: number
|
||||||
@@ -96,7 +96,7 @@ const showModal = ref(false)
|
|||||||
const showOBSModal = ref(false)
|
const showOBSModal = ref(false)
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
EventModel,
|
EventModel,
|
||||||
FunctionTypes,
|
FunctionTypes,
|
||||||
KeywordMatchType,
|
KeywordMatchType,
|
||||||
|
OpenLiveInfo,
|
||||||
QueueFrom,
|
QueueFrom,
|
||||||
QueueGiftFilterType,
|
QueueGiftFilterType,
|
||||||
QueueSortType,
|
QueueSortType,
|
||||||
@@ -69,7 +70,6 @@ import {
|
|||||||
import { computed, h, onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
|
import { computed, h, onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import QueueOBS from '../obs/QueueOBS.vue'
|
import QueueOBS from '../obs/QueueOBS.vue'
|
||||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
|
||||||
|
|
||||||
const defaultSettings = {
|
const defaultSettings = {
|
||||||
keyword: '排队',
|
keyword: '排队',
|
||||||
@@ -140,7 +140,7 @@ const settings = computed({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
isOpenLive?: boolean
|
isOpenLive?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { copyToClipboard } from '@/Utils'
|
import { copyToClipboard } from '@/Utils'
|
||||||
import { useAccount } from '@/api/account'
|
import { useAccount } from '@/api/account'
|
||||||
import { EventDataTypes, EventModel } from '@/api/api-models'
|
import { EventDataTypes, EventModel, OpenLiveInfo } from '@/api/api-models'
|
||||||
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
||||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
|
||||||
import { FETCH_API, VTSURU_API_URL } from '@/data/constants'
|
import { FETCH_API, VTSURU_API_URL } from '@/data/constants'
|
||||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||||
import { Info24Filled, Mic24Filled } from '@vicons/fluent'
|
import { Info24Filled, Mic24Filled } from '@vicons/fluent'
|
||||||
@@ -45,7 +44,7 @@ import { useRoute } from 'vue-router'
|
|||||||
import { clearInterval, setInterval } from 'worker-timers'
|
import { clearInterval, setInterval } from 'worker-timers'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
roomInfo?: RoomAuthInfo
|
roomInfo?: OpenLiveInfo
|
||||||
code?: string | undefined
|
code?: string | undefined
|
||||||
isOpenLive?: boolean
|
isOpenLive?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|||||||
Reference in New Issue
Block a user