Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 1 | {{- /* |
| 2 | Copyright 2017-present Open Networking Foundation |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ -}} |
| 16 | |
Zack Williams | f102607 | 2018-05-04 18:00:38 -0700 | [diff] [blame] | 17 | {{- define "xos-gui.release_labels" }} |
| 18 | app: {{ printf "%s-%s" .Release.Name .Chart.Name | trunc 63 }} |
| 19 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 20 | release: {{ .Release.Name }} |
| 21 | heritage: {{ .Release.Service }} |
| 22 | version: {{ .Chart.Version }} |
| 23 | {{- end }} |
| 24 | |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 25 | {{- define "xos-gui.app_config" }} |
| 26 | angular.module('app') |
| 27 | .constant('AppConfig', { |
| 28 | apiEndpoint: '/xosapi/v1', |
| 29 | websocketClient: '/' |
| 30 | }); |
| 31 | {{- end }} |
| 32 | |
| 33 | {{- define "xos-gui.style_config" }} |
| 34 | angular.module('app') |
| 35 | .constant('StyleConfig', { |
| 36 | projectName: 'R-CORD', |
| 37 | favicon: 'cord-favicon.png', |
| 38 | background: 'cord-bg.jpg', |
| 39 | payoff: 'Your VNF orchestrator', |
| 40 | logo: 'cord-logo.png', |
| 41 | routes: [ |
| 42 | { |
| 43 | label: 'Slices', |
| 44 | state: 'xos.core.slice', |
| 45 | }, |
| 46 | { |
| 47 | label: 'Nodes', |
| 48 | state: 'xos.core.node', |
| 49 | }, |
| 50 | { |
| 51 | label: 'Instances', |
| 52 | state: 'xos.core.instance', |
| 53 | }, |
| 54 | ] |
| 55 | }); |
| 56 | {{- end }} |
| 57 | |