stash
This commit is contained in:
parent
17bfb84a94
commit
2fe8d14c2c
35 changed files with 1976 additions and 2134 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {createApp} from 'vue'
|
||||
|
||||
import {BootstrapIconsPlugin} from 'bootstrap-icons-vue';
|
||||
import App from './App.vue'
|
||||
|
||||
|
|
@ -16,6 +17,8 @@ _nacl.instantiate((nacl) => {
|
|||
app.use(router).mount('#app')
|
||||
});
|
||||
|
||||
//app.component(VueQrcode.name, VueQrcode);
|
||||
|
||||
window.closeAllDropdowns = function () {
|
||||
const dropdowns = document.getElementsByClassName("dropdown-menu");
|
||||
let i;
|
||||
|
|
@ -27,6 +30,7 @@ window.closeAllDropdowns = function () {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
window.onclick = function (event) {
|
||||
if (!event.target.matches('.dropdown-toggle *')
|
||||
&& !event.target.matches('.dropdown-toggle')
|
||||
|
|
@ -39,7 +43,7 @@ window.onclick = function (event) {
|
|||
&& !event.target.matches('.sidebar *')
|
||||
&& !event.target.matches('.sidebar')) {
|
||||
const sidebar = document.getElementById("sidebar");
|
||||
const marginLeft = parseInt(getComputedStyle(sidebar).marginLeft);
|
||||
const marginLeft = parseInt(window.getComputedStyle(sidebar).marginLeft);
|
||||
if (sidebar.classList.contains('collapsed') && marginLeft === 0) {
|
||||
sidebar.classList.remove('collapsed');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue