Update various configuration files, components, and assets; enhance notification system and API endpoints; improve documentation and styles across the application.
This commit is contained in:
22
stores/theme.js
Normal file
22
stores/theme.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineStore, skipHydrate } from "pinia";
|
||||
|
||||
export const useThemeStore = defineStore({
|
||||
id: "theme",
|
||||
state: () => ({
|
||||
theme: "default",
|
||||
layoutType: "vertical",
|
||||
codeTheme: "oneDark",
|
||||
}),
|
||||
persist: true,
|
||||
actions: {
|
||||
setTheme(theme) {
|
||||
this.theme = theme;
|
||||
},
|
||||
setLayoutType(layoutType) {
|
||||
this.layoutType = layoutType;
|
||||
},
|
||||
setCodeTheme(codeTheme) {
|
||||
this.codeTheme = codeTheme;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user