Commit Graph

952 Commits (201c8a8ea96f506b52ce187528a8b8dc691f827b)

Author SHA1 Message Date
Steven ad2c5f0d05 refactor: store cache 1 year ago
Steven f12d7ae8bc chore: add asynchronous webhook dispatch 1 year ago
Steven 46be6b0ff6 fix: missing service handler 1 year ago
Steven 64b27d5a4e refactor: shortcut service 1 year ago
Steven 46d5307d7f fix: prevent XSS for specific content types 1 year ago
johnnyjoy ee99afd7a4 chore: enable location by default 1 year ago
johnnyjoy f9e07a2245 feat: support update user's role 1 year ago
johnnyjoy ca79990679 refactor: merge sign in requests 1 year ago
johnnyjoy 43d176f272 fix: idp config convert 1 year ago
johnnyjoy 966a108d52 chore: check signin with sso 1 year ago
johnnyjoy ccfa9983e9 fix: user avatar url 1 year ago
Sergey Gorbunov e23ade1f8b
feat: support listening on a UNIX socket (#4654) 1 year ago
johnnyjoy eb33a604b2 feat: support mapping avatar url from oauth2 1 year ago
RichardYe ebccef6033
fix: shutdown gRPC server gracefully (#4626)
fix: add graceful shutdown for gRPC server
1 year ago
Steven a6be658f42 fix: list memo comments 1 year ago
Johnny 08f9b18ced
fix: list memo relations 1 year ago
Johnny 7632c52c0c chore: bump version 1 year ago
倒霉狐狸 ebf13c4dff
chore: caching resource files accelerates second requests (#4614)
* cache assets files

* Apply suggestions from code review

* Update server/router/frontend/frontend.go

* Update server/router/frontend/frontend.go

---------

Co-authored-by: Johnny <yourselfhosted@gmail.com>
1 year ago
Anubhav Singh a63d9b471b
feat: update ItalicNode to use repeated children instead of content (#4566)
* feat: update ItalicNode to use repeated children instead of content

* chore: update gomark dependency to latest version

---------

Co-authored-by: Anubhav Singh <anubhav@mail.techindika.com>
1 year ago
johnny 44df17aecc chore: bump version 1 year ago
Steven ea3a534ce5 chore: fix typo 1 year ago
Steven f1f0253e8d fix: typo 1 year ago
Amir Ehsandar e75ef0964d
feat: implement grpc health service checking database connection (#4499) 1 year ago
Johnny 34ab88348e chore: sort by pinned 1 year ago
Johnny d794e6db76
chore: remove internal frontend cache 1 year ago
Johnny fc5962f6a4 feat: show pinned count 1 year ago
Johnny 0dfcb1a7c8 feat: total memo count 1 year ago
Johnny 7a438be08d chore: update user stats 1 year ago
Johnny e3a4f49c5c feat: implement creator_id factor 1 year ago
Johnny 925e97882e feat: support pinned factor 1 year ago
Johnny 90119c1af8 refactor: move memo property 1 year ago
Johnny 16a0872972 chore: enable auto compact by default 1 year ago
Johnny 5562282822 chore: update demo site 1 year ago
Johnny 5bb4a300db chore: bump gomark 1 year ago
Johnny b897b243e5 feat: dynamic fetch user stats 1 year ago
Johnny 0da3859878 chore: bump version to `0.24.1` 1 year ago
Johnny b56aa397b2 chore: update assets routes 1 year ago
ProjectOrangeJuice 9f25bb2034
feat: trim space on webhook url (#4411) 1 year ago
MHZ 174b8b048a
feat: support blur processing for NSFW content with customizable NSFW tags (#4407) 1 year ago
boojack 04d7ba48e5
chore: remove default gzip middleware 1 year ago
Martin Hartl ae85dff5e4
chore: add id to RSS feed items (#4383) 1 year ago
Johnny 6abd51fe5a chore: update resource storage type comment 1 year ago
Johnny 0a429a899f chore: remove version update activity 1 year ago
johnnyjoy 13f6fa7b37 refactor: remove default visibility in workspace setting 1 year ago
Steven 4dfe078f3e chore: tweak memo link is rss 1 year ago
johnnyjoy 6c088e09d9 chore: fix import order 1 year ago
johnnyjoy a7ca63434b feat: validate shortcut's filter 1 year ago
johnnyjoy b734d429ec chore: fix linter warning 1 year ago
johnnyjoy 6682917931 chore: add validate only to create shortcut 1 year ago
johnnyjoy 81e8aed6ab chore: move part of memo filter 1 year ago
johnnyjoy fafd6d81c7 chore: fix linter warning 1 year ago
johnnyjoy be5e24c0eb refactor: renovate list memos endpoint 1 year ago
johnnyjoy 14c72fa7df feat: implement shortcuts 1 year ago
johnnyjoy b9a0c56163 feat: support more factors in filter 1 year ago
johnnyjoy 2d731c5cc5 feat: memo filter for sqlite 1 year ago
johnnyjoy 57014e392f feat: get user by username 1 year ago
johnnyjoy 45c16f9d52 chore: fix linter 1 year ago
johnnyjoy 0dcd0904e8 refactor: remove resource uid 1 year ago
johnnyjoy 97d12db3d5 refactor: renovate create memo 1 year ago
johnnyjoy 98aa0b73c5 refactor: retire memo uid 1 year ago
johnnyjoy b0119f320a chore: tweak migration scripts 1 year ago
johnnyjoy 5e770dda52 refactor: memo name 1 year ago
johnnyjoy 9bd6d17864 chore: add migration script 1 year ago
johnnyjoy d605faeffa refactor: move pinned to memo 1 year ago
johnnyjoy 2058a8ab7b chore: move references to memo property 1 year ago
johnnyjoy 75fd4223bf chore: bump version 1 year ago
Comix d9a92b2ef8
feat: support path style of s3 url (#4304)
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
1 year ago
johnnyjoy 702c092289 chore: update auth message 1 year ago
johnnyjoy 409d64b839 chore: update memo comment in activity 1 year ago
johnnyjoy f1308ddd27 refactor: update part of resource identifier 1 year ago
Steven edc3f1d9d9 chore: retire unused memo view 1 year ago
Steven 147458347b chore: tweak user stats in frontend 1 year ago
johnnyjoy 6904dc16af chore: fix linter 1 year ago
johnnyjoy c76ab87a0a refactor: update list user stats 1 year ago
johnnyjoy ee96465be0 feat: list user stats 1 year ago
johnnyjoy d050a6fd46 chore: update user stats 1 year ago
johnnyjoy 34c26a394a feat: implement user stats endpoint 1 year ago
Steven 5ff8ab9a61 chore: polish creator definition 1 year ago
Steven 8b7e9f5443 chore: remove unused user id 1 year ago
johnnyjoy c1498a1844 chore: retire webhook state 1 year ago
johnnyjoy 2a861ea430 refactor: tweak resource state in api 1 year ago
johnnyjoy 1caaef1c5b chore: fix memo compact mode 1 year ago
johnnyjoy d9d6f73330 chore: fix memo converter 1 year ago
johnnyjoy 7817ad07f7 chore: fix linter 1 year ago
johnnyjoy 3220adbff9 refactor: split memo service 1 year ago
johnnyjoy 541e07af8c chroe: rebuild memo references 1 year ago
johnnyjoy 3b0be442de chore: update memo payload runner schedule 1 year ago
Johnny e913271f15
refactor: move tags from property to payload (#4229)
* refactor: move tags from property to payload

* chore: fix tests

* chore: drop memo tags

* chore: update

---------

Co-authored-by: Steven <stevenlgtm@gmail.com>
1 year ago
JP Hastings-Edrei fcc4abf5b8
feat: remove RSS titles (#4140)
This removes the content of the <title> element in the RSS feeds that Memo produces.

Why remove? Every RSS client I can find shows the <title> next to the <description> when viewing an item. This creates a duplicate (but often trimmed, so less useful) version of <description> right above the actual text the user wants to read (often in a much larger font). It similarly makes lists of items in some clients extremely tall, as 128 characters is a lot of hard-to-read text — especially when Memos renders links as their URL in titles.

Why an empty tag? The RSS 1.0 and 2.0 specs require that a <title> element is present.

Examples from elsewhere:
- micro.blog uses an empty <title /> element: https://www.manton.org/feed.xml
- Bluesky omits the <title> element: https://bsky.app/profile/did%3Aplc%3Aqvzn322kmcvd7xtnips5xaun/rss
- Mastodon omits the <title> element: https://mastodon.social/@scalzi.rss
2 years ago
Steven 57c00734e2 fix: frontend build 2 years ago
Steven 7b79c49414 chore: remove version tests 2 years ago
d0zingcat e5cb2037e4
feat: allow to disable markdown shortcuts (#4025)
* add settting to disable markdown keymap

Signed-off-by: d0zingcat <leewtang@gmail.com>

* rename disable markdown shortcuts

Signed-off-by: d0zingcat <leewtang@gmail.com>

* fix lint

Signed-off-by: d0zingcat <leewtang@gmail.com>

---------

Signed-off-by: d0zingcat <leewtang@gmail.com>
2 years ago
Steven 009534f1cf chore: fix linter warning 2 years ago
Steven 68c2bd3837 chore: update memo relations 2 years ago
Steven cfe1765067 chore: tweak user statistics view 2 years ago
Steven 14712b42fa chore: add pagination to list inboxes 2 years ago
Steven b4d72e3349 fix: memo visibilities with filter 2 years ago
Steven b2f60758bc chore: update workspace setting in demo mode 2 years ago
Steven d066d46f6e chore: tweak schema version 2 years ago
Steven e527b6a878 feat: move reaction type to setting 2 years ago
wjsoj 1f9d657065
feat: support set global Default memo visibility (#3989)
* feat: support set global Default memo visibility

* feat: Move to WorkspaceMemoRelatedSetting

* fix: goimports check failure

* chore: change item name to default_visibility

* fix: goimports check failure
2 years ago
Steven d11e7a3a9a chore: remove duplicated requests 2 years ago
Steven 69ad5178b3 chore: update `MaxCallRecvMsgSize` 2 years ago
Steven 2b86069f3b chore: update `MaxRecvMsgSize` 2 years ago
Steven cf4e660f41 chore: add memo location setting 2 years ago
Steven 2837816ff7 chore: fix component state 2 years ago
Steven b144faf43a feat: add location selector 2 years ago
Steven 63989ab365 feat: add location to memo payload 2 years ago
Steven a55afbd3ed chore: tweak build actions 2 years ago
johnnyjoy 41976cb894 feat: update memo endpoints 2 years ago
Steven ca213437e9 feat: implement nesting lists 2 years ago
johnnyjoy 7a4d54bb3c chore: update error messages 2 years ago
Steven fbe0251eed feat: impl list renderer 2 years ago
Zisu Zhang b787d1c7b6
feat: support disable change username and nickname (#3911)
* feat: support disable change username and nickname

* chore: update UX
2 years ago
Steven 4790e84b98 chore: use ratio instead of max width 2 years ago
Haohan Yang 044d46c36d
chore: replace `unmatchedEmailAndPasswordError` with unmatchedUsernameAndPasswordError` (#3889)
replace unmatchedEmailAndPasswordError with unmatchedUsernameAndPasswordError
2 years ago
Steven 88db037204 chore: fix linter warnings 2 years ago
Steven 4209575244 chore: tweak folder naming style 2 years ago
Steven 9612c302c4 chore: bump version to `v0.22.5` 2 years ago
Steven 773ab96bd0 chore: update thumbnail generator 2 years ago
johnnyjoy 7a9f61967d feat: allow admin users to update other memos 2 years ago
RoccoSmit bfe57b9202
chore: set max thumbnail width to home/explore image max width (#3852)
* Set max thumbnail width to timeline img max width

* Prevent images less than thumbnail size from being scaled up

* Apply suggestions from code review

---------

Co-authored-by: boojack <24653555+boojack@users.noreply.github.com>
2 years ago
Steven 960af444fa chore: fix linter 2 years ago
Steven 20570fc771 refactor: resource thumbnail 2 years ago
RoccoSmit 9b1adfbbe9
feat: reintroducing thumbnails (#3821)
* Reintroducing thumbnails

* Aligned with linting rules

* making recomended code review change
- changed method names to start with lower case as they are not used outside of their package
- made receiver types for struct funcs to be pointers to not need to create copies

Trying to cover all linting issues
- converted slog warning to use attributes when logging warnings
- seperated imports to have package files in their own section

* Update go.mod

---------

Co-authored-by: boojack <24653555+boojack@users.noreply.github.com>
2 years ago
Steven bb86482b71 chore: tweak setting name 2 years ago
Steven f0abd792c7 chore: update auth service 2 years ago
Steven 1167df29d8 feat: add security related settings 2 years ago
Steven a8ea28066e chore: retire export memos 2 years ago
Steven d11bd30ec6 chore: tweak logger 2 years ago
Steven fbdfaf85d9 chore: update migrator 2 years ago
Steven 525223c261 chore: add tests for migrator 2 years ago
Steven b376a20fb4 chore: tweak linter warnings 2 years ago
Steven 2999f472dd chore: fix typo 2 years ago
Steven 45ddd05c42 chore: tweak linter warning 2 years ago
Steven d1280bc04f chore: implement memo property runner 2 years ago
Steven f4d6675363 chore: add enable memo comment setting 2 years ago
Steven 3c5aa41a78 feat: implement week start day setting 2 years ago
Steven c3f381c8c5 chore: add instance url to profile 2 years ago
Steven 21f18f7c56 chore: tweak activity service definition 2 years ago
Steven 07667257d5 feat: support order by time asc 2 years ago
Steven 7564c40c8d chore: fix env init 2 years ago
Steven 8bf7cdfd31 feat: add password auth flag 2 years ago
Steven 139090fb8f chore: fix calendar timestamps 2 years ago
Steven edc3b578d6 feat: implement search multi tags 2 years ago
Steven b3b4aa9ddb chore: remove unused code 2 years ago
Steven c5900b355e chore: tweak signup checks 2 years ago
Steven 553e8d09dd chore: update public default value to false 2 years ago
Steven 22ec0cf2e3 chore: bump version 2 years ago
Steven 44e56844f5 chore: tweak search resources 2 years ago
Steven 17ecfb5cf5 fix: acl config 2 years ago
andrigamerita af952807c7
feat: write memo UID in file names when exporting to Markdown (#3712)
When using the "export to Markdown" feature in Memos, the files included in the ZIP folder don't feature any kind of reference to their alphanumeric UID from the server's database, which completely breaks the point of links inside the files made with the `[[memos/<uid>]]` format, since it's impossible to know which Markdown file this kind of string inside other files refers to.

This pull request modifies the ExportMemos server function, to add the UID of every memo immediately after the date in the filename. For example, an exported memo would now be called: `YYYY-MM-DDThh:mm:ss+hh:mm-AbcDefGhiJklMnoPqrStu1-PUBLIC.md`.
2 years ago
Steven 5a26b76511 chore: add memo content snippet 2 years ago
Steven 446e38f15b fix: memo content snippet 2 years ago
Johnny 9909fd8a6f
feat: add snippet field to memo message (#3689) 2 years ago
Johnny bcb8843245
chore: implement stringify markdown nodes endpoint (#3688) 2 years ago
Johnny 7c9e54afbd
chore: update disallow public visibility setting name (#3687) 2 years ago
Steven 6825c1def4 fix: delete access token when sign out 2 years ago
Steven f374169a2b feat: implement html element renderer 2 years ago
Johnny 5a196e2f1a
feat: update gomark version (#3679) 2 years ago
Steven 9449886d60 chore: fix linter 2 years ago
Steven 457cf92cc1 feat(api): implement get resource by uid 2 years ago
Steven 1ab2c89408 feat(api): implement get memo by uid 2 years ago
Johnny 5e3ed201b4
fix: update mask of update memo (#3659) 2 years ago
Johnny 4d2b953e23
chore: add enable link preview setting to memo related settings (#3647) 2 years ago
Roman Lomonosov b923988fd6
fix: can't change memo UID (#3621) 2 years ago
Zeng1998 4f4fe9b26b
fix: add charset=utf-8 for text content resources (#3608)
Co-authored-by: = <=>
2 years ago
Johnny ca463891f2
chore: fix linter warning for slog (#3604) 2 years ago
steven 33cd3ed8e3 chore: bump version 2 years ago
Ryo a09c669865
fix: allow cors for grpc gateway handler (#3574) 2 years ago
Johnny 736637a362
feat: add public flag instead of system setting to enable signup (#3589) 2 years ago
Ryo 2c819ace4e
feat: return not found error instead internal error for local file not exist (#3543)
* chore: add `/.vscode` to `.gitignore`

* feat: return not found instead of internal for resource

* feat: check file not exist only if error not nil
2 years ago
andrigamerita e4a09c407c
feat: write memo visibility in file names when exporting (#3538)
When using the dedicated feature in Memos' user settings to export all memos to Markdown files inside a ZIP folder, the output doesn't feature any kind of distinction for memos by their set visibility.
While this is not a big issue for personal backups, it can reveal itself problematic if exporting the data to share it with other people, or maybe deploy to a static site generator, because there is nothing in the files that distinguishes public memos from private or workspace-restricted ones.

This pull request simply modifies the ExportMemos server function, to add the Visibility status to the end of every exported file name inside the ZIP, right after the date (which is left intact). For example, the file for a public memo would now be called: `YYYY-MM-DDThh:mm:ss+hh:mm-PUBLIC.md`.

An alternative solution would have been to write this information in a YAML header at the beginning of every Markdown file, but, since those are not used anywhere else in the software, I decided to stick with what is already used for export metadata, the filename.
2 years ago
Steven fa4521e0c5 chore: update gomark source 2 years ago
Steven f33571fec6 feat: update webhook request payload 2 years ago
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property 2 years ago
Steven bddfe00b5c chore: bump version 2 years ago
Martin MacDonald 760dee4159
feat: delete memo comments when memo is deleted (#3491)
* Added logic to delete memo relation and memo comments recursively when a memo is deleted

* Fixed logic to only target comment types and added removing of broken references

* Fixed linting errors

---------

Co-authored-by: Martin MacDonald <martinmacdonald@Martins-MacBook-Pro.local>
2 years ago
Steven 2e0d5412b4 chore: tweak webhook payload 2 years ago
Steven 4e54ec38ff chore: update memo related settings 2 years ago
Steven 98f2cf6397 chore: tweak linter 2 years ago
Steven b215426623 chore: update general setting 2 years ago
Steven 0f4b7c5f4a feat: add more memo settings 2 years ago
Steven f0e5a72271 feat: update search memo filter 2 years ago
Steven ba0876a563 feat: update statistics view 2 years ago
Steven a423dac12c chore: tweak memo property 2 years ago
Steven 2b4c2b23b2 chore: tweak linter 2 years ago
Ryo 784fcbb698
feat: add panic recovery middleware for grpc and echo server (#3459) 2 years ago
Steven 1ccfa81cf3 chore: tweak common function 2 years ago
Steven a177800e83 chore: tweak error message 2 years ago
Steven 4070998f9f chore: fix linter 2 years ago
Steven d3235f75f3 chore: tweak memo definition 2 years ago
Steven e0600388b2 chore: implement memo property endpoint 2 years ago
Steven 16d3de63c2 chore: update resource binary endpoint 2 years ago
Steven b5d2ff6e28 chore: fix linter 2 years ago
Steven 811c0757c4 chore: fix linter 2 years ago
Steven f37b34544b chore: update user access token checks 2 years ago
Steven 613c9e9416 chore: tweak version 2 years ago
Steven fb15386db2 chore: remove access token after sign out 2 years ago
Timothy 52ebfd703c
fix: update resource with id (#3405)
* chore: update presign expires

* fix: update resource with id

---------

Co-authored-by: timothy <timothy123890511@gmail.com>
2 years ago
Steven c25c57ab61 feat: support updating display time 2 years ago
Steven b0aad6f694 chore: tweak resource payload 2 years ago
Steven 537ae622d2 chore: filter inbox type 2 years ago
Steven 9265b8e2bd chore: update tags filter 2 years ago
Steven 2317204c50 fix: list idp 2 years ago
Steven 0c673d49ef chore: retire memo tags 2 years ago
Steven c561362d62 feat: implement memo property 2 years ago
Steven b8763905ba chore: tweak naming 2 years ago
Steven eda1983964 chore: return workspace setting with default value 2 years ago
Steven bb076ce486 chore: update list workspace settings 2 years ago
Lincoln Nogueira f45f673aec
chore: respect supplied listening address (#3338) 2 years ago
Steven 041f9b1beb chore: bump version 2 years ago
Steven 942052b1ea chore: update grpc options 2 years ago
Steven e0977e53f7 chore: remove unused route 2 years ago
Steven d0655ece53 refactor: update memo tags 2 years ago
Steven 2c270438ec chore: update default service config 2 years ago
Steven 4950ea1c74 fix: grpc max message size 2 years ago
steven e16546f80a chore: handle legacy workspace setting 2 years ago
Steven af1ad2f2db chore: add memo content length limit setting 2 years ago
Nabiel Omar Syarif 56ceba2dec
fix: fix deleting tag from tag lists (#3311) 2 years ago
Steven dfc0889a4f chore: tweak package name 2 years ago
Steven 10c57167cc chore: remove unused flags 2 years ago
Steven e9831caca1 chore: remove unused field 2 years ago
Steven b23b6302de chore: tweak linter 2 years ago
Steven 74145157a0 chore: add presign background service 2 years ago
Steven 05f73a2236 chore: tweak linter 2 years ago
Steven 775b79338d chore: update object in s3 2 years ago
Steven 26545c855c refactor: implement s3 storage 2 years ago
Steven 144269fbbc chore: fix router 2 years ago
Steven 832ad92bac chore: update gitignore 2 years ago
Steven 20dd3e17f7 chore: rename router package 2 years ago
Steven 8ae4bc95dc chore: migrate auth package 2 years ago
Steven ff175bbb7e refactor: update resource binary request handler 2 years ago
Steven 6295979592 chore: add user avatar route 2 years ago
Michael cac6f42770
fix: server matchs 2 years ago
Steven 155c5baf2c refactor: add markdown service 2 years ago
Steven 4338234641 chore: retire storage related functions 2 years ago
Steven 320963098f refactor: update storage setting 2 years ago
Steven f25c7d9b24 fix: serve frontend assets 2 years ago
Steven 1b291422e7 refactor: api version 2 years ago
Steven 92872118b9 refactor: tweak api definition 2 years ago
Steven 9b66ef5e26 chore: tweak api definition 2 years ago
Steven a6a62eb79c chore: update gitignore 2 years ago
Steven 5f26c52b49 feat: add goreleaser 2 years ago
Steven e8dfd579c3 chore: update background services 2 years ago
Steven 2a93b8d720 chore: tweak linter 2 years ago
Steven 5d967f41d9 chore: update server 2 years ago
Steven 339fecbfff chore: allow search comments 2 years ago
Steven 14d4cfd5a4 chore: tweak store methods name 2 years ago
Steven 95df647265 chore: tweak comments 2 years ago