Commit Graph

50 Commits

Author SHA1 Message Date
fiatjaf
c0004f67a2 fix slowness of previous refactors that injected nostr-sdk into this codebase + refactors.
- adjusting many small things related to nostr-sdk usage
- fetching profiles in a smarter way
- decoupling the logic for rendering profile pages from the `grabData`/`getEvent` flow of other event pages.
- incorporating nostr-sdk more holistically, including more hints stuff
- improving nostr-sdk itself after some bugs and weird behaviors observed here
- set up opentelemetry (should probably remove this later)
2024-08-02 12:48:58 -03:00
dtonon
4cb5d6f5c7 Add basic wiki articles rendering
Wikilinks are broken
2024-07-25 15:21:34 +02:00
fiatjaf
47423ddcc4 move some things to enhanced_event.go, that makes more sense. 2024-06-19 22:06:09 -03:00
fiatjaf
1eb3c45755 remove HTML archives pages, leave only the sitemaps. 2024-06-12 15:30:41 -03:00
dtonon
261e1b8b38 Add cover image to long format notes 2024-06-07 12:42:04 +02:00
dtonon
cae76d1168 Show correct datetime in relation to time zone 2024-06-07 12:35:36 +02:00
Daniele Tonon
bf2ca24a41 Add new homepage: top animation and first block 2024-04-08 16:28:12 +02:00
Daniele Tonon
61336b2995 Use nip52.Participant and add roles to calendard events 2024-03-05 02:02:06 +01:00
Daniele Tonon
235911a187 Add people to calendar event 2024-03-04 22:44:27 +01:00
Daniele Tonon
8a8663a36a Add support for calendar events (NIP-52) 2024-02-29 00:41:18 +01:00
mattn
4c19c277a8 fixed Dockerfile & "go generate" (#30) 2024-01-17 09:19:41 -03:00
fiatjaf
8403f6e129 massive template refactoring and cleanup. 2024-01-10 14:19:43 -03:00
fiatjaf
6b19f5103c move nip31, nip53, nip94 definitions to go-nostr and prepare for nip52. 2024-01-10 12:14:56 -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
6a2ff72985 Load profiles last notes asynchronously 2023-12-20 07:50:17 +01:00
Daniele Tonon
8e1e6bbf8f Preload text image 2023-12-19 18:35:38 +01:00
Daniele Tonon
35d053fc87 Support embedding profiles in external web pages
prifile design SQUASH
2023-11-28 20:14:22 +01:00
Daniele Tonon
0f6d6fa226 Support embedding notes in external web pages
SQASH
2023-11-27 12:20:49 +01:00
fiatjaf
8fb8acb86f more helpful error messages. 2023-11-23 21:04:21 -03:00
fiatjaf
bccd22654c ensure metadata is never nil again. 2023-11-22 11:45:38 -03:00
Daniele Tonon
b8345f9176 Add RSS for profiles and relays 2023-11-16 22:58:40 +01:00
Daniele Tonon
9f6726023c Manage not existen or inactive relay 2023-11-16 15:04:57 +01:00
fiatjaf
550739d8b1 have a link to the parent in telegram instant view. 2023-11-15 14:08:02 -03:00
Daniele Tonon
9fef9e87eb Improve error messages 2023-11-11 11:01:17 +01:00
Daniele Tonon
4b3c8c8592 Update error messages 2023-11-10 23:19:51 +01:00
Daniele Tonon
bf182d1a68 Show basic errors in a nice format 2023-11-10 22:54:48 +01:00
Daniele Tonon
12c1bebf99 Add support for live chat message, kind:1311 2023-11-07 15:13:05 +01:00
Daniele Tonon
b5a4cfdfdb Add support for live events, kind:30311 2023-11-06 23:28:20 +01:00
fiatjaf
604be14407 modularizing opengraph headers and fixing a bunch of small things on there. 2023-11-06 11:07:20 -03:00
fiatjaf
59eae28ed3 NIP-31: display "alt" tag in Other template if available. 2023-11-05 08:56:17 -03:00
fiatjaf
d05440b98f update go-nostr. 2023-11-04 16:09:00 -03:00
fiatjaf
f9b4f03999 expose Kind1063Metadata fields and use that struct directly in templates. 2023-10-31 10:57:34 -03:00
fiatjaf
1301f38443 move opengraph head metadata stuff into its own template partial. 2023-10-30 22:51:13 -03:00
fiatjaf
2fecd4e5f2 turn kind1063Metadata into a struct. 2023-10-30 22:28:33 -03:00
fiatjaf
68e3722bbd turn user-agent style possibilities into constants. 2023-10-30 19:35:59 -03:00
Daniele Tonon
ad91d3b96b Add basic support for NIP-94 - File Metadata 2023-10-30 23:29:23 +01:00
fiatjaf
1c36a379fd use naked (no relay hints) nip19 codes for canonical URLs and move them to head_common. 2023-10-28 13:17:53 -03:00
fiatjaf
f9e099c840 tailwind debug mode and build mode for prod and other adjustments. 2023-10-26 16:02:18 -03:00
fiatjaf
e7d1b37ca7 display nprofile in profile pages and hidden in event details. 2023-10-26 08:25:53 -03:00
fiatjaf
660952a338 syntax-highlight event JSON on the server. 2023-10-24 21:09:01 -03:00
fiatjaf
6ade15b7e8 tailwind .field and related things. 2023-10-24 17:27:20 -03:00
fiatjaf
ebeb9820d8 move redirectors, renderRelay and renderProfile out of render. 2023-10-21 14:10:08 -03:00
fiatjaf
f70b13afe7 relay and archive sitemaps xml (with a nice hack because htmlgo is not xml-friendly.) 2023-10-21 13:34:32 -03:00
fiatjaf
65025d4967 tmpl relay.html and replace LastNoteItem struct with a simpler EnhancedEvent with methods instead of hardcoded values. 2023-10-21 12:19:30 -03:00
fiatjaf
901b2b5d62 tmpl migration: profile.html 2023-10-21 11:47:28 -03:00
fiatjaf
b6225e027d tmpl migration: homepage.html 2023-10-21 08:25:04 -03:00
fiatjaf
6aa1440b05 tmpl migration: note.html 2023-10-21 07:45:44 -03:00
fiatjaf
bc947e29d8 mass tmpl migration: partials, other.html and archive.html. 2023-10-21 00:47:19 -03:00
fiatjaf
7293103fc7 first step in the migration to templ. 2023-10-19 21:11:26 -03:00