Skip to content

Commit 8b1b99b

Browse files
authored
add testNotification (#106)
1 parent 7174c61 commit 8b1b99b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

setup/config/index.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,18 @@ <h1>Config.json5 Generator</h1>
169169
170170
<h2>Platforms</h2>
171171
-->
172+
<!-- Test Notification -->
173+
<div class="platform-section">
174+
<h3>Test Notification</h3>
175+
<label for="testNotificationEnabled">Enable test notification on startup:</label>
176+
<select id="testNotificationEnabled">
177+
<option value="select">Select option</option>
178+
<option value="true">true</option>
179+
<option value="false" selected>false</option>
180+
</select>
181+
<div class="small-text">Set to false if you don't want to receive test notifications on startup</div>
182+
</div>
183+
172184
<!-- Platform 1: Discord Bot -->
173185
<div class="platform-section">
174186
<h3>Discord Bot</h3>
@@ -738,9 +750,15 @@ <h3>Zenless Zone Zero accounts 1</h3>
738750
};
739751

740752
function generateConfig() {
753+
const tnEl = document.getElementById('testNotificationEnabled');
754+
const testNotifyEnabled = tnEl ? (tnEl.value === 'true') : false;
741755
const config = {
742756
loglevel: 'info',
743757
userAgent: 'Custom fork of HoyoLabAuto: github.com/torikushiii/hoyolab-auto',
758+
// Test notification settings
759+
testNotification: {
760+
enabled: testNotifyEnabled,
761+
},
744762
platforms: [
745763
{
746764
id: 1,
@@ -1051,4 +1069,4 @@ <h3>Zenless Zone Zero accounts 1</h3>
10511069
}
10521070
</script>
10531071
</body>
1054-
</html>
1072+
</html>

0 commit comments

Comments
 (0)