Skip to content

Commit 476887d

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): eb5c33657e1133bb1b5579405446cdad191ce3d6
1 parent b8ee54d commit 476887d

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

pkg/assets/bindata.go

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5386,7 +5386,15 @@ return d += " -n " + a.metadata.namespace;
53865386
return {
53875387
getLogsCommand:c
53885388
};
5389-
} ]), angular.module("openshiftConsole").controller("ProjectsController", [ "$scope", "$filter", "$location", "$route", "$timeout", "AlertMessageService", "AuthService", "DataService", "KeywordService", "Logger", "ProjectsService", function(a, b, c, d, e, f, g, h, i, j, k) {
5389+
} ]), angular.module("openshiftConsole").factory("HTMLService", function() {
5390+
return {
5391+
linkify:function(a, b, c) {
5392+
return a ? (c || (a = _.escape(a)), a.replace(/https?:\/\/[A-Za-z0-9._%+-]+\S*[^\s.;,(){}<>"\u201d\u2019]/gm, function(a) {
5393+
return b ? '<a href="' + a + '" target="' + b + '">' + a + "</a>" :'<a href="' + a + '">' + a + "</a>";
5394+
})) :a;
5395+
}
5396+
};
5397+
}), angular.module("openshiftConsole").controller("ProjectsController", [ "$scope", "$filter", "$location", "$route", "$timeout", "AlertMessageService", "AuthService", "DataService", "KeywordService", "Logger", "ProjectsService", function(a, b, c, d, e, f, g, h, i, j, k) {
53905398
var l, m, n = [], o = [];
53915399
a.alerts = a.alerts || {}, a.loading = !0, a.showGetStarted = !1, a.canCreate = void 0, a.search = {
53925400
text:""
@@ -12839,15 +12847,11 @@ a.destroy();
1283912847
});
1284012848
}
1284112849
};
12842-
} ]), angular.module("openshiftConsole").directive("logViewer", [ "$sce", "$timeout", "$window", "$filter", "AuthService", "APIService", "APIDiscovery", "DataService", "ModalsService", "logLinks", "BREAKPOINTS", function(a, b, c, d, e, f, g, h, i, j, k) {
12843-
var l = $(window), m = function(a) {
12844-
return a.replace(/https?:\/\/[A-Za-z0-9._%+-]+\S*[^\s.;,(){}<>"\u201d\u2019]/gm, function(a) {
12845-
return '<a href="' + a + '" target="_blank">' + a + "</a>";
12846-
});
12847-
}, n = $('<tr class="log-line"><td class="log-line-number"></td><td class="log-line-text"></td></tr>').get(0), o = function(a, b) {
12850+
} ]), angular.module("openshiftConsole").directive("logViewer", [ "$sce", "$timeout", "$window", "$filter", "AuthService", "APIService", "APIDiscovery", "DataService", "HTMLService", "ModalsService", "logLinks", "BREAKPOINTS", function(a, b, c, d, e, f, g, h, i, j, k, l) {
12851+
var m = $(window), n = $('<tr class="log-line"><td class="log-line-number"></td><td class="log-line-text"></td></tr>').get(0), o = function(a, b) {
1284812852
var c = n.cloneNode(!0);
1284912853
c.firstChild.setAttribute("data-line-number", a);
12850-
var d = ansi_up.escape_for_html(b), e = ansi_up.ansi_to_html(d), f = m(e);
12854+
var d = ansi_up.escape_for_html(b), e = ansi_up.ansi_to_html(d), f = i.linkify(e, "_blank", !0);
1285112855
return c.lastChild.innerHTML = f, c;
1285212856
};
1285312857
return {
@@ -12868,25 +12872,25 @@ empty:"=?",
1286812872
run:"=?"
1286912873
},
1287012874
controller:[ "$scope", function(i) {
12871-
var m, n, p, q, r, s = document.documentElement;
12875+
var j, n, p, q, r, s = document.documentElement;
1287212876
i.logViewerID = _.uniqueId("log-viewer"), i.empty = !0;
1287312877
var t, u;
1287412878
"ReplicationController" === i.object.kind ? (t = "deploymentconfigs/log", u = d("annotation")(i.object, "deploymentConfig")) :(t = f.kindToResource(i.object.kind) + "/log", u = i.object.metadata.name);
1287512879
var v = function() {
12876-
q = window.innerWidth < k.screenSmMin && !i.fixedHeight ? null :n;
12880+
q = window.innerWidth < l.screenSmMin && !i.fixedHeight ? null :n;
1287712881
}, w = function() {
1287812882
i.$apply(function() {
12879-
var a = m.getBoundingClientRect();
12883+
var a = j.getBoundingClientRect();
1288012884
i.fixedHeight ? i.showScrollLinks = a && a.height > i.fixedHeight :i.showScrollLinks = a && (a.top < 0 || a.bottom > s.clientHeight);
1288112885
});
1288212886
}, x = !1, y = function() {
1288312887
x ? x = !1 :i.$evalAsync(function() {
1288412888
i.autoScrollActive = !1;
1288512889
});
1288612890
}, z = function() {
12887-
p.off("scroll", y), l.off("scroll", y), window.innerWidth <= k.screenSmMin && !i.fixedHeight ? l.on("scroll", y) :p.on("scroll", y);
12891+
p.off("scroll", y), m.off("scroll", y), window.innerWidth <= l.screenSmMin && !i.fixedHeight ? m.on("scroll", y) :p.on("scroll", y);
1288812892
}, A = function() {
12889-
i.fixedHeight || (window.innerWidth < k.screenSmMin && !i.fixedHeight ? r.removeClass("target-logger-node").affix({
12893+
i.fixedHeight || (window.innerWidth < l.screenSmMin && !i.fixedHeight ? r.removeClass("target-logger-node").affix({
1289012894
target:window,
1289112895
offset:{
1289212896
top:i.followAffixTop || 0,
@@ -12910,17 +12914,17 @@ i.chromeless || i.fixedHeight || (e -= 35), a ? b.animate({
1291012914
}, C = _.debounce(function() {
1291112915
B(!0), v(), z(), w(), A(), y();
1291212916
}, 100);
12913-
l.on("resize", C);
12917+
m.on("resize", C);
1291412918
var D, E = function() {
12915-
x = !0, j.scrollBottom(q);
12919+
x = !0, k.scrollBottom(q);
1291612920
}, F = function() {
1291712921
i.autoScrollActive = !i.autoScrollActive, i.autoScrollActive && E();
1291812922
}, G = document.createDocumentFragment(), H = _.debounce(function() {
12919-
m.appendChild(G), G = document.createDocumentFragment(), i.autoScrollActive && E(), i.showScrollLinks || w();
12923+
j.appendChild(G), G = document.createDocumentFragment(), i.autoScrollActive && E(), i.showScrollLinks || w();
1292012924
}, 100, {
1292112925
maxWait:300
1292212926
}), I = function(a) {
12923-
D && (D.stop(), D = null), a || (H.cancel(), m && (m.innerHTML = ""), G = document.createDocumentFragment());
12927+
D && (D.stop(), D = null), a || (H.cancel(), j && (j.innerHTML = ""), G = document.createDocumentFragment());
1292412928
}, J = function() {
1292512929
if (I(), i.run) {
1292612930
angular.extend(i, {
@@ -12969,7 +12973,7 @@ kibanaAuthUrl:a.trustAsResourceUrl(URI(b).segment("auth").segment("token").norma
1296912973
access_token:e.UserStore().getToken()
1297012974
}), i.$watchGroup([ "context.project.metadata.name", "options.container", "name" ], function() {
1297112975
angular.extend(i, {
12972-
kibanaArchiveUrl:a.trustAsResourceUrl(j.archiveUri({
12976+
kibanaArchiveUrl:a.trustAsResourceUrl(k.archiveUri({
1297312977
namespace:i.context.project.metadata.name,
1297412978
namespaceUid:i.context.project.metadata.uid,
1297512979
podname:u,
@@ -12981,7 +12985,7 @@ backlink:URI.encode(c.location.href)
1298112985
}), this.cacheScrollableNode = function(a) {
1298212986
n = a, p = $(n);
1298312987
}, this.cacheLogNode = function(a) {
12984-
m = a;
12988+
j = a;
1298512989
}, this.cacheAffixable = function(a) {
1298612990
r = $(a);
1298712991
}, this.start = function() {
@@ -12992,16 +12996,16 @@ loading:!0,
1299212996
autoScroll:!1,
1299312997
state:!1,
1299412998
onScrollBottom:function() {
12995-
j.scrollBottom(q);
12999+
k.scrollBottom(q);
1299613000
},
1299713001
onScrollTop:function() {
12998-
i.autoScrollActive = !1, j.scrollTop(q);
13002+
i.autoScrollActive = !1, k.scrollTop(q);
1299913003
},
1300013004
toggleAutoScroll:F,
13001-
goChromeless:j.chromelessLink,
13005+
goChromeless:k.chromelessLink,
1300213006
restartLogs:J
1300313007
}), i.$on("$destroy", function() {
13004-
I(), l.off("resize", C), l.off("scroll", y), p.off("scroll", y);
13008+
I(), m.off("resize", C), m.off("scroll", y), p.off("scroll", y);
1300513009
}), "deploymentconfigs/logs" !== t || u ? void i.$watchGroup([ "name", "options.container", "run" ], J) :(i.state = "empty", void (i.emptyStateMessage = "Logs are not available for this replication controller because it was not generated from a deployment configuration."));
1300613010
} ],
1300713011
require:"logViewer",
@@ -13016,7 +13020,7 @@ type:"text/plain;charset=utf-8"
1301613020
saveAs(e, d);
1301713021
};
1301813022
a.canSave = !!new Blob(), a.saveLog = function() {
13019-
return a.largeLog ? void i.confirmSaveLog(a.object).then(f) :void f();
13023+
return a.largeLog ? void j.confirmSaveLog(a.object).then(f) :void f();
1302013024
};
1302113025
}
1302213026
};
@@ -15745,7 +15749,11 @@ return d.replace(f, "<mark>$&</mark>");
1574515749
};
1574615750
} ]).filter("encodeURIComponent", function() {
1574715751
return window.encodeURIComponent;
15748-
}), angular.module("openshiftConsole").filter("camelToLower", function() {
15752+
}).filter("linkify", [ "HTMLService", function(a) {
15753+
return function(b, c, d) {
15754+
return a.linkify(b, c, d);
15755+
};
15756+
} ]), angular.module("openshiftConsole").filter("camelToLower", function() {
1574915757
return function(a) {
1575015758
return a ? _.startCase(a).toLowerCase() :a;
1575115759
};
@@ -15975,7 +15983,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1597515983
$templateCache.put('views/_cannot-create-project.html',
1597615984
"<span ng-if=\"!newProjectMessage\">A cluster admin can create a project for you by running the command\n" +
1597715985
"<code>oadm new-project &lt;projectname&gt; --admin={{user.metadata.name || '&lt;YourUsername&gt;'}}</code></span>\n" +
15978-
"<span ng-if=\"newProjectMessage\" ng-bind-html=\"newProjectMessage | linky : '_blank'\" class=\"projects-instructions-link\"></span>"
15986+
"<span ng-if=\"newProjectMessage\" ng-bind-html=\"newProjectMessage | linkify : '_blank'\" class=\"projects-instructions-link\"></span>"
1597915987
);
1598015988

1598115989

@@ -17231,7 +17239,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
1723117239
"<span ng-switch-when=\"Image change\">\n" +
1723217240
"{{trigger.message}} for {{trigger.imageChangeBuild.fromRef.name}}\n" +
1723317241
"</span>\n" +
17234-
"<span ng-switch-default ng-bind-html=\"trigger.message | linky : '_blank'\"></span>\n" +
17242+
"<span ng-switch-default ng-bind-html=\"trigger.message | linkify : '_blank'\"></span>\n" +
1723517243
"</div>\n" +
1723617244
"</div>\n" +
1723717245
"</dd>\n" +
@@ -20968,7 +20976,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2096820976
"</div>\n" +
2096920977
"<div class=\"alert alert-info template-message\" ng-if=\"templateMessage.length\">\n" +
2097020978
"<span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
20971-
"<div class=\"resource-description\" ng-bind-html=\"templateMessage | linky : '_blank'\"></div>\n" +
20979+
"<div class=\"resource-description\" ng-bind-html=\"templateMessage | linkify : '_blank'\"></div>\n" +
2097220980
"</div>\n" +
2097320981
"<div class=\"row\" ng-controller=\"TasksController\">\n" +
2097420982
"<div ng-if=\"!pendingTasks(tasks()).length && erroredTasks(tasks()).length\" class=\"col-md-12\">\n" +
@@ -23248,7 +23256,7 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2324823256

2324923257
$templateCache.put('views/directives/osc-image-summary.html',
2325023258
"<h1>{{ name || (resource | displayName) }}</h1>\n" +
23251-
"<div class=\"resource-description\" ng-bind-html=\"resource | description | linky : '_blank'\"></div>\n" +
23259+
"<div class=\"resource-description\" ng-bind-html=\"resource | description | linkify : '_blank'\"></div>\n" +
2325223260
"<div class=\"resource-metadata\">\n" +
2325323261
"<div ng-show=\"resource | annotation:'provider'\">Provider: {{ resource | annotation:'provider' }}</div>\n" +
2325423262
"<div ng-show=\"resource.metadata.namespace && resource.metadata.namespace !=='openshift'\">Namespace: {{ resource.metadata.namespace }}</div>\n" +

0 commit comments

Comments
 (0)