feat(core): add notification list (#10480)

This commit is contained in:
EYHN
2025-03-11 06:23:33 +00:00
parent 06889295e0
commit ea07aa8607
30 changed files with 906 additions and 59 deletions

View File

@@ -1,5 +0,0 @@
import { createEvent } from '@toeverything/infra';
import type { Server } from '../entities/server';
export const ServerInitialized = createEvent<Server>('ServerInitialized');

View File

@@ -4,7 +4,6 @@ export type { AuthAccountInfo } from './entities/session';
export { AccountChanged } from './events/account-changed';
export { AccountLoggedIn } from './events/account-logged-in';
export { AccountLoggedOut } from './events/account-logged-out';
export { ServerInitialized } from './events/server-initialized';
export { AuthProvider } from './provider/auth';
export { ValidatorProvider } from './provider/validator';
export { ServerScope } from './scopes/server';

View File

@@ -4,7 +4,6 @@ import { nanoid } from 'nanoid';
import { Observable, switchMap } from 'rxjs';
import { Server } from '../entities/server';
import { ServerInitialized } from '../events/server-initialized';
import { ServerStarted } from '../events/server-started';
import type { ServerConfigStore } from '../stores/server-config';
import type { ServerListStore } from '../stores/server-list';
@@ -30,7 +29,6 @@ export class ServersService extends Service {
serverMetadata: metadata,
});
server.revalidateConfig();
this.eventBus.emit(ServerInitialized, server);
server.scope.eventBus.emit(ServerStarted, server);
const ref = this.serverPool.put(metadata.id, server);
return ref;