Code Monkey home page Code Monkey logo

hadiths's Introduction

Hadiths

In the name of God, who has guided me to do this work

Hadith in multiple languages and multiple grades available at:
fawazahmed0.github.io/hadiths


Usage:

The website supports multiple query parameters

edition:
This parameter can be any edition from hadith-api editions

type:
This parameter can be full to view full book , section to view single section , single to view single hadith

num:
This parameter can be hadith number or section number

grade:
Use this paramter to only show sahih or daif hadiths

Example:
To view 3rd Section of Abu dawud English edition:
https://fawazahmed0.github.io/hadiths/data.html?edition=eng-abudawud&type=section&num=3

To view 1000th Hadith of Abu dawud Arabic edition:
https://fawazahmed0.github.io/hadiths/data.html?edition=ara-abudawud&type=single&num=1000

To view all sahih hadiths in Ibn Majah English edition:
https://fawazahmed0.github.io/hadiths/data.html?edition=eng-ibnmajah&type=full&grade=sahih

Highlighted text feature is supported:
Highlighted text Example

How it works:

The website uses Free Hadith API to show the data


Share:

Please Share this with your family & friends and Star this repo by clicking on ⭐ button above ↗️:




✏️Improve this page

hadiths's People

Contributors

fawazahmed0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hadiths's Issues

[DepShield] (CVSS 4.3) Vulnerability due to usage of bl:4.1.0

Depshield will be deprecated soon

Please install our new product, Sonatype Lift with advanced features


Vulnerabilities

DepShield reports that this application's usage of bl:4.1.0 results in the following vulnerability(s):


Occurrences

bl:4.1.0 is a transitive dependency introduced by the following direct dependency(s):

workbox-cli:6.5.3
        └─ ora:5.4.1
              └─ bl:4.1.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Scrape

[DepShield] (CVSS 7.4) Vulnerability due to usage of ini:1.3.7

Depshield will be deprecated soon

Please install our new product, Sonatype Lift with advanced features


Vulnerabilities

DepShield reports that this application's usage of ini:1.3.7 results in the following vulnerability(s):


Occurrences

ini:1.3.7 is a transitive dependency introduced by the following direct dependency(s):

workbox-cli:6.5.3
        └─ update-notifier:4.1.3
              └─ is-installed-globally:0.3.2
                    └─ global-dirs:2.1.0
                          └─ ini:1.3.7
              └─ latest-version:5.1.0
                    └─ package-json:6.5.0
                          └─ registry-auth-token:4.2.2
                                └─ rc:1.2.8
                                      └─ ini:1.3.7

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Hadith project

Solves: multiple grades, free api, mulitple translations

  • #11 (2-3 hrs)
  • #9 (urdu fetch)
  • see issues at sunnah github and also my q api issues to avoid any mistakes when making things & see sunnah api design & qapi
  • add esitmations & complete asap (deadline)
  • #7 (4hrs)
  • documentation (1hr)
  • docsaurus for quran & hadith seo, also keep things offline for pwa (not sure) and cron build&deply/month (lunr) #6 (6hrs)
  • merge https://github.com/fawazahmed0/version-control & hadith versioned files into hadith-api

[DepShield] (CVSS 7.4) Vulnerability due to usage of lodash.debounce:4.0.8

Depshield will be deprecated soon

Please install our new product, Sonatype Lift with advanced features


Vulnerabilities

DepShield reports that this application's usage of lodash.debounce:4.0.8 results in the following vulnerability(s):


Occurrences

lodash.debounce:4.0.8 is a transitive dependency introduced by the following direct dependency(s):

workbox-cli:6.5.3
        └─ workbox-build:6.5.3
              └─ @babel/preset-env:7.18.6
                    └─ babel-plugin-polyfill-corejs2:0.3.1
                          └─ @babel/helper-define-polyfill-provider:0.3.1
                                └─ lodash.debounce:4.0.8

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 7.4) Vulnerability due to usage of lodash.sortby:4.7.0

Vulnerabilities

DepShield reports that this application's usage of lodash.sortby:4.7.0 results in the following vulnerability(s):


Occurrences

lodash.sortby:4.7.0 is a transitive dependency introduced by the following direct dependency(s):

parcel:2.5.0
        └─ @parcel/config-default:2.5.0
              └─ @parcel/optimizer-terser:2.5.0
                    └─ terser:5.13.0
                          └─ source-map:0.8.0-beta.0
                                └─ whatwg-url:7.1.0
                                      └─ lodash.sortby:4.7.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Extract Hadith gradings

zubairalizai
https://ishaatulhadith.com/
https://zubairalizai.com/
alizai.7z.zip (Extracted from zubairalizai.com as backup)

Albani
http://quran-errors.blogspot.com/2014/05/books-written-by-sheikh-al-albani-pdfs.html
https://web.archive.org/web/20150328123524/http://www.alalbany.net/%d9%83%d8%aa%d8%a8-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae
Google search the arabic book name of albani until you find text based book , for example search صحيح وضعيف سنن ابن ماجة , also add author name in arabic

At some website you may find the text based version, making it easier to extract gradings

Also search for other hadith authors like abu ghudda, ahmad shakir, shuaib arnaut etc

https://lib.efatwa.ir/%D8%B9%D9%84%D9%88%D9%85_%D8%A7%D9%84%D8%AD%D8%AF%D9%8A%D8%AB

Other hadith books
https://lib.efatwa.ir

multi urls

let bases = ["https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/","https://raw.githubusercontent.com/fawazahmed0/currency-api/1/latest/currencies/"]
let extensions = [".min.json",".json"]

