mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 02:13:00 +08:00
#### PR Dependency Tree * **PR #14452** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved null-safety, dependency tracking, upload validation, and error logging for more reliable uploads, clipboard, calendar linking, telemetry, PDF/theme printing, and preview/zoom behavior. * Tightened handling of all-day calendar events (missing date now reported). * **Deprecations** * Removed deprecated RadioButton and RadioButtonGroup; use RadioGroup. * **Chores** * Unified and upgraded linting/config, reorganized imports, and standardized binary handling for more consistent builds and tooling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
23 lines
547 B
TypeScript
23 lines
547 B
TypeScript
import { BlockServiceIdentifier } from '../identifier.js';
|
|
import { LifeCycleWatcher } from './lifecycle-watcher.js';
|
|
|
|
export class ServiceManager extends LifeCycleWatcher {
|
|
static override readonly key = 'serviceManager';
|
|
|
|
override mounted() {
|
|
super.mounted();
|
|
|
|
this.std.provider.getAll(BlockServiceIdentifier).forEach(service => {
|
|
service.mounted();
|
|
});
|
|
}
|
|
|
|
override unmounted() {
|
|
super.unmounted();
|
|
|
|
this.std.provider.getAll(BlockServiceIdentifier).forEach(service => {
|
|
service.unmounted();
|
|
});
|
|
}
|
|
}
|