2025-02-01 11:06:10 +00:00
|
|
|
<template>
|
2025-02-11 07:09:05 +00:00
|
|
|
<main >
|
|
|
|
<the-sidebar :showUserAvatar="true" :menu="$attrs.menu"></the-sidebar>
|
2025-02-01 11:06:10 +00:00
|
|
|
|
|
|
|
<section
|
|
|
|
class="main-page__content"
|
|
|
|
:class="{ expanded: !isSidebarCollapsed }"
|
|
|
|
>
|
|
|
|
<slot name="named-slot"></slot>
|
|
|
|
<slot></slot>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
// import { mapActions, mapState } from "pinia";
|
2025-02-11 07:09:05 +00:00
|
|
|
import { useCommonStore } from "~/stores/commonStore";
|
|
|
|
import { clearBodyClass } from "@manuals/utilities";
|
|
|
|
import { mapState } from "pinia";
|
2025-02-01 11:06:10 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
beforeMount() {
|
|
|
|
clearBodyClass();
|
|
|
|
// this.uuid = Math.floor(Math.random() * 100);
|
|
|
|
// document.title = import.meta.env.VITE_SEARCH_PAGE_TITLE;
|
|
|
|
},
|
|
|
|
// mounted() {
|
|
|
|
// this.setBodyClass(this.$attrs.bodyClass);
|
|
|
|
// },
|
|
|
|
destroyed() {
|
|
|
|
clearBodyClass();
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
uuid: undefined,
|
|
|
|
};
|
|
|
|
},
|
2025-02-11 07:09:05 +00:00
|
|
|
computed: {
|
|
|
|
...mapState(useCommonStore, ["isSidebarCollapsed"]),
|
|
|
|
},
|
2025-02-01 11:06:10 +00:00
|
|
|
// methods: {
|
|
|
|
// ...mapActions(useCommonStore, ["setBodyClass"]),
|
|
|
|
// },
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
/*@import "../../assets/scss/projects/tahrir/tahrir";*/
|
|
|
|
/*@import "../../assets/scss/projects/list/list";*/
|
|
|
|
@import "../assets/search/scss/search";
|
|
|
|
|
|
|
|
.search-system .modal-backdrop.show {
|
|
|
|
display: block;
|
|
|
|
background-color: #0000003b;
|
|
|
|
}
|
|
|
|
</style>
|