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 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 ACCOUNT_API_URL = BASE_API_URL + 'account/'
|
||||
|
||||
@@ -287,7 +287,7 @@ onUnmounted(() => {
|
||||
|
||||
<template>
|
||||
<NAlert type="success" style="width: 100%; ">
|
||||
本站新增国内镜像: {{ CN_HOST }}, 访问更快
|
||||
本站新增国内镜像: <NButton text tag="a" :href="CN_HOST" target="_blank">{{ CN_HOST }}</NButton>, 访问更快
|
||||
</NAlert>
|
||||
<NDivider />
|
||||
<NFlex justify="center" align="center" vertical style="margin: 0 auto; max-width: 1500px;">
|
||||
@@ -472,7 +472,7 @@ onUnmounted(() => {
|
||||
<NButton @click="resetName" type="warning" :loading="isLoading"> 确定修改 </NButton>
|
||||
</template>
|
||||
</NModal>
|
||||
<NModal v-model:show="bindBiliCodeModalVisiable" preset="card" title="绑定/更新身份码" style="width: 400px; max-width: 90%">
|
||||
<NModal v-model:show="bindBiliCodeModalVisiable" preset="card" title="绑定/更新身份码" style="width: 400px; max-width: 90%" >
|
||||
<NSpace vertical>
|
||||
<NInputGroup>
|
||||
<NInput v-model:value="biliCode" placeholder="身份码" />
|
||||
@@ -491,7 +491,7 @@ onUnmounted(() => {
|
||||
</NTooltip>
|
||||
</NInputGroup>
|
||||
</NSpace>
|
||||
|
||||
<NDivider />
|
||||
<VueTurnstile ref="turnstile" :site-key="TURNSTILE_KEY" v-model="token" theme="auto" style="text-align: center" />
|
||||
<template #footer>
|
||||
<NButton @click="accountInfo?.isBiliVerified ? ChangeBili() : BindBili()" type="success"
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
EventDataTypes,
|
||||
EventModel,
|
||||
FunctionTypes,
|
||||
OpenLiveInfo,
|
||||
QueueSortType,
|
||||
Setting_LiveRequest,
|
||||
SongRequestFrom,
|
||||
@@ -15,7 +16,6 @@ import {
|
||||
import { QueryGetAPI, QueryPostAPI, QueryPostAPIWithParams } from '@/api/query'
|
||||
import SongPlayer from '@/components/SongPlayer.vue'
|
||||
import { CURRENT_HOST, SONG_REQUEST_API_URL } from '@/data/constants'
|
||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||
import {
|
||||
Checkmark12Regular,
|
||||
@@ -129,7 +129,7 @@ const settings = computed({
|
||||
const selectedSong = ref<SongsInfo>()
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
isOpenLive?: boolean
|
||||
}>()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
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 { CURRENT_HOST, MUSIC_REQUEST_API_URL, SONG_API_URL } from '@/data/constants'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||
@@ -43,7 +43,6 @@ import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { clearInterval, setInterval } from 'worker-timers'
|
||||
import MusicRequestOBS from '../obs/MusicRequestOBS.vue'
|
||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
|
||||
type Music = {
|
||||
id: number
|
||||
@@ -68,7 +67,7 @@ const musicRquestStore = useMusicRequestProvider()
|
||||
const client = await useDanmakuClient().initClient()
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
isOpenLive?: boolean
|
||||
}>()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
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';
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
}>()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
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 { CURRENT_HOST, LOTTERY_API_URL } from '@/data/constants'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||
@@ -44,7 +44,7 @@ import {
|
||||
import { h, onMounted, onUnmounted, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import LiveLotteryOBS from '../obs/LiveLotteryOBS.vue'
|
||||
import { DanmakuInfo, GiftInfo, RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
import { DanmakuInfo, GiftInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
|
||||
interface LotteryOption {
|
||||
resultCount: number
|
||||
@@ -96,7 +96,7 @@ const showModal = ref(false)
|
||||
const showOBSModal = ref(false)
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
}>()
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
EventModel,
|
||||
FunctionTypes,
|
||||
KeywordMatchType,
|
||||
OpenLiveInfo,
|
||||
QueueFrom,
|
||||
QueueGiftFilterType,
|
||||
QueueSortType,
|
||||
@@ -69,7 +70,6 @@ import {
|
||||
import { computed, h, onActivated, onDeactivated, onMounted, onUnmounted, ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import QueueOBS from '../obs/QueueOBS.vue'
|
||||
import { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
|
||||
const defaultSettings = {
|
||||
keyword: '排队',
|
||||
@@ -140,7 +140,7 @@ const settings = computed({
|
||||
})
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
isOpenLive?: boolean
|
||||
}>()
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { copyToClipboard } from '@/Utils'
|
||||
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 { RoomAuthInfo } from '@/data/DanmakuClients/OpenLiveClient'
|
||||
import { FETCH_API, VTSURU_API_URL } from '@/data/constants'
|
||||
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
||||
import { Info24Filled, Mic24Filled } from '@vicons/fluent'
|
||||
@@ -45,7 +44,7 @@ import { useRoute } from 'vue-router'
|
||||
import { clearInterval, setInterval } from 'worker-timers'
|
||||
|
||||
const props = defineProps<{
|
||||
roomInfo?: RoomAuthInfo
|
||||
roomInfo?: OpenLiveInfo
|
||||
code?: string | undefined
|
||||
isOpenLive?: boolean
|
||||
}>()
|
||||
|
||||
Reference in New Issue
Block a user