feat: rudimentary config
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user