Commit graph notes/src/utils/modal.js
Author SHA1 Message Date
9e368526c4
Updated drop-down and renderer for more testament-centry logic.
In the case of the drop-down, if a translation doesn't contain the
visible testament (e.g. the LXX while opening a NT passage), it will be
excluded from the list.

In the case of opening a link that is not contained in the currently
configured translation, a reasonable default will be selected instead.
2026-08-19 14:45:15 -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
35cb0f1f6a
Preliminary logic for selection translation. 2026-08-18 15:23:25 -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