feat(TALE-7): reimplement integration system
This commit is contained in:
parent
3cc726320a
commit
0aa0406ea6
6 changed files with 356 additions and 375 deletions
|
|
@ -8,14 +8,14 @@ import { resolve } from 'node:path'
|
|||
|
||||
import { parse } from 'yaml'
|
||||
|
||||
import { checkIntegration, Integration } from '~/integration'
|
||||
import { IntegrationFactory, loadIntegration } from '~/integration'
|
||||
|
||||
import { HeadscaleConfig, loadConfig } from './headscale'
|
||||
|
||||
export interface HeadplaneContext {
|
||||
headscaleUrl: string
|
||||
cookieSecret: string
|
||||
integration: Integration | undefined
|
||||
integration: IntegrationFactory | undefined
|
||||
|
||||
config: {
|
||||
read: boolean
|
||||
|
|
@ -67,7 +67,7 @@ export async function loadContext(): Promise<HeadplaneContext> {
|
|||
context = {
|
||||
headscaleUrl,
|
||||
cookieSecret,
|
||||
integration: await checkIntegration(),
|
||||
integration: loadIntegration(),
|
||||
config: contextData,
|
||||
acl: await checkAcl(config),
|
||||
oidc: await checkOidc(config),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue