Skip to content

Commit

Permalink
chore(prettier): Just Use Prettier™
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Feb 21, 2019
1 parent 3ffa4fb commit 5cf6c79
Show file tree
Hide file tree
Showing 94 changed files with 105 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const scalingPolicyDetailsSummary: IComponentOptions = {
application: '<',
},
controller: ScalingPolicyDetailsSummaryController,
template: `<div ng-include src="$ctrl.templateUrl"></div>`
template: `<div ng-include src="$ctrl.templateUrl"></div>`,
};

export const DETAILS_SUMMARY = 'spinnaker.amazon.scalingPolicy.details.summary.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const appengineComponentUrlDetailsComponent: IComponentOptions = {
tool-tip="'Copy URL to clipboard'"
text="$ctrl.component.httpUrl"></copy-to-clipboard>
</dl>
`
`,
};

export const APPENGINE_COMPONENT_URL_DETAILS = 'spinnaker.appengine.componentUrlDetails.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const appengineConditionalDescriptionListItem: IComponentOptions = {
<dt ng-if="$ctrl.component[$ctrl.key]">{{$ctrl.label}}<span ng-transclude="keyLabel"></span></dt>
<dd ng-if="$ctrl.component[$ctrl.key]">{{$ctrl.component[$ctrl.key]}}<span ng-transclude="valueLabel"></span></dd>
`,
controller: AppengineConditionalDescriptionListItemCtrl
controller: AppengineConditionalDescriptionListItemCtrl,
};

export const APPENGINE_CONDITIONAL_DESCRIPTION_LIST_ITEM = 'spinnaker.appengine.conditionalDescriptionListItem';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { module } from 'angular';

const appengineLoadBalancerMessageComponent: ng.IComponentOptions = {
bindings: { showCreateMessage: '<', columnOffset: '@', columns: '@' },
templateUrl: require('./loadBalancerMessage.component.html')
templateUrl: require('./loadBalancerMessage.component.html'),
};

export const APPENGINE_LOAD_BALANCER_CREATE_MESSAGE = 'spinnaker.appengine.loadBalancer.createMessage.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const appengineLoadBalancerAdvancedSettingsComponent: IComponentOptions = {
</div>
</ng-form>
`,
controller: AppengineLoadBalancerAdvancedSettingsCtrl
controller: AppengineLoadBalancerAdvancedSettingsCtrl,
};

