Elian Doran
02708d593f
feat(in-app-help): add default icon for notes
2025-02-02 17:03:27 +02:00
Elian Doran
6215a21bae
feat(in-app-help): add dedicated icon for folders
2025-02-02 17:02:10 +02:00
Elian Doran
62dc11f9b8
feat(in-app-help): add icons for text notes
2025-02-02 16:54:09 +02:00
Elian Doran
7c34a6178a
feat(in-app-help): render documentation
2025-02-02 15:34:44 +02:00
Elian Doran
61ee15cc01
feat(in-app-help): update docName attribute if it got changed
2025-02-02 15:32:28 +02:00
Elian Doran
94d53727d1
feat(in-app-help): support child nesting
2025-02-02 14:31:07 +02:00
Elian Doran
f1d641ac32
feat(in-app-help): create notes at root level
2025-02-02 14:20:02 +02:00
Elian Doran
acbd936654
chore(types): add type for note meta file
2025-02-02 13:55:15 +02:00
Elian Doran
5afddb4ecc
feat(inapp-help): add hidden item for user guide
2025-02-02 13:30:22 +02:00
Adorian Doran
ca496e1d12
desktop app/export pdf: enable background colors
2025-02-01 19:16:47 +02:00
Elian Doran
fa655ea45e
feat(pdf): describe the attributes & fix conflict in name
2025-02-01 17:34:42 +02:00
Elian Doran
f41138800f
feat(pdf): allow changing page size via attribute
2025-02-01 17:10:49 +02:00
Elian Doran
9a3a6f90ea
Add option to export
2025-02-01 16:59:23 +02:00
Adorian Doran
9c4535bade
desktop app(export pdf): enable document outline and PDF tags generation
2025-02-01 16:31:25 +02:00
Adorian Doran
6d6272e5b6
desktop app(export pdf): refactor
2025-02-01 16:14:49 +02:00
Panagiotis Papadopoulos
e710409134
test(server/utils): remove completed TODO
2025-02-01 15:10:31 +01:00
Panagiotis Papadopoulos
08c32da0d2
test(server/utils): fix warnings and explicitly await timeLimit tests
2025-02-01 15:06:07 +01:00
Panagiotis Papadopoulos
13e72c5e0a
test(server/utils): add basic test for toObject
2025-02-01 15:00:47 +01:00
Panagiotis Papadopoulos
5c904f100a
test(server/utils): add prettier ignore statement to avoid newlines getting mangled
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
4917296d96
test(server/utils): add basic test for deferred
...
this needs to be expanded, but I don't fully understand
what the exact purpose is of this deferred fn
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
e1795a0ad1
test(server/utils): add tests for toMap
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
ab0c84a57e
refactor(server/utils): use a "real" Map for toMap
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
f0ba056bb7
test(server/utils): add tests for escapeHtml & unescapeHtml
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
d71e127828
refactor(server/utils): re-export escape/unescape instead of wrapping them in function
...
-> since the functions did not do *anything* other than calling the escape/unescape module -> let's just re-export them directly
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
72f0de6b78
test(server/utils): add todo remarks
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9f2dd21865
test(server/utils): add tests for randomSecureToken
...
(bit ugly I have to say, as we are essentially partially testing "crypto" module here,
probably should be instead replaced by a version that mocks crypto module and checks, if the called functions match the expectations)
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
a4ce2ddd5e
refactor(server/utils): simplify getResourceDir
...
get rid of unnecessary else branch here
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
6e5e6989ed
fix(server/utils): fix potentially "empty looking" title from getNoteTitle
...
when the noteMeta title consists of just spaces, it will fall back to "normal" handling again → instead of showing " " as title, which would be perceived as "empty"
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
46f28f4f09
test(server/utils): add edge case test for getNoteTitle
...
when the noteMeta title consists of just spaces, it should fall back to "normal" handling again → currently this fails
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
65be2cf048
refactor(server/utils): simplify getNoteTitle
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
c3587ad536
test(server/utils): add tests for getNoteTitle
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
c15e46bf25
chore(server/utils): improve types for getNoteTitle
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
b812e67794
test(server/utils): adapt tests for getContentDisposition
...
since we merged these functions, adapt the previous tests of sanitizeFilenameForHeader and use them for the newly merged function getContentDisposition
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
fedaec6c79
refactor(server/utils): merge sanitizeFilenameForHeader into getContentDisposition
...
sanitizeFilenameForHeader is not used anywhere else and is tiny, so let's merge it
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
29b1befd60
fix(server/utils): missing export for sanitizeFilenameForHeader
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
6ab9a3979d
refactor(server/utils): simplify sanitizeFilenameForHeader
...
since "" is falsy, we can just use "||" here
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
acb7098bb8
test(server/utils): add tests for sanitizeFilenameForHeader
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
df1d479720
chore(server/utils): sort exports alphabetically
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
ef66d330ec
chore(server/utils): timeLimit - add TODO comment
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9a8a27c02c
refactor(server/utils): avoid same variable name for error in timeLimit
...
rename the error created in timeLimit to `errorTimeLimit` to differentiate it from the error that is caught inside the promise
makes it a bit easier to quickly distinguish these
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
9eeedc827c
test(server/utils): add tests for timeLimit
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
440dbfd4d4
refactor(server/utils): use Set for isStringNote
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
3094b1779e
test(server/utils): add tests for isStringNote
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
5c20a6d5ee
test(server/utils): add tests for isDev
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
283b19c716
fix(server/utils): add missed export of isDev in default export object
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
de5ffb591d
test(server/utils): add tests for isMac/isWindows/isElectron
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
81db681732
refactor(server/utils): remove unused union
...
function is not used at all anywhere
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
45cf0334f1
test(server/utils): add tests for stripTags
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
738436061c
test(server/utils): add tests for removeDiacritic and normalize
2025-02-01 14:37:12 +01:00
Panagiotis Papadopoulos
92123e1761
refactor(server/utils): get rid of isString
...
let's use typeof x === "string" → works exactly the same and at the same speed as this custom isString fn
2025-02-01 14:37:12 +01:00