Skip to content

Commit

Permalink
🐳 chore: 屏蔽挂机检测变量名修正
Browse files Browse the repository at this point in the history
  • Loading branch information
andywang425 committed Sep 5, 2023
1 parent 689d5a1 commit bf24709
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
10 changes: 3 additions & 7 deletions src/components/EnhanceExperience.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ const qualityDescList = ['原画', '蓝光PRO', '蓝光', '超清PRO', '超清',
<el-row>
<el-space wrap>
<el-switch v-model="config.switchLiveStreamQuality.enabled" active-text="自动切换画质" />
<el-select
v-model="config.switchLiveStreamQuality.qualityDesc"
placeholder="Select"
style="width: 110px"
>
<el-select v-model="config.switchLiveStreamQuality.qualityDesc" placeholder="Select" style="width: 110px">
<el-option v-for="i in qualityDescList" :key="i" :label="i" :value="i" />
</el-select>
<Info id="EnhanceExperience.switchLiveStreamQuality" />
Expand All @@ -36,8 +32,8 @@ const qualityDescList = ['原画', '蓝光PRO', '蓝光', '超清PRO', '超清',
</el-row>
<el-row>
<el-space wrap>
<el-switch v-model="config.sleepDetection.enabled" active-text="屏蔽挂机检测" />
<Info id="EnhanceExperience.sleepDetection" />
<el-switch v-model="config.noSleep.enabled" active-text="屏蔽挂机检测" />
<Info id="EnhanceExperience.noSleep" />
</el-space>
</el-row>
<el-divider />
Expand Down
2 changes: 1 addition & 1 deletion src/library/help-info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const help_info: IhelpInfo = {
])
])
},
sleepDetection: {
noSleep: {
title: '屏蔽挂机检测',
message: h('p', [
h('div', '屏蔽B站直播间的挂机检测。'),
Expand Down
2 changes: 1 addition & 1 deletion src/library/storage/defaultValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const defaultValues: IdefaultValues = {
noReport: {
enabled: false
},
sleepDetection: {
noSleep: {
enabled: false
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/enhanceExperience/noSleep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class NoSleep extends BaseModule {
static runAt: runAtMoment = 'window-load'
static runAfterDefault: boolean = false

config = this.moduleStore.moduleConfig.EnhanceExperience.sleepDetection
config = this.moduleStore.moduleConfig.EnhanceExperience.noSleep

public async run() {
this.logger.log('屏蔽挂机检测模块开始运行')
Expand Down
2 changes: 1 addition & 1 deletion src/types/helpInfo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface IhelpInfo {
switchLiveStreamQuality: IhelpInfoItem
banp2p: IhelpInfoItem
noReport: IhelpInfoItem
sleepDetection: IhelpInfoItem
noSleep: IhelpInfoItem
}
RemoveElement: {
removePKBox: IhelpInfoItem
Expand Down
2 changes: 1 addition & 1 deletion src/types/storage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ interface ImoduleConfig {
noReport: {
enabled: boolean
}
sleepDetection: {
noSleep: {
enabled: boolean
}
}
Expand Down

0 comments on commit bf24709

Please sign in to comment.