Compare commits
1 Commits
main
...
rezae/feat
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c3eabf2cf2 |
|
@ -67,7 +67,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState } from "pinia";
|
import { mapActions, mapState } from "pinia";
|
||||||
import { useResearchStore } from "~/stores/researchStore";
|
|
||||||
|
import { useAuthStore } from "@stores/authStore";
|
||||||
|
import { useCommonStore } from "@stores/commonStore";
|
||||||
|
import { useEntityStore } from "@entity/entityStore";
|
||||||
|
import { useSearchStore } from "@search/stores/searchStore";
|
||||||
|
import { useResearchStore } from "@research/stores/researchStore";
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -102,13 +108,18 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions("common", ["systemsSetter", "activeSystemSetter"]),
|
...mapActions(useCommonStore, [
|
||||||
|
"systemsSetter",
|
||||||
|
"activeSystemSetter",
|
||||||
|
"searchActiveTabSetter",
|
||||||
|
]),
|
||||||
|
|
||||||
...mapActions("aiTools", [
|
...mapActions("aiTools", [
|
||||||
"aiToolsActiveActionSetter",
|
"aiToolsActiveActionSetter",
|
||||||
"aiToolsSchemaSetter",
|
"aiToolsSchemaSetter",
|
||||||
"aiToolsActiveDomainSetter",
|
"aiToolsActiveDomainSetter",
|
||||||
]),
|
]),
|
||||||
...mapActions("entity", [
|
...mapActions(useEntityStore, [
|
||||||
"activeTabSetter",
|
"activeTabSetter",
|
||||||
"entityViewSchemaSetter",
|
"entityViewSchemaSetter",
|
||||||
"activeEntityViewSchemaSetter",
|
"activeEntityViewSchemaSetter",
|
||||||
|
@ -119,10 +130,9 @@ export default {
|
||||||
"domainActiveSetter",
|
"domainActiveSetter",
|
||||||
"selectionFilterItemsSetter",
|
"selectionFilterItemsSetter",
|
||||||
]),
|
]),
|
||||||
...mapActions("search", [
|
...mapActions(useSearchStore, [
|
||||||
"domainActiveSetter", //3
|
"domainActiveSetter", //3
|
||||||
"activeTabSetter", //2
|
"activeTabSetter", //2
|
||||||
"searchActiveTabSetter",
|
|
||||||
"searchSchemaSetter",
|
"searchSchemaSetter",
|
||||||
"helpSchemaSetter",
|
"helpSchemaSetter",
|
||||||
"helpActiveSchemaSetter",
|
"helpActiveSchemaSetter",
|
||||||
|
@ -134,8 +144,8 @@ export default {
|
||||||
]),
|
]),
|
||||||
|
|
||||||
reloadPage() {
|
reloadPage() {
|
||||||
let appVersion = useStorage("app-version", '0.0.0');
|
let appVersion = useStorage("app-version", "0.0.0");
|
||||||
appVersion.vlaue = this.envVersion;
|
appVersion.vlaue = this.envVersion;
|
||||||
|
|
||||||
this.clearStorage();
|
this.clearStorage();
|
||||||
// this.clearCookies();
|
// this.clearCookies();
|
||||||
|
|
|
@ -131,7 +131,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(useSearchStore, ["searchSchemaGetter"]),
|
...mapState(useCommonStore, ["searchSchemaGetter"]),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(["checkPermissions"]),
|
...mapActions(["checkPermissions"]),
|
||||||
|
|
BIN
public/img/haditha/search-show-header.png
Normal file
BIN
public/img/haditha/search-show-header.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
|
@ -20,9 +20,15 @@ import type {
|
||||||
Pagination,
|
Pagination,
|
||||||
} from "~/types/commonTypes";
|
} from "~/types/commonTypes";
|
||||||
|
|
||||||
import type { researchTerms } from "~/types/researchTypes";
|
import type { researchTerms, searchActiveTab } from "~/types/researchTypes";
|
||||||
import type { ActiveEntityViewSchema, ActiveTab } from "~/types/entityType";
|
import type { ActiveEntityViewSchema, ActiveTab } from "~/types/entityType";
|
||||||
import type { Domain, helpActiveSchema, helpSchema } from "~/types/searchTypes";
|
import type {
|
||||||
|
Domain,
|
||||||
|
helpActiveSchema,
|
||||||
|
helpSchema,
|
||||||
|
searchSchema,
|
||||||
|
searchSynonymTitle,
|
||||||
|
} from "~/types/searchTypes";
|
||||||
|
|
||||||
export const useCommonStore = defineStore("commonStore", {
|
export const useCommonStore = defineStore("commonStore", {
|
||||||
persist: {
|
persist: {
|
||||||
|
@ -85,6 +91,11 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
appVersion: "" as string,
|
appVersion: "" as string,
|
||||||
isShowHilight: true as boolean,
|
isShowHilight: true as boolean,
|
||||||
sidebarMenu: {},
|
sidebarMenu: {},
|
||||||
|
|
||||||
|
// search
|
||||||
|
searchSynonymTitle: undefined as searchSynonymTitle | undefined,
|
||||||
|
searchActiveTab: undefined as searchActiveTab | undefined,
|
||||||
|
searchSchema: undefined as searchSchema | undefined,
|
||||||
}),
|
}),
|
||||||
getters: {
|
getters: {
|
||||||
// admin
|
// admin
|
||||||
|
@ -95,10 +106,18 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
return state.helpActiveSchema;
|
return state.helpActiveSchema;
|
||||||
},
|
},
|
||||||
// from search
|
// from search
|
||||||
|
searchSynonymTitleGetter(state) {
|
||||||
|
return state.searchSynonymTitle;
|
||||||
|
},
|
||||||
|
searchActiveTabGetter(state) {
|
||||||
|
return state.searchActiveTab;
|
||||||
|
},
|
||||||
|
searchSchemaGetter(state) {
|
||||||
|
return state.searchSchema;
|
||||||
|
},
|
||||||
domainActiveGetter(state) {
|
domainActiveGetter(state) {
|
||||||
return state.domainActive;
|
return state.domainActive;
|
||||||
},
|
},
|
||||||
|
|
||||||
diffTypeGetter(diffType) {
|
diffTypeGetter(diffType) {
|
||||||
return diffType;
|
return diffType;
|
||||||
},
|
},
|
||||||
|
@ -108,7 +127,6 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
activeEntityViewSchemaGetter(state) {
|
activeEntityViewSchemaGetter(state) {
|
||||||
return state.activeEntityViewSchema;
|
return state.activeEntityViewSchema;
|
||||||
},
|
},
|
||||||
|
|
||||||
researchTermsGetter(state) {
|
researchTermsGetter(state) {
|
||||||
return state.researchTerms;
|
return state.researchTerms;
|
||||||
},
|
},
|
||||||
|
@ -159,6 +177,17 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
this.helpActiveSchema = helpActiveSchema;
|
this.helpActiveSchema = helpActiveSchema;
|
||||||
},
|
},
|
||||||
// from search
|
// from search
|
||||||
|
searchSynonymTitleSetter(searchSynonymTitle = undefined) {
|
||||||
|
this.searchSynonymTitle = searchSynonymTitle;
|
||||||
|
},
|
||||||
|
|
||||||
|
searchActiveTabSetter(searchActiveTab: searchActiveTab) {
|
||||||
|
this.searchActiveTab = searchActiveTab;
|
||||||
|
},
|
||||||
|
searchSchemaSetter(searchSchema = undefined) {
|
||||||
|
this.searchSchema = searchSchema;
|
||||||
|
},
|
||||||
|
|
||||||
domainActiveSetter(domain = undefined) {
|
domainActiveSetter(domain = undefined) {
|
||||||
this.domainActive = domain;
|
this.domainActive = domain;
|
||||||
},
|
},
|
||||||
|
@ -185,7 +214,6 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
this.collapsed = isCollapsed;
|
this.collapsed = isCollapsed;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
SET_SECTIONS(jahatSection: JahatSection) {
|
SET_SECTIONS(jahatSection: JahatSection) {
|
||||||
this.jahatSection = jahatSection;
|
this.jahatSection = jahatSection;
|
||||||
},
|
},
|
||||||
|
@ -254,7 +282,6 @@ export const useCommonStore = defineStore("commonStore", {
|
||||||
clearUser() {
|
clearUser() {
|
||||||
this.$reset();
|
this.$reset();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
async getState() {
|
async getState() {
|
||||||
const settingsApi = (await import("~/apis/adminApi")).default;
|
const settingsApi = (await import("~/apis/adminApi")).default;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c3aa6605ff449226a04817f0fb29a4b0f77654bc
|
Subproject commit e1047621e2b74024de94331d7a1f424e83214440
|
|
@ -1 +1 @@
|
||||||
Subproject commit 117dc3e4faed749ac4dbfbf0a41899fe22282c84
|
Subproject commit f4dbda3abbe6ca4b18fe3e2f452a3684ca13c9ad
|
|
@ -1 +1 @@
|
||||||
Subproject commit dce0b4fe6cf7158ac7cb841564e78de33e23d0a3
|
Subproject commit 1c5b1d47a1a07ba1a567e9f11fd60d5408fde883
|
Loading…
Reference in New Issue
Block a user