Skip to content

Commit 1cd3e28

Browse files
chore: build and documentation for release
1 parent f1c2c87 commit 1cd3e28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+133
-113
lines changed

dist/maidr.js

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ class Menu {
12221222
document
12231223
.getElementById('gemini_multi_container')
12241224
.classList.add('hidden');
1225-
document.getElementById('openai_multi').checked = true;
1225+
document.getElementById('openai_multi').checked = true; // refactor note: this hidden checkbox stuff is stupid and should be removed. We're sorta replacing with the visible checkboxes.
12261226
document.getElementById('gemini_multi').checked = false;
12271227
} else if (e.target.value == 'gemini') {
12281228
document
@@ -1566,8 +1566,12 @@ class Menu {
15661566
});
15671567

15681568
constants.LLMPreferences = document.getElementById('LLM_preferences').value;
1569-
constants.LLMOpenAiMulti = document.getElementById('openai_multi').checked;
1570-
constants.LLMGeminiMulti = document.getElementById('gemini_multi').checked;
1569+
constants.LLMOpenAiMulti =
1570+
document.getElementById('LLM_model_openai').checked;
1571+
constants.LLMGeminiMulti =
1572+
document.getElementById('LLM_model_gemini').checked;
1573+
constants.LLMClaudeMulti =
1574+
document.getElementById('LLM_model_claude').checked;
15711575
constants.autoInitLLM = document.getElementById('init_llm_on_load').checked;
15721576

15731577
// aria
@@ -1797,6 +1801,7 @@ class ChatLLM {
17971801
this.firstMulti = true;
17981802
this.firstOpen = true;
17991803
this.shown = false;
1804+
this.awaitingNumChats = 0;
18001805
this.CreateComponent();
18011806
this.SetEvents();
18021807
if (constants.autoInitLLM) {
@@ -2005,7 +2010,7 @@ class ChatLLM {
20052010
*
20062011
* @param {Event|undefined} e - The event that triggered the copy action. If undefined, the entire chat history is copied.
20072012
*/
2008-
CopyChatHistory(e) {
2013+
CopyChatHistory(e, actuallyCopy = true) {
20092014
let text = '';
20102015
let notificationText = '';
20112016
if (typeof e == 'undefined') {
@@ -2067,10 +2072,12 @@ class ChatLLM {
20672072
}
20682073
}
20692074

2070-
try {
2071-
navigator.clipboard.writeText(markdown); // note: this fails if you're on the inspector. That's fine as it'll never happen to real users
2072-
} catch (err) {
2073-
console.error('Failed to copy: ', err);
2075+
if (actuallyCopy) {
2076+
try {
2077+
navigator.clipboard.writeText(markdown); // note: this fails if you're on the inspector. That's fine as it'll never happen to real users
2078+
} catch (err) {
2079+
console.error('Failed to copy: ', err);
2080+
}
20742081
}
20752082
return markdown;
20762083
}
@@ -2204,7 +2211,7 @@ class ChatLLM {
22042211
let inprogressFreq = freq * 2;
22052212

22062213
if (onoff) {
2207-
// if turning on, clear old intervals and timeouts
2214+
// if turning on clear old intervals and timeouts
22082215
if (constants.waitingInterval) {
22092216
// destroy old waiting sound
22102217
clearInterval(constants.waitingInterval);
@@ -2255,6 +2262,9 @@ class ChatLLM {
22552262
if (constants.LLMOpenAiMulti) {
22562263
constants.waitingQueue++;
22572264
}
2265+
if (constants.LLMClaudeMulti) {
2266+
constants.waitingQueue++;
2267+
}
22582268
}
22592269
}
22602270
}
@@ -2335,7 +2345,7 @@ class ChatLLM {
23352345

23362346
// if we're tracking, log the data
23372347
if (constants.canTrack) {
2338-
let chatHist = chatLLM.CopyChatHistory();
2348+
let chatHist = chatLLM.CopyChatHistory(undefined, false);
23392349
let data = {};
23402350
data.chatHistory = chatHist;
23412351
if (constants.emailAuthKey) data.username = constants.emailAuthKey;
@@ -3256,7 +3266,7 @@ class Tracker {
32563266
* @param {Object} data - The data to be saved.
32573267
*/
32583268
async SaveTrackerData(data) {
3259-
console.log('about to save data', data);
3269+
//console.log('about to save data', data);
32603270
if (this.isLocal) {
32613271
localStorage.setItem(constants.project_id, JSON.stringify(data));
32623272
} else {
@@ -3275,7 +3285,7 @@ class Tracker {
32753285
}
32763286

32773287
const result = await response.json();
3278-
console.log('Data saved successfully:', result);
3288+
//console.log('Data saved successfully:', result);
32793289
return result;
32803290
} catch (error) {
32813291
console.error('Error saving data:', error);

dist/maidr.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/AdvancedUserSettings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ <h5>Type:</h5>
13221322
<br class="clear">
13231323

13241324
<footer>
1325-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
1325+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
13261326
</footer>
13271327

13281328
<script>prettyPrint();</script>

docs/Audio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ <h4 class="name" id="playTone"><span class="type-signature"></span>playTone<span
13961396
<br class="clear">
13971397

13981398
<footer>
1399-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
1399+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
14001400
</footer>
14011401

14021402
<script>prettyPrint();</script>

docs/AudioProperties.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ <h5>Type:</h5>
924924
<br class="clear">
925925

926926
<footer>
927-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
927+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
928928
</footer>
929929

930930
<script>prettyPrint();</script>

docs/BTSModes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h5>Type:</h5>
471471
<br class="clear">
472472

473473
<footer>
474-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
474+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
475475
</footer>
476476

477477
<script>prettyPrint();</script>

docs/BarChart.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ <h4 class="name" id="UnSelectPrevious"><span class="type-signature"></span>UnSel
10971097
<br class="clear">
10981098

10991099
<footer>
1100-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
1100+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
11011101
</footer>
11021102

11031103
<script>prettyPrint();</script>

docs/BasicChartProperties.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ <h5>Type:</h5>
687687
<br class="clear">
688688

689689
<footer>
690-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
690+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
691691
</footer>
692692

693693
<script>prettyPrint();</script>

docs/BoxPlot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ <h5>Returns:</h5>
13291329
<br class="clear">
13301330

13311331
<footer>
1332-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
1332+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
13331333
</footer>
13341334

13351335
<script>prettyPrint();</script>

docs/BoxplotRect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ <h4 class="name" id="UpdateRect"><span class="type-signature"></span>UpdateRect<
408408
<br class="clear">
409409

410410
<footer>
411-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 00:20:33 GMT+0000 (Coordinated Universal Time) using the Minami theme.
411+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Dec 05 2024 15:54:06 GMT+0000 (Coordinated Universal Time) using the Minami theme.
412412
</footer>
413413

414414
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)