Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Dec 25, 2024
1 parent 9bde07e commit 7967ec8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
25 changes: 13 additions & 12 deletions public/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h3>__MSG_optionSectionSkipNotice__</h3>
<span class="optionLabel">__MSG_skipNoticeDuration__</span>
<input type="number" step="1" min="1">
</label>

<div class="small-description">__MSG_skipNoticeDurationDescription__</div>
</div>

Expand Down Expand Up @@ -775,7 +775,7 @@ <h2>__MSG_exportOtherData__</h2>
<label class="switch-label" for="checkTimeDanmakuSkip"> __MSG_checkTimeDanmakuSkip__</label>
</div>
</div>

<div data-type="text-change" data-sync="danmakuTimeMatchingRegexPattern" class="no-bottom-border">
<div class="input-container">
<label for="danmakuTimeMatchingRegexPattern">__MSG_danmakuTimeMatchingRegexPattern__</label>
Expand All @@ -785,17 +785,18 @@ <h2>__MSG_exportOtherData__</h2>
<button class="text-change-reset">__MSG_reset__</button>
</div>
<div class="small-description">__MSG_danmakuTimeMatchingRegexPatternDescription__</div>
</div>

<div data-type="text-change" data-sync="danmakuOffsetMatchingRegexPattern">
<div class="input-container">
<label for="danmakuOffsetMatchingRegexPattern">__MSG_danmakuOffsetMatchingRegexPattern__</label>
<input id="danmakuOffsetMatchingRegexPattern" class="option-text-box" type="text"
placeholder="__MSG_danmakuOffsetMatchingRegexPatternPlaceholder__"
title="__MSG_danmakuRegexTitle__" />
<button class="text-change-set">__MSG_save__</button>
<button class="text-change-reset">__MSG_reset__</button>
</div>

<div data-type="text-change" data-sync="danmakuOffsetMatchingRegexPattern">
<div class="input-container">
<label for="danmakuOffsetMatchingRegexPattern">__MSG_danmakuOffsetMatchingRegexPattern__</label>
<input id="danmakuOffsetMatchingRegexPattern" class="option-text-box" type="text"
placeholder="__MSG_danmakuOffsetMatchingRegexPatternPlaceholder__" title="__MSG_danmakuRegexTitle__" />
<button class="text-change-set">__MSG_save__</button>
<button class="text-change-reset">__MSG_reset__</button>
</div>
<div class="small-description">__MSG_danmakuOffsetRegexPatternDescription__</div>
<div class="small-description">__MSG_danmakuOffsetRegexPatternDescription__</div>
</div>

</div>
Expand Down
7 changes: 4 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface SBConfig {
minDuration: number;
skipNoticeDuration: number;
skipNoticeDurationBefore: number;
advanceSkipNotice:boolean;
advanceSkipNotice: boolean;
audioNotificationOnSkip: boolean;
checkForUnlistedVideos: boolean;
testingServer: boolean;
Expand Down Expand Up @@ -192,7 +192,8 @@ function migrateOldSyncFormats(config: SBConfig) {
config["serverAddress"] = CompileConfig.serverAddress;
}

// "danmakuRegexPattern" 参数在 0.5.9 版本(预计)中被移除,取而代之的是 "danmakuTimeMatchingRegexPattern" 和 "danmakuOffsetMatchingRegexPattern" 参数
// "danmakuRegexPattern" 在 0.5.9 版本中被移除,
// 取而代之的是 "danmakuTimeMatchingRegexPattern" 和 "danmakuOffsetMatchingRegexPattern"
delete config["danmakuRegexPattern"];
}

Expand Down Expand Up @@ -242,7 +243,7 @@ const syncDefaults = {
minDuration: 0,
skipNoticeDuration: 4,
skipNoticeDurationBefore: 3,
advanceSkipNotice:false,
advanceSkipNotice: false,
audioNotificationOnSkip: false,
checkForUnlistedVideos: false,
testingServer: false,
Expand Down

0 comments on commit 7967ec8

Please sign in to comment.