mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
Separate tracker deployment (#1245)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -58,15 +58,18 @@ import '@anticrm/notification-assets'
|
||||
import '@anticrm/tags-assets'
|
||||
import '@anticrm/calendar-assets'
|
||||
import '@anticrm/tracker-assets'
|
||||
import presentation from '@anticrm/presentation'
|
||||
import presentation, { presentationId } from '@anticrm/presentation'
|
||||
import { coreId } from '@anticrm/core'
|
||||
import { textEditorId } from '@anticrm/text-editor'
|
||||
|
||||
import { setMetadata } from '@anticrm/platform'
|
||||
|
||||
|
||||
export async function configurePlatform() {
|
||||
const config = await (await fetch('/config.json')).json()
|
||||
console.log('loading configuration', config)
|
||||
setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL)
|
||||
setMetadata(login.metadata.UploadUrl, config.UPLOAD_URL)
|
||||
|
||||
|
||||
if( config.MODEL_VERSION != null) {
|
||||
console.log('Minimal Model version requirement', config.MODEL_VERSION)
|
||||
@@ -81,6 +84,10 @@ export async function configurePlatform() {
|
||||
|
||||
setMetadata(uiPlugin.metadata.DefaultApplication, workbench.component.WorkbenchApp )
|
||||
|
||||
addLocation(coreId, async () => ({ default: async () => ({}) }))
|
||||
addLocation(presentationId, async () => ({ default: async () => ({}) }))
|
||||
addLocation(textEditorId, async () => ({ default: async () => ({}) }))
|
||||
|
||||
addLocation(clientId, () => import(/* webpackChunkName: "client" */ '@anticrm/client-resources'))
|
||||
addLocation(loginId, () => import(/* webpackChunkName: "login" */ '@anticrm/login-resources'))
|
||||
addLocation(workbenchId, () => import(/* webpackChunkName: "workbench" */ '@anticrm/workbench-resources'))
|
||||
@@ -103,4 +110,6 @@ export async function configurePlatform() {
|
||||
addLocation(calendarId, () => import(/* webpackChunkName: "calendar" */ '@anticrm/calendar-resources'))
|
||||
|
||||
addLocation(trackerId, () => import(/* webpackChunkName: "tracker" */ '@anticrm/tracker-resources'))
|
||||
|
||||
setMetadata(workbench.metadata.PlatformTitle, 'Platform')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user