diff --git a/Frontend/README.md b/Frontend/README.md index 831a223..3a9b0e0 100644 --- a/Frontend/README.md +++ b/Frontend/README.md @@ -1,4 +1,4 @@ -# new-frontend +# Modern frontend for Release 11 Tools This template should help get you started developing with Vue 3 in Vite. @@ -44,3 +44,46 @@ npm run build ```sh npm run lint ``` + +## Structure of Vuejs 3 components and views in this project + +For this document's needs components and views will be named "modules" even though this is not a correct term for these files officially. + +### Main structure + +- \ diff --git a/Frontend/src/components/common/ThemeSwitcherComponent.vue b/Frontend/src/components/common/ThemeSwitcherComponent.vue index 789602f..f5b75ea 100644 --- a/Frontend/src/components/common/ThemeSwitcherComponent.vue +++ b/Frontend/src/components/common/ThemeSwitcherComponent.vue @@ -1,30 +1,22 @@ diff --git a/Frontend/src/components/formatter/HtmlButtonFormatterComponent.vue b/Frontend/src/components/formatter/HtmlButtonFormatterComponent.vue index b65cba0..43a7c9c 100644 --- a/Frontend/src/components/formatter/HtmlButtonFormatterComponent.vue +++ b/Frontend/src/components/formatter/HtmlButtonFormatterComponent.vue @@ -21,6 +21,8 @@ const emit = defineEmits([ 'update:error' ]) +const fetchLink = document.location.protocol + "//" + document.location.hostname + "/libxml/html/" + chooseType(props.formatType); + function chooseType(formatType: String){ if (formatType == "HTML -> XML"){ return "convert"; @@ -45,8 +47,6 @@ function createBody(){ }); } -const fetchLink = document.location.protocol + "//" + document.location.hostname + "/libxml/html/" + chooseType(props.formatType); - function process(){ fetch(fetchLink, {body:createBody(), method: "POST"}) diff --git a/Frontend/src/components/landing/LandingComponent.vue b/Frontend/src/components/landing/LandingComponent.vue index 22cfd17..7c1aef8 100644 --- a/Frontend/src/components/landing/LandingComponent.vue +++ b/Frontend/src/components/landing/LandingComponent.vue @@ -19,7 +19,7 @@