Skip to content

Commit

Permalink
Update documentation index, minor SCA fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jultty committed Apr 3, 2024
1 parent 05ac9df commit 6332b07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<body>
<h1>mirante • docs</h1>
<ul>
<li><a href="generated/javadoc/index.html">Documentação das classes</a></li>
<li><a href="generated/tests/test/index.html">Relatórios de testes</a></li>
<li><a href="generated/jacoco/test/html/index.html">Relatórios de cobertura</a></li>
<li><a href="generated/javadoc/index.html">Documentação das classes (Javadoc)</a></li>
<li><a href="generated/tests/test/index.html">Relatório de testes</a></li>
<li><a href="generated/jacoco/test/html/index.html">Relatório de cobertura de testes</a></li>
<li><a href="https://app.deepsource.com/gh/jultty/mirante">Dashboard de qualidade de código</a></li>
<li><a href="https://snyk.io/test/github/jultty/mirante/">Dashboard de segurança</a></li>
<li><a href="generated/plantuml/mirante-api.svg">Diagrama de classes</a></li>
<li><a href="https://github.com/jultty/mirante">Código fonte</a></li>
<li><a href="https://github.com/jultty/mirante/blob/main/docs/roadmap.md">Planejamento de versões</a></li>
Expand Down
10 changes: 5 additions & 5 deletions src/web/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const exerciseContainer = document.getElementById('exerciseContainer');
const exerciseSetDropdown = document.getElementById('exerciseSet');
var uniqueSets;
var options;
let uniqueSets = {};
let options = {};

// get the exercise sets from the backend
fetch('http://localhost:8888/option')
Expand All @@ -19,7 +19,7 @@ fetch('http://localhost:8888/option')
})

// listen for a selection of an exercise set
exerciseSetDropdown.addEventListener('input', function () {
exerciseSetDropdown.addEventListener('input', () => {
const selectedSetId = exerciseSetDropdown.value;
const selectedSet = uniqueSets.find(set => set.id === selectedSetId);

Expand All @@ -28,7 +28,7 @@ exerciseSetDropdown.addEventListener('input', function () {
const exercises = assembleExerciseOptions(setOptions)
populateExerciseContainer(exercises);

exerciseContainer.addEventListener('submit', function (event) {
exerciseContainer.addEventListener('submit', event => {
event.preventDefault();

const form = document.querySelector('form');
Expand All @@ -55,7 +55,7 @@ function sendResponseResult(selection, set) {
const result = {
time: new Date().getTime(),
set: set.id,
selection: selection,
selection,
};

xhr.send(JSON.stringify(result));
Expand Down

0 comments on commit 6332b07

Please sign in to comment.