feat: add initial application structure with configuration, UI components, and state management
This commit is contained in:
parent
fadf94002c
commit
0af6b17792
56 changed files with 6137 additions and 129 deletions
28
stores/wizard.ts
Normal file
28
stores/wizard.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useWizardStore = defineStore(
|
||||
"wizard",
|
||||
() => {
|
||||
const currentStep = ref(1);
|
||||
|
||||
function setStep(step: number) {
|
||||
currentStep.value = Math.min(Math.max(1, step), 5);
|
||||
}
|
||||
|
||||
function reset() {
|
||||
currentStep.value = 1;
|
||||
}
|
||||
|
||||
return {
|
||||
currentStep,
|
||||
setStep,
|
||||
reset,
|
||||
};
|
||||
},
|
||||
{
|
||||
persist: {
|
||||
key: "urgent-tools-wizard",
|
||||
paths: ["currentStep"],
|
||||
},
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue