Compare commits
2 Commits
221b4f1b32
...
e7bbe4d628
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e7bbe4d628 | ||
![]() |
48320d52af |
|
@ -63,8 +63,8 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
||||
<div class="link-item-container">
|
||||
<a
|
||||
:href="urlResolver('qq309202')"
|
||||
<NuxtLink
|
||||
:to="urlResolver('qq309202')"
|
||||
target="_blank"
|
||||
class="btn link-item"
|
||||
>
|
||||
|
@ -80,13 +80,13 @@
|
|||
<div class="more-text-container">
|
||||
<span class="more-text"> مشاهده بیشتر </span>
|
||||
</div>
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md mb-sm-2 mb-md-0">
|
||||
<div class="link-item-container">
|
||||
<a
|
||||
:href="urlResolver('qq308235')"
|
||||
<NuxtLink
|
||||
:to="urlResolver('qq308235')"
|
||||
target="_blank"
|
||||
class="btn link-item"
|
||||
>
|
||||
|
@ -100,13 +100,13 @@
|
|||
<div class="more-text-container">
|
||||
<span class="more-text"> مشاهده بیشتر </span>
|
||||
</div>
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
||||
<div class="link-item-container">
|
||||
<a
|
||||
:href="urlResolver('qq38162')"
|
||||
<NuxtLink
|
||||
:to="urlResolver('qq38162')"
|
||||
target="_blank"
|
||||
class="btn link-item"
|
||||
>
|
||||
|
@ -120,13 +120,13 @@
|
|||
<div class="more-text-container">
|
||||
<span class="more-text"> مشاهده بیشتر </span>
|
||||
</div>
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 mb-2 mb-sm-0 col-md">
|
||||
<div class="link-item-container">
|
||||
<a
|
||||
:href="urlResolver('qq233930')"
|
||||
<NuxtLink
|
||||
:to="urlResolver('qq233930')"
|
||||
target="_blank"
|
||||
class="btn link-item"
|
||||
>
|
||||
|
@ -140,7 +140,7 @@
|
|||
<div class="more-text-container">
|
||||
<span class="more-text"> مشاهده بیشتر </span>
|
||||
</div>
|
||||
</a>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -156,7 +156,8 @@ import searchApi from "~/apis/searchApi";
|
|||
import { mapState, mapActions } from "pinia";
|
||||
import { useCommonStore } from "~/stores/commonStore";
|
||||
import { useStorage } from "@vueuse/core";
|
||||
import {clearBodyClass} from "@manuals/utilities"
|
||||
import { clearBodyClass } from "@manuals/utilities";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
export default {
|
||||
beforeMount() {
|
||||
|
@ -164,7 +165,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.setBodyClass("majles-user-panel");
|
||||
let localStoageSearchSchema = useStorage("searchSchema",undefined).value;
|
||||
let localStoageSearchSchema = useStorage("searchSchema", undefined).value;
|
||||
if (localStoageSearchSchema) {
|
||||
let searchSchema = JSON.parse(localStoageSearchSchema);
|
||||
this.schemasSetter(searchSchema);
|
||||
|
@ -255,7 +256,9 @@ export default {
|
|||
},
|
||||
|
||||
urlResolver(_id) {
|
||||
return "";
|
||||
const router = `search/qasection/${_id}/show`;
|
||||
|
||||
return router;
|
||||
// const routeData = this.$router.resolve({
|
||||
// path: "navigation",
|
||||
// params: {
|
||||
|
@ -272,7 +275,6 @@ export default {
|
|||
|
||||
<style lang="scss">
|
||||
@import "../../../assets/majles/scss/majles";
|
||||
|
||||
.custom-class {
|
||||
.dropdown-toggle {
|
||||
color: rgba(0, 0, 0, 0.5) !important;
|
||||
|
|
|
@ -86,13 +86,13 @@ import repoApi from "~/apis/repoApi";
|
|||
import { mapState } from "pinia";
|
||||
import { useCommonStore } from "~/stores/commonStore";
|
||||
|
||||
import SelectComponentDefault from "~/components/SelectComponentDefault.vue";
|
||||
import SelectComponent from "~/components/SelectComponent.vue";
|
||||
import InputComponent from "~/components/InputComponent.vue";
|
||||
import LabelComponent from "~/components/LabelComponent.vue";
|
||||
import tagsComponent from "~/components/tagsComponent.vue";
|
||||
import DateComponent from "~/components/DateComponent.vue";
|
||||
import TextareaComponent from "~/components/TextareaComponent.vue";
|
||||
import SelectComponentDefault from "~/components/other/SelectComponentDefault.vue";
|
||||
import SelectComponent from "~/components/other/SelectComponent.vue";
|
||||
import InputComponent from "~/components/other/InputComponent.vue";
|
||||
import LabelComponent from "~/components/other/LabelComponent.vue";
|
||||
import tagsComponent from "~/components/other/tagsComponent.vue";
|
||||
import DateComponent from "~/components/other/DateComponent.vue";
|
||||
import TextareaComponent from "~/components/other/TextareaComponent.vue";
|
||||
/**
|
||||
* @vue-data {Object} [listUpdatedText = {}] - متنهای بهروزشده در لیست.
|
||||
* @vue-data {undefined} [httpService = undefined] - سرویس HTTP برای درخواستها.
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
|
@ -50,10 +50,10 @@
|
|||
</div>
|
||||
|
||||
<button
|
||||
class="btn p-0 mr-auto"
|
||||
class="btn p-0 me-auto"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#navbarSupportedContent"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbarSupportedContent"
|
||||
aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation"
|
||||
|
@ -63,7 +63,7 @@
|
|||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<ul class="navbar-nav ml-auto mr-md-5">
|
||||
<ul class="navbar-nav ms-auto me-md-5">
|
||||
<!-- <li class="nav-item active">
|
||||
<a class="nav-link" href="#"
|
||||
>پیشخوان <span class="sr-only">(current)</span></a
|
||||
|
@ -77,7 +77,7 @@
|
|||
class="nav-link dropdown-toggle"
|
||||
id="navbarDropdown"
|
||||
role="button"
|
||||
data-toggle="dropdown"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
|
@ -87,13 +87,13 @@
|
|||
<!-- <my-system class="list" layout="list"></my-system> -->
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<li class="nav-item dropdown">
|
||||
<a
|
||||
class="nav-link dropdown-toggle"
|
||||
href="#"
|
||||
id="navbarDropdown"
|
||||
role="button"
|
||||
data-toggle="dropdown"
|
||||
data-bs-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
|
@ -128,7 +128,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ml-md-3 mr-auto">
|
||||
<ul class="navbar-nav ms-md-3 me-auto">
|
||||
<li class="nav-item">
|
||||
<notification></notification>
|
||||
</li>
|
||||
|
@ -151,12 +151,14 @@
|
|||
<the-sidebar
|
||||
:showUserAvatar="true"
|
||||
:menu="$attrs.menu"
|
||||
@statusPag="statusPag"
|
||||
></the-sidebar>
|
||||
|
||||
<main class="main-page__content" :class="{ expanded: !isSidebarCollapsed }">
|
||||
<!-- <div class="pages list-page"> -->
|
||||
<!-- <div class="pages-content align-items-stretch p-0"> -->
|
||||
<!-- <div class="flex-grow-1"> -->
|
||||
|
||||
<slot></slot>
|
||||
<!-- </div> -->
|
||||
<!-- </div> -->
|
||||
|
@ -169,7 +171,7 @@
|
|||
import { mapState, mapActions } from "pinia";
|
||||
import { useCommonStore } from "~/stores/commonStore";
|
||||
|
||||
import {clearBodyClass} from "@manuals/utilities"
|
||||
import { clearBodyClass } from "@manuals/utilities";
|
||||
export default {
|
||||
mounted() {
|
||||
// this.setBodyClass("default-dashboard");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<!-- majles dashbaord -->
|
||||
<search-section v-if="buildName() == 'majles'"></search-section>
|
||||
<!-- monir dashboard -->
|
||||
<default-dashboard></default-dashboard>
|
||||
<default-dashboard v-else></default-dashboard>
|
||||
<!-- </ClientOnly> -->
|
||||
</NuxtLayout>
|
||||
</div>
|
||||
|
|
|
@ -1,164 +0,0 @@
|
|||
import type {
|
||||
activeSearchChartSchema,
|
||||
activeSearchListSchema,
|
||||
Domain,
|
||||
helpActiveSchema,
|
||||
helpSchema,
|
||||
searchActiveTab,
|
||||
searchChartActiveTab,
|
||||
searchListActiveTab,
|
||||
searchSchema,
|
||||
searchSynonymForm,
|
||||
searchSynonymTitle,
|
||||
selectionFilterItems,
|
||||
} from "~/types/searchTypes";
|
||||
|
||||
export const useSearchStore = defineStore("searchStore", {
|
||||
persist: {
|
||||
storage: piniaPluginPersistedstate.localStorage(),
|
||||
}, state: () => ({
|
||||
domainActive: undefined as Domain | undefined,
|
||||
// activeTab: undefined,
|
||||
|
||||
searchActiveTab: undefined as searchActiveTab | undefined,
|
||||
searchSchema: undefined as searchSchema | undefined,
|
||||
helpSchema: undefined as helpSchema | undefined,
|
||||
searchActiveSchema: undefined as searchActiveTab | undefined,
|
||||
helpActiveSchema: undefined as helpActiveSchema | undefined,
|
||||
|
||||
searchListActiveTab: undefined as searchListActiveTab | undefined,
|
||||
searchListSchema: undefined as searchListActiveTab[] | undefined,
|
||||
activeSearchListSchema: undefined as activeSearchListSchema | undefined,
|
||||
|
||||
searchChartActiveTab: undefined as searchChartActiveTab | undefined,
|
||||
searchChartSchema: undefined as searchChartActiveTab[] | undefined,
|
||||
activeSearchChartSchema: undefined as activeSearchChartSchema | undefined,
|
||||
|
||||
searchSynonymTitle: undefined as searchSynonymTitle | undefined,
|
||||
searchSynonymForm: undefined as searchSynonymForm | undefined,
|
||||
|
||||
selectionFilterItems: [] as selectionFilterItems,
|
||||
}),
|
||||
getters: {
|
||||
searchSynonymTitleGetter(state) {
|
||||
return state.searchSynonymTitle;
|
||||
},
|
||||
searchSynonymFormGetter(state) {
|
||||
return state.searchSynonymForm;
|
||||
},
|
||||
|
||||
domainActiveGetter(state) {
|
||||
return state.domainActive;
|
||||
},
|
||||
// activeTabGetter(state) {
|
||||
// return state.activeTab;
|
||||
// },
|
||||
|
||||
// search page
|
||||
searchActiveTabGetter(state) {
|
||||
return state.searchActiveTab;
|
||||
},
|
||||
searchSchemaGetter(state) {
|
||||
return state.searchSchema;
|
||||
},
|
||||
helpSchemaGetter(state) {
|
||||
return state.helpSchema;
|
||||
},
|
||||
helpActiveSchemaGetter(state) {
|
||||
return state.helpActiveSchema;
|
||||
},
|
||||
searchActiveSchemaGetter(state) {
|
||||
return state.searchActiveSchema;
|
||||
},
|
||||
|
||||
// search list
|
||||
searchListActiveTabGetter(state) {
|
||||
return state.searchListActiveTab;
|
||||
},
|
||||
searchListSchemaGetter(state) {
|
||||
return state.searchListSchema;
|
||||
},
|
||||
searchListActiveSchemaGetter(state) {
|
||||
return state.activeSearchListSchema;
|
||||
},
|
||||
|
||||
// search chart
|
||||
searchChartActiveTabGetter(state) {
|
||||
return state.searchChartActiveTab;
|
||||
},
|
||||
searchChartSchemaGetter(state) {
|
||||
return state.searchChartSchema;
|
||||
},
|
||||
searchChartActiveSchemaGetter(state) {
|
||||
return state.activeSearchChartSchema;
|
||||
},
|
||||
selectionFilterItemsGetter(state) {
|
||||
return state.selectionFilterItems;
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
searchSynonymFormSetter(searchSynonymForm = undefined) {
|
||||
this.searchSynonymForm = searchSynonymForm;
|
||||
},
|
||||
searchSynonymTitleSetter(searchSynonymTitle = undefined) {
|
||||
this.searchSynonymTitle = searchSynonymTitle;
|
||||
},
|
||||
|
||||
domainActiveSetter(domain = undefined) {
|
||||
this.domainActive = domain;
|
||||
},
|
||||
// activeTabSetter(activeTab = undefined) {
|
||||
// this.activeTab = activeTab;
|
||||
// },
|
||||
|
||||
// search page
|
||||
searchActiveTabSetter(searchActiveTab: searchActiveTab = undefined) {
|
||||
this.searchActiveTab = searchActiveTab;
|
||||
},
|
||||
searchSchemaSetter(searchSchema = undefined) {
|
||||
this.searchSchema = searchSchema;
|
||||
},
|
||||
helpSchemaSetter(helpSchema = undefined) {
|
||||
this.helpSchema = helpSchema;
|
||||
},
|
||||
helpActiveSchemaSetter(helpActiveSchema = undefined) {
|
||||
this.helpActiveSchema = helpActiveSchema;
|
||||
},
|
||||
searchActiveSchemaSetter(searchActiveSchema = undefined) {
|
||||
this.searchActiveSchema = searchActiveSchema;
|
||||
},
|
||||
|
||||
// search list
|
||||
searchListActiveTabSetter(searchListActiveTab = undefined) {
|
||||
this.searchListActiveTab = searchListActiveTab;
|
||||
},
|
||||
searchListSchemaSetter(searchListSchema = undefined) {
|
||||
this.searchListSchema = searchListSchema;
|
||||
},
|
||||
searchListActiveSchemaSetter(activeSearchListSchema = undefined) {
|
||||
this.activeSearchListSchema = activeSearchListSchema;
|
||||
},
|
||||
|
||||
// search chart
|
||||
searchChartActiveTabSetter(searchChartActiveTab = undefined) {
|
||||
this.searchChartActiveTab = searchChartActiveTab;
|
||||
},
|
||||
searchChartSchemaSetter(searchChartSchema = undefined) {
|
||||
this.searchChartSchema = searchChartSchema;
|
||||
},
|
||||
searchChartActiveSchemaSetter(activeSearchChartSchema = undefined) {
|
||||
this.activeSearchChartSchema = activeSearchChartSchema;
|
||||
},
|
||||
selectionFilterItemsSetter(selectionFilterItems = []) {
|
||||
this.selectionFilterItems = <selectionFilterItems>selectionFilterItems;
|
||||
},
|
||||
},
|
||||
});
|
||||
// export default {
|
||||
// namespaced:true,
|
||||
|
||||
// state,
|
||||
// actions,
|
||||
// mutations,
|
||||
// getters
|
||||
// };
|
|
@ -1 +1 @@
|
|||
Subproject commit 79d854a9912878646da9eba6a06eedb0bbd0bf90
|
||||
Subproject commit 6d8478f019fcc06b269a400c704cd6c4358f8caf
|
Loading…
Reference in New Issue
Block a user