Commit Graph

57 Commits (e913271f15ef4fb3116bcc17f291622a15094dfc)

Author SHA1 Message Date
Johnny e913271f15
refactor: move tags from property to payload ()
* refactor: move tags from property to payload

* chore: fix tests

* chore: drop memo tags

* chore: update

---------

Co-authored-by: Steven <stevenlgtm@gmail.com>
Steven cfe1765067 chore: tweak user statistics view
Steven 14712b42fa chore: add pagination to list inboxes
Steven b4d72e3349 fix: memo visibilities with filter
Steven d11e7a3a9a chore: remove duplicated requests
Steven 2837816ff7 chore: fix component state
Steven b144faf43a feat: add location selector
Steven 63989ab365 feat: add location to memo payload
johnnyjoy 41976cb894 feat: update memo endpoints
Steven 88db037204 chore: fix linter warnings
Steven 4209575244 chore: tweak folder naming style
johnnyjoy 7a9f61967d feat: allow admin users to update other memos
Steven 20570fc771 refactor: resource thumbnail
RoccoSmit 9b1adfbbe9
feat: reintroducing thumbnails ()
* 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>
Steven a8ea28066e chore: retire export memos
Steven b376a20fb4 chore: tweak linter warnings
Steven d1280bc04f chore: implement memo property runner
Steven 07667257d5 feat: support order by time asc
Steven 7564c40c8d chore: fix env init
Steven 139090fb8f chore: fix calendar timestamps
Steven edc3b578d6 feat: implement search multi tags
Steven 44e56844f5 chore: tweak search resources
andrigamerita af952807c7
feat: write memo UID in file names when exporting to Markdown ()
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`.
Steven 5a26b76511 chore: add memo content snippet
Steven 446e38f15b fix: memo content snippet
Johnny 9909fd8a6f
feat: add snippet field to memo message ()
Johnny 7c9e54afbd
chore: update disallow public visibility setting name ()
Steven 9449886d60 chore: fix linter
Steven 1ab2c89408 feat(api): implement get memo by uid
Johnny 5e3ed201b4
fix: update mask of update memo ()
Roman Lomonosov b923988fd6
fix: can't change memo UID ()
Johnny ca463891f2
chore: fix linter warning for slog ()
andrigamerita e4a09c407c
feat: write memo visibility in file names when exporting ()
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.
Steven fa4521e0c5 chore: update gomark source
Steven f33571fec6 feat: update webhook request payload
Steven 797f5a123c feat: add `HasIncompleteTasks` to memo property
Martin MacDonald 760dee4159
feat: delete memo comments when memo is deleted ()
* 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>
Steven 2e0d5412b4 chore: tweak webhook payload
Steven f0e5a72271 feat: update search memo filter
Steven ba0876a563 feat: update statistics view
Steven a423dac12c chore: tweak memo property
Steven 1ccfa81cf3 chore: tweak common function
Steven a177800e83 chore: tweak error message
Steven 4070998f9f chore: fix linter
Steven d3235f75f3 chore: tweak memo definition
Steven e0600388b2 chore: implement memo property endpoint
Steven c25c57ab61 feat: support updating display time
Steven b0aad6f694 chore: tweak resource payload
Steven 9265b8e2bd chore: update tags filter
Steven 2317204c50 fix: list idp