Skip to content

Commit

Permalink
Setting plugin (#328)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <[email protected]>
  • Loading branch information
BykhovDenis authored Nov 22, 2021
1 parent ef0c3e8 commit 5e807d4
Show file tree
Hide file tree
Showing 54 changed files with 2,626 additions and 1,281 deletions.
114 changes: 101 additions & 13 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dev/prod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"@anticrm/recruit": "~0.6.0",
"@anticrm/recruit-assets": "~0.6.0",
"@anticrm/recruit-resources": "~0.6.0",
"@anticrm/setting": "~0.6.0",
"@anticrm/setting-assets": "~0.6.0",
"@anticrm/setting-resources": "~0.6.0",
"@anticrm/server-chunter": "~0.6.1",
"@anticrm/dev-server-chunter-resources": "~0.6.0",
"@anticrm/client-resources": "~0.6.4",
Expand Down
4 changes: 4 additions & 0 deletions dev/prod/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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() {
Expand All @@ -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') {
Expand Down Expand Up @@ -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'))
}
Loading

0 comments on commit 5e807d4

Please sign in to comment.