diff --git a/src/components/HomeCard.vue b/src/components/HomeCard.vue index f4b28f0..7eb2b26 100644 --- a/src/components/HomeCard.vue +++ b/src/components/HomeCard.vue @@ -16,13 +16,15 @@ Update View older versions + + Settings \ No newline at end of file + diff --git a/src/components/SettingsCard.vue b/src/components/SettingsCard.vue new file mode 100644 index 0000000..2988d31 --- /dev/null +++ b/src/components/SettingsCard.vue @@ -0,0 +1,46 @@ + + + + + + + SETTINGS + Board + v1.1.1 + + + + Disconnect + + + + + + Set source + + Back + + + + + \ No newline at end of file diff --git a/src/views/HomePage.vue b/src/views/HomePage.vue index e530d7c..d97da82 100644 --- a/src/views/HomePage.vue +++ b/src/views/HomePage.vue @@ -13,11 +13,12 @@ - - - - - + + + + + + @@ -30,28 +31,45 @@ import DetailsCard from "@/components/DetailsCard.vue"; import ArchiveCard from "@/components/ArchiveCard.vue"; import FlashCard from "@/components/FlashCard.vue"; import {ref} from "vue"; +import SettingsCard from "@/components/SettingsCard.vue"; +let prevCard = 0; const shownCard = ref(0); const showArchive = () => { + prevCard = shownCard.value; shownCard.value = 3; } -const showHome = () => { - shownCard.value = 1; +const goBack = () => { + shownCard.value = prevCard; + prevCard = 0; } const showDetails = () => { + prevCard = shownCard.value; shownCard.value = 2; } const showFlash = () => { + prevCard = shownCard.value; shownCard.value = 4; } const showScan = () => { + prevCard = shownCard.value; shownCard.value = 0; } + +const goHome = () => { + prevCard = shownCard.value; + shownCard.value = 1; +} + +const showSettings = () => { + prevCard = shownCard.value; + shownCard.value = 5; +}