Elian Doran
7a9365457a
server-ts: utils.js -> utils.ts
2024-02-17 13:32:41 +02:00
Elian Doran
96b6d17d77
server-ts: Remove need for 'allowImportingTsExtensions'
2024-02-17 13:32:40 +02:00
Elian Doran
39627a4fc4
server-ts: log.js -> log.ts
2024-02-17 13:32:40 +02:00
zadam
cf99345962
use .js extension for require() as a preparation for future migration to ESM
2023-11-22 19:34:48 +01:00
zadam
494b240015
Merge branch 'beta'
...
# Conflicts:
# src/public/app/layouts/desktop_layout.js
2023-10-24 00:09:37 +02:00
zadam
5282af55f6
render attachment SVG when sharing mermaid
2023-10-21 17:32:07 +02:00
Zack Rauen
ec6b8476f9
Adjust shared notes search api
2023-10-08 14:54:37 -04:00
Zack Rauen
614cc4dd82
Allow users to use their own share template
2023-09-27 14:34:07 -04:00
zadam
f37dc66074
add support for storing canvas libraries in note attachments plus storing exported SVG in attachment
2023-09-08 21:53:57 +02:00
zadam
d6a4f1db13
share tree should include branch prefixes, fixes #4096
2023-07-17 22:19:03 +02:00
zadam
d475346a09
renamed attachment's parentId to more fitting ownerId
2023-07-14 17:01:56 +02:00
zadam
192e399cb5
typos
2023-06-30 11:18:34 +02:00
zadam
a46c5a2243
use isLabelTruthy() for most binary labels
2023-06-29 00:14:12 +02:00
zadam
75c6afd1c3
fix loading of string content saved as binary
2023-06-14 22:21:22 +02:00
zadam
0234ff5fca
share support for attachment file download
2023-06-06 00:16:32 +02:00
zadam
44bcfd47c0
share support for attachment images
2023-06-05 23:05:05 +02:00
zadam
6dfc72c065
many small fixes from Intellij analysis
2023-05-05 23:17:23 +02:00
zadam
6cf0fe0b73
attachments have a position
2023-04-11 22:55:50 +02:00
zadam
7c98ade72b
fix missing doc resources for launchers, closes #3455
2022-12-25 11:58:24 +01:00
zadam
724f99f17c
add prefix "_" to "named" IDs
2022-12-21 16:11:00 +01:00
zadam
db5e76fe8c
allow access to share api root note only if there's share index, #3434
2022-12-19 21:39:12 +01:00
zadam
2467464433
add possibility to define a share index, closes #3265
2022-11-01 22:49:37 +01:00
zadam
eb68ab6776
Merge branch 'stable'
2022-11-01 19:10:16 +01:00
zadam
38d6fddc61
redirect /share to /share/, closes #3264
2022-10-30 09:05:12 +01:00
zadam
b499640db8
use trilium version number in asset paths to avoid caching issues WIP
2022-10-26 23:50:54 +02:00
zadam
e5fdd5128a
fix password protected notes rejection
2022-08-01 19:56:09 +02:00
zadam
46deceedc9
optional basic auth for shared notes, closes #2781
2022-07-31 21:45:32 +02:00
zadam
3faae63b84
set correct content type for error messages
2022-07-01 00:01:29 +02:00
Tom
26f3c1d453
rename canvas_note_share to canvas_share to align witih refactor
2022-05-11 09:06:30 +02:00
Tom
3df712b64f
refactor canvas-note to canvas
2022-05-10 13:43:05 +02:00
Tom
f85ed672cc
moving canvas_note_share to src/share and add routes
2022-05-09 16:38:23 +02:00
Tom
f0f9274a3c
remove route without filename
2022-05-09 16:17:14 +02:00
Tom
1a4bc0b989
clean up code
2022-05-03 22:06:24 +02:00
Tom
8d510a3fdd
Merge remote-tracking branch 'upstream/master' into excalidraw
...
conflict in
- package-lock (accept incoming),
- routes (remove the option to have image without filename, since it is not really necessary for canvas_note)
- note_detail
2022-05-03 21:56:52 +02:00
zadam
b3763eed61
make sure shaca is loaded before any request
2022-05-01 23:16:47 +02:00
zadam
3b58b83f8b
improved logging
2022-04-19 23:36:21 +02:00
Tom
9771b441ad
missing path2d support for freedawings, remove node-side rendering, allow async getContent()
...
* ## Excalidraw and SVG
* 2022-04-16 - @thfrei
*
* Known issues:
* - excalidraw-to-svg (node.js) does not render any hand drawn (freedraw) paths. There is an issue with
* Path2D object not present in node-canvas library used by jsdom. (See Trilium PR for samples and other issues
* in respective library. Link will be added later). Related links:
* - https://github.com/Automattic/node-canvas/pull/2013
* - https://github.com/google/canvas-5-polyfill
* - https://github.com/Automattic/node-canvas/issues/1116
* - https://www.npmjs.com/package/path2d-polyfill
* - excalidraw-to-svg (node.js) takes quite some time to load an image (1-2s)
* - excalidraw-utils (browser) does render freedraw, however NOT freedraw with background
*
* Due to this issues, we opt to use **only excalidraw in the frontend**. Upon saving, we will also get the SVG
* output from the live excalidraw instance. We will save this **SVG side by side the native excalidraw format
* in the trilium note**.
*
* Pro: we will combat bit-rot. Showing the SVG will be very fast, since it is already rendered.
* Con: The note will get bigger (maybe +30%?), we will generate more bandwith.
* (However, using trilium desktop instance, does not care too much about bandwidth. Size increase is probably
* acceptable, as a trade off.)
2022-04-19 00:21:20 +02:00
Tom
f53a93e828
make :filename for GETing an image optional
2022-04-19 00:17:39 +02:00
Tom
e365521d5e
add support for sharing canvas-note
2022-04-19 00:17:39 +02:00
zadam
e00fcd93a1
added #shareDisallowRobotIndexing label and reworked how the child-image exclusion works
2022-03-22 23:17:47 +01:00
zadam
091d6a1cf1
added #shareRaw label
2022-03-22 21:20:47 +01:00
zadam
52b118df7f
add #shareRoot label to define an "index" note, closes #2567
2022-01-17 23:13:56 +01:00
zadam
91dec23d5e
ETAPI auth, spec improvements etc.
2022-01-10 17:09:20 +01:00
zadam
1fed71a92e
shaca now loads attributes, added favicon and shareJs
2022-01-01 13:23:09 +01:00
zadam
3128a7d62f
various tweaks to shared notes
2021-12-27 20:48:14 +01:00
Matt
a08985e7a6
Display PDF in shared notes ( #2466 )
...
* Add PDF rendering
* Cleanup
2021-12-24 22:36:31 +01:00
zadam
47845930f4
sharing improvements
2021-12-23 20:54:48 +01:00
zadam
c0964a4f12
added shareAlias label
2021-12-22 10:57:02 +01:00
zadam
bcef8579ce
added shareCss relation and shareHiddenFromTree label
2021-12-22 09:36:38 +01:00
zadam
1180be75d1
added 404 error page
2021-12-22 09:10:38 +01:00