@spinnaker/core 0.22.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/core",
3
3
  "license": "Apache-2.0",
4
- "version": "0.22.0",
4
+ "version": "0.22.2",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "@apollo/client": "^3.6.9",
18
18
  "@fortawesome/fontawesome-free": "5.5.0",
19
19
  "@spinnaker/mocks": "1.0.7",
20
- "@spinnaker/presentation": "^0.2.0",
20
+ "@spinnaker/presentation": "^0.2.1",
21
21
  "@spinnaker/styleguide": "2.0.0",
22
22
  "@uirouter/angularjs": "1.0.26",
23
23
  "@uirouter/core": "6.0.8",
@@ -120,5 +120,5 @@
120
120
  "shx": "0.3.3",
121
121
  "typescript": "4.3.5"
122
122
  },
123
- "gitHead": "3efb67c7d040c3b549e9d3f589663f4e70c74390"
123
+ "gitHead": "587b5a7a5fe2121cd93bed86e5e83795ee401be0"
124
124
  }
@@ -35,6 +35,7 @@ bootstrapModule.config([
35
35
  $locationProvider.html5Mode({
36
36
  enabled: SETTINGS.feature.html5Routing,
37
37
  rewriteLinks: false,
38
+ requireBase: false,
38
39
  });
39
40
  },
40
41
  ]);
@@ -162,8 +162,7 @@ SETTINGS.analytics = SETTINGS.analytics || {};
162
162
  SETTINGS.providers = SETTINGS.providers || {};
163
163
  SETTINGS.defaultTimeZone = SETTINGS.defaultTimeZone || 'America/Los_Angeles';
164
164
  SETTINGS.dockerInsights = SETTINGS.dockerInsights || { enabled: false, url: '' };
165
- SETTINGS.changelogUrl =
166
- SETTINGS.changelogUrl || 'https://www.spinnaker.io/community/releases/versions/:version-changelog';
165
+ SETTINGS.changelogUrl = SETTINGS.changelogUrl || 'https://spinnaker.io/changelogs/:version-changelog';
167
166
  SETTINGS.managedDelivery = SETTINGS.managedDelivery || {
168
167
  defaultManifest: 'spinnaker.yml',
169
168
  manifestBasePath: '.spinnaker',
@@ -38,8 +38,7 @@ const Version = () => {
38
38
  return null;
39
39
  }
40
40
 
41
- const CHANGELOG_PATH = SETTINGS.version.replace(/\./g, '-');
42
- const CHANGELOG_URL = SETTINGS.changelogUrl.replace(':version', CHANGELOG_PATH);
41
+ const CHANGELOG_URL = SETTINGS.changelogUrl.replace(':version', SETTINGS.version);
43
42
 
44
43
  return (
45
44
  <MenuItem href={CHANGELOG_URL} target="_blank">
@@ -89,7 +89,7 @@ class UrlBuilderUtils {
89
89
  });
90
90
  });
91
91
 
92
- if (parts.length > 0) {
92
+ if (parts.length > 0 && url) {
93
93
  url += (url.includes('?') ? '&' : '?') + parts.join('&');
94
94
  }
95
95
 
@@ -4,5 +4,5 @@ import type { INotificationTypeConfig } from '../../../../domain';
4
4
  export const googlechatNotification: INotificationTypeConfig = {
5
5
  component: GooglechatNotificationType,
6
6
  key: 'googlechat',
7
- label: 'GoogleChat',
7
+ label: 'Google Chat',
8
8
  };
@@ -16,7 +16,7 @@
16
16
  style="width: 250px"
17
17
  class="form-control input-sm"
18
18
  autofocus
19
- onselect="stageConfigCtrl.selectStageType($item)"
19
+ on-select="stageConfigCtrl.selectStageType($item)"
20
20
  >
21
21
  <ui-select-match>
22
22
  <strong>{{$select.selected.label}}</strong>
@@ -38,7 +38,7 @@ export class InfrastructureSearchServiceV2 {
38
38
  const makeResultSet = (searchResults: ISearchResults<any>, type: SearchResultType): ISearchResultSet => {
39
39
  // Add URLs to each search result (discard duplicate results)
40
40
  const results = uniqBy(
41
- searchResults.results.map((result) => addComputedAttributes(result, type)),
41
+ searchResults.results.map((result) => addComputedAttributes(result, type)).filter((r) => r.href),
42
42
  (r) => r.href,
43
43
  );
44
44
  const query: string = apiParams.key as string;