Commit Graph

12 Commits

Author SHA1 Message Date
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
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
liuyi 12fdb18a80 test(server): make server testing utils (#5544) 2024-01-11 06:40:55 +00:00
liuyi 9253e522aa test(server): avoid progress get hold after tests finished (#5522) 2024-01-11 06:40:53 +00:00
LongYinan 237722f7f9 feat: support self-host docker build (#5506)
Test command: `docker compose -f ./.github/deployment/self-host/compose.yaml up`
2024-01-10 08:35:21 +00:00
liuyi 0d34805375 refactor(server): use new storage providers (#5433) 2024-01-03 10:56:55 +00:00
DarkSky e9dfa93b52 feat: add cache for blob query (#5178) 2023-12-14 09:50:56 +00:00
liuyi 4cb26cd3e5 feat(server): events system (#5145) 2023-12-06 08:35:45 +00:00
liuyi 91efca107a refactor(server): standarderlize metrics and trace with OTEL (#5054)
you can now export span to Zipkin and metrics to Prometheus when developing locally
follow the docs of OTEL: https://opentelemetry.io/docs/instrumentation/js/exporters/

<img width="2357" alt="image" src="https://github.com/toeverything/AFFiNE/assets/8281226/ec615e1f-3e91-43f7-9111-d7d2629e9679">
2023-11-24 15:19:22 +00:00
liuyi c69e542b98 feat(server): add cache module (#4973) 2023-11-22 04:09:00 +00:00
Joooye_34 bed9310519 refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00