export const APPENGINE_LOAD_BALANCER_ADVANCED_SETTINGS = 'spinnaker.appengine.loadBalancer.advancedSettings.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const appengineAllocationConfigurationRowComponent: IComponentOptions = {
</div>
</div>
`,
controller: AppengineAllocationConfigurationRowCtrl
controller: AppengineAllocationConfigurationRowCtrl,
};

export const APPENGINE_ALLOCATION_CONFIGURATION_ROW = 'spinnaker.appengine.allocationConfigurationRow.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class AppengineLoadBalancerSettingsController implements IController {
const appengineLoadBalancerSettingsComponent: ng.IComponentOptions = {
bindings: { loadBalancer: '=', forPipelineConfig: '<', application: '<' },
controller: AppengineLoadBalancerSettingsController,
templateUrl: require('./basicSettings.component.html')
templateUrl: require('./basicSettings.component.html'),
};

export const APPENGINE_LOAD_BALANCER_BASIC_SETTINGS = 'spinnaker.appengine.loadBalancerSettings.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AppengineStageAllocationLabelCtrl implements IController {
const appengineStageAllocationLabel: IComponentOptions = {
bindings: { allocationDescription: '<' },
controller: AppengineStageAllocationLabelCtrl,
template: `<input ng-model="$ctrl.inputViewValue" type="text" class="form-control input-sm" readonly/>`
template: `<input ng-model="$ctrl.inputViewValue" type="text" class="form-control input-sm" readonly/>`,
};

class AppengineStageAllocationConfigurationRowCtrl implements IController {
Expand Down Expand Up @@ -96,7 +96,7 @@ const appengineStageAllocationConfigurationRow: IComponentOptions = {
onAllocationChange: '&',
},
controller: AppengineStageAllocationConfigurationRowCtrl,
templateUrl: require('./stageAllocationConfigurationRow.component.html')
templateUrl: require('./stageAllocationConfigurationRow.component.html'),
};

export const APPENGINE_STAGE_ALLOCATION_CONFIGURATION_ROW =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class AppengineConfigFileConfigurerCtrl implements IController {
const appengineConfigFileConfigurerComponent: ng.IComponentOptions = {
bindings: { command: '=' },
controller: AppengineConfigFileConfigurerCtrl,
templateUrl: require('./configFiles.component.html')
templateUrl: require('./configFiles.component.html'),
};

export const APPENGINE_CONFIG_FILE_CONFIGURER = 'spinnaker.appengine.configFileConfigurer.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const appengineDynamicBranchLabelComponent: ng.IComponentOptions = {
<span ng-if="$ctrl.trigger.type === 'jenkins'">
Resolved at runtime by <b>Jenkins</b> trigger: {{$ctrl.trigger.master}}/{{$ctrl.trigger.job}}
</span>
`
`,
};

export const APPENGINE_DYNAMIC_BRANCH_LABEL = 'spinnaker.appengine.dynamicBranchLabel.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const canaryAnalysisNameSelectorComponent: IComponentOptions = {
className: '@',
},
controller: CanaryAnalysisNameSelectorController,
templateUrl: require('./canaryAnalysisNameSelector.component.html')
templateUrl: require('./canaryAnalysisNameSelector.component.html'),
};

export const CANARY_ANALYSIS_NAME_SELECTOR_COMPONENT = 'spinnaker.canary.canaryAnalysisNameSelector.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const accountTagComponent: IComponentOptions = {
account: '<',
},
controller: AccountTagController,
template: '<span class="account-tag account-tag-{{$ctrl.accountType}}">{{$ctrl.account}}</span>'
template: '<span class="account-tag account-tag-{{$ctrl.accountType}}">{{$ctrl.account}}</span>',
};

export const ACCOUNT_TAG_COMPONENT = 'spinnaker.core.account.accountTag';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const applicationDataSourceEditorComponent: ng.IComponentOptions = {
application: '=',
},
controller: DataSourceEditorController,
templateUrl: require('./applicationDataSourceEditor.component.html')
templateUrl: require('./applicationDataSourceEditor.component.html'),
};

export const APPLICATION_DATA_SOURCE_EDITOR = 'spinnaker.core.application.config.applicationDataSourceEditor';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const configSectionFooterComponent: IComponentOptions = {
afterSave: '&?',
},
controller: ConfigSectionFooterController,
templateUrl: require('./configSectionFooter.component.html')
templateUrl: require('./configSectionFooter.component.html'),
};

export const CONFIG_SECTION_FOOTER = 'spinnaker.core.application.config.section.footer.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const trafficGuardConfigComponent: ng.IComponentOptions = {
application: '=',
},
controller: TrafficGuardConfigController,
templateUrl: require('./trafficGuardConfig.component.html')
templateUrl: require('./trafficGuardConfig.component.html'),
};

export const TRAFFIC_GUARD_CONFIG_COMPONENT = 'spinnaker.core.application.config.trafficGuard.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const applicationNameValidationMessagesComponent: ng.IComponentOptions = {
{{error.message}}
</div>
</div>
`
`,
};

export const APPLICATION_NAME_VALIDATION_MESSAGES = 'spinnaker.core.application.applicationNameValidationMessages';
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/artifact/artifactIconList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const artifactIconListComponent: IComponentOptions = {
height="20"
/><span class="artifact-list-item-name">{{ artifact.name }}<span ng-if="artifact.version"> - {{ artifact.version }}</span></span>
</div>
`
`,
};

export const ARTIFACT_ICON_LIST = 'spinnaker.core.artifact.iconList';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const expectedArtifactMultiSelectorComponent: IComponentOptions = {
</stage-config-field>
</ng-form>
</render-if-feature>
`
`,
};

export const EXPECTED_ARTIFACT_MULTI_SELECTOR_COMPONENT = 'spinnaker.core.artifacts.expected.multiSelector';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const imageSourceSelectorComponent: IComponentOptions = {
</div>
</div>
</render-if-feature>
`
`,
};

export const IMAGE_SOURCE_SELECTOR_COMPONENT = 'spinnaker.core.artifacts.expected.image.selector';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const chaosMonkeyConfigComponent: ng.IComponentOptions = {
application: '=',
},
controller: ChaosMonkeyConfigController,
templateUrl: require('./chaosMonkeyConfig.component.html')
templateUrl: require('./chaosMonkeyConfig.component.html'),
};

export const CHAOS_MONKEY_CONFIG_COMPONENT = 'spinnaker.core.chaosMonkey.config.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const chaosMonkeyExceptionsComponent: ng.IComponentOptions = {
configChanged: '&',
},
controller: ChaosMonkeyExceptionsController,
templateUrl: require('./chaosMonkeyExceptions.component.html')
templateUrl: require('./chaosMonkeyExceptions.component.html'),
};

export const CHAOS_MONKEY_EXCEPTIONS_COMPONENT = 'spinnaker.core.chaosMonkey.exceptions.directive';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const chaosMonkeyNewApplicationConfigComponent: ng.IComponentOptions = {
</div>
</div>
</div>
`
`,
};

export const CHAOS_MONKEY_NEW_APPLICATION_CONFIG_COMPONENT =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const commitHistoryComponent: IComponentOptions = {
</tr>
</table>
</div>
`
`,
};

export const COMMIT_HISTORY_COMPONENT = 'spinnaker.diffs.commit.history.component';
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/diffs/jarDiff.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const jarDiffComponent: IComponentOptions = {
</tr>
</table>
</div>
`
`,
};

export const JAR_DIFF_COMPONENT = 'spinnaker.diffs.jar.diff.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const viewChangesLink: IComponentOptions = {
<span ng-if="$ctrl.viewType === 'linkOnly' && $ctrl.changesAvailable">
<a href ng-click="$ctrl.showChanges()">{{ $ctrl.linkText }}</a>
</span>
`
`,
};

export const viewChangesLinkWrapper: IComponentOptions = {
Expand All @@ -160,7 +160,7 @@ export const viewChangesLinkWrapper: IComponentOptions = {
linkText: '<?',
nameItem: '<',
},
tempate: `<view-changes-link change-config="$ctrl.changeConfig" view-type="{{::$ctrl.viewType}}" link-text="{{::$ctrl.linkText}}" name-item="$ctrl.nameItem"></view-changes-link>`
tempate: `<view-changes-link change-config="$ctrl.changeConfig" view-type="{{::$ctrl.viewType}}" link-text="{{::$ctrl.linkText}}" name-item="$ctrl.nameItem"></view-changes-link>`,
};

export const VIEW_CHANGES_LINK = 'spinnaker.diffs.view.changes.link';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const addEntityTagLinksComponent: IComponentOptions = {
Add alert <help-field key="entityTags.{{$ctrl.entityType}}.alert"></help-field>
</a>
</li>
`
`,
};

export const addEntityTagLinksWrapperComponent: IComponentOptions = {
Expand All @@ -83,7 +83,7 @@ export const addEntityTagLinksWrapperComponent: IComponentOptions = {
tag-type={{$ctrl.tagType}}
owner-options="$ctrl.ownerOptions">
</add-entity-tag-links>
`
`,
};

export const ADD_ENTITY_TAG_LINKS_COMPONENT = 'spinnaker.core.entityTag.details.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const entitySourceComponent: ng.IComponentOptions = {
</span>
</dd>
</div>
`
`,
};

export const ENTITY_SOURCE_COMPONENT = 'spinnaker.core.entityTag.entitySource.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IComponentOptions, module } from 'angular';
import './buttonBusyIndicator.component.less';

export const buttonBusyIndicatorComponent: IComponentOptions = {
template: `<i us-spinner="{color: '#ffffff', left: '3px', top: '10px', radius:3, width: 2, length: 3}"></i>`
template: `<i us-spinner="{color: '#ffffff', left: '3px', top: '10px', radius:3, width: 2, length: 3}"></i>`,
};

export const BUTTON_BUSY_INDICATOR_COMPONENT = 'spinnaker.core.forms.buttonBusyIndicator.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const numberListComponent: IComponentOptions = {
Add {{$ctrl.label}}
</button>
</div>
`
`,
};

export const numberListWrapperComponent: IComponentOptions = {
Expand All @@ -154,7 +154,7 @@ export const numberListWrapperComponent: IComponentOptions = {
label={{$ctrl.label}}
on-change="$ctrl.onChange($ctrl.model)">
</number-list>
`
`,
};

export const NUMBER_LIST_COMPONENT = 'spinnaker.core.forms.numberList';
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/modules/core/src/help/helpField.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const helpFieldComponent: IComponentOptions = {
<i class="small glyphicon glyphicon-question-sign"></i>
</a>
</div>
`
`,
};

export const helpFieldWrapperComponent: IComponentOptions = {
Expand All @@ -127,7 +127,7 @@ export const helpFieldWrapperComponent: IComponentOptions = {
fallback="{{$ctrl.fallback}}"
placement="{{$ctrl.placement}}"
expand="$ctrl.expand"
label="{{$ctrl.label}}"></help-field>`
label="{{$ctrl.label}}"></help-field>`,
};

export const HELP_FIELD_COMPONENT = 'spinnaker.core.help.helpField.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const insightLayoutComponent = {
app: '<',
},
controller: InsightLayoutCtrl,
templateUrl: require('./insightLayout.component.html')
templateUrl: require('./insightLayout.component.html'),
};

export const INSIGHT_LAYOUT_COMPONENT = 'spinnaker.core.insight.insightLayout.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const submitButtonComponent: IComponentOptions = {
<i ng-if="!$ctrl.submitting" class="far fa-check-circle"></i>
<button-busy-indicator ng-if="$ctrl.submitting"></button-busy-indicator>
{{$ctrl.label || ($ctrl.isNew ? 'Create' : 'Update')}}
</button>`
</button>`,
};

export const SUBMIT_BUTTON_COMPONENT = 'spinnaker.core.modal.buttons.submitButton.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const v2ModalWizardComponent: ng.IComponentOptions = {
},
transclude: true,
templateUrl: require('./v2modalWizard.component.html'),
controller: V2ModalWizard
controller: V2ModalWizard,
};

export const V2_MODAL_WIZARD_COMPONENT = 'spinnaker.core.modal.wizard.wizard.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const wizardPageComponent: ng.IComponentOptions = {
},
transclude: true,
templateUrl: require('./v2wizardPage.component.html'),
controller: WizardPageController
controller: WizardPageController,
};

export const V2_WIZARD_PAGE_COMPONENT = 'spinnaker.core.modal.wizard.wizardPage.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const copyStageCardComponent: ng.IComponentOptions = {
<p ng-if="$ctrl.stageWrapper.pipeline"><b>Pipeline:</b> {{::$ctrl.stageWrapper.pipeline}}</p>
<p ng-if="$ctrl.stageWrapper.strategy"><b>Strategy:</b> {{::$ctrl.stageWrapper.strategy}}</p>
<p class="small">{{::$ctrl.stageWrapper.stage.comments}}</p>
`
`,
};

export const COPY_STAGE_CARD_COMPONENT = 'spinnaker.core.copyStageCard.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const bakeStageChooseOsComponent: IComponentOptions = {
model: '=',
},
controller: BakeStageChooseOSController,
templateUrl: require('./bakeStageChooseOs.component.html')
templateUrl: require('./bakeStageChooseOs.component.html'),
};

export const PIPELINE_BAKE_STAGE_CHOOSE_OS = 'spinnaker.core.pipeline.bake.chooseOS.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const atlasGraphComponent: ng.IComponentOptions = {
</div>
</div>
</div>
`
`,
};

export const EXECUTION_WINDOW_ATLAS_GRAPH = 'spinnaker.core.pipeline.config.executionWindow.atlas.graph';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const executionWindowDayPickerComponent: ng.IComponentOptions = {
onChange: '&',
},
controller: ExecutionWindowDayPickerController,
templateUrl: require('./executionWindowDayPicker.component.html')
templateUrl: require('./executionWindowDayPicker.component.html'),
};

module(EXECUTION_WINDOWS_DAY_PICKER, []).component('executionWindowDayPicker', executionWindowDayPickerComponent);
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const producesArtifactsComponent: IComponentOptions = {
</div>
</div>
</div>
`
`,
};

export const PRODUCES_ARTIFACTS = 'spinnaker.core.pipeline.stage.producesArtifacts';
Expand Down
Loading

0 comments on commit 5cf6c79

Please sign in to comment.