mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
39 lines
1.9 KiB
TypeScript
39 lines
1.9 KiB
TypeScript
import { defineAsyncComponent, ref } from 'vue'
|
|
|
|
const debugAPI = import.meta.env.VITE_DEBUG_API
|
|
const releseAPI = `https://vtsuru.suki.club/api/`
|
|
|
|
export const isBackendUsable = ref(true)
|
|
|
|
export const AVATAR_URL = 'https://workers.vrp.moe/api/bilibili/avatar/'
|
|
|
|
export const BASE_API = process.env.NODE_ENV === 'development' ? debugAPI : releseAPI
|
|
export const FETCH_API = 'https://fetch.vtsuru.live/'
|
|
|
|
export const TURNSTILE_KEY = '0x4AAAAAAAETUSAKbds019h0'
|
|
|
|
export const USER_API_URL = `${BASE_API}user/`
|
|
export const ACCOUNT_API_URL = `${BASE_API}account/`
|
|
export const BILI_API_URL = `${BASE_API}bili/`
|
|
export const SONG_API_URL = `${BASE_API}song-list/`
|
|
export const NOTIFACTION_API_URL = `${BASE_API}notifaction/`
|
|
export const QUESTION_API_URL = `${BASE_API}qa/`
|
|
export const LOTTERY_API_URL = `${BASE_API}lottery/`
|
|
export const HISTORY_API_URL = `${BASE_API}history/`
|
|
export const SCHEDULE_API_URL = `${BASE_API}schedule/`
|
|
export const VIDEO_COLLECT_API_URL = `${BASE_API}video-collect/`
|
|
export const OPEN_LIVE_API_URL = `${BASE_API}open-live/`
|
|
export const SONG_REQUEST_API_URL = `${BASE_API}song-request/`
|
|
export const EVENT_API_URL = `${BASE_API}event/`
|
|
|
|
export const ScheduleTemplateMap = {
|
|
'': { name: '默认', compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/DefaultScheduleTemplate.vue')) },
|
|
pinky: { name: '粉粉', compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/PinkySchedule.vue')) },
|
|
} as { [key: string]: { name: string; compoent: any } }
|
|
export const SongListTemplateMap = {
|
|
'': { name: '默认', compoent: defineAsyncComponent(() => import('@/views/view/songListTemplate/DefaultSongListTemplate.vue')) },
|
|
} as { [key: string]: { name: string; compoent: any } }
|
|
export const IndexTemplateMap = {
|
|
'': { name: '默认', compoent: defineAsyncComponent(() => import('@/views/view/indexTemplate/DefaultIndexTemplate.vue')) },
|
|
} as { [key: string]: { name: string; compoent: any } }
|