Commit Graph

157 Commits

Author SHA1 Message Date
tecc
1261e68544
Merge pull request #168 from notea-org/fix/167-wider-screens
Width and padding improvements for the editor
2023-03-13 07:49:27 +01:00
tecc
b014142777
change: Give editor width setting own popup menu for easy switching 2023-03-12 09:43:22 +01:00
tecc
a592508fef
change: Add extra variant of NoSuchKey (I think?) 2023-03-09 13:38:32 +01:00
tecc
e356ea760f
fix(editor): Add support for full-width editing (fix for #167) 2023-03-09 13:23:35 +01:00
tecc
e3af53caf2
change: Clean the tree in the API call, cleaning utilities
tree-clean-utils: `TreeActions.cleanTreeModel` and `TreeActions.cleanItemModel` have been created. They simply fix the structure of their respective models.
/api/tree: /api/tree now always returns a cleaned tree.
2022-12-18 22:19:52 +01:00
tecc
73b0845e2c
Revert "change: Add runtime issue for not being able to get settings"
This reverts commit 073b4d0f, because I forgot I already registered an issue for that stuff.
2022-12-01 01:49:21 +01:00
tecc
c29c047dea
fix: Fix issue where values read from environment were always lowercase 2022-12-01 01:32:24 +01:00
tecc
073b4d0f26
change: Add runtime issue for not being able to get settings 2022-12-01 00:32:15 +01:00
tecc
102a573578
change(debug): Steps for fixes for more common issues, reformat
detailed-fixes: Fixes for more common issues are now provided by Notea. Some are still missing steps.
reformat: Simply reformatted using Prettier.
2022-11-29 00:17:28 +01:00
tecc
031130615f
change(debug): More detailed issues for store configuration
store-config-debug: Previously, all store issues were reduced down to `Could not load configuration for store`. Now, along with that message, it provides more detailed messages for improperly configured credentials and more.
misc: Reworded a few things as well.
2022-11-28 01:27:57 +01:00
tecc
11e2b79175
change(config): Temporary solution for errors when loading store config 2022-11-18 17:22:36 +01:00
tecc
3d4f8fb909
change(debug): Allow keyed runtime issues to reduce clutter 2022-11-18 17:22:36 +01:00
tecc
96ac878294
fix(debug): Make log file not crash the entire instance if it can't be created 2022-11-18 17:22:35 +01:00
tecc
ad1d7888ba
change(debug): Lock debug page based on environment variable as well
env-var: Setting the ALLOW_DEBUG environment variable to true allows you to access the debug page regardless of if an issue was detected.
2022-11-18 17:22:35 +01:00
tecc
f427ab0688
change(debug): Improved cause display for issues, more detailed causes
causes: Causes can now be error-like objects to provide more detail.
2022-11-18 17:22:35 +01:00
tecc
f89344ca33
fix: Failing to load config doesn't return 500 error for /debug page 2022-11-18 17:22:35 +01:00
tecc
615041a927
feat: Add rudimentary debugging utilities
/debug: Added a /debug page that's only accessible if a fatal error in configuration has occurred.
settings: The settings page now includes a debugging section with similar content to the debug page. This still needs styling but is otherwise OK.
2022-11-18 17:22:30 +01:00
tecc
2431c96409
fix(config): Detected S3 credentials now works
detected-s3-creds: Previously it was using a logical OR to check whether the `STORE_ACCESS_KEY` and `STORE_SECRET_KEY` were required (i.e. either the credentials are not detected OR the credentials were not already configured), but now uses a logical AND instead.
2022-11-18 17:19:49 +01:00
tecc
b656e5b14f
change: Make forcePathStyle default to false, move heroicons to dependencies 2022-10-19 08:08:04 +02:00
tecc
c098ac8fdd
fix(types): No more type errors for _app.tsx and link.ts 2022-10-19 01:56:59 +02:00
tecc
3c47567077
chore!: Update editor to @notea/rich-markdown-editor
editor: I forked Outline's rich-markdown-editor and made a Notea version for it. Now more of the editor-related issues can be fixed.
prosemirror-model: Upgraded prosemirror-model to 1.16.1. I don't know why 1.17+ doesn't work (suspecting something with instanceof not working) so this is a hack.
2022-10-19 01:55:39 +02:00
tecc
e2ce891fc8
change(promises): Nullability check for .catch calls
catch-nullability: For some reason, some functions that should return promises return null/undefined sometimes. This commit is purely so that that doesn't happen.
2022-10-08 01:17:08 +02:00
tecc
4f8d0a99cc
change(promises): Handling promises 2022-10-08 01:05:19 +02:00
tecc
26bf3f8735
fix(config): Fix server config section being accessed improperly
access: It was accessed directly through the `baseConfig` object, causing undefined issues.
2022-09-24 22:47:42 +02:00
tecc
0ea68b62c7
fix(config): Fix "Authentication undefined" error whilst building
auth-undefined: "Authentication undefined" is thrown by the `loadConfig()` function when there's no auth section. Any usage of `config()` must only be executed at runtime.
2022-09-24 21:24:33 +02:00
tecc
ad662afade
change(env): Move config().baseUrl to config().server.baseUrl
config/compatibility.yml: Updated the example to reflect how the config actually works.
move-to-server: It feels nicer to have it inside the `server` field.
2022-09-24 16:26:31 +02:00
tecc
6fb14e611f
change(env): Replace remaining usages of getEnv 2022-09-24 16:21:51 +02:00
tecc
5fcd9eabbe
change(env): Mark getEnv as deprecated
deprecation: Well, it is. `getEnv` is too direct. It's not really a good system.
2022-09-24 16:21:24 +02:00
tecc
c83f55219d
change(config): Add server field to config
server: The `server` field will just contain things related to the server. I dunno how to explain it, but it's for that.
useSecureCookies: `server.useSecureCookies` is the equivalent of `COOKIE_SECURE`.
config/compatibility.yml: Add documentation for the new `server` field.
2022-09-24 16:16:09 +02:00
tecc
d82c71070b
change(config): Add proxyAttachments config value.
proxyAttachments: `proxyAttachments` is the equivalent of `DIRECT_RESPONSE_ATTACHMENT`.
[...file].ts: Replaced direct usage of `getEnv` with new config system.
2022-09-24 15:58:43 +02:00
tecc
b3246a88d5
change(env): Improved environment parsing
getEnvRaw: `getEnvRaw` is essentially the same as `getEnv`, but much more safe as it doesn't automatically convert types - parsing is left to the consuming code.
parseBool: `parseBool` is a much more accepting function for parsing booleans. `true`, `1`, `yes`, and `on` are treated as `true`, and conversely, `false`, `0`, `no`, and `off` are treated as `false`.
2022-09-24 15:55:11 +02:00
tecc
8e93bd51da
change: Check for err.name === "NoSuchKey" in S3 store
NoSuchKey: I've observed errors to have the type property named `name` instead of `code` or `message`. See #144.
2022-09-17 18:29:44 +02:00
tecc
e438224dd0
fix: Add safety net for getting tree
safety-net: Essentially the same as the safety net for the settings.
2022-09-17 18:27:28 +02:00
tecc
e853f121aa
fix(store): Signing not using credentials properly
credentials: S3 credentials can in some cases be detected now, and the workaround for signing URLs should use those detected credentials.
style: Some style stuff from Prettier.
2022-09-11 23:00:44 +02:00
tecc
2b13eca77b
fix(types): Even better typings
typings: Every component now specifies the `children` prop because apparently that's necessary.
format: Formatted using `yarn-format`.
2022-09-11 22:55:41 +02:00
tecc
395e1e6e0c
refactor(types): Rename movePosition type to MovePosition 2022-09-11 19:36:59 +02:00
tecc
282e551342
Merge pull request #143 from tecc/widdix-aws-iam-roles
See #95 and #128. Original code is from @andreaswittig.
2022-09-11 18:47:13 +02:00
tecc
9c4c9abf8a
change: Allow detection of credentials in config loader
detectCredentials: `store.detectCredentials` is a config key that can now be specified as a boolean. If undefined, it will default to true.
2022-09-11 18:12:49 +02:00
tecc
cabd7887b2
style: Fix indentation in s3.ts 2022-09-11 18:06:16 +02:00
tecc
31682cc49c
change(config): Throw error on multiple user config
error: An error is now thrown when a multiple user configuration is given.
2022-09-11 03:07:35 +02:00
tecc
e4bcbe0892
style: More style stuff (I kinda regret it now) 2022-09-11 03:04:26 +02:00
Andreas Wittig
3b61fb73c8
Adding support for AWS IAM role credentials 2022-09-08 12:43:46 +02:00
tecc
ccb567943a
fix(auth): Not authorising users due to parsing issues
toString: The updated code now makes sure every value is a string, so that the strict check made when authorising doesn't create an issue.
2022-09-07 18:30:40 +02:00
tecc
f1898cc133
refactor(style): The Big Reformat, part 2
reformat: All files have been reformatted.
2022-09-04 01:25:31 +02:00
tecc
fd17635d18
fix(config): Config loader now accepting baseUrl from file config
fix(config): The loader did not consider the file configuration's `baseUrl` value for the base URL configuration. This has been rectified.
2022-08-14 16:57:47 +02:00
tecc
e6ca53fd69
fix(config): Replaced one more usage of getEnv with new config system
fix(config): There was a usage of getEnv("BASE_URL") left in libs/server/middlewares/note.ts.
2022-08-14 16:56:31 +02:00
tecc
5aee1e0c66
change(auth): Add authentication utility file
change(auth): libs/server/auth.ts is a utility for separating authentication verification from the other files slightly better (and also not just blatantly comparing the PASSWORD environment variable).
2022-08-14 15:34:42 +02:00
tecc
8295bbec5d
fix(types): Fixed typing errors in libs/server/config.ts 2022-08-14 15:32:56 +02:00
tecc
39b6864e51
perf: Removed seemingly unnecessary deep copies of trees 2022-08-14 15:31:41 +02:00
tecc
24d893fefa
fix(config): Replaced usages of getEnv with new config system 2022-08-12 14:42:37 +02:00