53 Commits

Author SHA1 Message Date
Elian Doran
758df0d85a
fix(share): Prevent crashing if candidate note is null (#8164) 2025-12-29 20:43:12 +02:00
Elian Doran
290f488c78
feat(share): ignore unsupported icon packs 2025-12-27 22:09:16 +02:00
Elian Doran
b00cb52da5
feat(share): basic support for custom icon packs 2025-12-27 21:58:18 +02:00
Wael Nasreddine
cb016c4307 Address Gemini's comment 2025-12-25 16:26:58 -08:00
Wael Nasreddine
7c7797d35a fix(share/prev_next): Prevent crashing if candide page is null
When a note is not visible, attempting to export it ends up crashing the
server with this error:

```
TypeError: ejs:193
    191|
    192|                 <% if (hasTree) { %>
 >> 193|                     <%- include("prev_next", { note: note, subRoot: subRoot }) %>
    194|                 <% } %>
    195|             </footer>
    196|         </div>
ejs:1
 >> 1| <%
    2|     // TODO: code cleanup + putting this behind a toggle/attribute
    3|     const previousNote = (() => {
    4|         // If we are at the subRoot, there is no previous
Cannot read properties of undefined (reading 'hasVisibleChildren')
    at eval (eval at compile (/usr/src/app/main.cjs:553:203), <anonymous>:27:26)
    at eval (eval at compile (/usr/src/app/main.cjs:553:203), <anonymous>:34:7)
    at d (/usr/src/app/main.cjs:557:265)
    at g (/usr/src/app/main.cjs:557:251)
    at eval (eval at compile (/usr/src/app/main.cjs:553:203), <anonymous>:293:17)
    at d (/usr/src/app/main.cjs:557:265)
    at as.render (/usr/src/app/main.cjs:532:458)
    at Omr (/usr/src/app/main.cjs:581:109552)
    at Rmr (/usr/src/app/main.cjs:581:107637)
    at $W.prepareContent (/usr/src/app/main.cjs:653:28) {
  path: ''
```

fixes #8002
fixes #8162
2025-12-25 16:11:01 -08:00
Elian Doran
416c05ed3b
fix(share): footer navigation doesn't respect #shareHiddenFromTree (closes #7781) 2025-11-19 08:43:57 +02:00
Elian Doran
a317331551
fix(share): theme toggle flashing while switching between notes 2025-10-29 19:05:23 +02:00
Elian Doran
eeec3e440d
fix(share): flash while theme is loading 2025-10-29 19:00:09 +02:00
Elian Doran
b06aa29ea3
chore(share): remove leftover color management logic 2025-10-29 18:46:55 +02:00
Elian Doran
cf8089b07f
feat(export/share): functional full-text search 2025-10-29 13:58:37 +02:00
Elian Doran
88d90fdedd
fix(export/share): favicon working only on top-level 2025-10-28 18:23:11 +02:00
Elian Doran
955b202b8a
chore(export/share): hide last updated 2025-10-28 17:59:12 +02:00
Elian Doran
54200fa0cb
chore(export/share): disable non-functional search 2025-10-28 17:33:36 +02:00
Elian Doran
dd5b3a3c1c
chore(server): address requested changes 2025-10-28 15:44:00 +02:00
Elian Doran
ea53665e64
Merge remote-tracking branch 'origin/main' into feature/export_with_share_theme 2025-10-24 14:43:20 +03:00
Elian Doran
d2b6014b49
fix(share): HTML tags displayed escaped in headings 2025-10-23 14:19:54 +03:00
Elian Doran
94d62f810a
fix(share): heading and navigation not supporting CJK (closes #6430) 2025-10-23 14:06:13 +03:00
Kevin Leutzinger
0a25d4db0d shareHTML to shareHtml 2025-10-01 03:30:16 -04:00
Kevin Leutzinger
d483b6e840 add shareHTML relation 2025-09-30 23:06:20 -04:00
Elian Doran
050aa40e20
fix(dx/share): templates and script not accessible 2025-09-03 12:12:01 +03:00
Elian Doran
a2110ca631
fix(export/share): tree not expanding properly 2025-06-24 17:45:06 +03:00
Elian Doran
77e4c3d0ec
refactor(export/share): use different URL rewriting mechanism 2025-06-23 19:28:45 +03:00
Elian Doran
8523050ab2
fix(export/share): note children preview links not working 2025-06-23 19:00:20 +03:00
Elian Doran
01beebf660
feat(export/zip): load script as well 2025-06-14 01:23:02 +03:00
Elian Doran
d3115e834a
feat(export/zip): get logo to work 2025-06-14 01:01:12 +03:00
Elian Doran
d8958adea5
feat(export/zip): basic tree navigation 2025-06-14 00:07:55 +03:00
Elian Doran
4d5e866db6
feat(export/zip): get CSS to load 2025-06-13 23:47:04 +03:00
Elian Doran
f189deb415
feat(export/zip): get tree to render 2025-06-13 23:22:44 +03:00
Elian Doran
8e73c5906d
fix(server): missing boxicons in desktop/mobile 2025-06-09 22:18:44 +03:00
Elian Doran
4216a71a85
fix(server): render share theme on prod 2025-06-09 21:58:56 +03:00
Elian Doran
fd06046be5
refactor(share): remove swagger integration 2025-06-09 21:17:04 +03:00
Elian Doran
f20d4cbed2
refactor(share): translate messages 2025-06-09 21:16:03 +03:00
Elian Doran
d68d0b5dd8
feat(share): disable search if single note 2025-06-09 20:53:48 +03:00
Elian Doran
3b81d00de7
fix(share): crash if sharing single note without tree 2025-06-09 20:52:02 +03:00
Elian Doran
dd6660a6cd
chore(share): use locale-friendly date 2025-06-09 20:49:06 +03:00
Elian Doran
8cb7dc7a7e
feat(share): integrate last updated date 2025-06-09 20:47:36 +03:00
Elian Doran
dc5bb627ed
feat(share): integrate prev/next navigation 2025-06-09 20:36:04 +03:00
Elian Doran
02fe7c97ca
feat(share): automatic light/dark mode 2025-06-09 19:38:44 +03:00
Elian Doran
0cba323091
feat(share): display icons in note tree 2025-06-09 18:47:02 +03:00
Elian Doran
54ffeeaed9
refactor(share): remove experiment to precompile EJS 2025-06-09 16:24:21 +03:00
Elian Doran
828da2aabf
refactor(share): relocate 404 template 2025-06-09 16:22:22 +03:00
Elian Doran
50777faa02
feat(share): add the Trilium logo by default 2025-06-09 15:10:50 +03:00
Elian Doran
157b4f9398
feat(share): expand subchildren when in folder 2025-06-09 15:02:50 +03:00
Elian Doran
c2e0640ea8
chore(share): fix error in dev mode 2025-06-09 14:29:19 +03:00
Elian Doran
3cd4b1b67e
chore(share): remove redundant script import 2025-06-09 14:28:13 +03:00
Elian Doran
8bdf3626f0
refactor(share): integrate with client 2025-06-09 14:13:35 +03:00
Elian Doran
3def1a1e57
chore(share): introduce theme script 2025-06-09 13:37:38 +03:00
Elian Doran
4fcb186022
chore(share): bring back original share.js 2025-06-09 13:35:14 +03:00
Elian Doran
7451c2701e
chore(share): bring back CSS 2025-06-09 13:33:25 +03:00
Elian Doran
d6bb790e26
chore(share): use rendered template (missing include) 2025-06-09 11:12:02 +03:00