From 93655ee38fe6b361ee1554cf36fae71bd402ae26 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 22 Nov 2024 15:25:02 +0000 Subject: [PATCH] chore: build and documentation for release --- dist/maidr.js | 38 +++++++++++++++----------------- dist/maidr.min.js | 2 +- docs/AdvancedUserSettings.html | 2 +- docs/Audio.html | 2 +- docs/AudioProperties.html | 2 +- docs/BTSModes.html | 2 +- docs/BarChart.html | 2 +- docs/BasicChartProperties.html | 2 +- docs/BoxPlot.html | 2 +- docs/BoxplotRect.html | 2 +- docs/ChatLLM.html | 24 ++++++++++---------- docs/Constants.html | 26 +++++++++++----------- docs/Control.html | 2 +- docs/DebugSettings.html | 2 +- docs/Description.html | 12 +++++----- docs/Display.html | 2 +- docs/HeatMap.html | 2 +- docs/HeatMapRect.html | 2 +- docs/Helper.html | 6 ++--- docs/Histogram.html | 2 +- docs/HtmlIds.html | 2 +- docs/LLMSettings.html | 2 +- docs/Layer0Point.html | 2 +- docs/Layer1Point.html | 2 +- docs/LinePlot.html | 2 +- docs/LogError.html | 14 ++++++------ docs/Menu.html | 24 ++++++++++---------- docs/PlatformControls.html | 2 +- docs/Point.html | 2 +- docs/Position.html | 4 ++-- docs/Resources.html | 6 ++--- docs/Review.html | 6 ++--- docs/ScatterPlot.html | 2 +- docs/Segmented.html | 2 +- docs/Tracker.html | 20 ++++++++--------- docs/UserSettings.html | 2 +- docs/audio.js.html | 2 +- docs/barplot.js.html | 2 +- docs/boxplot.js.html | 2 +- docs/constants.js.html | 40 ++++++++++++++++------------------ docs/controls.js.html | 2 +- docs/display.js.html | 2 +- docs/global.html | 2 +- docs/heatmap.js.html | 2 +- docs/histogram.js.html | 2 +- docs/index.html | 2 +- docs/init.js.html | 2 +- docs/lineplot.js.html | 2 +- docs/scatterplot.js.html | 2 +- docs/segmented.js.html | 2 +- 50 files changed, 146 insertions(+), 150 deletions(-) diff --git a/dist/maidr.js b/dist/maidr.js index 179f712a..f52f8924 100644 --- a/dist/maidr.js +++ b/dist/maidr.js @@ -648,11 +648,9 @@ class Constants { /** * Base URL for the API calls to backend services. */ - // baseURL = 'https://maidr-service.azurewebsites.net/api/'; - baseURL = 'http://localhost:7071/api/'; + baseURL = 'https://maidr-service.azurewebsites.net/api/'; - // code = '?code=I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D'; - code = ''; + code = '?code=I8Aa2PlPspjQ8Hks0QzGyszP8_i2-XJ3bq7Xh8-ykEe4AzFuYn_QWA%3D%3D'; clientToken = null; @@ -1275,6 +1273,21 @@ class Menu { }), ]); + // if email_auth_key has a value, show the delete button + constants.events.push([ + document.getElementById('email_auth_key'), + 'input', + function (e) { + if (e.target.value) { + document + .getElementById('delete_email_key') + .classList.remove('hidden'); + } else { + document.getElementById('delete_email_key').classList.add('hidden'); + } + }, + ]); + // Skill level other events constants.events.push([ document.getElementById('skill_level'), @@ -1518,15 +1531,6 @@ class Menu { // hide verify button document.getElementById('verify').classList.add('hidden'); - - // remove listener on enter - document - .getElementById('email_auth_key') - .removeEventListener('keydown', function (event) { - if (event.key === 'Enter') { - document.getElementById('verify').click(); - } - }); } isEmailTriggered = false; @@ -1885,15 +1889,9 @@ class ChatLLM { function (e) { document.getElementById('email_auth_key').value = ''; document.getElementById('email_auth_key').disabled = false; + document.getElementById('delete_email_key').classList.add('hidden'); constants.clientToken = ''; document.getElementById('verify').classList.remove('hidden'); - document - .getElementById('email_auth_key') - .addEventListener('keydown', function (event) { - if (event.key === 'Enter') { - document.getElementById('verify').click(); - } - }); }, ]); constants.events.push([ diff --git a/dist/maidr.min.js b/dist/maidr.min.js index f2610401..80afc9dc 100644 --- a/dist/maidr.min.js +++ b/dist/maidr.min.js @@ -1 +1 @@ -class Constants{chart_container_id="chart-container";main_container_id="maidr-container";braille_container_id="braille-div";braille_input_id="braille-input";info_id="info";announcement_container_id="announcements";end_chime_id="end_chime";container_id="container";project_id="maidr";review_id_container="review_container";review_id="review";reviewSaveSpot;reviewSaveBrailleMode;chartId="";events=[];postLoadEvents=[];constructor(){}textMode="verbose";brailleMode="off";lockSelection=!1;sonifMode="on";reviewMode="off";minX=0;maxX=0;minY=0;maxY=0;plotId="";chartType="";navigation=1;plotOrientation="horz";MAX_FREQUENCY=1e3;MIN_FREQUENCY=200;NULL_FREQUENCY=100;combinedVolMin=.25;combinedVolMax=1.25;MAX_SPEED=500;MIN_SPEED=50;DEFAULT_SPEED=250;INTERVAL=20;AUTOPLAY_DURATION=2e3;vol=.5;MAX_VOL=30;autoPlayRate=this.DEFAULT_SPEED;colorSelected="#03C809";brailleDisplayLength=32;showRect=1;hasRect=1;hasSmooth=1;duration=.3;outlierDuration=.06;autoPlayOutlierRate=50;autoPlayPointsRate=50;colorUnselected="#595959";canTrack=1;visualBraille=!1;ariaMode="assertive";userSettingsKeys=["vol","autoPlayRate","brailleDisplayLength","colorSelected","MIN_FREQUENCY","MAX_FREQUENCY","AUTOPLAY_DURATION","ariaMode","openAIAuthKey","geminiAuthKey","claudeAuthKey","emailAuthKey","skillLevel","skillLevelOther","LLMModel","LLMPreferences","LLMOpenAiMulti","LLMGeminiMulti","LLMModels","autoInitLLM","clientToken"];openAIAuthKey=null;geminiAuthKey=null;LLMmaxResponseTokens=1e3;playLLMWaitingSound=!0;LLMDetail="high";LLMModel="openai";LLMModels={openai:!0};LLMSystemMessage="You are a helpful assistant describing the chart to a blind person. ";skillLevel="basic";skillLevelOther="";autoInitLLM=!0;verboseText="";waitingQueue=0;showDisplay=1;showDisplayInBraille=1;showDisplayInAutoplay=0;outlierInterval=null;isMac=navigator.userAgent.toLowerCase().includes("mac");control=this.isMac?"Cmd":"Ctrl";alt=this.isMac?"option":"Alt";home=this.isMac?"fn + Left arrow":"Home";end=this.isMac?"fn + Right arrow":"End";keypressInterval=2e3;tabMovement=null;debugLevel=3;canPlayEndChime=!1;manualData=!0;baseURL="http://localhost:7071/api/";code="";clientToken=null;KillAutoplay(){clearInterval(this.autoplayId),this.autoplayId=null}KillSepPlay(){this.sepPlayId&&(clearInterval(this.sepPlayId),this.sepPlayId=null)}SpeedUp(){constants.autoPlayRate-this.INTERVAL>this.MIN_SPEED&&(constants.autoPlayRate-=this.INTERVAL)}SpeedDown(){constants.autoPlayRate+this.INTERVAL<=this.MAX_SPEED&&(constants.autoPlayRate+=this.INTERVAL)}SpeedReset(){constants.autoPlayRate=constants.DEFAULT_SPEED}ConvertHexToRGBString(t){return"rgb("+parseInt(t.slice(1,3),16)+","+parseInt(t.slice(3,5),16)+","+parseInt(t.slice(5,7),16)+")"}ConvertRGBStringToHex(t){let e=t.replace(/[^\d,]/g,"").split(",");return"#"+e[0].toString(16).padStart(2,"0")+e[1].toString(16).padStart(2,"0")+e[2].toString(16).padStart(2,"0")}ColorInvert(t){let e=t.replace(/[^\d,]/g,"").split(",");return"rgb("+(255-e[0])+","+(255-e[1])+","+(255-e[2])+")"}GetBetterColor(t){-1!==t.indexOf("#")&&(t=this.ConvertHexToRGBString(t));let e=this.ColorInvert(t),n=e.replace(/[^\d,]/g,"").split(",");return n[1]n[0]-10&&n[2]n[0]-10&&(n[0]>86||n[0]<169)&&(e=this.colorSelected),e}GetStyleArrayFromString(t){return t.replaceAll(" ","").split(/[:;]/)}GetStyleStringFromArray(t){let e="";for(let n=0;n