Use well-defined server errors instead of hardcoded messages that could be
slightly different and spread accross the code base.
Signed-off-by: Julien Riou <julien@riou.xyz>
In order to reduce security risk, the server now returns only functional error
messages to the clients and log low-level error messages.
Fixes#35.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Remove encryptionKey from URL
- Use POST method to pass both password and encryption key
- Parse URL fragment to extract the encryption key from the web (using
javascript) and from the CLI
Fixes#36.
Signed-off-by: Julien Riou <julien@riou.xyz>
Snowflake identifiers are integers, not strings.
BREAKING CHANGE: notes that are not using snowflake identifiers will not be
compatible anymore.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Remove the Monaco Editor because it was to heavy and hard to integrate
- Use Ace instead
- Use the lowercase identifier for languages (ex: "Text" -> "text")
- Select automatically the default language in the drop down to create a note
(like the expiration)
- Add `ace_directory` to serve assets from a local folder instead of a CDN
- "hcl" syntax highlighting has been removed
- "go" syntax highlighting has been renamed to "golang"
- Add option to disable the editor
Fixes#32.
Signed-off-by: Julien Riou <julien@riou.xyz>
- Add `allow_client_encryption_key` option to allow encryption key provided by
the client on the web UI (false by default)
- Add `allow_no_encryption` option to allow notes without encryption (disabled
by default)
Signed-off-by: Julien Riou <julien@riou.xyz>