From aff4037514da46a63d7febf8a433bf82d74b809d Mon Sep 17 00:00:00 2001
From: wu ming <569287825@qq.com>
Date: Thu, 17 Nov 2016 08:52:24 +0800
Subject: [PATCH] nong
---
defs.d.ts | 20 +-
dist/hawtio-kubernetes.js | 8942 +++++++++++++++++++------------------
2 files changed, 4500 insertions(+), 4462 deletions(-)
diff --git a/defs.d.ts b/defs.d.ts
index 570b1ca3..e95885f3 100644
--- a/defs.d.ts
+++ b/defs.d.ts
@@ -1,15 +1,22 @@
///
\n \t{{column.title}}\n | \n
---|
\n \t\t{{col.title}}\n \t | \n
\n \t{{column.title}}\n | \n
---|
\n \t\t{{col.title}}\n \t | \n
duration: ' + y + ' seconds
'; - if (date) { - tooltip += 'started: ' + date + '
'; - } - if (result) { - tooltip += 'result: ' + result + '
'; - } - if (x) { - var data = buildsSucceeded; - var key = successBuildKey; - if (!successBuildKey && (!result || !result.startsWith("SUCC"))) { - data = buildsFailed; - key = failedBuildKey; - } - data.push({ - tooltip: tooltip, - color: color, - x: x, y: y }); - } - }); - $scope.data = []; - if (buildsSucceeded.length) { - $scope.data.push({ - key: successBuildKey, - values: buildsSucceeded - }); + }]); + hawtioPluginLoader.addModule(Developer.pluginName); + // for scroll-glue directive + hawtioPluginLoader.addModule('luegg.directives'); +})(Developer || (Developer = {})); + +///duration: ' + y + ' seconds
'; + if (date) { + tooltip += 'started: ' + date + '
'; + } + if (result) { + tooltip += 'result: ' + result + '
'; + } + if (x) { + var data = buildsSucceeded; + var key = successBuildKey; + if (!successBuildKey && (!result || !result.startsWith("SUCC"))) { + data = buildsFailed; + key = failedBuildKey; } + data.push({ + tooltip: tooltip, + color: color, + x: x, y: y }); + } + }); + $scope.data = []; + if (buildsSucceeded.length) { + $scope.data.push({ + key: successBuildKey, + values: buildsSucceeded }); } - }; - $scope.onOk = function () { - $scope.enable = false; - if (null == $scope.new_content || $scope.new_content == "") { - console.log("上传的内容不能为空"); - $scope.closeThisDialog(); + if (buildsFailed.length) { + $scope.data.push({ + key: failedBuildKey, + values: buildsFailed + }); } - else { - $scope.$emit("onOk", { - url: "/java/console/api/filePackage/handleSqlFile", - item: $scope.ngDialogData.item, - content: $scope.new_content, - opt: "add", - type: $scope.ngDialogData.type + $scope.api.updateWithData($scope.data); + $timeout(function () { + $scope.api.update(); + }, 50); + } + function updateData() { + var metricsPath = $scope.jobId ? UrlHelpers.join("job", $scope.jobId, "fabric8/metrics") : "fabric8/metrics"; + var url = Kubernetes.kubernetesProxyUrlForServiceCurrentNamespace(Developer.jenkinsServiceNameAndPort, metricsPath); + Developer.log.info(""); + if (url && (!$scope.jenkins || Kubernetes.keepPollingModel)) { + $http.get(url, Developer.jenkinsHttpConfig). + success(function (data, status, headers, config) { + if (data) { + if (Developer.hasObjectChanged(data, $scope.entityChangedCache)) { + Developer.log.info("entity has changed!"); + $scope.metrics = data; + updateChartData(); + } + } + $scope.model.fetched = true; + Core.$apply($scope); + }). + error(function (data, status, headers, config) { + Developer.log.warn("Failed to load " + url + " " + data + " " + status); }); - $scope.closeThisDialog(); } - }; - $scope.cancel = function () { - $scope.enable = false; - $scope.closeThisDialog(); - }; + } }]); - Configs.SqlAddController = Configs.controller('SqlAddController', ['$scope', '$http', function ($scope, $http) { - $scope.content = ""; - $scope.title = shareInit($scope.ngDialogData); - $scope.sqlFileUpload = function () { - Configs.FileInputPlugin(function (file) { - $scope.enable = true; - if (typeof typeof FileReader == 'undefined') - throw "浏览器不支持FileReader读取文件"; +})(Developer || (Developer = {})); + +///已启用 | \r\n已停止 | \r\n\r\n {{volume.name}}\r\n | \r\n\r\n 云路径:{{volume.path}}\r\n | \r\n\r\n \r\n | \r\n\r\n 已用 {{volume.formatUsedSize}} / 共 {{volume.formatTotalSize}}\r\n | \r\n\r\n \r\n \r\n | \r\n
---|---|---|---|---|---|---|
\r\n \r\n \r\n | \r\n\r\n 服务器{{$index+1}}\r\n | \r\n\r\n {{row.ip}}\r\n | \r\n\r\n 存储路径:{{row.path}}\r\n | \r\n\r\n 已用 {{row.formatUsedSize}} / 共 {{row.formatAllSize}}\r\n | \r\n\r\n |
\r\n 是否删除:{{showDeleteVolume.item.name}} 云盘?\r\n
\r\n当前没有配置汇总库信息,请配置,否则汇总操作将不可用!
\r\nThere are no tools currently available.
\r\nThere are no tools currently available.
\r\nThere are no image repositories available.
\r\n Create Image Repository\r\n\r\n Create a project by entering or copy/pasting the Git URL for a repository, and give the project a name. By default the name will be based on the repository name.\r\n
\r\n\r\n \r\n\r\n \r\n\r\nPipeline is a kind of build which uses Jenkins Workflow internally which has multiple Stages. You will see the active pipelines here after you add a build to this project
\r\n当前没有正在运行的oracle服务.
\r\n当前没有正在运行的oracle服务.
\r\nThere are no secrets currently available.
\r\n当前没有可以查看的数据.
\r\n\r\n {{row.code}} | \r\n\r\n {{row.cityName}} | \r\n\r\n {{row.districtName}} | \r\n
当前没有可以查看的数据.
\r\n\r\n {{row.code}} | \r\n\r\n {{row.systemName}} | \r\n
\r\n {{row[col.field]}}\r\n \r\n | \r\n
\r\n \r\n | \r\n\r\n 有缺失\r\n 正常\r\n 待归档\r\n 待审核\r\n | \r\n{{row.areaCode}} | \r\n{{row.cityName}} | \r\n{{row.districtName}} | \r\n{{row.sysName}} | \r\n{{row.dataBaseType}} | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n
\r\n \r\n | \r\n{{row.checkResult}} | \r\n{{row.collection}} | \r\n{{row.payResultLast}} | \r\n{{row.execResultLast}} | \r\n{{row.cityName}} | \r\n{{row.districtName}} | \r\n{{row.areaCode}} | \r\n\r\n \r\n 否\r\n | \r\n{{row.sysName}} | \r\n{{row.dataVersion}} | \r\n{{row.departmentManager}} | \r\n{{row.managerContacts}} | \r\n{{row.dataBaseType}} | \r\n
当前没有可以查看的数据.
\r\n\r\n {{row.code}} | \r\n\r\n {{row.cityName}} | \r\n\r\n {{row.districtName}} | \r\n
当前没有可以查看的数据.
\r\n\r\n {{row.code}} | \r\n\r\n {{row.systemName}} | \r\n
\r\n {{row[col.field]}}\r\n \r\n | \r\n
\r\n \r\n | \r\n\r\n 有缺失\r\n 正常\r\n 待归档\r\n 待审核\r\n | \r\n{{row.areaCode}} | \r\n{{row.cityName}} | \r\n{{row.districtName}} | \r\n{{row.sysName}} | \r\n{{row.dataBaseType}} | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n\r\n \r\n \r\n \r\n \r\n —\r\n | \r\n
\r\n \r\n | \r\n{{row.checkResult}} | \r\n{{row.collection}} | \r\n{{row.payResultLast}} | \r\n{{row.execResultLast}} | \r\n{{row.cityName}} | \r\n{{row.districtName}} | \r\n{{row.areaCode}} | \r\n\r\n \r\n 否\r\n | \r\n{{row.sysName}} | \r\n{{row.dataVersion}} | \r\n{{row.departmentManager}} | \r\n{{row.managerContacts}} | \r\n{{row.dataBaseType}} | \r\n