feat(core): view selfhosted shared docs in electron (#9365)

This commit is contained in:
EYHN
2024-12-27 05:32:22 +00:00
parent 2b27d62b0e
commit 893493cf01
6 changed files with 135 additions and 83 deletions

View File

@@ -55,6 +55,12 @@ export class ServersService extends Service {
);
}
serverByBaseUrl$(url: string) {
return this.servers$.map(servers =>
servers.find(server => server.baseUrl === url)
);
}
private readonly serverPool = new ObjectPool<string, Server>({
onDelete(obj) {
obj.dispose();