Update files

This commit is contained in:
mustafa-rezae 2025-05-17 08:06:14 +03:30
parent 78a48a5030
commit 7d311c15c0
15 changed files with 55 additions and 178 deletions

15
.gitmodules vendored
View File

@ -1,12 +1,3 @@
[submodule "systems/search_ui"] [submodule "systems/haditha_ui"]
path = systems/search_ui path = systems/haditha_ui
url = https://git2.tavasi.ir/front/search_ui.git url = https://git2.tavasi.ir/front/haditha_ui.git
[submodule "systems/research_ui"]
path = systems/research_ui
url = https://git2.tavasi.ir/front/research_ui.git
[submodule "systems/hadith_ui"]
path = systems/hadith_ui
url = https://git2.tavasi.ir/front/hadith_ui.git
[submodule "systems/chat_ui"]
path = systems/chat_ui
url = https://git2.tavasi.ir/front/chat_ui.git

View File

@ -0,0 +1,10 @@
@font-face {
font-family: sahel;
src: url("../fonts/sahel/Farsi-Digits/Sahel-FD.eot");
src: url("../fonts/sahel/Farsi-Digits/Sahel-FD.eot?#iefix")
format("embedded-opentype"),
url("../fonts/sahel/Farsi-Digits/Sahel-FD.woff2") format("woff2"),
url("../fonts/sahel/Farsi-Digits/Sahel-FD.woff") format("woff"),
url("../fonts/sahel/Farsi-Digits/Sahel-FD.ttf") format("truetype");
font-weight: normal;
}

View File

