some refrectoring on admin package
This commit is contained in:
parent
521eb9b2d8
commit
0ed839023e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Pusher JavaScript Library v7.2.0
|
||||
* Pusher JavaScript Library v7.4.0
|
||||
* https://pusher.com/
|
||||
*
|
||||
* Copyright 2020, Pusher
|
||||
|
|
@ -18,13 +18,13 @@
|
|||
*/
|
||||
|
||||
/*!
|
||||
* Vue.js v2.7.7
|
||||
* Vue.js v2.7.10
|
||||
* (c) 2014-2022 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* jQuery JavaScript Library v3.6.0
|
||||
* jQuery JavaScript Library v3.6.1
|
||||
* https://jquery.com/
|
||||
*
|
||||
* Includes Sizzle.js
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
* Released under the MIT license
|
||||
* https://jquery.org/license
|
||||
*
|
||||
* Date: 2021-03-02T17:08Z
|
||||
* Date: 2022-08-26T17:52Z
|
||||
*/
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"/js/admin.js": "/js/admin.js?id=342ead48e2eb8d7dc7a3",
|
||||
"/css/admin.css": "/css/admin.css?id=bd6f253e4db4d12d1a57"
|
||||
"/js/admin.js": "/js/admin.js?id=3f5e669e43ad74f8b36c",
|
||||
"/css/admin.css": "/css/admin.css?id=253e4340dd4c55e09cba"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -215,8 +215,7 @@ $(function() {
|
|||
localStorage.setItem('bagisto-sidebar', this.isMenuOpen);
|
||||
},
|
||||
|
||||
checkMode(){
|
||||
|
||||
checkMode() {
|
||||
this.isDarkMode = ! this.isDarkMode;
|
||||
|
||||
localStorage.setItem('dark-mode', this.isDarkMode);
|
||||
|
|
@ -233,7 +232,7 @@ $(function() {
|
|||
return false;
|
||||
},
|
||||
|
||||
CheckIsMenuOpen: function(){
|
||||
CheckIsMenuOpen: function() {
|
||||
return this.isMenuOpen;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,23 +22,20 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
|
||||
toggle: function () {
|
||||
|
||||
this.$root.checkMode();
|
||||
|
||||
this.toggleBodyClass();
|
||||
},
|
||||
|
||||
toggleBodyClass: function(){
|
||||
|
||||
let element = document.body;
|
||||
|
||||
element.classList.toggle("dark-mode");
|
||||
|
||||
if(this.buttonText == this.darkMode){
|
||||
if (this.buttonText == this.darkMode) {
|
||||
this.buttonText = this.lightMode;
|
||||
}else{
|
||||
} else {
|
||||
this.buttonText = this.darkMode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,9 +19,12 @@ export default {
|
|||
toggle: function () {
|
||||
this.$root.toggleMenu();
|
||||
|
||||
if(this.$root.isMenuOpen && this.iconClass == 'accordian-right-icon'){
|
||||
if (
|
||||
this.$root.isMenuOpen
|
||||
&& this.iconClass == 'accordian-right-icon'
|
||||
) {
|
||||
this.iconClass = this.leftIconClass;
|
||||
}else{
|
||||
} else {
|
||||
this.iconClass = this.rightIconClass;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue