@dracul/customize-frontend 1.14.6 → 1.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dracul/customize-frontend",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.9",
|
|
4
4
|
"description": "vue custom logo, custom theme, custom colors, i18n configuration}",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"author": "Cristian Incarnato",
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "3590807232a8c8fb71e55a0ac1e3d1ecfd449b00",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@dracul/common-frontend": "^1.14.2",
|
|
24
24
|
"@dracul/user-frontend": "^1.14.6"
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<v-tooltip bottom>
|
|
3
|
+
<template v-slot:activator="{on, attrs}">
|
|
4
|
+
<div v-on="on"
|
|
5
|
+
v-bind="attrs"
|
|
6
|
+
>
|
|
7
|
+
<v-switch
|
|
8
|
+
:dense="dense"
|
|
9
|
+
v-model="dark"
|
|
10
|
+
:color="color"
|
|
11
|
+
hide-details
|
|
12
|
+
:prepend-icon="showIcon ? icon : null"
|
|
13
|
+
:label="showLabel ? getLabel : null"
|
|
14
|
+
></v-switch>
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
<span>{{ getLabel }}</span>
|
|
19
|
+
</v-tooltip>
|
|
20
|
+
|
|
9
21
|
</template>
|
|
10
22
|
|
|
11
23
|
<script>
|
|
@@ -15,7 +27,9 @@ export default {
|
|
|
15
27
|
label: {type: String, default: 'customization.darkMode'},
|
|
16
28
|
color: {type: String, default: 'green'},
|
|
17
29
|
dense: {type: Boolean, default: true},
|
|
18
|
-
|
|
30
|
+
icon: {type: String, default: 'dark_mode'},
|
|
31
|
+
showIcon: {type: Boolean, default: true},
|
|
32
|
+
showLabel: {type: Boolean, default: false},
|
|
19
33
|
},
|
|
20
34
|
computed: {
|
|
21
35
|
dark: {
|
package/src/pages/CustomConfigPage/CustomizationManagement/CustomizationColors/ColorsPreview.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-card class="pa-3" :style="{backgroundColor: background}">
|
|
3
|
-
<v-card-title class="mb-3 justify-center" :style="{background: appBar, color:
|
|
3
|
+
<v-card-title class="mb-3 justify-center" :style="{background: appBar, color: onAppBar}">
|
|
4
4
|
<div v-t="'customization.preview'"></div>
|
|
5
5
|
</v-card-title>
|
|
6
6
|
<v-card-text class="text-center px-3">
|
|
@@ -22,6 +22,7 @@ export default {
|
|
|
22
22
|
props: {
|
|
23
23
|
background: {type: String},
|
|
24
24
|
appBar: {type: String},
|
|
25
|
+
onAppBar: {type: String},
|
|
25
26
|
primary: {type: String},
|
|
26
27
|
onPrimary: {type: String},
|
|
27
28
|
secondary: {type: String},
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
<colors-preview
|
|
81
81
|
:background="formColors.lightTheme.background"
|
|
82
82
|
:app-bar="formColors.lightTheme.appBar"
|
|
83
|
+
:on-app-bar="formColors.lightTheme.onAppBar"
|
|
83
84
|
:primary="formColors.lightTheme.primary"
|
|
84
85
|
:on-primary="formColors.lightTheme.onPrimary"
|
|
85
86
|
:secondary="formColors.lightTheme.secondary"
|
|
@@ -174,6 +175,7 @@
|
|
|
174
175
|
<colors-preview
|
|
175
176
|
:background="formColors.darkTheme.background"
|
|
176
177
|
:app-bar="formColors.darkTheme.appBar"
|
|
178
|
+
:on-app-bar="formColors.darkTheme.onAppBar"
|
|
177
179
|
:primary="formColors.darkTheme.primary"
|
|
178
180
|
:on-primary="formColors.darkTheme.onPrimary"
|
|
179
181
|
:secondary="formColors.darkTheme.secondary"
|