UBER-477: Uberflow dependencies (#3440)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-06-20 12:47:00 +07:00
committed by GitHub
parent 0bc097fc52
commit 2eab0fc71f
25 changed files with 329 additions and 117 deletions
@@ -18,9 +18,9 @@
import login from '@hcengineering/login'
import notification, { notificationId } from '@hcengineering/notification'
import { BrowserNotificatator, NotificationClientImpl } from '@hcengineering/notification-resources'
import { IntlString, getMetadata, getResource } from '@hcengineering/platform'
import setting from '@hcengineering/setting'
import { IntlString, broadcastEvent, getMetadata, getResource } from '@hcengineering/platform'
import { ActionContext, createQuery, getClient } from '@hcengineering/presentation'
import setting from '@hcengineering/setting'
import {
AnyComponent,
CompAndProps,
@@ -65,15 +65,15 @@
import { workspacesStore } from '../utils'
import AccountPopup from './AccountPopup.svelte'
import AppItem from './AppItem.svelte'
import AppSwitcher from './AppSwitcher.svelte'
import Applications from './Applications.svelte'
import Logo from './Logo.svelte'
import NavHeader from './NavHeader.svelte'
import Navigator from './Navigator.svelte'
import SelectWorkspaceMenu from './SelectWorkspaceMenu.svelte'
import SpaceView from './SpaceView.svelte'
import TopMenu from './icons/TopMenu.svelte'
import IconSettings from './icons/Settings.svelte'
import AppSwitcher from './AppSwitcher.svelte'
import TopMenu from './icons/TopMenu.svelte'
let contentPanel: HTMLElement
@@ -190,6 +190,7 @@
const title = getMetadata(workbench.metadata.PlatformTitle) ?? 'Platform'
document.title = ws == null ? title : `${ws} - ${title}`
}
broadcastEvent(workbench.event.NotifyTitle, document.title)
}
async function getWindowTitle (loc: Location) {
if (loc.fragment == null) return
+3 -1
View File
@@ -9,7 +9,7 @@ import core, {
versionToString
} from '@hcengineering/core'
import login, { loginId } from '@hcengineering/login'
import { addEventListener, getMetadata, getResource, setMetadata } from '@hcengineering/platform'
import { addEventListener, broadcastEvent, getMetadata, getResource, setMetadata } from '@hcengineering/platform'
import presentation, { closeClient, refreshClient, setClient } from '@hcengineering/presentation'
import ui, {
fetchMetadataLocalStorage,
@@ -20,6 +20,7 @@ import ui, {
showPopup
} from '@hcengineering/ui'
import ServerManager from './components/ServerManager.svelte'
import plugin from './plugin'
export let versionError: string | undefined = ''
@@ -169,6 +170,7 @@ export async function connect (title: string): Promise<Client | undefined> {
}
})
}
await broadcastEvent(plugin.event.NotifyConnection, getCurrentAccount())
return _client
}