You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
597 B
24 lines
597 B
import { createVersionedStore } from "@/utils/storage"; |
|
import { MWSettingsData } from "./types"; |
|
|
|
export const SettingsStore = createVersionedStore<MWSettingsData>() |
|
.setKey("mw-settings") |
|
.addVersion({ |
|
version: 0, |
|
create() { |
|
return { |
|
language: "en", |
|
captionSettings: { |
|
delay: 0, |
|
style: { |
|
color: "#ffffff", |
|
fontSize: 20, |
|
fontFamily: "inherit", |
|
textShadow: "2px 2px 2px black", |
|
backgroundColor: "#000000ff", |
|
}, |
|
}, |
|
} as MWSettingsData; |
|
}, |
|
}) |
|
.build();
|
|
|