diff --git a/client/web/admin/src/components/CTheMainNav.vue b/client/web/admin/src/components/CTheMainNav.vue
index dd158e3a2..63c7e1288 100644
--- a/client/web/admin/src/components/CTheMainNav.vue
+++ b/client/web/admin/src/components/CTheMainNav.vue
@@ -7,12 +7,12 @@
:key="g"
tag="li"
>
-
{{ $t(grp.header.label) }}
-
+
-
+
{{ $t('users.title') }}
-
+
{{ users.total }}
-
+
{{ $t('users.total') }}
@@ -75,7 +75,7 @@
>
{{ users.suspended }}
-
+
{{ $t('users.suspended') }}
@@ -91,7 +91,7 @@
>
{{ users.deleted }}
-
+
{{ $t('users.deleted') }}
@@ -123,9 +123,9 @@
{{ roles.valid }}
-
+
{{ $t('roles.title') }}
-
+
@@ -142,7 +142,7 @@
>
{{ roles.total }}
-
+
{{ $t('roles.total') }}
@@ -158,7 +158,7 @@
>
{{ roles.archived }}
-
+
{{ $t('roles.archived') }}
@@ -174,7 +174,7 @@
>
{{ roles.deleted }}
-
+
{{ $t('roles.deleted') }}
@@ -204,9 +204,9 @@
{{ applications.valid }}
-
+
{{ $t('applications.title') }}
-
+
@@ -223,7 +223,7 @@
>
{{ applications.total }}
-
+
{{ $t('applications.total') }}
@@ -239,7 +239,7 @@
>
{{ applications.deleted }}
-
+
{{ $t('applications.deleted') }}
@@ -316,6 +316,7 @@ export default {
return
}
+ const themeVariables = this.getThemeVariables()
const { dates, values } = this.getUserTimeline()
this.userChart = {
@@ -323,15 +324,31 @@ export default {
trigger: 'axis',
},
textStyle: {
- fontFamily: 'Poppins-Regular',
+ fontFamily: themeVariables['font-regular'],
+ color: themeVariables.black,
},
xAxis: {
type: 'category',
data: dates,
boundaryGap: false,
+ axisTick: {
+ show: false,
+ },
+ axisLine: {
+ show: false,
+ },
},
yAxis: {
type: 'value',
+ axisLine: {
+ show: false,
+ onZero: false,
+ },
+ splitLine: {
+ lineStyle: {
+ color: [themeVariables['secondary']],
+ },
+ },
},
grid: {
top: 20,
@@ -354,6 +371,18 @@ export default {
}
},
+ getThemeVariables () {
+ const getCssVariable = (variableName) => {
+ return getComputedStyle(document.documentElement).getPropertyValue(variableName).trim()
+ }
+
+ // Turn below into an object with key value pairs
+ return ['white', 'black', 'primary', 'secondary', 'success', 'warning', 'danger', 'light', 'extra-light', 'dark', 'font-regular'].reduce((acc, variable) => {
+ acc[variable] = getCssVariable(`--${variable}`)
+ return acc
+ }, {})
+ },
+
getUserTimeline () {
const data = this.users.dailyCreated
const unit = this.getComfortableTimeUnit(data)