fix: moved icons and created PlatformClient so we can use the enum on the frontend

This commit is contained in:
DecDuck
2024-12-24 11:43:36 +11:00
parent a361c38e82
commit cada630e81
11 changed files with 37 additions and 31 deletions
+3 -4
View File
@@ -74,6 +74,7 @@
</template>
<script setup lang="ts">
import { IconsLinuxLogo, IconsWindowsLogo } from "#components";
import {
Listbox,
ListboxButton,
@@ -83,19 +84,17 @@ import {
} from "@headlessui/vue";
import { CheckIcon, ChevronUpDownIcon } from "@heroicons/vue/20/solid";
import type { Component } from "vue";
import LinuxLogo from "./icons/LinuxLogo.vue";
import WindowsLogo from "./icons/WindowsLogo.vue";
const model = defineModel<string>();
const values: { [key: string]: { name: string; icon: Component } } = {
Linux: {
name: "Linux",
icon: LinuxLogo,
icon: IconsLinuxLogo,
},
Windows: {
name: "Windows",
icon: WindowsLogo,
icon: IconsWindowsLogo,
},
};
</script>
+3 -4
View File
@@ -63,8 +63,7 @@
</template>
<script setup lang="ts">
import GithubLogo from './icons/GithubLogo.vue';
import DiscordLogo from './icons/DiscordLogo.vue';
import { IconsDiscordLogo, IconsGithubLogo } from '#components';
const navigation = {
games: [
@@ -92,12 +91,12 @@ const navigation = {
{
name: 'GitHub',
href: 'https://github.com/Drop-OSS',
icon: GithubLogo,
icon: IconsGithubLogo,
},
{
name: "Discord",
href: "https://discord.gg/NHx46XKJWA",
icon: DiscordLogo
icon: IconsDiscordLogo
}
],
}