-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafael
committed
Sep 22, 2024
1 parent
e0d80a0
commit 6eaa08d
Showing
4 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
import { writable } from "svelte/store"; | ||
import { Workout } from "./classes/Workout"; | ||
import { Question } from "./classes/Question"; | ||
import { persisted } from "svelte-persisted-store"; | ||
|
||
export const Workouts = writable<Workout[]>([]) | ||
|
||
export const CurrentWorkout = writable<Workout>(null) | ||
|
||
export const CurrentQuestion = writable<Question>(null) | ||
|
||
export const AmountOfNumbers = writable<number>(2) | ||
|
||
export const NumberLength = writable<number>(1) | ||
|
||
export const AmountOfQuestions = writable<number>(10) | ||
|
||
export const UsePlus = writable<boolean>(true) | ||
|
||
export const UseMinus = writable<boolean>(true) | ||
|
||
export const UseMultiply = writable<boolean>(true) | ||
export const AmountOfNumbers = persisted<number>("amountOfNumbers", 2) | ||
export const NumberLength = persisted<number>("numberLength", 1) | ||
export const AmountOfQuestions = persisted<number>("amountOfQuestions", 10) | ||
export const UsePlus = persisted<boolean>("usePlus", true) | ||
export const UseMinus = persisted<boolean>("useMinus", true) | ||
export const UseMultiply = persisted<boolean>("useMultiply", true) |