diff --git a/assets/common/fonts/Takrim.ttf b/assets/common/fonts/Takrim.ttf new file mode 100644 index 0000000..8a934fd Binary files /dev/null and b/assets/common/fonts/Takrim.ttf differ diff --git a/assets/common/scss/_takrim.scss b/assets/common/scss/_takrim.scss new file mode 100644 index 0000000..de70541 --- /dev/null +++ b/assets/common/scss/_takrim.scss @@ -0,0 +1,9 @@ +@font-face { + font-family: Takrim; + src: url("../fonts/Takrim.ttf"); + src: url("../fonts/Takrim.ttf?#iefix") format("embedded-opentype"), + url("../fonts/Takrim.ttf") format("woff2"), + url("../fonts/Takrim.ttf") format("woff"), + url("../fonts/Takrim.ttf") format("truetype"); + font-weight: normal; +} diff --git a/components/admin/components/Accordion.vue b/components/admin/components/Accordion.vue index ca4c3e3..aaee3b6 100644 --- a/components/admin/components/Accordion.vue +++ b/components/admin/components/Accordion.vue @@ -79,7 +79,6 @@ - - diff --git a/components/forms/DateComponent.vue b/components/forms/DateComponent.vue index ce5a05e..16d2218 100644 --- a/components/forms/DateComponent.vue +++ b/components/forms/DateComponent.vue @@ -6,7 +6,7 @@ >{{ localFormElement.label }} - - --> + + @@ -107,7 +107,7 @@ export default { }, components: { // datePicker: VuePersianDatetimePicker, - datePicker: () => import("vue-persian-datetime-picker"), + // datePicker: () => import("vue-persian-datetime-picker"), }, }; diff --git a/components/forms/FormShow.vue b/components/forms/FormShow.vue new file mode 100644 index 0000000..43a900a --- /dev/null +++ b/components/forms/FormShow.vue @@ -0,0 +1,86 @@ + + + diff --git a/components/forms/HtmlEditor.vue b/components/forms/HtmlEditor.vue index 6228269..85d5760 100644 --- a/components/forms/HtmlEditor.vue +++ b/components/forms/HtmlEditor.vue @@ -18,7 +18,7 @@ - - diff --git a/components/forms/InputVueTribute.vue b/components/forms/InputVueTribute.vue deleted file mode 100644 index 91a7d4b..0000000 --- a/components/forms/InputVueTribute.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - diff --git a/components/forms/NewFormItem.vue b/components/forms/NewFormItem.vue new file mode 100644 index 0000000..be3c4c8 --- /dev/null +++ b/components/forms/NewFormItem.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/components/forms/NewTabForm.vue b/components/forms/NewTabForm.vue new file mode 100644 index 0000000..dda741e --- /dev/null +++ b/components/forms/NewTabForm.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/components/forms/PropertyBuilder.vue b/components/forms/PropertyBuilder.vue index a14bb41..813db4d 100644 --- a/components/forms/PropertyBuilder.vue +++ b/components/forms/PropertyBuilder.vue @@ -98,8 +98,10 @@ + + diff --git a/components/forms/TabForm.vue b/components/forms/TabForm.vue new file mode 100644 index 0000000..e5ba4d1 --- /dev/null +++ b/components/forms/TabForm.vue @@ -0,0 +1,337 @@ + + + + + diff --git a/components/forms/TableColumnSelectForm copy.vue b/components/forms/TableColumnSelectForm copy.vue new file mode 100644 index 0000000..d955144 --- /dev/null +++ b/components/forms/TableColumnSelectForm copy.vue @@ -0,0 +1,106 @@ + + + diff --git a/components/forms/TagsEdit.vue b/components/forms/TagsEdit.vue index 20b52df..e64e738 100644 --- a/components/forms/TagsEdit.vue +++ b/components/forms/TagsEdit.vue @@ -102,7 +102,6 @@ + + \ No newline at end of file diff --git a/layouts/jahat/layout/Dashboard.vue b/layouts/jahat/layout/Dashboard.vue deleted file mode 100644 index a26531b..0000000 --- a/layouts/jahat/layout/Dashboard.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - diff --git a/layouts/jahat/layout/EntityContent.vue b/layouts/jahat/layout/EntityContent.vue deleted file mode 100644 index 30f24b9..0000000 --- a/layouts/jahat/layout/EntityContent.vue +++ /dev/null @@ -1,356 +0,0 @@ - - - - diff --git a/layouts/jahat/layout/EntityList.vue b/layouts/jahat/layout/EntityList.vue deleted file mode 100644 index 09c03b7..0000000 --- a/layouts/jahat/layout/EntityList.vue +++ /dev/null @@ -1,656 +0,0 @@ - - - - - - diff --git a/layouts/jahat/layout/Error.vue b/layouts/jahat/layout/Error.vue deleted file mode 100644 index 9bd8e73..0000000 --- a/layouts/jahat/layout/Error.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/layouts/jahat/layout/Layout.vue b/layouts/jahat/layout/Layout.vue deleted file mode 100644 index 13b6f60..0000000 --- a/layouts/jahat/layout/Layout.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/layouts/jahat/layout/TopHeader.vue b/layouts/jahat/layout/TopHeader.vue deleted file mode 100644 index b1e5479..0000000 --- a/layouts/jahat/layout/TopHeader.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - diff --git a/layouts/list/layout/ItemPanel.vue b/layouts/list/layout/ItemPanel.vue deleted file mode 100644 index 03f5661..0000000 --- a/layouts/list/layout/ItemPanel.vue +++ /dev/null @@ -1,766 +0,0 @@ - - - - - diff --git a/layouts/list/layout/ItemShowForm.vue b/layouts/list/layout/ItemShowForm.vue deleted file mode 100644 index 627c00e..0000000 --- a/layouts/list/layout/ItemShowForm.vue +++ /dev/null @@ -1,1407 +0,0 @@ - - - - - diff --git a/layouts/list/layout/ItemShowPanel.vue b/layouts/list/layout/ItemShowPanel.vue deleted file mode 100644 index 4230061..0000000 --- a/layouts/list/layout/ItemShowPanel.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - - diff --git a/layouts/list/layout/ListPanel.vue b/layouts/list/layout/ListPanel.vue deleted file mode 100644 index 57a3a95..0000000 --- a/layouts/list/layout/ListPanel.vue +++ /dev/null @@ -1,580 +0,0 @@ - - - - - diff --git a/layouts/list/layout/PropertyPanel.vue b/layouts/list/layout/PropertyPanel.vue deleted file mode 100644 index cfbeebf..0000000 --- a/layouts/list/layout/PropertyPanel.vue +++ /dev/null @@ -1,613 +0,0 @@ - - - - - diff --git a/layouts/list/layout/SubjectPanel.vue b/layouts/list/layout/SubjectPanel.vue deleted file mode 100644 index 89fe0b4..0000000 --- a/layouts/list/layout/SubjectPanel.vue +++ /dev/null @@ -1,676 +0,0 @@ - - - - - diff --git a/layouts/list/layout/aside.vue b/layouts/list/layout/aside.vue deleted file mode 100644 index 3f3efcb..0000000 --- a/layouts/list/layout/aside.vue +++ /dev/null @@ -1,44 +0,0 @@ - - diff --git a/nuxt.config.ts b/nuxt.config.ts index 00c16df..c57264a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,8 +2,10 @@ import fs from "fs-extra"; import path from "path"; +const envs = import.meta.env; let sassEnvVariables = ""; -for (let e in import.meta.env) { + +for (let e in envs) { if (/VITE_/i.test(e)) { sassEnvVariables += `$${e}: "${import.meta.env[e]}";`; } @@ -74,12 +76,54 @@ export default defineNuxtConfig({ path: "/search/:key/:id/detail", file: "~/systems/search_ui/pages/search/(show)/[key]/[id]/index.vue", }, - // hadith + // --------------------- start: hadith routes --------------------- { name: "hadith", path: "/hadith", file: "~/systems/hadith_ui/pages/hadith/index.vue", + }, + { + name: "hadithSearch", + path: "/hadith/search", + file: "~/systems/hadith_ui/pages/hadith/search/index.vue", + }, + { + name: "hadithChatBot", + path: "/hadith/chat-bot", + file: "~/systems/hadith_ui/pages/hadith/chat-bot.vue", + }, + { + name: "hadithFavorites", + path: "/hadith/favorites", + file: "~/systems/hadith_ui/pages/hadith/favorites/index.vue", + }, + { + name: "hadithLibrary", + path: "/hadith/library", + file: "~/systems/hadith_ui/pages/hadith/library/index.vue", + }, + { + name: "hadithLibraryShow", + path: "/hadith/library/:id/:slug?", + file: "~/systems/hadith_ui/pages/hadith/library/[id]/[slug]/index.vue", + }, + { + name: "hadithAbout", + path: "/hadith/about-us", + file: "~/systems/hadith_ui/pages/hadith/public-pages/about-us.vue", + }, + { + name: "hadithContact", + path: "/hadith/contact-us", + file: "~/systems/hadith_ui/pages/hadith/public-pages/ContactUs.vue", + }, + { + name: "hadithRules", + path: "/hadith/rules", + file: "~/systems/hadith_ui/pages/hadith/public-pages/rules.vue", } + + // --------------------- end: hadith routes --------------------- ); }, }, diff --git a/package-lock.json b/package-lock.json index 967f61b..5a12532 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11913,8 +11913,6 @@ }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "inBundle": true, "license": "MIT", "dependencies": { @@ -12573,8 +12571,6 @@ }, "node_modules/npm/node_modules/cross-spawn/node_modules/which": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "inBundle": true, "license": "ISC", "dependencies": { @@ -13196,8 +13192,6 @@ }, "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "inBundle": true, "license": "ISC", "dependencies": { @@ -13220,8 +13214,6 @@ }, "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "inBundle": true, "license": "ISC", "dependencies": { @@ -13244,8 +13236,6 @@ }, "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "inBundle": true, "license": "ISC", "dependencies": { @@ -13271,8 +13261,6 @@ }, "node_modules/npm/node_modules/minizlib/node_modules/minipass": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "inBundle": true, "license": "ISC", "dependencies": { @@ -13407,8 +13395,6 @@ }, "node_modules/npm/node_modules/nopt/node_modules/abbrev": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", - "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", "inBundle": true, "license": "ISC", "engines": { @@ -14029,8 +14015,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", "inBundle": true, "license": "ISC", "dependencies": { @@ -14042,8 +14026,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "inBundle": true, "license": "ISC", "dependencies": { @@ -14055,8 +14037,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/minipass": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", "inBundle": true, "license": "ISC", "engines": { @@ -14218,8 +14198,6 @@ }, "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "inBundle": true, "license": "MIT", "dependencies": { @@ -14254,8 +14232,6 @@ }, "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "inBundle": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 9b0f6e1..cd2da1c 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "postinstall": "nuxt prepare", "dev-tavasi": "env-cmd -f .env.tavasi nuxt dev --host --inspect", "dev-monir": "env-cmd -f .env.monir nuxt dev --host --inspect", - "dev-hadith": "env-cmd -f .env.hadith nuxt dev --host --inspect" + "dev-hadith": "env-cmd -f .env.hadith nuxt dev --host --inspect", + "build-hadith": "env-cmd -f .env.hadith nuxt build" }, "dependencies": { "@nuxt/image": "^1.8.1", diff --git a/pages/admin/guides/admin-guide-list.vue b/pages/admin/guides/admin-guide-list.vue index 45ef5a5..38fd278 100644 --- a/pages/admin/guides/admin-guide-list.vue +++ b/pages/admin/guides/admin-guide-list.vue @@ -64,7 +64,6 @@ import { mapState, mapActions } from "pinia"; import searchApi from "~/apis/searchApi"; import { useStorage } from "@vueuse/core"; import { useCommonStore } from "~/stores/commonStore"; -import { useSearchStore } from "~/stores/searchStore"; export default { name: "guidesList", @@ -75,8 +74,7 @@ export default { }); }, computed: { - ...mapState(useSearchStore, ["helpSchemaGetter"]), - ...mapState(useCommonStore, ["organNameGetter"]), + ...mapState(useCommonStore, ["organNameGetter","helpSchemaGetter"]), // ...mapState(["organNameGetter"]), @@ -174,7 +172,7 @@ export default { }, methods: { // ...mapActions("search", ["helpSchemaSetter"]), - ...mapActions(useSearchStore, ["helpSchemaSetter"]), + ...mapActions(useCommonStore, ["helpSchemaSetter"]), openModal(componentName, title) { this.openSubjectForm = true; this.slotComponentName = componentName; diff --git a/pages/admin/guides/index.vue b/pages/admin/guides/index.vue index aae5268..fcb2b5b 100644 --- a/pages/admin/guides/index.vue +++ b/pages/admin/guides/index.vue @@ -84,7 +84,6 @@ import adminMenu from "~/json/admin/json/menu.json"; import { mapState, mapActions } from "pinia"; import { useStorage } from "@vueuse/core"; import { useCommonStore } from "~/stores/commonStore"; -import { useSearchStore } from "~/stores/searchStore"; export default { name: "adminGuides", @@ -99,8 +98,7 @@ export default { this.httpService = useNuxtApp()["$http"]; }, computed: { - ...mapState(useSearchStore, ["helpSchemaGetter"]), - ...mapState(useCommonStore, ["organNameGetter"]), + ...mapState(useCommonStore, ["organNameGetter","helpSchemaGetter"]), }, mounted() { let localStoageHelpSchema = useStorage("settingSchema", undefined).value; @@ -142,7 +140,7 @@ export default { }, methods: { // ...mapActions("search", ["helpSchemaSetter"]), - ...mapActions(useSearchStore, ["helpSchemaSetter"]), + ...mapActions(useCommonStore, ["helpSchemaSetter"]), // searchStore select(e) { this.value = e; diff --git a/pages/admin/permit/Projects.vue b/pages/admin/permit/Projects.vue index 1d95bdb..2b1cce3 100644 --- a/pages/admin/permit/Projects.vue +++ b/pages/admin/permit/Projects.vue @@ -4,7 +4,11 @@