@spinnaker/appengine
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineAccount.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineInstance.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineLoadBalancer.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineServerGroup.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineStageScope.js.map |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=IAppengineTriggers.js.map |
@@ -0,1 +1,7 @@ | ||
export * from './IAppengineAccount'; | ||
export * from './IAppengineInstance'; | ||
export * from './IAppengineLoadBalancer'; | ||
export * from './IAppengineServerGroup'; | ||
export * from './IAppengineStageScope'; | ||
export * from './IAppengineTriggers'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
import { IPipeline, IStage } from '@spinnaker/core'; | ||
import { IPipeline, IStage, IArtifactAccountPair } from '@spinnaker/core'; | ||
interface IConfigFileArtifactListProps { | ||
configArtifacts: any[]; | ||
configArtifacts: IArtifactAccountPair[]; | ||
pipeline: IPipeline; | ||
@@ -5,0 +5,0 @@ stage: IStage; |
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import { StageArtifactSelectorDelegate } from '@spinnaker/core'; | ||
import { StageArtifactSelector, } from '@spinnaker/core'; | ||
export const ConfigFileArtifactList = (props) => { | ||
const addConfigArtifact = () => { | ||
props.updateConfigArtifacts(props.configArtifacts.concat([{}])); | ||
props.updateConfigArtifacts(props.configArtifacts.concat([{ id: '', account: '' }])); | ||
}; | ||
@@ -32,3 +32,3 @@ const deleteConfigArtifact = (index) => { | ||
React.createElement("div", { className: "col-md-9" }, | ||
React.createElement(StageArtifactSelectorDelegate, { artifact: a.artifact, excludedArtifactTypePatterns: [], expectedArtifactId: a.id, fieldColumns: 7, label: '', onArtifactEdited: (artifact) => { | ||
React.createElement(StageArtifactSelector, { artifact: a.artifact, excludedArtifactTypePatterns: [], expectedArtifactId: a.artifact == null ? a.id : null, onArtifactEdited: (artifact) => { | ||
onExpectedArtifactEdited(artifact, i); | ||
@@ -35,0 +35,0 @@ }, onExpectedArtifactSelected: (expectedArtifact) => { |
import { IScope } from 'angular'; | ||
import { ExpectedArtifactSelectorViewController, NgAppengineConfigArtifactDelegate, IArtifactAccountPair } from '@spinnaker/core'; | ||
import { ExpectedArtifactSelectorViewController, NgAppengineConfigArtifactDelegate, IArtifactAccountPair, IArtifact } from '@spinnaker/core'; | ||
import './serverGroupWizard.less'; | ||
@@ -15,8 +15,6 @@ export interface IAppengineConfigFileConfigurerCtrlCommand { | ||
account: string; | ||
constructor($scope: IScope, artifact?: { | ||
id: string; | ||
account: string; | ||
}); | ||
artifact?: IArtifact; | ||
constructor($scope: IScope, pair?: IArtifactAccountPair); | ||
} | ||
export declare const APPENGINE_CONFIG_FILE_CONFIGURER = "spinnaker.appengine.configFileConfigurer.component"; | ||
export {}; |
@@ -6,6 +6,8 @@ import { module } from 'angular'; | ||
class ConfigArtifact { | ||
constructor($scope, artifact = { id: '', account: '' }) { | ||
constructor($scope, pair = { id: '', account: '' }) { | ||
var _a; | ||
const unserializable = { configurable: false, enumerable: false, writable: false }; | ||
this.id = artifact.id; | ||
this.account = artifact.account; | ||
this.id = pair === null || pair === void 0 ? void 0 : pair.id; | ||
this.account = pair.account || ((_a = pair === null || pair === void 0 ? void 0 : pair.artifact) === null || _a === void 0 ? void 0 : _a.artifactAccount); | ||
this.artifact = pair === null || pair === void 0 ? void 0 : pair.artifact; | ||
Object.defineProperty(this, '$scope', Object.assign(Object.assign({}, unserializable), { value: $scope })); | ||
@@ -12,0 +14,0 @@ const delegate = new NgAppengineConfigArtifactDelegate(this); |
@@ -306,3 +306,3 @@ import { module } from 'angular'; | ||
var _a, _b; | ||
const allocations = (_b = (_a = toCheck.split) === null || _a === void 0 ? void 0 : _a.allocations, (_b !== null && _b !== void 0 ? _b : {})); | ||
const allocations = (_b = (_a = toCheck.split) === null || _a === void 0 ? void 0 : _a.allocations) !== null && _b !== void 0 ? _b : {}; | ||
const enabledServerGroups = Object.keys(allocations); | ||
@@ -309,0 +309,0 @@ return enabledServerGroups.includes(serverGroup.name); |
{ | ||
"name": "@spinnaker/appengine", | ||
"license": "Apache-2.0", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "lib/lib.js", | ||
@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts", |
@@ -10,2 +10,3 @@ import { module, IController, IScope } from 'angular'; | ||
IArtifactAccountPair, | ||
IArtifact, | ||
} from '@spinnaker/core'; | ||
@@ -27,7 +28,9 @@ | ||
public account: string; | ||
public artifact?: IArtifact; | ||
constructor($scope: IScope, artifact = { id: '', account: '' }) { | ||
constructor($scope: IScope, pair: IArtifactAccountPair = { id: '', account: '' }) { | ||
const unserializable = { configurable: false, enumerable: false, writable: false }; | ||
this.id = artifact.id; | ||
this.account = artifact.account; | ||
this.id = pair?.id; | ||
this.account = pair.account || pair?.artifact?.artifactAccount; | ||
this.artifact = pair?.artifact; | ||
Object.defineProperty(this, '$scope', { ...unserializable, value: $scope }); | ||
@@ -34,0 +37,0 @@ const delegate = new NgAppengineConfigArtifactDelegate(this); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
904749
219
6208