Commit Graph

48 Commits (4fc686bbbc023d2ffd2ba1e46b8aaf0782a48fc8)

Author SHA1 Message Date
zadam 3faae63b84 set correct content type for error messages 2022-07-01 00:01:29 +07:00
Tom 26f3c1d453 rename canvas_note_share to canvas_share to align witih refactor 2022-05-11 09:06:30 +07:00
Tom 3df712b64f refactor canvas-note to canvas 2022-05-10 13:43:05 +07:00
Tom 358e8c548c remove branch bugfix 2022-05-09 16:47:28 +07:00
Tom f85ed672cc moving canvas_note_share to src/share and add routes 2022-05-09 16:38:23 +07:00
Tom f0f9274a3c remove route without filename 2022-05-09 16:17:14 +07:00
Tom dfa30358c5 ensure external assets in excalidraw are avoided 2022-05-09 16:08:56 +07:00
Tom dc35df9f63 optimize canvas_note share to make it more clear about view mode and excalidraw 2022-05-03 22:44:52 +07:00
Tom 1a4bc0b989 clean up code 2022-05-03 22:06:24 +07: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 +07:00
Matt 7bcd1c3009
Add download button to shared canvases (#7)
thx @sigaloid 

* Add download button to shared canvases
* Update canvas_note_share.js
* Update canvas_note_share.js
* Update canvas_note_share.js
* Change to more accurate language
2022-05-03 21:43:26 +07:00
zadam b3763eed61 make sure shaca is loaded before any request 2022-05-01 23:16:47 +07:00
zadam 3b58b83f8b improved logging 2022-04-19 23:36:21 +07:00
Tom 4e4010e15e update styles, fix share view 2022-04-19 21:46:25 +07:00
Tom cb88f316db basic share view render (css wrong) 2022-04-19 00:21:29 +07:00
Tom 536643ed3b add undefined check for branch
unclear why this happens
2022-04-19 00:21:29 +07: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 +07:00
Tom f53a93e828 make :filename for GETing an image optional 2022-04-19 00:17:39 +07:00
Tom e365521d5e add support for sharing canvas-note 2022-04-19 00:17:39 +07:00
zadam a45cf033aa fix hiding of linked images in shared notes, closes #2791 2022-04-15 23:09:07 +07:00
zadam e00fcd93a1 added #shareDisallowRobotIndexing label and reworked how the child-image exclusion works 2022-03-22 23:17:47 +07:00
zadam 091d6a1cf1 added #shareRaw label 2022-03-22 21:20:47 +07:00
Matt 77ce56ba84
Don't show protected notes in shared tree (#2704) 2022-03-07 23:00:07 +07:00
zadam a009b4cb6d remove debug logging 2022-02-16 22:31:02 +07:00
zadam f7e5d8f62d fix displaying hidden notes in the note's children list #2664 2022-02-16 22:16:15 +07:00
zadam 52b118df7f add #shareRoot label to define an "index" note, closes #2567 2022-01-17 23:13:56 +07:00
zadam 91dec23d5e ETAPI auth, spec improvements etc. 2022-01-10 17:09:20 +07:00
zadam 1fed71a92e shaca now loads attributes, added favicon and `shareJs` 2022-01-01 13:23:09 +07:00
Matt a910034c96
Fix math rendering (#2487) 2021-12-28 20:12:02 +07:00
zadam 3128a7d62f various tweaks to shared notes 2021-12-27 20:48:14 +07:00
Matt 8366a94bde
Various share page improvements (#2471)
* Add clientside mermaid chart rendering

Merry Christmas :)

* Add katex math rendering client-side

* Update page.ejs

* Revert (wrong branch)

* Add children nodes to all notes under hr

* Add parent note button

* Add note type in child note info

* Fix parent, relative paths

* Add code rendering, fix space in HTML class
2021-12-27 13:27:00 +07:00
zadam 0217b1c85d share pdf view is responsive 2021-12-24 22:46:55 +07:00
Matt a08985e7a6
Display PDF in shared notes (#2466)
* Add PDF rendering

* Cleanup
2021-12-24 22:36:31 +07:00
zadam 842c317568 cleanup 2021-12-23 21:08:43 +07:00
zadam 47845930f4 sharing improvements 2021-12-23 20:54:48 +07:00
zadam 972f2f40bf share improvements/cleanup 2021-12-23 12:54:21 +07:00
zadam f9709c9c39 added shareOmitDefaultCss label 2021-12-22 11:43:21 +07:00
zadam c0964a4f12 added shareAlias label 2021-12-22 10:57:02 +07:00
zadam bcef8579ce added shareCss relation and shareHiddenFromTree label 2021-12-22 09:36:38 +07:00
zadam 1180be75d1 added 404 error page 2021-12-22 09:10:38 +07:00
zadam 7c885a8b76 sharing WIP 2021-12-21 22:01:06 +07:00
zadam 3860028a9e sharing WIP 2021-12-20 17:30:47 +07:00
zadam ab550a1e8d share functionality WIP 2021-12-07 23:03:49 +07:00
zadam 08e8047d8a share functionality WIP 2021-12-06 22:53:17 +07:00
zadam 2d339dec6b share functionality WIP 2021-12-05 23:10:35 +07:00
zadam 980309ae2a sharing WIP 2021-10-19 22:48:38 +07:00
zadam 6a6bd4541a sharing WIP 2021-10-17 14:44:59 +07:00
zadam a14aa461ca sharing WIP 2021-10-16 22:13:34 +07:00