andrigamerita
d264f45979
fix: code blocks of unknown languages cause HTML injection ( #3711 )
...
* fix: code blocks of unknown languages cause HTML injection
A code block of unknown language (that is, a language not treated as special by Memos and not handled by highlight.js) should fall back on rendering its plaintext content. However, the content is never properly escaped before it is appended to the DOM, and thus any string that happens to contain HTML is unsafely rendered. This commit fixes the issue by ensuring that, when none of the previous cases handle the text, any HTML entities are escaped first.
* Update CodeBlock.tsx to conform to eslint
2024-07-19 08:32:58 +08:00
Steven
5704aaad08
chore: tweak embeded memo style
2024-07-17 22:48:22 +08:00
Steven
ef7e2151dc
chore: update memo relation list
2024-07-17 21:40:43 +08:00
Steven
e2fd79200e
feat: implement inline memo editor
2024-07-17 21:07:36 +08:00
Steven
956f21838d
chore: fix popover z-index
2024-07-17 20:28:31 +08:00
Steven
878fea5f13
chore: use popover for update tag view setting
2024-07-17 08:46:52 +08:00
Steven
f2cfc528a6
chore: introduce tag view option
2024-07-15 22:55:59 +08:00
Johnny
9909fd8a6f
feat: add snippet field to memo message ( #3689 )
2024-07-15 08:08:08 +08:00
Johnny
bcb8843245
chore: implement stringify markdown nodes endpoint ( #3688 )
2024-07-14 20:46:57 +08:00
Johnny
7c9e54afbd
chore: update disallow public visibility setting name ( #3687 )
2024-07-14 20:23:19 +08:00
Steven
f374169a2b
feat: implement html element renderer
2024-07-13 11:06:51 +08:00
Johnny
5a196e2f1a
feat: update gomark version ( #3679 )
2024-07-12 22:17:03 +08:00
Steven
457cf92cc1
feat(api): implement get resource by uid
2024-07-11 23:43:44 +08:00
Steven
1ab2c89408
feat(api): implement get memo by uid
2024-07-11 23:31:50 +08:00
Steven
626c972d9c
chore: add properties to memo detail sidebar
2024-07-08 23:14:00 +08:00
Johnny
5e3ed201b4
fix: update mask of update memo ( #3659 )
2024-07-08 08:50:38 +08:00
Johnny
eccddb1154
chore: add create time to memo detail sidebar ( #3657 )
2024-07-07 23:09:48 +08:00
Johnny
4d2b953e23
chore: add enable link preview setting to memo related settings ( #3647 )
2024-07-02 22:00:38 +08:00
Steven
1ad5d9bf0a
chore: update confirm dialog
2024-07-01 23:22:39 +08:00
Steven
291b815653
feat: implement memo detail sidebar
2024-07-01 23:06:10 +08:00
Steven
05c6edfe2f
chore: tweak auth pages
2024-06-26 22:11:18 +08:00
Johnny
736637a362
feat: add public flag instead of system setting to enable signup ( #3589 )
2024-06-19 22:03:12 +08:00
Steven
076aa2f8aa
chore: remove memo filter
2024-06-05 23:18:14 +08:00
Steven
d159975994
chore: update statistics view
2024-06-05 20:46:35 +08:00
Martin MacDonald
aec5927d31
feat: add hook for generating different date times ( #3524 )
...
* Added hook for generating different date times
* Fixed up logic to destructure the datetime params
---------
Co-authored-by: Martin MacDonald <martinmacdonald@Martins-MacBook-Pro.local>
2024-06-05 19:52:07 +08:00
Steven
7375b87967
chore: tweak tooltips
2024-06-05 08:51:04 +08:00
Steven
d0ac866eb1
chore: update statistics view
2024-06-05 08:48:40 +08:00
Martin MacDonald
f0817f2762
chore: update fetch tags args ( #3515 )
...
* Centralised the logic for filters to apply to tagging and updated components to pass in those params needed
* Fixed linting issue
* Split out params from options
* Fixed linting errors
---------
Co-authored-by: Martin MacDonald <martinmacdonald@Martins-MacBook-Pro.local>
2024-06-05 08:06:01 +08:00
Martin MacDonald
0977acbc7f
fix: update uniqby key ( #3518 )
...
* Used correct uniqby key
* Put back filter
---------
Co-authored-by: Martin MacDonald <martinmacdonald@Martins-MacBook-Pro.local>
2024-06-05 08:03:56 +08:00
Steven
e8ed437ca3
fix: purify html before render
2024-06-04 23:10:54 +08:00
Steven
2b49025f4a
chore: update memo filters
2024-06-04 23:03:51 +08:00
Steven
8c0bee3840
chore: tweak refresh button
2024-06-01 23:27:35 +08:00
Steven
4e54ec38ff
chore: update memo related settings
2024-06-01 09:05:09 +08:00
Steven
0657a1ef5b
chore: fix memo editor cache
2024-06-01 08:48:54 +08:00
Steven
b215426623
chore: update general setting
2024-05-30 07:19:38 +08:00
Steven
0f4b7c5f4a
feat: add more memo settings
2024-05-29 23:17:53 +08:00
Steven
cf70867470
chore: update tag section
2024-05-29 08:03:01 +08:00
Steven
719c22fef8
chore: update i18n
2024-05-29 07:39:16 +08:00
Steven
cbf556fee5
chore: fix memo cache key
2024-05-28 23:23:23 +08:00
Steven
0275a65781
chore: add last visited page
2024-05-28 09:05:59 +08:00
Steven
f0e5a72271
feat: update search memo filter
2024-05-27 23:25:25 +08:00
Steven
ba0876a563
feat: update statistics view
2024-05-27 20:04:07 +08:00
Steven
1ccfa81cf3
chore: tweak common function
2024-05-26 11:02:23 +08:00
Steven
7d6dbb9487
fix: link hover handler
2024-05-22 23:25:04 +08:00
Steven
21838d0aae
chore: fix editor autocomplete
2024-05-20 08:49:55 +08:00
Steven
c25c57ab61
feat: support updating display time
2024-05-18 07:52:35 +08:00
Steven
0c251f9ab8
chore: fix resource delete handler
2024-05-16 21:53:12 +08:00
Steven
c8ff3fa2ee
chore: fix uploading flag
2024-05-15 09:08:34 +08:00
Steven
9265b8e2bd
chore: update tags filter
2024-05-14 08:12:25 +08:00
Steven
2317204c50
fix: list idp
2024-05-14 07:04:17 +08:00