mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
fix hubs url
This commit is contained in:
@@ -2,7 +2,9 @@ import DefaultIndexTemplateVue from '@/views/view/indexTemplate/DefaultIndexTemp
|
|||||||
import { defineAsyncComponent, ref } from 'vue'
|
import { defineAsyncComponent, ref } from 'vue'
|
||||||
|
|
||||||
const debugAPI =
|
const debugAPI =
|
||||||
import.meta.env.VITE_API == 'dev' ? import.meta.env.VITE_DEBUG_DEV_API : import.meta.env.VITE_DEBUG_RELEASE_API
|
import.meta.env.VITE_API == 'dev'
|
||||||
|
? import.meta.env.VITE_DEBUG_DEV_API
|
||||||
|
: import.meta.env.VITE_DEBUG_RELEASE_API
|
||||||
const releseAPI = `https://vtsuru.suki.club/`
|
const releseAPI = `https://vtsuru.suki.club/`
|
||||||
const failoverAPI = `https://failover-api.vtsuru.suki.club/`
|
const failoverAPI = `https://failover-api.vtsuru.suki.club/`
|
||||||
|
|
||||||
@@ -15,14 +17,21 @@ export const THINGS_URL = FILE_BASE_URL + '/things/'
|
|||||||
export const apiFail = ref(false)
|
export const apiFail = ref(false)
|
||||||
|
|
||||||
export const BASE_URL = {
|
export const BASE_URL = {
|
||||||
toString: () => (process.env.NODE_ENV === 'development' ? debugAPI : apiFail.value ? failoverAPI : releseAPI),
|
toString: () =>
|
||||||
|
process.env.NODE_ENV === 'development'
|
||||||
|
? debugAPI
|
||||||
|
: apiFail.value
|
||||||
|
? failoverAPI
|
||||||
|
: releseAPI
|
||||||
}
|
}
|
||||||
export const BASE_API_URL = BASE_URL.toString() + 'api/'
|
export const BASE_API_URL = BASE_URL.toString() + 'api/'
|
||||||
export const FETCH_API = 'https://fetch.vtsuru.live/'
|
export const FETCH_API = 'https://fetch.vtsuru.live/'
|
||||||
export const BASE_HUB_URL = {
|
export const BASE_HUB_URL =
|
||||||
toString: () =>
|
(process.env.NODE_ENV === 'development'
|
||||||
(process.env.NODE_ENV === 'development' ? debugAPI : apiFail.value ? failoverAPI : releseAPI) + 'hub/',
|
? debugAPI
|
||||||
}
|
: apiFail.value
|
||||||
|
? failoverAPI
|
||||||
|
: releseAPI) + 'hub/'
|
||||||
|
|
||||||
export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0'
|
export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0'
|
||||||
|
|
||||||
@@ -32,49 +41,60 @@ 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/'
|
||||||
export const BILI_API_URL = BASE_API_URL + 'bili/'
|
export const BILI_API_URL = BASE_API_URL + 'bili/'
|
||||||
export const SONG_API_URL = BASE_API_URL + 'song-list/'
|
export const SONG_API_URL = BASE_API_URL + 'song-list/'
|
||||||
export const NOTIFACTION_API_URL = BASE_API_URL + 'notification/'
|
export const NOTIFACTION_API_URL = BASE_API_URL + 'notification/'
|
||||||
export const QUESTION_API_URL = BASE_API_URL + 'qa/'
|
export const QUESTION_API_URL = BASE_API_URL + 'qa/'
|
||||||
export const LOTTERY_API_URL = BASE_API_URL + 'lottery/'
|
export const LOTTERY_API_URL = BASE_API_URL + 'lottery/'
|
||||||
export const HISTORY_API_URL = BASE_API_URL + 'history/'
|
export const HISTORY_API_URL = BASE_API_URL + 'history/'
|
||||||
export const SCHEDULE_API_URL = BASE_API_URL + 'schedule/'
|
export const SCHEDULE_API_URL = BASE_API_URL + 'schedule/'
|
||||||
export const VIDEO_COLLECT_API_URL = BASE_API_URL + 'video-collect/'
|
export const VIDEO_COLLECT_API_URL = BASE_API_URL + 'video-collect/'
|
||||||
export const OPEN_LIVE_API_URL = BASE_API_URL + 'open-live/'
|
export const OPEN_LIVE_API_URL = BASE_API_URL + 'open-live/'
|
||||||
export const SONG_REQUEST_API_URL = BASE_API_URL + 'live-request/'
|
export const SONG_REQUEST_API_URL = BASE_API_URL + 'live-request/'
|
||||||
export const QUEUE_API_URL = BASE_API_URL + 'queue/'
|
export const QUEUE_API_URL = BASE_API_URL + 'queue/'
|
||||||
export const EVENT_API_URL = BASE_API_URL + 'event/'
|
export const EVENT_API_URL = BASE_API_URL + 'event/'
|
||||||
export const LIVE_API_URL = BASE_API_URL + 'live/'
|
export const LIVE_API_URL = BASE_API_URL + 'live/'
|
||||||
export const FEEDBACK_API_URL = BASE_API_URL + 'feedback/'
|
export const FEEDBACK_API_URL = BASE_API_URL + 'feedback/'
|
||||||
export const MUSIC_REQUEST_API_URL = BASE_API_URL + 'music-request/'
|
export const MUSIC_REQUEST_API_URL = BASE_API_URL + 'music-request/'
|
||||||
export const VTSURU_API_URL = BASE_API_URL + 'vtsuru/'
|
export const VTSURU_API_URL = BASE_API_URL + 'vtsuru/'
|
||||||
export const POINT_API_URL = BASE_API_URL + 'point/'
|
export const POINT_API_URL = BASE_API_URL + 'point/'
|
||||||
export const BILI_AUTH_API_URL = BASE_API_URL + 'bili-auth/'
|
export const BILI_AUTH_API_URL = BASE_API_URL + 'bili-auth/'
|
||||||
export const FORUM_API_URL = BASE_API_URL + 'forum/'
|
export const FORUM_API_URL = BASE_API_URL + 'forum/'
|
||||||
export const USER_INDEX_API_URL = BASE_API_URL + 'user-index/'
|
export const USER_INDEX_API_URL = BASE_API_URL + 'user-index/'
|
||||||
|
|
||||||
export const ScheduleTemplateMap = {
|
export const ScheduleTemplateMap = {
|
||||||
'': {
|
'': {
|
||||||
name: '默认',
|
name: '默认',
|
||||||
compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/DefaultScheduleTemplate.vue')),
|
compoent: defineAsyncComponent(
|
||||||
|
() => import('@/views/view/scheduleTemplate/DefaultScheduleTemplate.vue')
|
||||||
|
)
|
||||||
},
|
},
|
||||||
pinky: {
|
pinky: {
|
||||||
name: '粉粉',
|
name: '粉粉',
|
||||||
compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/PinkySchedule.vue')),
|
compoent: defineAsyncComponent(
|
||||||
},
|
() => import('@/views/view/scheduleTemplate/PinkySchedule.vue')
|
||||||
|
)
|
||||||
|
}
|
||||||
} as { [key: string]: { name: string; compoent: any } }
|
} as { [key: string]: { name: string; compoent: any } }
|
||||||
export const SongListTemplateMap = {
|
export const SongListTemplateMap = {
|
||||||
'': {
|
'': {
|
||||||
name: '默认',
|
name: '默认',
|
||||||
compoent: defineAsyncComponent(() => import('@/views/view/songListTemplate/DefaultSongListTemplate.vue')),
|
compoent: defineAsyncComponent(
|
||||||
|
() => import('@/views/view/songListTemplate/DefaultSongListTemplate.vue')
|
||||||
|
)
|
||||||
},
|
},
|
||||||
simple: {
|
simple: {
|
||||||
name: '简单',
|
name: '简单',
|
||||||
compoent: defineAsyncComponent(() => import('@/views/view/songListTemplate/SimpleSongListTemplate.vue')),
|
compoent: defineAsyncComponent(
|
||||||
|
() => import('@/views/view/songListTemplate/SimpleSongListTemplate.vue')
|
||||||
|
)
|
||||||
},
|
},
|
||||||
traditional: {
|
traditional: {
|
||||||
name: '传统',
|
name: '传统',
|
||||||
compoent: defineAsyncComponent(() => import('@/views/view/songListTemplate/TraditionalSongListTemplate.vue')),
|
compoent: defineAsyncComponent(
|
||||||
},
|
() =>
|
||||||
|
import('@/views/view/songListTemplate/TraditionalSongListTemplate.vue')
|
||||||
|
)
|
||||||
|
}
|
||||||
} as { [key: string]: { name: string; compoent: any } }
|
} as { [key: string]: { name: string; compoent: any } }
|
||||||
export const IndexTemplateMap = {
|
export const IndexTemplateMap = {
|
||||||
'': { name: '默认', compoent: DefaultIndexTemplateVue },
|
'': { name: '默认', compoent: DefaultIndexTemplateVue }
|
||||||
} as { [key: string]: { name: string; compoent: any } }
|
} as { [key: string]: { name: string; compoent: any } }
|
||||||
|
|||||||
@@ -4,9 +4,7 @@ import {
|
|||||||
MasterRTCClient,
|
MasterRTCClient,
|
||||||
SlaveRTCClient
|
SlaveRTCClient
|
||||||
} from '@/data/RTCClient'
|
} from '@/data/RTCClient'
|
||||||
import { Router24Regular } from '@vicons/fluent'
|
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core'
|
||||||
import { nonFunctionArgSeparator } from 'html2canvas/dist/types/css/syntax/parser'
|
|
||||||
import { acceptHMRUpdate, defineStore } from 'pinia'
|
import { acceptHMRUpdate, defineStore } from 'pinia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
|||||||
@@ -127,8 +127,7 @@ function loadMore() {
|
|||||||
})
|
})
|
||||||
" placeholder="选择歌手" clearable />
|
" placeholder="选择歌手" clearable />
|
||||||
<NDivider />
|
<NDivider />
|
||||||
<LiveRequestOBS v-if="userInfo?.extra?.enableFunctions.includes(FunctionTypes.SongRequest)"
|
<LiveRequestOBS v-if="userInfo?.extra?.enableFunctions.includes(FunctionTypes.SongRequest)" />
|
||||||
:id="userInfo?.id" />
|
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</NCard>
|
</NCard>
|
||||||
<NEmpty v-if="!data || songs?.length == 0" description="暂无曲目" style="max-width: 0 auto" />
|
<NEmpty v-if="!data || songs?.length == 0" description="暂无曲目" style="max-width: 0 auto" />
|
||||||
|
|||||||
Reference in New Issue
Block a user