@ -100,8 +100,7 @@
import repoApi from "@apis/repoApi"; import repoApi from "@apis/repoApi";
import { mapState } from "pinia"; import { mapState } from "pinia";
import HttpService from "@services/httpService"; import HttpService from "@services/httpService";
import { useEntityStore } from "~/systems/search_ui/stores/entityStore"; import { useCommonStore } from "@stores/useCommonStore";
import { useCommonStore } from "~/systems/search_ui/stores/useCommonStore";
/** /**
* @vue-data {Object} [listUpdatedText = {}] - متنهای بهروزشده در لیست. * @vue-data {Object} [listUpdatedText = {}] - متنهای بهروزشده در لیست.
* @vue-data {undefined} [httpService = undefined] - سرویس HTTP برای درخواستها. * @vue-data {undefined} [httpService = undefined] - سرویس HTTP برای درخواستها.
@ -153,18 +152,18 @@ export default {
fetchingData: false, fetchingData: false,
httpService: undefined, httpService: undefined,
entity_source: undefined, entity_source: undefined,
entity_id : undefined, entity_id: undefined,
render: 1, render: 1,
selectedCard: null, selectedCard: null,
listUpdatedText: {}, listUpdatedText: {},
}; };
}, },
computed: { computed: {
...mapGetters(useEntityStore, [ ...mapGetters(useCommonStore, [
// "selectedItemEntityGetter", "userPermisionGetter",
"currentUser",
"activeTabGetter", "activeTabGetter",
]), ]),
...mapGetters(useCommonStore,["userPermisionGetter", "currentUser"]),
}, },
methods: { methods: {
// ...mapMutations("entity", ["SET_ITEM_ENTITY"]), // ...mapMutations("entity", ["SET_ITEM_ENTITY"]),
@ -313,17 +312,14 @@ export default {
} }
}, },
async getEntityInfo() { async getEntityInfo() {
if (this.fetchingData) return; if (this.fetchingData) return;
let key = this.$route.params.key; let key = this.$route.params.key;
let entityId = this.$route.params.id ?? this.entity_id; let entityId = this.$route.params.id ?? this.entity_id;
if(key == "qasection" || key == "rgsection") if (key == "qasection" || key == "rgsection") key = "qaqanon";
key = "qaqanon"
// console.log("qaqanon", entityId)
// console.log("qaqanon", entityId)
//if (!(key == "qasection" || key == "rgsection") || !entityId) { //if (!(key == "qasection" || key == "rgsection") || !entityId) {
if (!entityId) { if (!entityId) {
return; return;
@ -410,7 +406,6 @@ export default {
} }
}, },
/** /**
* هندلر برای رویداد فشردن کلید. * هندلر برای رویداد فشردن کلید.
* @param {Event} event - رویداد فشردن کلید. * @param {Event} event - رویداد فشردن کلید.

View File

@ -54,7 +54,7 @@
<script> <script>
import { mapState } from "pinia"; import { mapState } from "pinia";
import { useEntityStore } from "~/systems/search_ui/stores/entityStore"; import { useCommonStore } from "@stores/entityStore";
export default { export default {
props: { props: {
@ -71,7 +71,7 @@ export default {
}, },
}, },
computed: { computed: {
...mapState(useEntityStore, ["vuexEntityGetter"]), ...mapState(useCommonStore, ["vuexEntityGetter"]),
}, },
methods: { methods: {
normalPathKey(title = "") { normalPathKey(title = "") {

View File

@ -2,10 +2,7 @@
import fs from "fs-extra"; import fs from "fs-extra";
import path from "path"; import path from "path";
import chat from "./routes/chat";
import haditha from "./routes/haditha"; import haditha from "./routes/haditha";
import search from "./routes/search";
import research from "./routes/research";
const envs = import.meta.env; const envs = import.meta.env;
let sassEnvVariables = ""; let sassEnvVariables = "";
@ -25,10 +22,7 @@ export default defineNuxtConfig({
if (buildName == "haditha") { if (buildName == "haditha") {
const sourceDir = path.resolve( const sourceDir = path.resolve(
__dirname, __dirname,
`systems/${buildName.substring( `systems/${buildName}_ui/assets/${buildName}/images`
0,
buildName.length - 1
)}_ui/assets/${buildName}/images`
); // Source folder (e.g., assets/images) ); // Source folder (e.g., assets/images)
const targetDir = path.resolve(__dirname, `public/img/${buildName}`); // Target folder (e.g., public/images) const targetDir = path.resolve(__dirname, `public/img/${buildName}`); // Target folder (e.g., public/images)
@ -44,7 +38,7 @@ export default defineNuxtConfig({
"pages:extend"(pages) { "pages:extend"(pages) {
// Add custom routes // Add custom routes
pages.push(...search, ...research, ...haditha, ...chat); pages.push(...haditha);
}, },
}, },
@ -101,10 +95,7 @@ export default defineNuxtConfig({
customCollections: [ customCollections: [
{ {
prefix: "haditha", prefix: "haditha",
dir: `./systems/${buildName.substring( dir: `./systems/${buildName}_ui/assets/${buildName}/font-icons/*.svg`,
0,
buildName.length - 1
)}_ui/assets/${buildName}/font-icons/*.svg`,
}, },
], ],
}, },
@ -134,12 +125,12 @@ export default defineNuxtConfig({
}, },
plugins: [ plugins: [
{ src: "~/plugins/api.ts", mode: "client" }, { src: "~/plugins/api.ts", mode: "client" },
{ src: "~/plugins/vuelidate.ts", mode: "client" }, // { src: "~/plugins/vuelidate.ts", mode: "client" },
{ src: "~/plugins/bootstrap.client.ts", mode: "client" }, // { src: "~/plugins/bootstrap.client.ts", mode: "client" },
{ src: "~/plugins/vueJalaliMoment.ts", mode: "client" }, // { src: "~/plugins/vueJalaliMoment.ts", mode: "client" },
{ src: "~/plugins/vueDraggable.client.ts", ssr: false, mode: "client" }, // { src: "~/plugins/vueDraggable.client.ts", ssr: false, mode: "client" },
{ src: "~/plugins/vue3TreeVue.client.ts" }, // { src: "~/plugins/vue3TreeVue.client.ts" },
{ src: "~/plugins/vue3PersianDateTimePicker.client.ts" }, // { src: "~/plugins/vue3PersianDateTimePicker.client.ts" },
// { src: "~/plugins/vueTreeList.client.ts", ssr: false, mode: "client" }, // { src: "~/plugins/vueTreeList.client.ts", ssr: false, mode: "client" },
// { src: "~/plugins/vueJsTree.ts" }, // { src: "~/plugins/vueJsTree.ts" },
], ],
@ -168,10 +159,10 @@ export default defineNuxtConfig({
"@utils": "~/utils", "@utils": "~/utils",
"@manuals": "~/manuals", "@manuals": "~/manuals",
"@pages": "~/pages", "@pages": "~/pages",
"@search": "~/systems/search_ui", // "@search": "~/systems/search_ui",
"@research": "~/systems/research_ui", // "@research": "~/systems/research_ui",
"@haditha": "~/systems/hadith_ui", "@haditha": "~/systems/haditha_ui",
"@chat": "~/systems/chat_ui", // "@chat": "~/systems/chat_ui",
}, },
vite: { vite: {
assetsInclude: ["**/*.svg"], assetsInclude: ["**/*.svg"],

View File

@ -1,64 +0,0 @@
export default [
{
path: "/chat",
file: "@chat/pages/index.vue",
children: [
{
path: "",
redirect: { name: "unReads" },
},
{
path: "all/list",
name: "all",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "همه",
},
},
{
path: "privates/list",
name: "privates",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "خصوصی ها",
},
},
{
path: "groups/list",
name: "groups",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "گروه ها",
},
},
{
path: "lobbies/list",
name: "lobbies",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "تالارها",
},
},
{
path: "unreads/list",
name: "unReads",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "نخوانده",
},
},
{
path: "my-messages/list",
name: "myMessages",
file: "@chat/pages/Chat.vue",
meta: {
breadcrumb: "پیام های من",
},
},
],
},
];

View File

@ -2,58 +2,58 @@ export default [
{ {
name: "haditha", name: "haditha",
path: "/haditha", path: "/haditha",
file: "~/systems/hadith_ui/pages/haditha/index.vue", file: "~/systems/haditha_ui/pages/haditha/index.vue",
}, },
{ {
name: "hadithaSearch", name: "hadithaSearch",
path: "/haditha/search", path: "/haditha/search",
file: "~/systems/hadith_ui/pages/haditha/search/index.vue", file: "~/systems/haditha_ui/pages/haditha/search/index.vue",
}, },
{ {
name: "hadithaSearchShow", name: "hadithaSearchShow",
path: "/haditha/search/:id/:slug?", path: "/haditha/search/:id/:slug?",
file: "~/systems/hadith_ui/pages/haditha/search/[id]/[slug]/index.vue", file: "~/systems/haditha_ui/pages/haditha/search/[id]/[slug]/index.vue",
}, },
{ {
name: "hadithaChatBot", name: "hadithaChatBot",
path: "/haditha/chat-bot", path: "/haditha/chat-bot",
file: "~/systems/hadith_ui/pages/haditha/chat-bot.vue", file: "~/systems/haditha_ui/pages/haditha/chat-bot.vue",
}, },
{ {
name: "hadithaFavorites", name: "hadithaFavorites",
path: "/haditha/favorites", path: "/haditha/favorites",
file: "~/systems/hadith_ui/pages/haditha/favorites/index.vue", file: "~/systems/haditha_ui/pages/haditha/favorites/index.vue",
}, },
{ {
name: "hadithaLibrary", name: "hadithaLibrary",
path: "/haditha/library", path: "/haditha/library",
file: "~/systems/hadith_ui/pages/haditha/library/index.vue", file: "~/systems/haditha_ui/pages/haditha/library/index.vue",
}, },
{ {
name: "hadithaLibraryShow", name: "hadithaLibraryShow",
path: "/haditha/library/:id/:slug?", path: "/haditha/library/:id/:slug?",
file: "~/systems/hadith_ui/pages/haditha/library/[id]/[slug]/index.vue", file: "~/systems/haditha_ui/pages/haditha/library/[id]/[slug]/index.vue",
}, },
{ {
name: "hadithaAbout", name: "hadithaAbout",
path: "/haditha/about-us", path: "/haditha/about-us",
file: "~/systems/hadith_ui/pages/haditha/public-pages/about-us.vue", file: "~/systems/haditha_ui/pages/haditha/public-pages/about-us.vue",
}, },
{ {
name: "hadithaContact", name: "hadithaContact",
path: "/haditha/contact-us", path: "/haditha/contact-us",
file: "~/systems/hadith_ui/pages/haditha/public-pages/contactus.vue", file: "~/systems/haditha_ui/pages/haditha/public-pages/contactus.vue",
}, },
{ {
name: "hadithaRules", name: "hadithaRules",
path: "/haditha/rules", path: "/haditha/rules",
file: "~/systems/hadith_ui/pages/haditha/public-pages/rules.vue", file: "~/systems/haditha_ui/pages/haditha/public-pages/rules.vue",
}, },
{ {
name: "hadithaLogin", name: "hadithaLogin",
path: "/haditha/login", path: "/haditha/login",
file: "~/systems/hadith_ui/pages/haditha/login.vue", file: "~/systems/haditha_ui/pages/haditha/login.vue",
} }
]; ];

View File

@ -1,12 +0,0 @@
export default [
{
name: "myResearches",
path: "/research/research-home",
file: "~/systems/research_ui/pages/index.vue",
},
{
name: "TermPage",
path: "/research/research-term",
file: "~/systems/research_ui/pages/TermPage.vue",
},
];

View File

@ -1,37 +0,0 @@
export default [
{
name: "search",
path: "/search",
file: "~/systems/search_ui/pages/search/index.vue",
},
{
name: "searchNavigation",
path: "/search/lists",
file: "~/systems/search_ui/pages/search/lists.vue",
},
{
name: "searchChart",
path: "/search/charts",
file: "~/systems/search_ui/pages/search/charts.vue",
},
{
name: "showEntity",
path: "/search/:key/:id/show",
file: "~/systems/search_ui/pages/search/(show)/[key]/[id]/index.vue",
},
{
name: "navigationView",
path: "/search/:key/:id/list",
file: "~/systems/search_ui/pages/search/(show)/[key]/[id]/index.vue",
},
{
name: "entityResearch",
path: "/search/:key/:id/research",
file: "~/systems/search_ui/pages/search/(show)/[key]/[id]/index.vue",
},
{
name: "entityResearch",
path: "/search/:key/:id/detail",
file: "~/systems/search_ui/pages/search/(show)/[key]/[id]/index.vue",
},
];

View File

@ -29,6 +29,8 @@ export const useCommonStore = defineStore("commonStore", {
storage: piniaPluginPersistedstate.localStorage(), storage: piniaPluginPersistedstate.localStorage(),
}, },
state: () => ({ state: () => ({
vuexEntity: undefined, //پیدا نکردم
// admin // admin
helpSchema: undefined as helpSchema | undefined, helpSchema: undefined as helpSchema | undefined,
helpActiveSchema: undefined as helpActiveSchema | undefined, helpActiveSchema: undefined as helpActiveSchema | undefined,
@ -87,6 +89,9 @@ export const useCommonStore = defineStore("commonStore", {
sidebarMenu: {}, sidebarMenu: {},
}), }),
getters: { getters: {
vuexEntityGetter(state) {
return state.vuexEntity;
},
// admin // admin
helpSchemaGetter(state) { helpSchemaGetter(state) {
return state.helpSchema; return state.helpSchema;
@ -151,6 +156,9 @@ export const useCommonStore = defineStore("commonStore", {
isShowHilightGetter: (state) => state.isShowHilight, isShowHilightGetter: (state) => state.isShowHilight,
}, },
actions: { actions: {
vuexEntitySetter(vuexEntity = undefined) {
this.vuexEntity = vuexEntity;
},
// admin // admin
helpSchemaSetter(helpSchema = undefined) { helpSchemaSetter(helpSchema = undefined) {
this.helpSchema = helpSchema; this.helpSchema = helpSchema;
@ -185,7 +193,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 +261,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 +0,0 @@
Subproject commit ce54af871a476562e3c1af352ddc2b1f6387d14b

@ -1 +0,0 @@
Subproject commit 30cad3040c56d83f6a576513446ca3a9e6d30ea6

1
systems/haditha_ui Submodule

@ -0,0 +1 @@
Subproject commit 39528cfc046579aa69ad4b7668b0165552d844ba

@ -1 +0,0 @@
Subproject commit c3aa6605ff449226a04817f0fb29a4b0f77654bc

@ -1 +0,0 @@
Subproject commit 10369cae2b704c8b563a5fe0624a9c724bbdf054