Commit graph

1072 commits

Author SHA1 Message Date
c8174f881e Follow up 3c6b2f6bf4 2023-03-12 19:54:30 -03:00
85f779fbc5 v0.2.0 2023-03-12 19:39:35 -03:00
Robert
5b6cb9b36e
Merge pull request #114 from ReflectsLight/fix_scroll_jump
Fix scroll jump
2023-03-12 19:35:05 -03:00
3c6b2f6bf4 Fix scroll jump
When the 'pause' button was clicked, the text could jump and become
realigned according to the space taken by the now visible scrollbar.

This change fixes that issue by leaving a gap for the scrollbar whether
it is visible or hidden.
2023-03-12 19:33:36 -03:00
Robert
91a2cebc7c
Merge pull request #113 from ReflectsLight/fix_build
Try to fix build
2023-03-12 17:53:18 -03:00
ea53a79ee4 Add Gemfile.lock 2023-03-12 17:51:16 -03:00
3c75a90f0d Fix build
See https://github.com/rubocop/rubocop/issues/6754#issuecomment-1465296115
2023-03-12 17:50:44 -03:00
0a3f8eac31 Follow up to 468613e193 2023-03-12 16:58:58 -03:00
f561df8bea rubocop'ing 2023-03-12 16:50:57 -03:00
919af86a65 rubocop'ing 2023-03-12 16:50:19 -03:00
468613e193 Rename "surah_id_to_name" to "slugs"
Fix #106
2023-03-12 16:46:11 -03:00
Robert
2a34a741c7
Merge pull request #110 from ReflectsLight/seo_title
Set document title at compile time
2023-03-12 11:31:41 -03:00
5f957af84c Set document title at compile time
This change will hopefully make it easier for search engines to
pick up a page's title.
2023-03-12 11:23:48 -03:00
e4af56c162 Add Quran.Ayah 2023-03-12 11:20:10 -03:00
ad84105776 Add Quran.Surah.mapFromJSON 2023-03-11 18:52:47 -03:00
Robert
55a52a7e4f
Merge pull request #108 from ReflectsLight/seo_favicon
Add /favicon.png
2023-03-11 18:10:06 -03:00
a22be0413e Add /favicon.png
Enhances SEO and provides a familiar icon when used with bookmarks.
2023-03-11 18:03:38 -03:00
Robert
9e51676d2a
Merge pull request #104 from ReflectsLight/sitemap_xml
Add src/sitemap.xml.erb
2023-03-11 16:05:54 -03:00
c1d23f27c7 Re-implement id_redirect.ts without a JS redirect 2023-03-11 16:04:21 -03:00
3f3032dfcb Add canonical link tag to id_redirect.html.erb 2023-03-11 16:04:21 -03:00
1ab56c61bf Add src/sitemap.xml.erb 2023-03-11 16:04:21 -03:00
549e7ef905 rubocop'ing 2023-03-11 14:31:44 -03:00
f691875012 Replace "File.read" with inline_json 2023-03-11 14:20:28 -03:00
d547c5420a Add '.css.webpackage' class to inline style 2023-03-11 14:20:18 -03:00
14e5c82be3 README: update 2023-03-11 11:46:29 -03:00
0acba1f49a License = GPL 2023-03-11 11:42:30 -03:00
Robert
e6393eda19
Merge pull request #103 from ReflectsLight/inline_css
Add "inline_css" helper method
2023-03-11 10:47:12 -03:00
07812ffdaa Add "inline_css" helper method 2023-03-11 10:45:12 -03:00
6d358653c7 v0.1.0 2023-03-11 09:39:41 -03:00
Robert
f75a1764d4
Merge pull request #100 from ReflectsLight/i18n
Add a simpler, more organized i18n.ts implementation
2023-03-11 09:35:29 -03:00
145d5a4399 Run rubocop -A 2023-03-11 09:31:37 -03:00
3bbe8cf165 Inline surahs.json, slugs.json, and i18n.json 2023-03-11 09:27:31 -03:00
ce2a5d68bf Fix bug: generate /en/1/index.html
id_redirect.rules didn't scope the rule by locale, and because
of that /ar/X/index.html was generated but not /en/X/index.html
2023-03-11 09:26:35 -03:00
4e383ec107 numberToDecimal -> formatNumber 2023-03-11 08:35:50 -03:00
914c918eaa Add a simpler, more organized i18n.ts implementation 2023-03-11 08:35:49 -03:00
Robert
2105531d9a
Merge pull request #102 from ReflectsLight/enable_strict
Turn on "strict" TypeScript flag
2023-03-11 08:19:39 -03:00
e96795f077 await in async function 2023-03-11 08:11:52 -03:00
7b27a645ab Allow non-null assertions 2023-03-11 08:11:41 -03:00
1dedc03e54 Turn on strict mode in tsconfig.json 2023-03-11 08:04:18 -03:00
4d8a19cd95 React: add strict mode support 2023-03-11 08:04:06 -03:00
f1e1f69d56 WebPackage: add strict mode support 2023-03-11 08:03:02 -03:00
Robert
b124503196
Merge pull request #93 from ReflectsLight/read_random
Add link to /<locale>/random
2023-03-10 13:24:57 -03:00
667f63fa06 Add link to /<locale>/random
Fix #87
2023-03-10 13:13:21 -03:00
Robert
7e5d755b2c
Merge pull request #92 from ReflectsLight/iphone_fix
Hide surah.name.transliterated on iPhone
2023-03-10 12:28:54 -03:00
1a55879015 Hide surah.name.transliterated on iPhone
Fix #89
2023-03-10 12:04:33 -03:00
a58c94e782 rules/: update 2023-03-10 10:51:55 -03:00
a5cd792d71 rules/: update 2023-03-10 10:41:44 -03:00
b8ab4d2559 Remove src/css/fonts.scss
No need to declare the fonts in CSS.
Handled by loader.ts
2023-03-10 09:23:14 -03:00
ecd498942e Update .projectile 2023-03-10 09:21:54 -03:00
9203553cd9 rules/: update comments 2023-03-10 09:10:59 -03:00