forked from akanyan/STARTLINER
feat: rudimentary config
This commit is contained in:
@ -20,7 +20,7 @@ const store = usePkgStore();
|
||||
store.setupListeners();
|
||||
|
||||
const currentTab = ref('3');
|
||||
const startEnabled = ref(true);
|
||||
const startEnabled = ref(false);
|
||||
|
||||
const loadProfile = async () => {
|
||||
await store.reloadProfile();
|
||||
@ -42,6 +42,7 @@ const loadProfile = async () => {
|
||||
}
|
||||
if (store.profile !== null) {
|
||||
changePrimaryColor(store.profile.game);
|
||||
startEnabled.value = true;
|
||||
currentTab.value = '0';
|
||||
}
|
||||
|
||||
|
@ -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