Commit Graph

451 Commits

Author SHA1 Message Date
tecc
4f8d0a99cc
change(promises): Handling promises 2022-10-08 01:05:19 +02:00
tecc
2449e61af4
change(translations): sv-SE changes
themes: Changed "Temaläge" to just "Tema", along with fixed names for theme names.
[ci skip]
2022-09-24 22:56:09 +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
2542dc83d1
Merge pull request #148 from notea-org/change/better-config
Improved configuration
2022-09-24 17:18:24 +02:00
tecc
9c7c950a9a
Merge pull request #149 from notea-org/lang/swedish
Swedish translation
2022-09-24 17:17:54 +02:00
tecc
4e1ab83ccd
feat(translations): Create Swedish translation 2022-09-24 17:00:33 +02:00
tecc
1267bb8fa7
chore(locales): Update locales
[ci skip]
2022-09-24 16:46:20 +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
777f958349
docs(config): More documentation for config/compatibility.yml
forcePathStyle: Added missing field of `forcePathStyle`.
proxyAttachments: Added documentation for `proxyAttachments`.
2022-09-24 16:00:33 +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
4d9be62926
Merge pull request #146 from notea-org/fix/144
#144: Manually specified version of prosemirror-mdoel
2022-09-24 14:34:34 +02:00
tecc
c399f16315
fix: Manually specified version of prosemirror-model
144: The version of prosemirror automatically resolved was incompatible with the current editor backend (rich-markdown-editor), so it had to be manually specified in the "resolutions" field of package.json. Fixes #144.
2022-09-24 14:29:15 +02:00
tecc
5dbe386605
change(deps)!: Downgrade to React 17
react-17: React 18 is still fairly new and not supported by some libraries. We're sticking with React 17 for now.
resolutions: Typing issues were caused by the downgrade, and as such the project now explicitly uses @types/react@17.0.39.
2022-09-23 00:57:43 +02:00
tecc
be5d80f670
change(ignore): Ignore tsconfig.tsbuildinfo file
tsbuildinfo: The file shouldn't be committed IMO. This is just a safeguard.
2022-09-18 18:42:09 +02:00
tecc
2d52777296
fix(types): Settings properly typed 2022-09-17 19:01:53 +02:00
tecc
29a60d871d
ci: Update actions and change name of publish workflow 2022-09-17 18:53:32 +02:00
tecc
76ccff5a3b
change: Change minio executable to "minio" in docker-compose.yml 2022-09-17 18:37:00 +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
51b31fe634
fix(settings): Add safety net for getting settings
middleware-settings: Previously the settings middleware just assumed the required object existed; now, there's a check to avoid errors.
2022-09-17 17:15:33 +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
2890e9b08e
change(eslint): Change eslint config
eslintignore: ESLint will ignore files in the public/ directory.
global: ESLint now ignores the `global` prop alongside `jsx`.
2022-09-11 22:57:16 +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
6ba01ff7e1
fix(eslint): Now allowing jsx property properly 2022-09-11 19:44:44 +02:00
tecc
67523b8201
fix(types): Improved typings for some components 2022-09-11 19:37:43 +02:00
tecc
395e1e6e0c
refactor(types): Rename movePosition type to MovePosition 2022-09-11 19:36:59 +02:00
tecc
e28a94e277
fix(types): edit-container.tsx had incorrect typings 2022-09-11 19:20:49 +02:00
tecc
4809093d27
ci: Change network to host for publish action
network: At least in my experience, changing network to `host` has sped up build times from several minutes to one or two.
2022-09-11 19:14:23 +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
a087343b70
change(login): Remove username feature temporarily
username-removal: It was a setup for a thing I was doing before I became the maintainer, and it's slightly unnecessary.
2022-09-11 03:05:56 +02:00
tecc
feeac7cd01
change(settings): Use proper link to repository 2022-09-11 03:04:51 +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
9b2dde4597
Merge pull request #142 from tecc/update-dependencies
Update to Next.JS 12
2022-09-05 22:11:54 +02:00
tecc
dbb6e75810
chore(deps)!: Update to Next.js 12 and other dependencies
Next.js@12: Next.js 12 should provide better performance and stuffs.

.babelrc: .babelrc has been removed to take advantage of Next.js' SWC backend (which offers faster build times) - if the file was still present, Babel would automatically be chosen over SWC.

.yarnclean: Commented out the "images" yarnclean directive, as it was causing issues with Next.js.

next-pwa: next-pwa has been updated, and next.config.js has been updated to use its newer API.

react: React has been updated to React 18. The @types package could not use the latest version due to some issues with the package itself.

rich-markdown-editor: rich-markdown-editor could not be updated due to issues with theming.

BREAKING-CHANGE: Next.js and React have been upgraded to their later versions.
2022-09-05 16:40:28 +02:00
tecc
19302402b6
change(github): pull.yml now refers to notea-org/notea 2022-09-05 01:41:49 +02:00
tecc
1a8d714940
Merge pull request #141 from tecc/main
Multiple changes
2022-09-04 19:55:29 +02:00
tecc
7c573531c9
docs(readme): README preparations for notea-org/notea#141
README: The README file has been changed in preparation for pulling changes from my fork to the upstream, now living under @notea-org.
2022-09-04 01:34:06 +02:00
tecc
60ddc82677
docs(config): Add more documentation to config/compatibility.yml
compatibility.yml: The compatibility example now includes documentation for baseUrl, and an example.
2022-09-04 01:26:29 +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
5622cc7c16
style(ignore): Add .prettierignore file
prettierignore: Prettier will now ignore files that are not files for reformatting.
2022-09-04 01:21:14 +02:00