Skip to content

Commit dd474fe

Browse files
committed
useCustomizerStore
1 parent 1e8f33e commit dd474fe

File tree

7 files changed

+15
-30
lines changed

7 files changed

+15
-30
lines changed

react/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
"@emotion/react": "^11.4.0",
88
"@emotion/styled": "^11.3.0",
99
"@mui/icons-material": "^5.0.3",
10-
"@mui/lab": "^5.0.0-alpha.50",
1110
"@mui/material": "^5.0.3",
1211
"@mui/styles": "^5.0.1",
13-
"@mui/system": "^5.0.3",
14-
"@mui/utils": "^5.0.1",
15-
"@mui/x-data-grid": "^5.0.0-beta.3",
1612
"@reduxjs/toolkit": "^2.7.0",
1713
"@tabler/icons": "^1.39.1",
1814
"ag-grid-community": "^29.3.3",

vue3/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,10 @@
5454
"vue-cli-plugin-vuetify": "2.5.5",
5555
"vue-tsc": "^1.0.24",
5656
"vuetify-loader": "^2.0.0-alpha.9"
57-
}
57+
},
58+
"browserslist": [
59+
"defaults",
60+
"not IE 11",
61+
"not op_mini all"
62+
]
5863
}

vue3/src/assets/layouts/full/FullLayout.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script setup lang="ts">
22
import { RouterView } from 'vue-router';
33
import VerticalHeaderVue from '@/assets/layouts/full/vertical-header/VerticalHeader.vue';
4-
import Customizer from '@/assets/layouts/full/customizer/Customizer.vue';
54
import { useCustomizerStore } from '@/common/stores/customizer';
65
import { useAuthStore } from '@/common/stores/auth';
76
@@ -21,7 +20,6 @@ const auth_store: any = useAuthStore();
2120
customizer.inputBg ? 'inputWithbg' : ''
2221
]"
2322
>
24-
<Customizer />
2523

2624
<VerticalHeaderVue v-if="auth_store.authenticated" />
2725

vue3/src/assets/layouts/full/customizer/Customizer.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ChecksIcon } from 'vue-tabler-icons';
77
const theme = useTheme();
88
const customizer = useCustomizerStore();
99
10-
// themes color options
1110
const themeColors = ref([
1211
{
1312
name: 'PurpleTheme',
@@ -54,8 +53,6 @@ const fontFamily = ref(['Roboto', 'Poppins', 'Inter']);
5453
</script>
5554

5655
<template style="z-index: 21">
57-
<v-navigation-drawer app temporary elevation="10" location="right" v-model="customizer.Customizer_drawer" width="280">
58-
<perfect-scrollbar style="height: 100%">
5956
<div class="pa-5">
6057
<v-row>
6158
<v-col cols="12">
@@ -108,8 +105,6 @@ const fontFamily = ref(['Roboto', 'Poppins', 'Inter']);
108105
</v-col>
109106
</v-row>
110107
</div>
111-
</perfect-scrollbar>
112-
</v-navigation-drawer>
113108
</template>
114109

115110
<style lang="scss"></style>

vue3/src/assets/layouts/full/vertical-header/ProfileDD.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { SettingsIcon, LogoutIcon, UserIcon } from 'vue-tabler-icons';
33
import { useAuthStore } from '@/common/stores/auth';
44
import { useCustomizerStore } from '@/common/stores/customizer';
5+
import Customizer from "@/assets/layouts/full/customizer/Customizer.vue";
56
67
const authStore = useAuthStore();
78
const customizer = useCustomizerStore();
@@ -12,15 +13,9 @@ const customizer = useCustomizerStore();
1213
<span class="text-subtitle-2 text-medium-emphasis">Vue Full Stack Template</span>
1314

1415
<v-divider></v-divider>
15-
<perfect-scrollbar style="height: calc(100vh - 300px); max-height: 515px">
16+
<perfect-scrollbar style=" max-height: 303rem">
1617
<v-list class="mt-3 bg-lightwarning rounded-md pa-5 my-3 circle sm-circle lg-circle">
17-
<v-list-item @click.stop="customizer.SET_CUSTOMIZER_DRAWER(!customizer.Customizer_drawer)" active-color="secondary" rounded="md">
18-
<template v-slot:prepend>
19-
<SettingsIcon size="20" class="mr-2" />
20-
</template>
2118

22-
<v-list-item-title class="text-subtitle-2"> Theme Settings</v-list-item-title>
23-
</v-list-item>
2419

2520
<v-list-item @click="authStore.logout()" active-color="secondary" rounded="md">
2621
<template v-slot:prepend>
@@ -29,7 +24,13 @@ const customizer = useCustomizerStore();
2924

3025
<v-list-item-title class="text-subtitle-2"> Logout</v-list-item-title>
3126
</v-list-item>
27+
3228
</v-list>
29+
<v-card-title class="d-flex align-center">
30+
<SettingsIcon size="20" class="mr-2" />
31+
<span class="text-h6">Theme Settings</span>
32+
</v-card-title>
33+
<Customizer />
3334
</perfect-scrollbar>
3435
</div>
3536
</template>

vue3/src/common/config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export type ConfigProps = {
2-
Sidebar_drawer: any;
3-
Customizer_drawer: boolean;
42
mini_sidebar: boolean;
53
setHorizontalLayout: boolean;
64
actTheme: string;
@@ -13,8 +11,6 @@ export type ConfigProps = {
1311
export const is_development: boolean = process.env.NODE_ENV === 'development';
1412

1513
const config: ConfigProps = {
16-
Sidebar_drawer: null,
17-
Customizer_drawer: false,
1814
mini_sidebar: false,
1915
setHorizontalLayout: false,
2016
actTheme: 'DarkGreenTheme',

vue3/src/common/stores/customizer.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import config from '@/common/config';
44
export const useCustomizerStore = defineStore({
55
id: 'customizer',
66
state: () => ({
7-
Sidebar_drawer: config.Sidebar_drawer,
8-
Customizer_drawer: config.Customizer_drawer,
97
mini_sidebar: config.mini_sidebar,
108
setHorizontalLayout: config.setHorizontalLayout,
119
actTheme: config.actTheme,
@@ -16,9 +14,5 @@ export const useCustomizerStore = defineStore({
1614
}),
1715

1816
getters: {},
19-
actions: {
20-
SET_CUSTOMIZER_DRAWER(payload: any) {
21-
this.Customizer_drawer = payload;
22-
}
23-
}
17+
2418
});

0 commit comments

Comments
 (0)