diff --git a/apis/hadithApi.js b/apis/hadithApi.js deleted file mode 100644 index f6b4f16..0000000 --- a/apis/hadithApi.js +++ /dev/null @@ -1,73 +0,0 @@ -export default { - items: { - get: "monir/search/get/byid/", - }, - Farhanghestan: { - search_normal: "monir/search/0/10", - search_And: "monir/search/and/0/10", - search_Phrase: "monir/search/phrase/0/10", - search_Code: "monir/search/code/all/0/10", - }, - subject: { - add: "sanad/subject/add", - // edit: "sanad/subject/edit", - delete: "sanad/subject/delete", - order: "monir/sanad/subject/order", - }, - index: { - Index_one: "safheh212/one", - index_multi: "safheh212/multi", - }, - nesha: { - search_normal: "monir/search/nesha/0/10", - }, - wordSWeight: { - list: "ngrams/elastic/{{index_key}}/1to3", - }, - rezome: { - add: "rezumeh", - get: "rezumeh/get", - }, - navigation: { - list: "navigate/list/@entity", - report: - "navigate/report/{{index_key}}/{{offset}}/{{limit}}/{{aggs}}/{{filter}}", - reportItem: "navigate/report/items", - reportSubjectItem: "navigate/report/subject={{subject_title}}/items", - }, - bnavigation: { - list: "repo/navigate/list", - report: "repo/navigate/report", - reportItem: "repo/navigate/report/items", - reportSubjectItem: "repo/navigate/report/subject={{subject_title}}/items", - }, - schema: { - list: "schema", - }, - search: { - autoComplate: - "{{appname}}/complation/{{index_key}}/{{filter}}", - logAutoComplate: - "searchlog/complation/{{filter}}", - default: - "{{appname}}/data/{{index_key}}/{{sortKey}}/{{offset}}/{{limit}}/{{filter}}", - queryNormal: - "{{appname}}/search/{{index_key}}/{{search_type}}/{{sortKey}}/{{field_collapse}}/{{offset}}/{{limit}}/{{filter}}", - textSearch: - "{{appname}}/search/text/{{index_key}}/{{field}}/{{offset}}/{{limit}}/{{filter}}", - }, - chart: { - timeline: "{{appname}}/data/timeline/{{index_key}}", - xy: "{{appname}}/data/xy/{{index_key}}/{{field_key}}", - items: - "navigate/report/items/search/{{index_key}}/{{offset}}/{{limit}}/{{filter}}", - chartTreeMap: "list/project/treemap/{{chart_key}}/{{filter}}", - treeItems:"navigate/report/items/search/{{index_key}}/{{offset}}/{{limit}}/{{filter}}", - tree: "list/subject/list", - graph:"repo/majles/{{to_key}}/relation" - }, - synonym:{ - getSynonyms:"synonym/get/words", - synonymSearch:"search/qasection/synonym/@listkey/@offset/@limit/@q", - } -}; diff --git a/apis/hadithaApi.js b/apis/hadithaApi.js new file mode 100644 index 0000000..a6df26e --- /dev/null +++ b/apis/hadithaApi.js @@ -0,0 +1,4 @@ +export default { + search: + "repo/monir/search/@index_key/@search_type/@type_key/@listkey/@field_collapsed/@offset/@limit/@q=none", +}; diff --git a/components/haditha/AutoComplation.vue b/components/haditha/AutoComplation.vue index 7bb54ef..c814e77 100644 --- a/components/haditha/AutoComplation.vue +++ b/components/haditha/AutoComplation.vue @@ -1,4 +1,11 @@ @@ -180,13 +194,13 @@ const onSend = () => { - + diff --git a/components/haditha/search-page/SearchList.vue b/components/haditha/search-page/SearchList.vue index 707d477..10ebc39 100644 --- a/components/haditha/search-page/SearchList.vue +++ b/components/haditha/search-page/SearchList.vue @@ -5,6 +5,9 @@ const props = defineProps({ return []; }, }, + total: { + default: 0, + }, noDataText: { default: "نتیجهای یافت نشد!", }, @@ -40,28 +43,29 @@ const SearchShow = defineAsyncComponent(() => - 48 + {{ total }} نتیجه - + - امام علی علیهالسلام - - وَمَا يَذۡكُرُونَ إِلَّآ أَن يَشَآءَ ٱللَّهُ هُوَ أَهلُ ٱلتَّقوَىٰ - وَأَهلُ ٱلمَغفِرَةِ هُوَ أَهلُ ٱلتَّقوَىٰ وَأَهلُ ٱلمَغفِرَةِ - - - خداوند متعال ما (اهل بیت) را آفرید و ما را خازنان علم خود در آسمان و - زمین قرار داد. و نماز در مسیحیت برای ما قرار که پیش + + {{ item._source.meta.hadith_masoum ?? "بدون عنوان" }} + بدون متن عربی + - الکافی، جلد ۱، صفحه ۱۰۳ + + {{ item._source.address.vol_title }}، صفحه {{ item._source.address.page_num }} + @@ -118,7 +122,7 @@ const SearchShow = defineAsyncComponent(() => } .search-list { padding: 1em 1.3em; - height: calc(100dvh - 15.2em); + height: calc(100dvh - 16em); overflow-y: auto; &.hadithaFavorites { @@ -214,6 +218,10 @@ const SearchShow = defineAsyncComponent(() => diff --git a/pages/haditha/search/[id]/[slug]/index.vue b/pages/haditha/search/[id]/[slug]/index.vue new file mode 100644 index 0000000..282e8cc --- /dev/null +++ b/pages/haditha/search/[id]/[slug]/index.vue @@ -0,0 +1,497 @@ + + + + + + + + + + + + + + + + + + + + + نشانی: + {{ props.selectedItem._source.address.vol_title }}، صفحه + {{ props.selectedItem._source.address.page_num }} + + + + + + + + + {{ props.selectedItem._source.meta.hadith_masoum ?? "بدون عنوان" }} + + + + + + بدون متن عربی + + + + + + + + ترجمه + + + + + {{ props.selectedItem._source.meta.hadith_masoum ?? "بدون عنوان" }}: + + + + + + + + + شرح + + + + + + + + + + + + + + + + diff --git a/pages/haditha/search/index.vue b/pages/haditha/search/index.vue index 329b720..de44694 100644 --- a/pages/haditha/search/index.vue +++ b/pages/haditha/search/index.vue @@ -1,4 +1,5 @@
امام علی علیهالسلام
- وَمَا يَذۡكُرُونَ إِلَّآ أَن يَشَآءَ ٱللَّهُ هُوَ أَهلُ ٱلتَّقوَىٰ - وَأَهلُ ٱلمَغفِرَةِ هُوَ أَهلُ ٱلتَّقوَىٰ وَأَهلُ ٱلمَغفِرَةِ -
- خداوند متعال ما (اهل بیت) را آفرید و ما را خازنان علم خود در آسمان و - زمین قرار داد. و نماز در مسیحیت برای ما قرار که پیش +
+ {{ item._source.meta.hadith_masoum ?? "بدون عنوان" }}
بدون متن عربی
الکافی، جلد ۱، صفحه ۱۰۳
+ {{ item._source.address.vol_title }}، صفحه {{ item._source.address.page_num }} +
+ {{ props.selectedItem._source.meta.hadith_masoum ?? "بدون عنوان" }}: +