-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.html
210 lines (197 loc) · 10.2 KB
/
settings.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Settings</title>
<link href="https://fonts.googleapis.com/css2?family=Mali:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="settings.css">
</head>
<body>
<div class="settings-tab-container" style="margin-bottom: 15px;">
<div class="settings-tab-item active">
<span class="settings-tab-label">Features</span>
<button class="settings-tab-button active" data-tab="settings-tab">
<img src="icons/settings.svg" alt="Settings" class="settings-tab-icon">
</button>
</div>
<div class="settings-tab-item">
<span class="settings-tab-label">Characters</span>
<button class="settings-tab-button" data-tab="characters-tab">
<img src="icons/user-round-pen.svg" alt="Characters" class="settings-tab-icon">
</button>
</div>
<div class="settings-tab-item">
<span class="settings-tab-label">API Keys</span>
<button class="settings-tab-button" data-tab="api-keys-tab">
<img src="icons/key-round.svg" alt="API Keys" class="settings-tab-icon">
</button>
</div>
</div>
<div id="settings-tab" class="tab-content active" style="background-color: #fbfbf7; padding: 10px; border-radius: 15px;">
<h1>
<img src="icons/info.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Overlay
</h1>
<label class="switch">
<span>Show Settings Icon</span>
<input type="checkbox" id="settingsIconToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>Time Format</span>
<select id="timeFormatSelect">
<option value="12">12 Hour</option>
<option value="24">24 Hour</option>
</select>
</label>
<h1>
<img src="icons/keyboard.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Keyboard Shortcuts
</h1>
<span style="font-size: 1.2em;">
<span class="model-text">Start/Stop Assistant</span>
<input type="text" id="assistantShortcut" placeholder="Press keys" readonly>
</span>
<h1>
<img src="icons/flask-round.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Experimental
</h1>
<label class="switch">
<span>Plaintext Clipboard Access</span>
<input type="checkbox" id="clipboardAccessToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>Show Time</span>
<input type="checkbox" id="showTimeToggle">
<span class="slider"></span>
</label>
<h1>
<img src="icons/bug.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Debug
</h1>
<label class="switch">
<span>Free Camera</span>
<input type="checkbox" id="freeCameraToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>Scene Debug View</span>
<input type="checkbox" id="sceneDebugToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>Drag & Drop Support for vrm & fbx</span>
<input type="checkbox" id="dragDropToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>vrm Debug View</span>
<input type="checkbox" id="vrmDebugToggle">
<span class="slider"></span>
</label>
<label class="switch">
<span>Animation Picker</span>
<input type="checkbox" id="animationPickerToggle">
<span class="slider"></span>
</label>
</div>
<div id="characters-tab" class="tab-content" style="background-color: #fbfbf7; padding: 10px; border-radius: 15px;">
<div style="display: flex;">
<div style="flex: 1; padding: 10px;">
<div class="character-grid" id="characterGrid">
<!-- Character cards will be dynamically added here -->
</div>
</div>
<div style="flex: 1; padding: 10px; margin-top: -19px;">
<h1 id="characterName">
<img src="icons/user-round.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Loading Character...
</h1>
<div style="border-bottom: 4px dashed #4B9560; margin-top: -20px; margin-bottom: 20px;"></div>
<h1>
<img src="icons/person-standing.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Model
</h1>
<label class="switch">
<span>Idle Animation</span>
<select id="idleAnimationSelect">
<option value="">Select an animation</option>
</select>
</label>
<h1>
<img src="icons/audio-lines.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Voice Assistant
</h1>
<label class="switch">
<span>
Assistant
</span>
<select id="assistantIDSelect">
<option value="">Loading assistants...</option>
</select>
</label>
<span id="modelName" style="font-size: 1.2em;">
<img src="icons/sparkles.svg" alt="Flask Icon" style="width: 20px; height: 20px; vertical-align: middle; margin-bottom: 5px;">
<span class="model-text">Loading Model...</span>
</span>
<br>
<span id="voiceInfo" style="font-size: 1.2em;">
<img src="icons/audio-lines.svg" alt="Flask Icon" style="width: 20px; height: 20px; vertical-align: middle; margin-bottom: 5px;">
<span class="voice-text">Loading Voice...</span>
</span>
<br>
<span style="font-size: 1.2em;">
<img src="icons/message-circle-code.svg" alt="Flask Icon" style="width: 20px; height: 20px; vertical-align: middle; margin-bottom: 5px;">
System Message:
<br>
<pre id="systemMessage" style="white-space: pre-wrap; word-wrap: break-word;">Loading System Message...</pre>
</span>
<br>
<span style="font-size: 1.2em;">
<img src="icons/message-circle-more.svg" alt="Flask Icon" style="width: 20px; height: 20px; vertical-align: middle; margin-bottom: 5px;">
First Message:
<br>
<span id="firstMessage">Loading First Message...</span>
</span>
</div>
</div>
</div>
<div id="api-keys-tab" class="tab-content" style="background-color: #fbfbf7; padding: 10px; border-radius: 15px;">
<h1>
<img src="icons/audio-lines.svg" alt="Flask Icon" style="width: 40px; height: 40px; filter: invert(48%) sepia(79%) saturate(376%) hue-rotate(93deg) brightness(88%) contrast(84%); vertical-align: middle; margin-bottom: 5px;">
Vapi
</h1>
<span style="font-size: 1.2em;">
<img src="icons/lightbulb.svg" alt="Flask Icon" style="width: 20px; height: 20px; vertical-align: middle; margin-bottom: 5px;">
Refresh after changing your private key
</span>
<br>
<br>
<div class="input-container">
<label for="publicKey" style="font-size: 1.2em;">Public Key</label>
<div class="input-wrapper">
<input type="password" id="publicKey" placeholder="0000XXXX-XXXX-XXXX-XXXX-XXXXXXXX0000" class="rounded-input">
<button class="toggle-visibility" data-target="publicKey">
<img src="icons/eye-off.svg" alt="Toggle Visibility" class="input-icon" style="vertical-align: middle;">
</button>
</div>
<button class="save-button">Save</button>
</div>
<div class="input-container">
<label for="privateKey" style="font-size: 1.2em;">Private Key</label>
<div class="input-wrapper">
<input type="password" id="privateKey" placeholder="0000XXXX-XXXX-XXXX-XXXX-XXXXXXXX0000" class="rounded-input">
<button class="toggle-visibility" data-target="privateKey">
<img src="icons/eye-off.svg" alt="Toggle Visibility" class="input-icon">
</button>
</div>
<button class="save-button">Save</button>
</div>
</div>
<!-- Add this hidden file input element just before the closing </body> tag -->
<input type="file" id="characterUpload" style="display: none;" multiple accept=".png,.vrm,.zip">
<script src="settings.js"></script>
</body>
</html>