iguazio.dashboard-controls 1.2.17 → 1.2.18-3.7-1.14

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,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-controls",
3
- "version": "1.2.17",
3
+ "version": "1.2.18-3.7-1.14",
4
4
  "main": "dist/js/iguazio.dashboard-controls.js",
5
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
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "bootstrap": "~3.4.1",
34
34
  "del": "^6.1.1",
35
35
  "eslint-plugin-angular": "^4.0.1",
36
- "express": "4.19.2",
36
+ "express": "4.20.0",
37
37
  "gulp": "^4.0.2",
38
38
  "gulp-babel": "^8.0.0",
39
39
  "gulp-concat": "^2.6.1",
@@ -684,7 +684,7 @@ such restriction.
684
684
  ip: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
685
685
  mask: /^(((255\.){3}(255|254|252|248|240|224|192|128|0+))|((255\.){2}(255|254|252|248|240|224|192|128|0+)\.0)|((255\.)(255|254|252|248|240|224|192|128|0+)(\.0+){2})|((255|254|252|248|240|224|192|128|0+)(\.0+){3}))$/,
686
686
  hostName_IpAddress: /(^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$)|(^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$)/,
687
- dockerReference: /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*(:\d+)?\/)?[a-z0-9]+(([._]|__|[-]*)[a-z0-9]+)*(\/[a-z0-9]+(([._]|__|[-]*)[a-z0-9]+)*)*(:[\w][\w.-]{0,127})?(@[A-Za-z][A-Za-z0-9]*([-_+.][A-Za-z][A-Za-z0-9]*)*:[0-9a-fA-F]{32,})?$/,
687
+ dockerReference: /^(?!.*\/\/)(?:(?:[A-Za-z0-9](?:-[A-Za-z0-9]|[A-Za-z0-9])*)(?:\.(?:[A-Za-z0-9](?:-[A-Za-z0-9]|[A-Za-z0-9])*))*(?::\d+)?\/)?[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|-+)[a-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9._-]{0,127})?(?:@[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*:[0-9a-fA-F]{32,})?$/,
688
688
 
689
689
  getMaxLength: getMaxLength,
690
690
  getValidationRules: getValidationRules,
@@ -82,7 +82,7 @@ such restriction.
82
82
  */
83
83
  function getValidYaml(data) {
84
84
  function replacer(match, captureGroup1, captureGroup2) {
85
- return captureGroup1 + captureGroup2.replace(/"/g, '\\"');
85
+ return captureGroup1 + captureGroup2.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
86
86
  }
87
87
 
88
88
  return data.replace(/(\s*-)\s*\n\s+/g, '$1 ')
@@ -718,8 +718,9 @@ such restriction.
718
718
  var projectName = '{project_name="' + ctrl.project.metadata.name + '"}';
719
719
  var gpuUtilizationMetric = ' * on (pod) group_left(function_name)(nuclio_function_pod_labels{project_name="' +
720
720
  ctrl.project.metadata.name + '"})';
721
+ var invocationMetricQuery = 'increase(' + ctrl.functionEventsMetric + functionEventsProjectName + '[24h])';
721
722
  var args = {
722
- metric: ctrl.functionEventsMetric + functionEventsProjectName,
723
+ metric: invocationMetricQuery,
723
724
  from: from,
724
725
  until: until,
725
726
  interval: '5m'
@@ -433,10 +433,11 @@ such restriction.
433
433
  * ```
434
434
  */
435
435
  function extractFileName(path, includeExtension, onlyExtension) {
436
- var start = path.lastIndexOf(lodash.defaultTo(onlyExtension, false) ? '.' : '/') + 1;
437
- var end = lodash.defaultTo(includeExtension, true) ? path.length : path.lastIndexOf('.');
436
+ var pathReplaced = lodash.defaultTo(path, '').replace(/\\/g, '/')
437
+ var start = pathReplaced.lastIndexOf(lodash.defaultTo(onlyExtension, false) ? '.' : '/') + 1;
438
+ var end = lodash.defaultTo(includeExtension, true) ? pathReplaced.length : pathReplaced.lastIndexOf('.');
438
439
 
439
- return lodash.defaultTo(path, '').replace('\\', '/').substring(start, end);
440
+ return pathReplaced.substring(start, end);
440
441
  }
441
442
 
442
443
  /**
@@ -500,19 +501,25 @@ such restriction.
500
501
  },
501
502
  {
502
503
  id: 'python:3.10',
504
+ ext: 'py',
503
505
  name: 'Python 3.10',
506
+ language: 'python',
504
507
  sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOg0KICAgIHJldHVybiAiIg==', // source code in base64
505
508
  visible: true
506
509
  },
507
510
  {
508
511
  id: 'python:3.11',
512
+ ext: 'py',
509
513
  name: 'Python 3.11',
514
+ language: 'python',
510
515
  sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOg0KICAgIHJldHVybiAiIg==', // source code in base64
511
516
  visible: true
512
517
  },
513
518
  {
514
519
  id: 'python:3.12',
520
+ ext: 'py',
515
521
  name: 'Python 3.12',
522
+ language: 'python',
516
523
  sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOg0KICAgIHJldHVybiAiIg==', // source code in base64
517
524
  visible: true
518
525
  },