diff --git a/.gitignore b/.gitignore index 549e00a..b6d3320 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,10 @@ build/ ### VS Code ### .vscode/ +.history/ + +### macOS ### +*.DS_Store + +### Database files ### +*.db diff --git a/src/main/resources/application.yaml b/src/main/resources/config/application.yaml similarity index 100% rename from src/main/resources/application.yaml rename to src/main/resources/config/application.yaml diff --git a/src/main/resources/production.yaml b/src/main/resources/config/production.yaml similarity index 100% rename from src/main/resources/production.yaml rename to src/main/resources/config/production.yaml diff --git a/src/main/resources/static/style/core/footer.css b/src/main/resources/static/css/core/footer.css similarity index 100% rename from src/main/resources/static/style/core/footer.css rename to src/main/resources/static/css/core/footer.css diff --git a/src/main/resources/static/style/core/header.css b/src/main/resources/static/css/core/header.css similarity index 100% rename from src/main/resources/static/style/core/header.css rename to src/main/resources/static/css/core/header.css diff --git a/src/main/resources/fetchSecondarySkills.js b/src/main/resources/static/css/core/navigation.css similarity index 100% rename from src/main/resources/fetchSecondarySkills.js rename to src/main/resources/static/css/core/navigation.css diff --git a/src/main/resources/static/style/core/style.css b/src/main/resources/static/css/core/style.css similarity index 100% rename from src/main/resources/static/style/core/style.css rename to src/main/resources/static/css/core/style.css diff --git a/src/main/resources/static/style/projects/projects.css b/src/main/resources/static/css/projects/projects.css similarity index 100% rename from src/main/resources/static/style/projects/projects.css rename to src/main/resources/static/css/projects/projects.css diff --git a/src/main/resources/static/style/skills/skills.css b/src/main/resources/static/css/skills/skills.css similarity index 100% rename from src/main/resources/static/style/skills/skills.css rename to src/main/resources/static/css/skills/skills.css diff --git a/src/main/resources/static/js/skills/fetchSecondarySkills.js b/src/main/resources/static/js/skills/fetchSecondarySkills.js new file mode 100644 index 0000000..57d786d --- /dev/null +++ b/src/main/resources/static/js/skills/fetchSecondarySkills.js @@ -0,0 +1,18 @@ +document.getElementById("primarySkill").addEventListener("change", function () { + var primarySkillId = this.value; + fetch("/skills/secondary-skills?primarySkillId=" + primarySkillId) + .then((response) => response.json()) + .then((data) => { + console.log("Fetch response data:", data); + var secondarySkillSelect = document.getElementById("secondarySkill"); + secondarySkillSelect.innerHTML = + ''; + data.forEach(function (secondarySkill) { + var option = document.createElement("option"); + option.value = secondarySkill.ssid; + option.text = secondarySkill.description; + secondarySkillSelect.add(option); + }); + }) + .catch((error) => console.error("Error fetching secondary skills:", error)); +}); diff --git a/src/main/resources/static/style/notes/notes.css b/src/main/resources/static/style/notes/notes.css deleted file mode 100644 index e116ab0..0000000 --- a/src/main/resources/static/style/notes/notes.css +++ /dev/null @@ -1 +0,0 @@ -/* Placeholder */ diff --git a/src/main/resources/templates/core/_header.html b/src/main/resources/templates/core/_header.html index 9bf1376..45598ec 100644 --- a/src/main/resources/templates/core/_header.html +++ b/src/main/resources/templates/core/_header.html @@ -5,26 +5,9 @@