Setting plugin (#328)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2021-11-22 13:06:14 +01:00
committed by GitHub
parent ef0c3e8c91
commit 5e807d466a
54 changed files with 2629 additions and 1284 deletions
+4
View File
@@ -24,6 +24,7 @@ import { contactId } from '@anticrm/contact'
import { chunterId } from '@anticrm/chunter'
import { recruitId } from '@anticrm/recruit'
import { activityId } from '@anticrm/activity'
import { settingId } from '@anticrm/setting'
import { serverChunterId } from '@anticrm/server-chunter'
import { serverRecruitId } from '@anticrm/server-recruit'
@@ -36,6 +37,7 @@ import '@anticrm/chunter-assets'
import '@anticrm/contact-assets'
import '@anticrm/recruit-assets'
import '@anticrm/activity-assets'
import '@anticrm/setting-assets'
import { setMetadata } from '@anticrm/platform'
export function configurePlatform() {
@@ -46,6 +48,7 @@ export function configurePlatform() {
setMetadata(login.metadata.UploadUrl, value.UPLOAD_URL)
})
})
setMetadata(login.metadata.TelegramUrl, process.env.TELEGRAM_URL)
setMetadata(login.metadata.OverrideEndpoint, process.env.LOGIN_ENDPOINT)
if (process.env.CLIENT_TYPE === 'dev') {
@@ -73,4 +76,5 @@ export function configurePlatform() {
addLocation(chunterId, () => import(/* webpackChunkName: "chunter" */ '@anticrm/chunter-resources'))
addLocation(recruitId, () => import(/* webpackChunkName: "recruit" */ '@anticrm/recruit-resources'))
addLocation(activityId, () => import(/*webpackChunkName: "activity" */ '@anticrm/activity-resources'))
addLocation(settingId, () => import(/* webpackChunkName: "setting" */ '@anticrm/setting-resources'))
}