extensions.map(ext=>bases.map(e=>e+'inr/usd'+ext)).flat()
or
bases.map(e=>extensions.map(ext=>e+'inr/usd'+ext)).flat()

Clean up

  • make single pages static
  • publish with actions
  • index in islm proj
  • enable g search in reader (q first, h second) or all pages
  • pwa release

design

  • plan architecture
  • sort & clean up thing
  • timebox & deadline
  • index(book wise(lang group) page (30mins)
  • section page (30mins)
  • single/chap(sec)/full (edition,type,grade unianimous) (30mins)
  • grade (filter logic)
  • revert changes for previous functinality
  • seo listing gen
  • individual listing page(so google can find without sitemap generation) (by hadnum with all langs
  • only keep single visible to google to avoid duplicates (& get good results) (divide by book(using nums crc 65k pregenerated) & then language) (using noindex tag for pages not required maybe) (isocodes all languages pregenerate) (bookname in query for seo)
  • Group by language in single results page for ease
  • Easy scroll using jump to lang, and group by lang
  • see seo html attribures like lang & dir etc for single elments
  • add the seo attr in data.html also
  • autoget bare edition if not found
  • google site search (30mins)
  • fallbak
  • avoid sitemap, link seo.html page in sections page with name Get Single Hadith with multiple Languages at very bottom
  • sitemap (query params)(avoid duplictes for better g-search) (sitemap link to seo page) (30mins)
  • run functions after domcontentloaded (see letters script)
  • refactor code
  • fetch parallel
  • mustache template (see letters)
  • noindex tag
  • seo (dynamic) (docusaurus)(seei18n, meta tags, frontmatters), see letters proj for seo etc (30mins)
  • use common tags
  • clean UI
  • test
  • documentation
  • qura (60mins) (try to use old app , code in new page) (new page to search this, keep it at islm-projs)

design:
grades and list of graders names and grades
Grades:
albani: ....

publish @ hadiths repo
Deadline: 27-04-22

api designing & implementation (4hr)

Hadith api

see json responses at https://sunnah.api-docs.io/1.0/collections/get-the-list-of-collections, to get some idea

  • same skeleton for all books
  • create info/metadata file
  • gen new index with new repeated numbering in elastic search
  • recreate index & clean up muslim with new repeated numbering (for all, except ara, eng, & urd, needs manual scripted)
  • add ref numbers, for each number (mus)
  • get book names & add it & name of book in gradesjson
  • utilities module
  • add hadith_count in meta
  • has_sections
  • create startdir content
  • add support for decimal hadith num by using array, sort by float hadith no
  • clean up turk & put it into startdir with json
  • not all files got copied to startDir
  • not all files getting generated
  • should have "text" & other skeleton empty for which not avaiable
  • keep skeleton for new decimal numbers & sort by it
  • ibnmahaj(& maybe others) doesn't have bookref
  • add ibnmajah & muslim initial ref in info.json (can do using calculation, without scrapped data)
  • add metadata sections i.e at 0 for introduction/book of su
  • correct initial arabicnumbers for muslim to 0 (see arabicnumber 128, set all arabicnum==hadithno to 0 for arabicnum )

Api script:

  • clean create the apiscript/utilities for all crud(tested)
  • see the imported & used functions from utilities
  • geneate the files in rest structure
  • add other crud operations
  • make apiscirpt, to create from startdir content
  • api generator (eidtions.json, editionname~.json, 1.json, with metadata, empty hadtih but with metadata etc) (books len from info.json)
  • see editions.json & info.min json generation
  • things in q-api script.js to here (see apiscriot.js & editions.json & other jsons)
  • decimals issue, remove newly added normalizejson code, add multiple decimals in one hadnum json

Metadata fix:

  • issue in arnaut(majah /dawed, mistakes, ) bashar(tirmid) (some kind of marking in api, grade with ** & gradeinfo to tell about **, only ** those whihc doesn't match with others or remove which doesn't match)
  • remove had_sections from meta_data to editions json

Metadata fixer:

  • add 0 section for those not included in metadata
  • set metadata to skeleton for undefined values
  • metadata json checker (for datatypes ,issues etc)
  • metadata sorter
  • maybe remove skeleton, sort etc things from generatingfiles

Generate:

  • Add actions (npm support)
  • generate (all files froom new folder 6)
  • generate info.min.json

documentaton:

  • metadata importer (basic instrucitons)
  • contributing (add/remove/update, new trans, new book with new metadata etc) (like manuall ymaking sure numbers are mapped correctly) (preprocessing, grades scraping etc) (contributing with github.dev to make things easier)
  • add comments in code (for later ease)

Notes:

[DepShield] (CVSS 7.5) Vulnerability due to usage of merge:1.2.1

Vulnerabilities

DepShield reports that this application's usage of merge:1.2.1 results in the following vulnerability(s):


Occurrences

merge:1.2.1 is a transitive dependency introduced by the following direct dependency(s):

watch:1.0.2
        └─ exec-sh:0.2.2
              └─ merge:1.2.1

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

data clean up and add index

data clean up and add index:

  • Arabic
  • English
  • Add to elastic above both
  • bahasa
  • bangla
  • french
  • tamil
  • turkish
  • urdu
  • auto fix hadith no above and below if diff by 1, else console.log the problem, have to also consider decimals of muslim
  • remove empty lines, sort by nums, trim text for all
  • note down steps on how i did things, so can do again later for otehr books (like elastic serahc, google docx translation etc)

(tough ones, see later ; we might be able to use urdu etc old index to generate proper index)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.