feat: rudimentary config

This commit is contained in:
2025-02-24 00:01:25 +00:00
parent 70b8b3ae55
commit b7fe76b6ff
11 changed files with 64 additions and 20 deletions

View File

@ -1,19 +1,25 @@
<script setup lang="ts">
import { usePkgStore } from '../stores';
import Fieldset from 'primevue/fieldset';
import Toggle from 'primevue/toggleswitch';
const store = usePkgStore();
const setValue = async (value: boolean) => {
await store.set_cfg('intel', value);
}
</script>
<template>
<Fieldset>
<div class="flex w-full flex-col">
<label for="switch" class="flex flex-row w-full p-2">
<div class="grow">Aime emulation</div>
<Toggle disabled inputId="switch" />
<div class="grow">OpenSSL crash workaround for Intel 10th gen</div>
<Toggle
inputId="switch"
:modelValue="store.cfg('intel') === 'true'"
v-on:value-change="setValue" />
</label>
<div class="flex flex-row w-full p-2">
<div class="grow">Enable console</div>
<Toggle disabled />
</div>
</div>
</Fieldset>
</template>