Commit Graph

592 Commits

Author SHA1 Message Date
Daniele Tonon
3bf4a5231e Fix the air executable target 2024-01-08 22:52:43 +01:00
Daniele Tonon
41f4011bbd Add base.css to air auto reload 2024-01-08 21:42:07 +01:00
Daniele Tonon
caa36cda00 Make air compatible with templ 2024-01-08 21:41:55 +01:00
fiatjaf
f1472b90a6 moving some code around to show a "(reply)" on opengraph subscripts. 2024-01-08 16:39:03 -03:00
fiatjaf
87c2f25646 fix advanced switch. 2024-01-08 10:13:03 -03:00
fiatjaf
aad148f018 client url modifiers to fix streams on nostrudel. 2024-01-08 10:10:24 -03:00
fiatjaf
3c4c5be320 rework it again to be more like it was before. 2024-01-08 09:43:54 -03:00
fiatjaf
a9155a78b0 rework client lists backend code. 2024-01-08 09:11:00 -03:00
fiatjaf
a7325ea795 multiple fixes and adjustments until it compiles and runs. 2024-01-08 08:44:01 -03:00
fiatjaf
7f0bb418b6 ported all templates to templ syntax. 2024-01-07 15:48:55 -03:00
Daniele Tonon
b44771b0da Render videos inside the image preview 2024-01-06 01:13:19 +01:00
Daniele Tonon
5e46f10453 Render images inside the image preview 2024-01-06 00:36:53 +01:00
fiatjaf
c4e61ac22c fix eventstore bug (hopefully). 2024-01-05 18:16:34 -03:00
Daniele Tonon
56e77a37fa Fix minor html errors 2024-01-05 20:56:36 +01:00
Daniele Tonon
f5527c56c7 Avoid displaying fetch errors 2024-01-05 20:47:36 +01:00
Daniele Tonon
b52c514653 Merge branch 'dynamic-font-size-stuff' 2024-01-05 12:52:22 +01:00
fiatjaf
eb8c9c393d get rid of twitter messy inscriptions over our image. 2024-01-05 01:11:42 -03:00
Daniele Tonon
7ad5ac2984 Trim cache key prefixes and the relay protocols, before using them 2024-01-03 12:28:38 +01:00
Daniele Tonon
b7db88cf09 Use profiles relays set in loadRelaysArchive
Otherwise it fails to fetch the relays
2024-01-03 12:28:38 +01:00
Daniele Tonon
cd19675596 Fix domains output in robots.txt 2024-01-03 11:16:41 +01:00
Daniele Tonon
33d02097a1 Optimize text rendering, avoiding useless prints 2024-01-03 08:13:06 +01:00
Daniele Tonon
3e7f755f69 Update cut gradient calculation, again 2024-01-03 08:05:42 +01:00
Daniele Tonon
7728387171 Update font-size calculation, again 2024-01-03 08:04:49 +01:00
Daniele Tonon
e8d5141088 Update logic to show the cut gradient
S
2024-01-02 18:31:06 +01:00
Daniele Tonon
497bf5e39c Update font-size calculation including height of text-image 2024-01-02 18:23:13 +01:00
Daniele Tonon
ab4c2670f6 Support fake extension in text-image to permit easy loading on Nostr 2024-01-02 16:54:48 +01:00
Daniele Tonon
5264f6df2b Support webp and gif for profile's pic 2024-01-02 16:29:06 +01:00
fiatjaf
6b35b0393f when highlighting, allow names to have emojis. 2024-01-02 11:11:14 -03:00
Daniele Tonon
1612251487 Update text highlighting colors 2024-01-02 14:06:58 +01:00
fiatjaf
5882462547 hlSkip and stop using @ prefix on names. 2024-01-02 10:06:44 -03:00
fiatjaf
c073d6e57c snake case to camel case in some places. 2024-01-02 09:26:41 -03:00
fiatjaf
587b096ebc cleanup the formula code. 2023-12-31 18:18:10 -03:00
fiatjaf
1cbc1436c9 remove a print statement. 2023-12-31 18:15:55 -03:00
fiatjaf
d806cea4d2 fix d1d172b96c, that constant was wrong. 2023-12-31 18:05:47 -03:00
fiatjaf
51a5bd770a replace fancy dynamic font size detector with a mathematical formula that should be good enough.
the fancy thing was breaking for all japanese and chinese notes, and in some english notes too, I don't know why.

it also gave me a bad feeling because it was a loop that seemed expensive.
2023-12-31 17:50:44 -03:00
fiatjaf
91a0ea768b do not use language detector model on dev mode.
because it's slow.
2023-12-31 17:50:12 -03:00
fiatjaf
d1d172b96c match numbers and letters on highlight. 2023-12-31 15:23:32 -03:00
fiatjaf
5bc8b5bbde @-prefixed and highlighted mentions in text images. 2023-12-31 14:38:32 -03:00
fiatjaf
d85872a1b5 naïve text highlighting. 2023-12-31 14:26:14 -03:00
fiatjaf
ba42ca42e2 fix sitemap url.
closes https://github.com/fiatjaf/njump/issues/27
2023-12-29 18:09:28 -03:00
Daniele Tonon
37a05bf2a4 Improve dynamic font size calculation in text-image 2023-12-29 14:51:22 +01:00
Daniele Tonon
8d6b3f5cd9 Merge branch 'use-go-text-typesetting' 2023-12-29 13:42:53 +01:00
Daniele Tonon
83cb6f4cc1 Add dynamic font resizing for <140 chars notes 2023-12-28 23:16:03 +01:00
Daniele Tonon
f748b99eb1 Show cut gradient at the text-image bottom only if necessary 2023-12-28 23:00:22 +01:00
Daniele Tonon
89ed30c1ec Fix different Telegram padding in the text-image 2023-12-28 21:40:10 +01:00
Daniele Tonon
6c85d22962 Render author name using drawText() to support emoji 2023-12-28 21:22:49 +01:00
fiatjaf
0940f0f981 this requires a variation of go-text/typesetting that exposes .Codepoint 2023-12-28 16:27:23 -03:00
fiatjaf
46a4891048 use emojiBuffer as the rule and make mainBuffer adapt to it, removing glyphs as necessary. 2023-12-28 16:22:18 -03:00
fiatjaf
f06badf393 trying to remove unused glyphs from mainBuffer since they got merged in emojiBuffer. 2023-12-28 15:39:44 -03:00
fiatjaf
bfb1477ce6 fix newline replacer code and remove \t and \r before rendering. 2023-12-28 09:03:14 -03:00