This commit is contained in:
IndieKKY
2024-10-06 17:51:07 +08:00
parent 751961687b
commit 50e6579116
3 changed files with 4 additions and 4 deletions

View File

@@ -20,6 +20,8 @@ export const MESSAGE_TO_APP_SET_VIDEO_INFO = 'setVideoInfo'
export const EVENT_EXPAND = 'expand'
export const APP_DOM_ID = 'bilibili-subtitle'
export const IFRAME_ID = 'bilibili-subtitle-iframe'
export const STORAGE_ENV = 'bilibili-subtitle_env'

View File

@@ -4,8 +4,7 @@ import './index.less'
import store from './store'
import {Provider} from 'react-redux'
import Router from './Router'
export const APP_DOM_ID = 'bilibili-subtitle'
import { APP_DOM_ID } from './consts/const'
const body = document.querySelector('body')
const app = document.createElement('div')

View File

@@ -1,8 +1,7 @@
import {CUSTOM_MODEL_TOKENS, MODEL_DEFAULT, MODEL_MAP, SUMMARIZE_TYPES} from '../consts/const'
import {APP_DOM_ID, CUSTOM_MODEL_TOKENS, MODEL_DEFAULT, MODEL_MAP, SUMMARIZE_TYPES} from '../consts/const'
import {isDarkMode} from '@kky002/kky-util'
import toast from 'react-hot-toast'
import {findIndex} from 'lodash-es'
import {APP_DOM_ID} from '../Main'
export const debug = (...args: any[]) => {
console.debug('[APP]', ...args)
}