diff --git a/README.md b/README.md index 2f54a81..33d2524 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ``` 3. 用浏览器打开[http://localhost:12450](http://localhost:12450),输入房间ID,保存配置,复制房间URL 4. 用样式生成器生成样式,复制CSS -5. 在OBS中添加浏览器源,输入URL和自定义CSS,或者可以在首页的样式设置里输入CSS +5. 在OBS中添加浏览器源,输入URL和自定义CSS ### 公共服务器 请优先在本地使用,使用公共服务器会有更大的弹幕延迟,而且服务器故障时可能出现直播事故 diff --git a/frontend/src/api/config.js b/frontend/src/api/config.js index a3e7ae0..192c6fb 100644 --- a/frontend/src/api/config.js +++ b/frontend/src/api/config.js @@ -1,5 +1,3 @@ -import axios from 'axios' - import {mergeConfig} from '@/utils' export const DEFAULT_CONFIG = { @@ -15,9 +13,7 @@ export const DEFAULT_CONFIG = { blockNotMobileVerified: true, blockKeywords: '', blockUsers: '', - blockMedalLevel: 0, - - css: '' + blockMedalLevel: 0 } export function setLocalConfig (config) { @@ -31,27 +27,3 @@ export function getLocalConfig () { } return mergeConfig(JSON.parse(window.localStorage.config), DEFAULT_CONFIG) } - -export async function createRemoteConfig (config) { - config = mergeConfig(config, DEFAULT_CONFIG) - return (await axios.post('/config', config)).data -} - -export async function setRemoteConfig (id, config) { - config = mergeConfig(config, DEFAULT_CONFIG) - return (await axios.put(`/config/${id}`, config)).data -} - -export async function getRemoteConfig (id) { - let config = (await axios.get(`/config/${id}`)).data - return mergeConfig(config, DEFAULT_CONFIG) -} - -export default { - DEFAULT_CONFIG, - setLocalConfig, - getLocalConfig, - createRemoteConfig, - setRemoteConfig, - getRemoteConfig -} diff --git a/frontend/src/components/ChatRenderer/LegacyPaidMessage.vue b/frontend/src/components/ChatRenderer/LegacyPaidMessage.vue index c137b0a..ebd7cc5 100644 --- a/frontend/src/components/ChatRenderer/LegacyPaidMessage.vue +++ b/frontend/src/components/ChatRenderer/LegacyPaidMessage.vue @@ -21,7 +21,7 @@