liuyi
57449c1530
fix(server): redirect to setup page if not initialized ( #7875 )
2024-08-14 21:02:16 +08:00
forehalo
dddbfe6473
feat(server): setup api for selfhost deployment ( #7569 )
2024-07-23 10:39:34 +00:00
liuyi
54fc1197ad
feat(server): introduce user friendly server errors ( #7111 )
2024-06-17 11:30:58 +08:00
forehalo
c96fb46751
feat(core): adjust admin panel style ( #7116 )
2024-05-31 10:43:30 +00:00
forehalo
638fc62601
feat(server): runtime setting support ( #5602 )
...
---
<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev ">Graphite</a>)</summary>
> ## TL;DR
> This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations.
>
> ## What changed
> - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`.
> - Added a new model `ApplicationSetting` with properties `key` and `value`.
> - Added a new module `RuntimeSettingModule` that exports the `Runtime` service.
> - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations.
> - Modified the `app.module.ts` file to import the `RuntimeSettingModule`.
> - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service.
> - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation.
> - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service.
>
> ## How to test
> 1. Run the migration script to create the `application_settings` table.
> 2. Use the `Runtime` service to get, set, and update runtime configurations.
> 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service.
>
> ## Why make this change
> This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application.
</details>
2024-05-28 06:43:53 +00:00
darkskygit
0302a85585
feat: add customer event ( #7029 )
2024-05-24 08:40:33 +00:00
Tao Chen
22a8a2663e
feat(server): add OIDC for AFFiNE ( #6991 )
...
Co-authored-by: LongYinan <lynweklm@gmail.com >
Co-authored-by: DarkSky <darksky2048@gmail.com >
2024-05-24 00:35:30 +08:00
forehalo
cebb841430
feat(server): add flag to disable new sign ups ( #6752 )
2024-04-30 15:19:30 +00:00
EYHN
5e243de392
feat(server): auto refresh session ( #6613 )
2024-04-19 07:00:12 +00:00
DarkSky
ccb3bed91e
feat: add blob upload support for copilot ( #6584 )
2024-04-17 14:05:38 +00:00
renovate
66231e0e41
chore: bump up oxlint version to v0.2.17 ( #5778 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc-project.github.io ) ([source](https://togithub.com/oxc-project/oxc/tree/HEAD/npm/oxlint )) | [`0.2.14` -> `0.2.17`](https://renovatebot.com/diffs/npm/oxlint/0.2.14/0.2.17 ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) | [](https://docs.renovatebot.com/merge-confidence/ ) |
---
### Release Notes
<details>
<summary>oxc-project/oxc (oxlint)</summary>
### [`v0.2.17`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.17 ): oxlint v0.2.17
[Compare Source](https://togithub.com/oxc-project/oxc/compare/7066d55153ad70f95ae975adc3958c1010f9c5ff...df11d10a2220e9aa7a33d9ab39ed662c2ba6fdb5 )
##### What's Changed
- feat(linter): eslint-plugin-jest/prefer-lowercase-title by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2911 ](https://togithub.com/oxc-project/oxc/pull/2911 )
- feat(linter): typescript-eslint/consistent-type-definitions by [@​todor-a](https://togithub.com/todor-a ) in [https://github.com/oxc-project/oxc/pull/2885 ](https://togithub.com/oxc-project/oxc/pull/2885 )
- fix(cli): fix `oxlint --format json` yields 0 files to lint by [@​Boshen](https://togithub.com/Boshen ) in [https://github.com/oxc-project/oxc/pull/2940 ](https://togithub.com/oxc-project/oxc/pull/2940 )
- fix(cli): if format is json do not print summary information ([#​2899](https://togithub.com/oxc-project/oxc/issues/2899 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2925 ](https://togithub.com/oxc-project/oxc/pull/2925 )
- fix(linter): import/no-cycle ignore type-only imports by [@​JohnDaly](https://togithub.com/JohnDaly ) in [https://github.com/oxc-project/oxc/pull/2924 ](https://togithub.com/oxc-project/oxc/pull/2924 )
- refactor(semantic/jsdoc): Rework JSDoc struct for better Span handling by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2917 ](https://togithub.com/oxc-project/oxc/pull/2917 )
##### New Contributors
- [@​bradzacher](https://togithub.com/bradzacher ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2938 ](https://togithub.com/oxc-project/oxc/pull/2938 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.16...oxlint_v0.2.17
### [`v0.2.16`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.16 ): oxlint v0.2.16
[Compare Source](https://togithub.com/oxc-project/oxc/compare/e7307ed23ca9b0707586b6bf4220cafb221ae86e...7066d55153ad70f95ae975adc3958c1010f9c5ff )
#### What's Changed
- feat(linter): [@​typescript-eslint/prefer-for-of](https://togithub.com/typescript-eslint/prefer-for-of ) by [@​charnog](https://togithub.com/charnog ) in [https://github.com/oxc-project/oxc/pull/2789 ](https://togithub.com/oxc-project/oxc/pull/2789 )
- feat(linter): Implement jsdoc/check-access by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2642 ](https://togithub.com/oxc-project/oxc/pull/2642 )
- feat(linter): Implement jsdoc/empty-tags by [@​leaysgur](https://togithub.com/leaysgur ) in [https://github.com/oxc-project/oxc/pull/2893 ](https://togithub.com/oxc-project/oxc/pull/2893 )
- feat(linter): eslint-plugin-jest/prefer-mock-promise-sorthand by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2864 ](https://togithub.com/oxc-project/oxc/pull/2864 )
- feat(linter/import): Add `ignoreTypes` option for the `import/no-cycle` rule by [@​JohnDaly](https://togithub.com/JohnDaly ) in [https://github.com/oxc-project/oxc/pull/2905 ](https://togithub.com/oxc-project/oxc/pull/2905 )
- fix(ast): `FinallyClause` won't get visited as `BlockStatement` anymore. by [@​rzvxa](https://togithub.com/rzvxa ) in [https://github.com/oxc-project/oxc/pull/2881 ](https://togithub.com/oxc-project/oxc/pull/2881 )
- fix(linter): handle self closing script tags in astro partial loader ([#​2017](https://togithub.com/oxc-project/oxc/issues/2017 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2907 ](https://togithub.com/oxc-project/oxc/pull/2907 )
- fix(linter): svelte partial loader handle generics ([#​2875](https://togithub.com/oxc-project/oxc/issues/2875 )) by [@​kalvenschraut](https://togithub.com/kalvenschraut ) in [https://github.com/oxc-project/oxc/pull/2906 ](https://togithub.com/oxc-project/oxc/pull/2906 )
#### New Contributors
- [@​charnog](https://togithub.com/charnog ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2789 ](https://togithub.com/oxc-project/oxc/pull/2789 )
- [@​kalvenschraut](https://togithub.com/kalvenschraut ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2906 ](https://togithub.com/oxc-project/oxc/pull/2906 )
- [@​JohnDaly](https://togithub.com/JohnDaly ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2905 ](https://togithub.com/oxc-project/oxc/pull/2905 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.15...oxlint_v0.2.16
### [`v0.2.15`](https://togithub.com/oxc-project/oxc/releases/tag/oxlint_v0.2.15 ): oxlint v0.2.15
[Compare Source](https://togithub.com/oxc-project/oxc/compare/b1343d7bcbd490105583b561946f057ac91e40cf...e7307ed23ca9b0707586b6bf4220cafb221ae86e )
#### What's Changed
- feat(linter): default_param_last by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2756 ](https://togithub.com/oxc-project/oxc/pull/2756 )
- feat(linter): eslint-plugin-jest/no-untyped-mock-factory by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2807 ](https://togithub.com/oxc-project/oxc/pull/2807 )
- feat(linter): eslint-plugin-jest/prefer-comparison-matcher by [@​eryue0220](https://togithub.com/eryue0220 ) in [https://github.com/oxc-project/oxc/pull/2806 ](https://togithub.com/oxc-project/oxc/pull/2806 )
- feat(linter): eslint-plugin-react checked-requires-onchange-or-readonly by [@​keita-hino](https://togithub.com/keita-hino ) in [https://github.com/oxc-project/oxc/pull/2754 ](https://togithub.com/oxc-project/oxc/pull/2754 )
- feat(linter): eslint/no-iterator by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2758 ](https://togithub.com/oxc-project/oxc/pull/2758 )
- feat(linter): fallback to the default tsconfig path by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2842 ](https://togithub.com/oxc-project/oxc/pull/2842 )
- feat(linter): no_script_url by [@​JoSeBu1](https://togithub.com/JoSeBu1 ) in [https://github.com/oxc-project/oxc/pull/2761 ](https://togithub.com/oxc-project/oxc/pull/2761 )
- feat(linter/import) check deep namespace in namespace rule by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2805 ](https://togithub.com/oxc-project/oxc/pull/2805 )
- feat(linter/import) check module import in no_duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2771 ](https://togithub.com/oxc-project/oxc/pull/2771 )
- feat(linter/import) check type import in no_duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2777 ](https://togithub.com/oxc-project/oxc/pull/2777 )
- feat(linter/import) support allow_computed option in namespace by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2840 ](https://togithub.com/oxc-project/oxc/pull/2840 )
- feat(linter/import) support check re-export in named by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2769 ](https://togithub.com/oxc-project/oxc/pull/2769 )
- feat(linter/import): ignore type-only imports and exports in no_unresolved by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2849 ](https://togithub.com/oxc-project/oxc/pull/2849 )
- fix(linter/import): false positive for indirect export in namespace by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2862 ](https://togithub.com/oxc-project/oxc/pull/2862 )
- fix(linter/import): ignore export declaration in no-duplicates by [@​Dunqing](https://togithub.com/Dunqing ) in [https://github.com/oxc-project/oxc/pull/2863 ](https://togithub.com/oxc-project/oxc/pull/2863 )
- fix(linter/max-lines): only report codes that exceed the line limit by [@​mysteryven](https://togithub.com/mysteryven ) in [https://github.com/oxc-project/oxc/pull/2778 ](https://togithub.com/oxc-project/oxc/pull/2778 )
- fix(parser): add support for empty module declaration by [@​rzvxa](https://togithub.com/rzvxa ) in [https://github.com/oxc-project/oxc/pull/2834 ](https://togithub.com/oxc-project/oxc/pull/2834 )
#### New Contributors
- [@​rzvxa](https://togithub.com/rzvxa ) made their first contribution in [https://github.com/oxc-project/oxc/pull/2764 ](https://togithub.com/oxc-project/oxc/pull/2764 )
**Full Changelog**: https://github.com/oxc-project/oxc/compare/oxlint_v0.2.14...oxlint_v0.2.15
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
2024-04-11 10:51:02 +00:00
EYHN
366e0a4b60
feat(server): adjust telemetry config ( #6424 )
2024-04-02 03:44:48 +00:00
fundon
8ee9f6ec05
chore: improve password error message ( #6255 )
...
chore: improve error message
chore: add password minlength & maxlength i18n
chore: check max length
fix: i18n variables
feat: add CredentialsRequirementType
2024-03-26 07:15:06 +00:00
forehalo
1a1af83375
test(server): auth tests ( #6135 )
2024-03-26 02:24:17 +00:00
EYHN
f2adbdaba4
style: enable import-x/no-duplicates ( #6279 )
2024-03-25 03:55:33 +00:00
Brooooooklyn
150c22936d
chore(core): add mixpanel track ( #6202 )
2024-03-22 09:24:41 +00:00
forehalo
540e456704
ci: set private key from env ( #6239 )
2024-03-21 10:09:26 +00:00
liuyi
a4cd8d6ca3
chore(server): organize server configs ( #6169 )
2024-03-19 02:05:56 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth ( #5895 )
...
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
2024-03-12 10:00:09 +00:00
liuyi
df157819dc
feat(server): allow customize mailer server ( #5835 )
2024-02-19 14:37:08 +00:00
liuyi
296d47f102
refactor(server): separate s3 & r2 storage to plugin ( #5805 )
2024-02-05 15:10:09 +00:00
DarkSky
25e8a2a22f
feat: sync client versioning ( #5645 )
...
after this pr, server will only accept client that have some major version
the client version <0.12 will be rejected by the server, >= 0.12 can receive outdated messages and notify users
2024-02-05 08:43:50 +00:00
liuyi
d9c2dc8dfb
fix(server): apply env overrides after all config merged ( #5795 )
2024-02-04 06:38:31 +00:00
liuyi
bef266ae3b
refactor(server): reorganize server configs ( #5753 )
2024-02-02 08:32:07 +00:00
liuyi
e516e0db23
refactor(server): plugin modules ( #5630 )
...
- [x] separates modules into `fundamental`, `core`, `plugins`
- [x] optional modules with `@OptionalModule` decorator to install modules with requirements met(`requires`, `if`)
- [x] `module.contributesTo` defines optional features that will be enabled if module registered
- [x] `AFFiNE.plugins.use('payment', {})` to enable a optional/plugin module
- [x] `PaymentModule` is the first plugin module
- [x] GraphQLSchema will not be generated for non-included modules
- [x] Frontend can use `ServerConfigType` query to detect which features are enabled
- [x] override existing provider globally
2024-01-22 07:40:28 +00:00
LongYinan
c5ea6fd2c3
fix(server): selfhost issues ( #5623 )
...
- env name in helm chart
- omit health check controller in selfhost env
2024-01-18 05:55:54 +00:00
liuyi
d9324286d4
chore(server): add port to host if it is 0.0.0.0 ( #5619 )
2024-01-18 03:04:36 +00:00
liuyi
4c49b62ab7
fix(server): node imports order ( #5583 )
2024-01-14 05:47:56 +00:00
liuyi
89b5c96d25
refactor(server): folder structure ( #5573 )
2024-01-12 04:18:39 +00:00