mirror of
https://github.com/caprover/caprover
synced 2026-08-05 15:20:57 +00:00
Created interfaces to make it easier to find usage of variables
This commit is contained in:
@@ -1 +1 @@
|
||||
{"version":3,"file":"AppDefinition.js","sourceRoot":"","sources":["../../src/models/AppDefinition.ts"],"names":[],"mappings":"AAsCA,MAAe,kBAAkB;CA4BhC;AAED,MAAM,OAAQ,SAAQ,kBAAkB;CAQvC;AAED,MAAM,YAAa,SAAQ,kBAAkB;CAQ5C"}
|
||||
{"version":3,"file":"AppDefinition.js","sourceRoot":"","sources":["../../src/models/AppDefinition.ts"],"names":[],"mappings":"AAkDA,MAAe,kBAAkB;CAmBhC;AAED,MAAM,OAAQ,SAAQ,kBAAkB;CAQvC;AAED,MAAM,YAAa,SAAQ,kBAAkB;CAQ5C"}
|
||||
@@ -36,6 +36,18 @@ interface RepoInfoEncrypted {
|
||||
passwordEncrypted: string
|
||||
}
|
||||
|
||||
interface IAppVersion {
|
||||
version: number
|
||||
deployedImageName?: string // empty if the deploy is not completed
|
||||
timeStamp: string
|
||||
gitHash: string | undefined // TODO make sure we are capturing the right git hash
|
||||
}
|
||||
|
||||
interface IAppCustomDomain {
|
||||
publicDomain: string
|
||||
hasSsl: boolean
|
||||
}
|
||||
|
||||
abstract class IAppDefinitionBase {
|
||||
public deployedVersion: number
|
||||
public notExposeAsWebApp: boolean
|
||||
@@ -48,22 +60,13 @@ abstract class IAppDefinitionBase {
|
||||
public preDeployFunction?: string
|
||||
public customNginxConfig?: string
|
||||
public networks: string[]
|
||||
public customDomain: {
|
||||
publicDomain: string
|
||||
hasSsl: boolean
|
||||
}[]
|
||||
public customDomain: IAppCustomDomain[]
|
||||
|
||||
public ports: IAppPort[]
|
||||
|
||||
public volumes: IAppVolume[]
|
||||
public envVars: IAppEnvVar[]
|
||||
|
||||
public versions: {
|
||||
version: number
|
||||
deployedImageName?: string // empty if the deploy is not completed
|
||||
timeStamp: string
|
||||
gitHash: string | undefined // TODO make sure we are capturing the right git hash
|
||||
}[]
|
||||
public versions: IAppVersion[]
|
||||
}
|
||||
|
||||
class IAppDef extends IAppDefinitionBase {
|
||||
|
||||
Reference in New Issue
Block a user