Commit graph sundays/src/utils
Author SHA1 Message Date
780aeca7ca
Updated translation sorting. 2026-08-18 20:59:33 -06:00
a270c45edc
Removed dead code. 2026-08-18 20:51:01 -06:00
6de6396023
Removed unused code. 2026-08-18 20:50:34 -06:00
011142c578
Removed debugging output. 2026-08-18 20:50:12 -06:00
639dba4520
Moved dialog handling into a JS class for some state management.
Translation selection requires localStorage support for state to be
remembered between sessions.
2026-08-18 20:48:25 -06:00
fb03cb3872
Remove currently broken translations.
Most breakage appears to be due to parsing constraints.
2026-08-18 20:47:56 -06:00
35cb0f1f6a
Preliminary logic for selection translation. 2026-08-18 15:23:25 -06:00
5bbdf4e4b5
Translations now contains translation name. 2026-08-18 15:23:15 -06:00
bf5a36d590
Removed debugging output from console. 2026-08-18 14:56:56 -06:00
558dd6b3ac
Several changes to meta handling and rendering:
1) Translation metadata has move from t9nmeta.js to meta.js.
2) Translation metadata is now going to be generated by
   tools/genbooks.py (incomplete)
3) Translation metadata now includes a default translation to use via
   the helloao.org API.
4) Link to Bible Gateway has been removed from the scripture dialog.
2026-08-17 19:43:54 -06:00
b541b45062
Moved metadata to separate file. This will be generated automatically in
the future.
2026-08-13 17:01:13 -06:00
b081642925
Available translations container.
Upon thinking about this, I believe it may be a better idea to include
additional metadata as well. This meay require a script.
2026-08-13 13:31:26 -06:00
17af56303f
Fixed "open" hint for Bible Gateway. 2026-08-09 14:20:40 -06:00
32a7c08d95
Rework to include "spinner" icon for loading state and dark mode
support.
2026-08-06 20:01:18 -06:00
bd59a73859
Added scripture ref to link. 2026-08-06 19:02:04 -06:00
1763a427ba
Added heading. 2026-08-06 18:54:19 -06:00
272740effe
WIP fixes, mostly working, but display bugs are present.
As of now, if there is an inline footnote, it will cause a paragraph
break because of the way the JSON processor currently handles "poem"
declarations.

The only solution for this may be to rework the loop so some lookahead
is possible.
2026-08-06 18:19:27 -06:00
69bb3f4ad3
Dialog WIP, mostly working.
Styling still needs tweaking and the Bible Gateway link needs to be
fixed.
2026-08-06 15:41:25 -06:00
118e1ab98e
Display errors tied to <p> placement. 2026-08-06 13:41:52 -06:00
d59dd67812
WIP modal support. 2026-08-05 11:17:39 -06:00
cf7e8f6026
Added refs parser and fetch. 2026-08-03 15:34:10 -06:00
ec727d5e0e
Added base ref parser. 2026-08-01 14:07:41 -06:00
e4f995ae07
Added list of valid books and their metadata. 2026-07-30 23:58:15 -06:00
b272691e37
Allow closing via click. 2026-07-30 16:17:31 -06:00
2aeb21a7ba
Modal tests. 2026-07-29 22:55:24 -06:00
a530e8c4be
Added modal plugin placeholder. 2026-07-29 15:24:02 -06:00
46f9b42d9e
Embed scripture (for now). 2026-07-15 15:38:08 -06:00
a83f1cabe6
Match only verse identifies at start of string. 2026-06-29 22:29:56 -06:00
5d05d4011e
Do not interpolate verses if args are set. 2026-06-29 21:52:30 -06:00
e05e6a0f13
Added interpolation support for linking "vv <num>" or "vere(s) <num>"
At present, this requires "book" and "chapter" metadata to be present.
2026-06-29 21:40:16 -06:00
1f726153e1
Fixed value of undefined. 2026-06-29 20:31:36 -06:00
1fccac62c4
Code cleanup for URL post-processing. 2026-06-29 20:06:57 -06:00
4324ad3443
Starting rehype rework. 2026-06-29 16:13:41 -06:00
c3613fab29
Initial rework of parser. 2026-06-28 16:45:50 -06:00
c1d2bd2c18
Fix replacements. 2026-06-11 22:32:35 -06:00
37b9e8c7ae
Apply same logic to quote types as those applied to "cite" types. 2026-06-11 19:56:41 -06:00
dbe8c1e3fa
Added utility class for citations. 2026-06-11 17:58:57 -06:00
00b1cadfa2
Set "quote" class. 2026-06-11 00:04:52 -06:00
89b3533d3f
Set class 2026-06-11 00:02:58 -06:00
75271447d7
Rehype parser plugins more appropriately target my intended use case.
This will link (when using ()[:scripture] links) things like Job 3:5,
10:21-22, etc., all to the book of Job without having to repeat the book
name.

Different anchor styles (including for quoting Christ) will be included
in the near future.
2026-06-10 23:21:01 -06:00
e20f4f45de
Adding Astrojs sources. 2026-06-05 14:31:12 -06:00