iguazio.dashboard-controls 0.38.9 → 0.38.10-patch3
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/dist/i18n/en/common.json +1 -0
- package/dist/i18n/en/functions.json +1 -1
- package/dist/js/iguazio.dashboard-controls.js +1400 -1388
- package/dist/less/iguazio.dashboard-controls.less +814 -810
- package/package.json +87 -87
- package/src/i18n/en/common.json +1 -0
- package/src/i18n/en/functions.json +1 -1
- package/src/igz_controls/components/default-dropdown/default-dropdown.component.js +32 -23
- package/src/igz_controls/components/default-dropdown/default-dropdown.tpl.html +1 -2
- package/src/igz_controls/less/table.less +4 -0
- package/src/nuclio/common/screens/create-function/function-from-template/function-from-template.component.js +2 -1
- package/src/nuclio/common/screens/create-function/function-from-template/function-from-template.less +1 -1
- package/src/nuclio/functions/functions.component.js +4 -3
- package/src/nuclio/functions/version/version-configuration/tabs/version-configuration-labels/version-configuration-labels.tpl.html +1 -1
- package/src/nuclio/functions/version/version.component.js +2 -1
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
2
|
+
"name": "iguazio.dashboard-controls",
|
|
3
|
+
"version": "0.38.10-patch3",
|
|
4
|
+
"main": "dist/js/iguazio.dashboard-controls.js",
|
|
5
|
+
"description": "Collection of resources (such as CSS styles, fonts and images) and AngularJs 1.x components and services to share among different Iguazio repos.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@github.com:iguazio/dashboard-controls.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/iguazio/dashboard-controls/issues"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"Iguazio",
|
|
15
|
+
"iguazio"
|
|
16
|
+
],
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"homepage": "https://github.com/iguazio/dashboard-controls",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Eran Nussbaum",
|
|
21
|
+
"email": "erann@iguazio.com"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@uirouter/angularjs": "^1.0.20",
|
|
25
|
+
"angular": "^1.7.9",
|
|
26
|
+
"angular-download": "0.0.5",
|
|
27
|
+
"angular-mocks": "^1.7.9",
|
|
28
|
+
"angular-sanitize": "^1.7.9",
|
|
29
|
+
"angular-ui-bootstrap": "~2.5.6",
|
|
30
|
+
"babel-core": "^6.26.0",
|
|
31
|
+
"babel-plugin-angularjs-annotate": "^0.8.2",
|
|
32
|
+
"babel-polyfill": "^6.26.0",
|
|
33
|
+
"babel-preset-env": "^1.6.1",
|
|
34
|
+
"bootstrap": "~3.4.1",
|
|
35
|
+
"del": "^2.2.0",
|
|
36
|
+
"eslint-plugin-angular": "^4.0.1",
|
|
37
|
+
"express": "4.12.3",
|
|
38
|
+
"gulp": "^3.9.1",
|
|
39
|
+
"gulp-babel": "^7.0.0",
|
|
40
|
+
"gulp-concat": "~2.5.2",
|
|
41
|
+
"gulp-eslint": "^6.0.0",
|
|
42
|
+
"gulp-file-transform-cache": ">=1.0.6",
|
|
43
|
+
"gulp-htmlmin": "^5.0.1",
|
|
44
|
+
"gulp-if": "^1.2.5",
|
|
45
|
+
"gulp-imagemin": "^7.1.0",
|
|
46
|
+
"gulp-less": "4.0.1",
|
|
47
|
+
"gulp-less-import": "^1.0.0",
|
|
48
|
+
"gulp-ng-html2js": "^0.2.0",
|
|
49
|
+
"gulp-preprocess": "^2.0.0",
|
|
50
|
+
"gulp-rename": "~1.2.2",
|
|
51
|
+
"gulp-rev": "^6.0.1",
|
|
52
|
+
"gulp-rev-collector": "^1.0.2",
|
|
53
|
+
"gulp-uglify": "^3.0.2",
|
|
54
|
+
"i18next": "^15.1.3",
|
|
55
|
+
"jquery": "*",
|
|
56
|
+
"jquery-ui": "1.12.0",
|
|
57
|
+
"js-base64": "^2.4.8",
|
|
58
|
+
"lodash": "^4.17.11",
|
|
59
|
+
"merge2": "^0.3.6",
|
|
60
|
+
"moment": "^2.24.0",
|
|
61
|
+
"monaco-editor": "^0.11.1",
|
|
62
|
+
"natives": "^1.1.6",
|
|
63
|
+
"ng-dialog": "~0.6.4",
|
|
64
|
+
"ng-file-upload": "~12.2.13",
|
|
65
|
+
"ng-i18next": "^1.0.5",
|
|
66
|
+
"nodejs-fs-utils": "~1.0.26",
|
|
67
|
+
"run-sequence": "~1.1.0",
|
|
68
|
+
"vinyl-paths": "^2.1.0",
|
|
69
|
+
"yargs": "3.10.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"eslint": "^6.8.0",
|
|
73
|
+
"jasmine-core": "~3.2.1",
|
|
74
|
+
"jasmine-reporters": "^2.4.0",
|
|
75
|
+
"jstoxml": "~0.2.3",
|
|
76
|
+
"karma": "^6.3.1",
|
|
77
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
78
|
+
"karma-jasmine": "^3.1.1"
|
|
79
|
+
},
|
|
80
|
+
"autoupdate": {
|
|
81
|
+
"source": "git",
|
|
82
|
+
"target": "https://github.com/iguazio/dashboard-controls.git",
|
|
83
|
+
"basePath": "",
|
|
84
|
+
"files": [
|
|
85
|
+
"dist/js/iguazio.dashboard-controls.js",
|
|
86
|
+
"dist/less/iguazio.dashboard-controls.less"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
89
|
}
|
package/src/i18n/en/common.json
CHANGED
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"DELETE_VERSIONS_CONFIRM": "Are you sure you want to delete selected versions?",
|
|
78
78
|
"DELETED_FUNCTION_WHILE_DEPLOYING_MSG": "The function was deleted by someone else before it completed its deployment. You can deploy it again to recreate it, or go to the functions list.",
|
|
79
79
|
"DEPENDENCIES": "Dependencies",
|
|
80
|
+
"DEPRECATED_SOON_LABEL": "- deprecated soon",
|
|
80
81
|
"DEPLOY": "Deploy",
|
|
81
82
|
"DEPLOYING": "Deploying...",
|
|
82
83
|
"DISABLE_CACHE": "Disable cache",
|
|
@@ -158,7 +159,6 @@
|
|
|
158
159
|
"INVOCATION_URL": "Invocation URL",
|
|
159
160
|
"ITEM_KEY": "Item key",
|
|
160
161
|
"JVM_OPTIONS": "JVM options",
|
|
161
|
-
"LABELS": "Labels",
|
|
162
162
|
"LARGE": "Large",
|
|
163
163
|
"LOGGER_DESTINATION": "Logger destination",
|
|
164
164
|
"LOGGER_LEVEL": "Logger level",
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
|
|
116
116
|
ctrl.checkIsRequired = checkIsRequired;
|
|
117
117
|
ctrl.getDescription = getDescription;
|
|
118
|
-
ctrl.getName = getName;
|
|
119
118
|
ctrl.getIcon = getIcon;
|
|
119
|
+
ctrl.getNameTemplate = getNameTemplate;
|
|
120
120
|
ctrl.getTooltip = getTooltip;
|
|
121
121
|
ctrl.getValuesArray = getValuesArray;
|
|
122
122
|
ctrl.isItemSelected = isItemSelected;
|
|
@@ -281,13 +281,12 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
|
-
* Returns the name of the provided item. Searches for a direct `
|
|
285
|
-
* `nameKey`
|
|
284
|
+
* Returns the name of the provided item. Searches for a direct `nameTemplate` property
|
|
286
285
|
* @param {Object} item - the item whose name should be returned
|
|
287
286
|
* @returns {string}
|
|
288
287
|
*/
|
|
289
|
-
function
|
|
290
|
-
return lodash.get(item, '
|
|
288
|
+
function getNameTemplate(item) {
|
|
289
|
+
return lodash.get(item, 'nameTemplate', getName(item));
|
|
291
290
|
}
|
|
292
291
|
|
|
293
292
|
/**
|
|
@@ -486,7 +485,7 @@
|
|
|
486
485
|
} else {
|
|
487
486
|
ctrl.selectedItem = item;
|
|
488
487
|
}
|
|
489
|
-
ctrl.typedValue =
|
|
488
|
+
ctrl.typedValue = getName(item);
|
|
490
489
|
}
|
|
491
490
|
|
|
492
491
|
if (angular.isFunction(ctrl.itemSelectCallback)) {
|
|
@@ -608,12 +607,22 @@
|
|
|
608
607
|
// Private methods
|
|
609
608
|
//
|
|
610
609
|
|
|
610
|
+
/**
|
|
611
|
+
* Returns the name of the provided item. Searches for a direct `name` property, or searches `name` property by
|
|
612
|
+
* `nameKey`
|
|
613
|
+
* @param {Object} item - the item whose name should be returned
|
|
614
|
+
* @returns {string}
|
|
615
|
+
*/
|
|
616
|
+
function getName(item) {
|
|
617
|
+
return lodash.get(item, 'name', lodash.get(item, ctrl.nameKey, ''));
|
|
618
|
+
}
|
|
619
|
+
|
|
611
620
|
/**
|
|
612
621
|
* Sets default input value
|
|
613
622
|
*/
|
|
614
623
|
function setDefaultInputValue() {
|
|
615
624
|
if (!lodash.isNil(ctrl.selectedItem)) {
|
|
616
|
-
ctrl.typedValue =
|
|
625
|
+
ctrl.typedValue = getName(angular.isDefined(ctrl.selectPropertyOnly) ?
|
|
617
626
|
lodash.find(ctrl.valuesArray, [ctrl.selectPropertyOnly, ctrl.selectedItem]) : ctrl.selectedItem);
|
|
618
627
|
|
|
619
628
|
if (ctrl.typedValue === '' && ctrl.enableTyping) {
|
|
@@ -653,6 +662,22 @@
|
|
|
653
662
|
});
|
|
654
663
|
}
|
|
655
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Takes the largest element and sets him width as min-width to all elements (needed to style drop-down list)
|
|
667
|
+
*/
|
|
668
|
+
function setWidth() {
|
|
669
|
+
var labels = $element.find('.default-dropdown-container ul li').find('.list-item-label');
|
|
670
|
+
var minWidth = lodash(labels)
|
|
671
|
+
.map(function (label) {
|
|
672
|
+
return angular.element(label)[0].clientWidth;
|
|
673
|
+
})
|
|
674
|
+
.min();
|
|
675
|
+
|
|
676
|
+
lodash.forEach(labels, function (label) {
|
|
677
|
+
angular.element(label).css('min-width', minWidth);
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
|
|
656
681
|
/**
|
|
657
682
|
* Handle click on the document and not on the dropdown field and close the dropdown
|
|
658
683
|
* @param {Object} e - event
|
|
@@ -669,21 +694,5 @@
|
|
|
669
694
|
});
|
|
670
695
|
}
|
|
671
696
|
}
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* Takes the largest element and sets him width as min-width to all elements (needed to style drop-down list)
|
|
675
|
-
*/
|
|
676
|
-
function setWidth() {
|
|
677
|
-
var labels = $element.find('.default-dropdown-container ul li').find('.list-item-label');
|
|
678
|
-
var minWidth = lodash(labels)
|
|
679
|
-
.map(function (label) {
|
|
680
|
-
return angular.element(label)[0].clientWidth;
|
|
681
|
-
})
|
|
682
|
-
.min();
|
|
683
|
-
|
|
684
|
-
lodash.forEach(labels, function (label) {
|
|
685
|
-
angular.element(label).css('min-width', minWidth);
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
697
|
}
|
|
689
698
|
}());
|
|
@@ -72,8 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<div class="list-item-label">
|
|
74
74
|
<span class="list-item-name"
|
|
75
|
-
data-ng-class="{'capitalized': $ctrl.isCapitalized}">
|
|
76
|
-
{{$ctrl.getName(item)}}</span>
|
|
75
|
+
data-ng-class="{'capitalized': $ctrl.isCapitalized}" data-ng-bind-html="$ctrl.getNameTemplate(item)"></span>
|
|
77
76
|
<span data-ng-show="$ctrl.getDescription(item)"
|
|
78
77
|
class="description">{{$ctrl.getDescription(item)}}</span>
|
|
79
78
|
</div>
|
|
@@ -371,7 +371,8 @@
|
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
id: 'python:3.6',
|
|
374
|
-
name: 'Python 3.6',
|
|
374
|
+
name: 'Python 3.6 ' + $i18next.t('functions:DEPRECATED_SOON_LABEL', {lng: lng}),
|
|
375
|
+
nameTemplate: 'Python 3.6 ' + '<b>' + $i18next.t('functions:DEPRECATED_SOON_LABEL', {lng: lng}) + '</b>',
|
|
375
376
|
visible: true
|
|
376
377
|
},
|
|
377
378
|
{
|
|
@@ -695,11 +695,12 @@
|
|
|
695
695
|
var now = Date.now();
|
|
696
696
|
var from = new Date(now - MILLIS_IN_AN_HOUR).toISOString();
|
|
697
697
|
var until = new Date(now).toISOString();
|
|
698
|
-
var
|
|
699
|
-
var
|
|
698
|
+
var functionEventsProjectName = '{project="' + ctrl.project.metadata.name + '"}';
|
|
699
|
+
var projectName = '{project_name="' + ctrl.project.metadata.name + '"}';
|
|
700
|
+
var gpuUtilizationMetric = ' * on (pod) group_left(function_name)(nuclio_function_pod_labels{project_name="' +
|
|
700
701
|
ctrl.project.metadata.name + '"})';
|
|
701
702
|
var args = {
|
|
702
|
-
metric: ctrl.functionEventsMetric +
|
|
703
|
+
metric: ctrl.functionEventsMetric + functionEventsProjectName,
|
|
703
704
|
from: from,
|
|
704
705
|
until: until,
|
|
705
706
|
interval: '5m'
|