Commit graph

243 commits

Author SHA1 Message Date
716096e911 Try to improve ThemeSelect.tsx (mobile) 2024-05-19 20:37:56 -03:00
5acb5484df Add padding (mostly for mobile) 2024-05-19 20:35:16 -03:00
9627c60021 Add translatedBy to surahs.json 2024-05-19 20:22:14 -03:00
0ac9e415a6 Update Filter.tsx 2024-05-19 17:30:04 -03:00
e1249e7b81 Add Farsi support
This change is a big one. It adds Farsi support,
which by itself is significant. In the process of
adding Farsi support other significant improvements
were made:

* Select.tsx component
* TLocale (Quran/index.ts)
* ...
2024-05-19 16:51:37 -03:00
793954b0aa Fix prettier + eslint 2024-05-17 02:55:11 -03:00
a966e8a8e2 Restructure info.json
The schema has been changed to be easily
interchangeable between different locales,
and these changes make it easier to adopt
Farsi support as well.
2024-05-16 16:17:12 -03:00
deae96fc4b Add Quran.locales 2024-05-15 21:51:04 -03:00
82cb7e81e0 Populate surah via info.json 2024-05-14 23:09:31 -03:00
ea8fe925af s|ref|articleRef|g 2024-05-14 16:26:04 -03:00
2e6952eacc Add SurahStream/ 2024-05-14 16:07:57 -03:00
4f282e12f2 Fix format offenses 2024-05-02 10:46:40 -03:00
adfe95103e !0 evaluates as true, returning early for a case we didn't expect
The if guard in this commit is aimed at catching null / undefined.
2024-05-02 05:31:46 -03:00
1d06b50300 Handle 'ms' being null as "zero" in Timer 2024-05-01 12:40:02 -03:00
eedf2a9c8a Enable 'strictNullChecks' 2024-05-01 12:35:56 -03:00
3a9d5ee022 Forward VERSION to SurahIndex.tsx 2024-05-01 11:51:18 -03:00
d04f8d01e3 Fix prop order in Stream
As a general rule the locale prop should come first
2024-05-01 09:40:27 -03:00
17dc9a8499 Fix prop order in Filter
As a general rule the 'locale' prop should come first
2024-05-01 09:37:21 -03:00
3fc4e47f9d Fix prop order in Timer 2024-05-01 09:36:28 -03:00
537cd3f780 Add 'onComplete' prop to Timer 2024-05-01 09:34:45 -03:00
ea496dfcc0 Swap arguments of 'formatNumber' 2024-05-01 09:12:48 -03:00
d62e34dd3e Replace noise-y generic types 2024-05-01 08:07:00 -03:00
644b19b8d4 Fix typo 2024-05-01 07:42:46 -03:00
7f9cc18961 Improve audio controls
This change builds on the previous commit. There is increased reliability,
and coverage of more scenarios involving audio.
2024-05-01 07:36:36 -03:00
9b69b6d43b Fix stream audio
The Sound(On|Off)Icon would turn off after the first track ends.
This happened thanks to code that handles audio tracks played for
a single ayah. We can identify the context where we don't want to
automatically disable via 'autoPlay'. Not a great fix but works.

We also top up the Timer count when sound is turned on. That helps
make sure the audio will finish before the timer.
2024-05-01 04:59:47 -03:00
3d78cd6fcf Update Timer.tsx 2024-05-01 04:36:20 -03:00
d3f075e98e Hoist 'audio' (HTMLAudioElement) into parent component
A new approach that gives the caller (parent) control over
the HTMLAudioElement. This will hopefully provide a framework
for a stable implementation that can handle multiple retries
over a slow network.
2024-05-01 03:47:09 -03:00
6bec11a547 Add static JSON to .js files rather than .html files 2024-04-30 22:46:48 -03:00
e8347fa5a5 Add packages/typescript/Quran/ 2024-04-30 09:43:30 -03:00
9e6297f316 s/selected-option/selected/g 2024-04-30 01:46:22 -03:00
4f436062e5 Replace "ChangeEvent" 2024-04-30 01:38:23 -03:00
f59a971577 s/classnames/classNames/g 2024-04-30 01:28:38 -03:00
83e9021108 s/get/query/g 2024-04-30 01:26:53 -03:00
194d757ec3 Update Select.tsx 2024-04-30 01:25:12 -03:00
87a61cfe96 'npm run prettier' 2024-04-30 01:06:16 -03:00
8e7fc9d6d5 Fix eslint 2024-04-30 01:05:48 -03:00
0fb529a7bf Replace 'interface' with 'type' 2024-04-30 01:03:45 -03:00
c0712ac79c Add src/js/components/SurahIndex/ 2024-04-30 00:49:42 -03:00
8beaf71ac8 json: add parent directory (src/json/) 2024-04-30 00:11:00 -03:00
7c05916998 css: add base/, main/ 2024-04-29 23:26:03 -03:00
77c21511dc Assign div before if 2024-04-29 19:52:29 -03:00
fe091ad202 Present ayat count on SurahIndex.tsx
Underneath the transliterated name, the ayat count is shown. Applies
to ltr languages (for now English only).
2024-04-29 13:03:12 -03:00
71d1029f85 Hide <RightArrow> for non-rtl locale 2024-03-25 04:58:51 -03:00
57e05b2cef Render AudioControl.tsx at end of stream 2024-03-25 02:06:59 -03:00
57d9ec91f1 Update SurahStream.{tsx,css}, SurahIndex.tsx 2024-03-25 02:03:25 -03:00
cfd59c97fa Add Head.tsx 2024-03-25 01:16:28 -03:00
05ac909e80 Replace slugs.json with nameById.json 2024-03-16 21:31:06 -03:00
43bd4f1fc4 Update random.ts 2024-03-16 14:09:35 -03:00
ec5c463abe Store json in random.ts 2024-03-16 14:07:53 -03:00
6817f35e54 Replace src/js/lib/Locale.ts 2024-03-16 11:13:27 -03:00