-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
63 lines (61 loc) · 1.85 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>Settings</title>
<link rel="stylesheet" type="text/css" href="options.css">
</head>
<body>
<h1>Settings</h1>
<div>
<label for="backendUrl">Backend Server URL:</label>
<input type="text" id="backendUrl" style="width: 300px;" />
<button id="save">Save</button>
</div>
<h2>Characters</h2>
<div>
<label for="characterList">Characters:</label>
<select id="characterList" size="5"></select>
<button id="editCharacter">Edit</button>
<button id="removeCharacter">Remove</button>
<div id="addCharacter">
<button id="newCharacter">New Character</button>
</div>
</div>
<div id="characterDetails" style="display: none;">
<label for="characterName">Name:</label>
<input type="text" id="characterName" style="width: 200px;" />
<button id="addEmotion">Add Emotion</button>
<button id="saveCharacter">Save Character</button>
<button id="cancelEdit">Cancel</button>
<h3>Emotions</h3>
<div id="emotionsGridContainer">
<table id="emotionsGrid">
<thead>
<tr>
<th>Emotion Name</th>
<th>Text Lang</th>
<th>Ref Audio Path</th>
<th>Prompt Lang</th>
<th>Prompt Text</th>
<th>GPT Model</th>
<th>SoVITS Model</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<h2>Export/Import</h2>
<div>
<button id="exportSettings">Export Settings</button>
<input type="file" id="importFile" style="display: none;">
<button id="importSettings">Import Settings</button>
</div>
<datalist id="audioFilesList"></datalist> <!-- Added datalist -->
<datalist id="gptModelsList"></datalist>
<datalist id="sovitsModelsList"></datalist>
<script src="options.js"></script>
</body>
</html>