Commit Graph

58 Commits

Author SHA1 Message Date
3220adbff9 refactor: split memo service 2024-12-26 20:13:05 +08:00
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>
2024-12-24 15:23:15 +00:00
cfe1765067 chore: tweak user statistics view 2024-10-15 20:30:24 +08:00
14712b42fa chore: add pagination to list inboxes 2024-10-14 23:32:39 +08:00
b4d72e3349 fix: memo visibilities with filter 2024-10-14 21:31:44 +08:00
d11e7a3a9a chore: remove duplicated requests 2024-10-07 01:40:15 +08:00
2837816ff7 chore: fix component state 2024-09-26 00:27:39 +08:00
b144faf43a feat: add location selector 2024-09-26 00:03:17 +08:00
63989ab365 feat: add location to memo payload 2024-09-25 21:48:54 +08:00
41976cb894 feat: update memo endpoints 2024-09-22 15:43:46 +08:00
88db037204 chore: fix linter warnings 2024-09-04 23:31:28 +08:00
4209575244 chore: tweak folder naming style 2024-09-04 23:29:18 +08:00
7a9f61967d feat: allow admin users to update other memos 2024-09-02 20:59:22 +08:00
20570fc771 refactor: resource thumbnail 2024-08-30 08:09:07 +08:00
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>
2024-08-29 21:01:57 +08:00
a8ea28066e chore: retire export memos 2024-08-28 23:20:32 +08:00
b376a20fb4 chore: tweak linter warnings 2024-08-20 08:25:34 +08:00
d1280bc04f chore: implement memo property runner 2024-08-20 08:07:48 +08:00
07667257d5 feat: support order by time asc 2024-07-31 23:34:00 +08:00
7564c40c8d chore: fix env init 2024-07-27 23:08:22 +08:00
139090fb8f chore: fix calendar timestamps 2024-07-27 09:47:12 +08:00
edc3b578d6 feat: implement search multi tags 2024-07-26 08:40:40 +08:00
44e56844f5 chore: tweak search resources 2024-07-22 15:33:02 +08:00
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`.
2024-07-19 07:14:31 +08:00
5a26b76511 chore: add memo content snippet 2024-07-17 08:18:37 +08:00
446e38f15b fix: memo content snippet 2024-07-16 22:19:48 +08:00
9909fd8a6f feat: add snippet field to memo message (#3689) 2024-07-15 08:08:08 +08:00
7c9e54afbd chore: update disallow public visibility setting name (#3687) 2024-07-14 20:23:19 +08:00
9449886d60 chore: fix linter 2024-07-12 08:36:55 +08:00
1ab2c89408 feat(api): implement get memo by uid 2024-07-11 23:31:50 +08:00
5e3ed201b4 fix: update mask of update memo (#3659) 2024-07-08 08:50:38 +08:00
b923988fd6 fix: can't change memo UID (#3621) 2024-06-26 07:18:00 +08:00
ca463891f2 chore: fix linter warning for slog (#3604) 2024-06-22 16:39:40 +08:00
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.
2024-06-09 19:22:13 +08:00
fa4521e0c5 chore: update gomark source 2024-06-06 23:09:13 +08:00
f33571fec6 feat: update webhook request payload 2024-06-05 20:53:20 +08:00
797f5a123c feat: add HasIncompleteTasks to memo property 2024-06-05 08:39:56 +08:00
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>
2024-06-03 19:50:13 +08:00
2e0d5412b4 chore: tweak webhook payload 2024-06-01 23:46:00 +08:00
f0e5a72271 feat: update search memo filter 2024-05-27 23:25:25 +08:00
ba0876a563 feat: update statistics view 2024-05-27 20:04:07 +08:00
a423dac12c chore: tweak memo property 2024-05-27 19:43:57 +08:00
1ccfa81cf3 chore: tweak common function 2024-05-26 11:02:23 +08:00
a177800e83 chore: tweak error message 2024-05-25 11:05:35 +08:00
4070998f9f chore: fix linter 2024-05-22 21:55:13 +08:00
d3235f75f3 chore: tweak memo definition 2024-05-22 21:52:41 +08:00
e0600388b2 chore: implement memo property endpoint 2024-05-22 09:21:12 +08:00
c25c57ab61 feat: support updating display time 2024-05-18 07:52:35 +08:00
b0aad6f694 chore: tweak resource payload 2024-05-17 08:50:02 +08:00
9265b8e2bd chore: update tags filter 2024-05-14 08:12:25 +08:00