HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/assets/packages/adminsidepanel/src/store/getters.js
export default {
    substractContainer: state => {
        let bodyWidth = (1 - (parseInt(state.sidebarwidth)/$('#vue-apps-main-container').width()))*100;
        let collapsedBodyWidth = (1 - (parseInt('98px')/$('#vue-apps-main-container').width()))*100;
        return Math.floor(state.isCollapsed ? collapsedBodyWidth : bodyWidth) + '%';
    },
    sideBarSize : state => {
        let sidebarWidth = (parseInt(state.sidebarwidth)/$('#vue-apps-main-container').width())*100;
        let collapsedSidebarWidth = (parseInt(98)/$('#vue-apps-main-container').width())*100;
        return Math.ceil(state.isCollapsed ? collapsedSidebarWidth : sidebarWidth) + '%';
    },
    isRTL: state => {
        return document.getElementsByTagName("html")[0].getAttribute("dir") == 'rtl';
    },
    isCollapsed: state => {
        if(window.innerWidth < 768) {
            return false;
        }
        return state.isCollapsed;
    }
};