2015-02-07 17:43:31 +01:00
|
|
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-cockpit-0.38/pkg/shell/cockpit-docker.js ./pkg/shell/cockpit-docker.js
|
|
|
|
--- ../orig-cockpit-0.38/pkg/shell/cockpit-docker.js 2015-01-28 13:35:16.000000000 +0100
|
|
|
|
+++ ./pkg/shell/cockpit-docker.js 2015-02-07 17:41:48.753807824 +0100
|
|
|
|
@@ -1810,7 +1810,7 @@
|
|
|
|
if (watch && watch.valid)
|
|
|
|
watch.close();
|
|
|
|
|
|
|
|
- watch = cockpit.channel({ payload: "fsdir1", path: "/var/lib/docker" });
|
|
|
|
+ watch = cockpit.channel({ payload: "fsdir1", path: "/usr/bin/docker" });
|
|
|
|
$(watch).on("message", function(event, data) {
|
|
|
|
trigger_event();
|
|
|
|
});
|
|
|
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-cockpit-0.38/shell.js ./shell.js
|
|
|
|
--- ../orig-cockpit-0.38/shell.js 2015-01-28 13:35:22.000000000 +0100
|
|
|
|
+++ ./shell.js 2015-02-07 17:42:24.427286289 +0100
|
|
|
|
@@ -16383,7 +16383,7 @@
|
|
|
|
if (watch && watch.valid)
|
|
|
|
watch.close();
|
|
|
|
|
|
|
|
- watch = cockpit.channel({ payload: "fsdir1", path: "/var/lib/docker" });
|
|
|
|
+ watch = cockpit.channel({ payload: "fsdir1", path: "/usr/bin/docker" });
|
|
|
|
$(watch).on("message", function(event, data) {
|
|
|
|
trigger_event();
|
|
|
|
});
|
2015-02-07 18:30:50 +01:00
|
|
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-cockpit-0.38/shell.min.js ./shell.min.js
|
|
|
|
--- ../orig-cockpit-0.38/shell.min.js 2015-01-28 13:35:22.000000000 +0100
|
|
|
|
+++ ./shell.min.js 2015-02-07 18:29:46.885202429 +0100
|
|
|
|
@@ -5,4 +5,4 @@
|
|
|
|
var u=this._other_devices[0].childNodes;var f=null;var p,h;for(var g=0;g<u.length;g++){p=u[g];h=p.getAttribute("sort");if(parseInt(h,10)>c){f=p;break}}this._other_devices[0].insertBefore(l[0],f);this._other_devices.closest(".panel").show();d(e("#storage-spinner-"+r));y(e("#storage-spinner-"+r),i)},_addMount:function(i){var a=i.lookup("com.redhat.Cockpit.Storage.Block");if(a.IdUsage!="filesystem"||a.HintIgnore)return;var o=s(i.objectPath.substr(i.objectPath.lastIndexOf("/")+1));var r=o;var c=null;var l=e('<td style="text-align:right">');if(a.MountedAt&&a.MountedAt.length>0){c=n.BarRow();for(var d=0;d<a.MountedAt.length;d++){this.mount_bar_rows[a.MountedAt[d]]=c;this.mount_texts[a.MountedAt[d]]=l}}else l.text(t.format_bytes(a.Size,1024));var u=e("<tr>",{Sort:r}).click(function(){I(a)}).append(e("<td>").text(a.IdLabel||a.Device),e("<td>").text(a.MountedAt||"-"),e("<td>").append(c),l);var f=this._mounts[0].childNodes;var p=null;var h,g;for(var _=0;_<f.length;_++){h=f[_];g=h.getAttribute("sort");if(g>r){p=h;break}}this._mounts[0].insertBefore(u[0],p)}};function M(){this._init()}n.pages.push(new M);function R(e){var i;if(e.Type=="pool")i=_("Pool for Thin Logical Volumes");else if(e.ThinPool!="/")i=_("Thin Logical Volume");else if(e.Origin!="/")i=_("Logical Volume (Snapshot)");else i=_("Logical Volume");return t.format('$type "$name"',{type:i,name:n.esc(e.Name)})}function P(i,o,r){var s,c;if(i.IdUsage=="filesystem"){s=e("<span>").text(t.format(C_("storage-id-desc","$0 File System"),i.IdType))}else if(i.IdUsage=="raid"){if(i.IdType=="linux_raid_member"){s=e("<span>").text(C_("storage-id-desc","Linux MD-RAID Component"))}else if(i.IdType=="LVM2_member"){s=e("<span>").text(C_("storage-id-desc","LVM2 Physical Volume"))}else{s=e("<span>").text(C_("storage-id-desc","RAID Member"))}if(i.PvGroup!="/"){var l=i._client.get(i.PvGroup,"com.redhat.Cockpit.Storage.VolumeGroup");s.append(" of ",e("<a>").text(l.Name).click(function(){t.location.go("storage-detail",{type:"vg",id:l.Name})}))}else if(i.MDRaidMember!="/"){var d=i.MDRaidMember.substr(i.MDRaidMember.lastIndexOf("/")+1);var u=i._client.get(i.MDRaidMember,"com.redhat.Cockpit.Storage.MDRaid");s.append(" of ",e("<a>").text(z(u)).click(function(){t.location.go("storage-detail",{type:"mdraid",id:d})}))}}else if(i.IdUsage=="crypto"){if(i.IdType=="crypto_LUKS"){s=e("<span>").text(C_("storage-id-desc","LUKS Encrypted"))}else{s=e("<span>").text(C_("storage-id-desc","Encrypted"))}}else if(i.IdUsage=="other"){if(i.IdType=="swap"){s=e("<span>").text(C_("storage-id-desc","Swap Space"))}else{s=e("<span>").text(C_("storage-id-desc","Other Data"))}}else{s=e("<span>").text(C_("storage-id-desc","Unrecognized Data"))}if(i.PartitionNumber>0){s=e("<span>").append(t.format(_("$size $partition"),{size:a(i.Size),partition:o})," (",s,")")}if(i.LogicalVolume!="/"){c=i._client.lookup(i.LogicalVolume,"com.redhat.Cockpit.Storage.LogicalVolume");s=e("<span>").append(t.format(_("$size $partition"),{size:a(i.Size),partition:R(c)})," (",s,")")}s.append(e("<br/>"),n.esc(i.Device));if(i.IdUsage=="filesystem"){s.append(", ");if(i.MountedAt.length>0)s.append(t.format(_("mounted on $0"),n.esc(i.MountedAt[0])));else s.append(_("not mounted"))}else if(i.IdUsage=="crypto"){s.append(", ");if(r)s.append(_("unlocked"));else s.append(_("locked"))}return s}function A(e){if(e.PartitionNumber>0)return"Partition";else if(e.LogicalVolume!="/"){var t=e._client.lookup(e.LogicalVolume,"com.redhat.Cockpit.Storage.LogicalVolume");return R(t)}else if(e.Drive!="/"){var i=e._client.lookup(e.Drive,"com.redhat.Cockpit.Storage.Drive");return i?n.esc(i.Name):e.Device}else return"Block Device"}function I(e){var n,i,a,o;while(true){if(e.PartitionTable&&e.PartitionTable!="/")e=e._client.get(e.PartitionTable,"com.redhat.Cockpit.Storage.Block");else if(e.CryptoBackingDevice&&e.CryptoBackingDevice!="/")e=e._client.get(e.CryptoBackingDevice,"com.redhat.Cockpit.Storage.Block");else break}if(e.Drive!="/"){n=e.Drive.substr(e.Drive.lastIndexOf("/")+1);t.location.go("storage-detail",{type:"drive",id:n})}else if(e.MDRaid!="/"){n=e.MDRaid.substr(e.MDRaid.l
|
|
|
|
for(var l=0;l<r.length;l++){var d=r[l];var u=t.format("$size $desc $dev",{size:a(d.Size),desc:A(d),dev:d.Device});var f=i+"-"+l;c.append(e("<li>",{"class":"list-group-item"}).append(e("<div>",{"class":"checkbox",style:"margin:0px"}).append(e("<input/>",{type:"checkbox",name:f,id:f,"data-index":l}),e("<label/>",{"for":f}).text(u))))}s.html(c);return r}function F(t,n){var i=[];t.find("input").each(function(t,a){if(a.checked){var o=e(a).attr("data-index");i.push(n[o].getObject().objectPath)}});return i}V.prototype={_init:function(){this.id="create-volume-group-dialog"},show:function(){if(this.blocks.length>0){e("#create-vg-name").prop("disabled",false);e("#create-vg-name").focus()}else{e("#create-vg-name").prop("disabled",true)}},leave:function(){},setup:function(){e("#create-vg-create").on("click",e.proxy(this,"create"))},enter:function(){var t=-1;this.client=V.client;this.blocks=E(this.client,"create-vg-drives",null);e("#disks-not-found .close").on("click",function(){e("#disks-not-found").hide()});e("#create-vg-name").on("input",i);e("#create-vg-name").on("input change focus",n);e('#create-vg-drives [type = "checkbox"]').on("change",r);e('#create-vg-drives [type = "checkbox"]').on("click change",n);e("#create-vg-name").val("");e("#create-vg-create").prop("disabled",true);e("#create-vg-drives").prop("checked",false);c(this.blocks);function n(){j("#create-vg-error");if(a()){if(s()){e("#create-vg-create").prop("disabled",false);j("#create-vg-error")}else{if(t===-1)return;e("#create-vg-create").prop("disabled",true);D("#create-vg-error",_("At least one disk needed."))}}else{e("#create-vg-create").prop("disabled",true)}}function i(){if(t===0)t=-1}function a(){function t(e,t){var n=e.match(t);if(n){var i=n[n.length-1];return i[i.length-1]}else{return null}}var n=e("#create-vg-name").val();if(n===""){S("#creat-vg-name-cell");j("#create-vg-error");return false}else if(n.length>127){C("#creat-vg-name-cell");D("#create-vg-error",_("Name length cannot exceed 127 characters."));return false}else{var i=new RegExp("[^a-zA-Z0-9+._-]+","g");var a=t(n,i);if(!a){S("#creat-vg-name-cell");j("#create-vg-error");return true}else{C("#creat-vg-name-cell");if(a.search(/\s+/)===-1)D("#create-vg-error",_("Name cannot contain '"+a+"'."));else D("#create-vg-error",_("Name cannot contain whitespace."));return false}}}function o(t){var n=e(t);var i=0;for(var a=0;a<n.length;a++){if(n[a].checked)i++}return i}function r(){t=o()}function s(){var e=o('#create-vg-drives [type = "checkbox"]');if(e>0)return true;else return false}function c(t){if(t.length>0){e("#disks-not-found span.alert-message").text("");e("#disks-not-found").hide()}else{e("#disks-not-found span.alert-message").text(_("No available disks"));e("#disks-not-found").show()}}},create:function(){var t=this;var i=e("#create-vg-name").val();if(i.trim()===""){C("#creat-vg-name-cell");D("#create-vg-error",_("Name cannot contain whitespace."));return}var a=F(e("#create-vg-drives"),t.blocks);var o=t.client.lookup("/com/redhat/Cockpit/Storage/Manager","com.redhat.Cockpit.Storage.Manager");o.call("VolumeGroupCreate",i,a,function(t){e("#create-volume-group-dialog").modal("hide");if(t)n.show_unexpected_error(t)})}};function V(){this._init()}n.dialogs.push(new V);B.prototype={_init:function(){this.id="storage_format_disk_dialog"},show:function(){},leave:function(){},setup:function(){e("#format-disk-format").on("click",e.proxy(this,"format"))},enter:function(){e("#format-disk-title").text(t.format(_("Format Disk $0"),B.block.Device));e("#format-disk-type").selectpicker("val","gpt");e("#format-disk-erase").selectpicker("val","no")},format:function(){B.block.call("Format",e("#format-disk-type").val(),e("#format-disk-erase").val(),"","","","","","",function(t){e("#storage_format_disk_dialog").modal("hide");if(t)n.show_unexpected_error(t)})}};function B(){this._init()}n.dialogs.push(new B);G.prototype={_init:function(){this.id="storage_format_dialog"},show:function(){},leave:function(){},setup:function(){e("#format-format").on("click",e.proxy(this,"format"));e("#format-type").on("change",e.proxy(this,"update")
|
|
|
|
}})}t.manager.call("ListServices",function(a,o){var r;var s;var c;if(a){console.log("error %s",a.message)}else{var l=e("#services-list-enabled"),u;var f=e("#services-list-disabled"),p;var h=e("#services-list-static"),g;var _;l.empty();u=false;f.empty();p=false;h.empty();g=false;t.items={};o.sort(n);r=e('input[name="services-filter"]:checked').val();c=e('input[name="services-filter"]:checked').attr("data-include-buttons")!==undefined;for(_=0;_<o.length;_++){s=o[_];if(!r||s[0].match(r)&&(s[2]!="not-found"||!c)){if(s[1]=="Unknown"&&t.manager)i(s[0]);var m=e(d(s[0],s[1],s[2],s[3],s[4],s[5],c?t.manager:null));if(t.items[s[0]]){t.items[s[0]].replaceWith(m)}else if(s[5]=="enabled"){m.appendTo(l);u=true}else if(s[5]=="disabled"){m.appendTo(f);p=true}else{m.appendTo(h);g=true}t.items[s[0]]=m}}l.parents(".panel").toggle(u);f.parents(".panel").toggle(p);h.parents(".panel").toggle(g)}})}};function u(){this._init()}n.pages.push(new u);f.prototype={_init:function(){this.id="service-add-dialog"},setup:function(){e("#service-add-add").click(e.proxy(this,"add"))},enter:function(){this.docker=n.docker(f.address);e(this.docker).on("image.services",e.proxy(this,"update"));e("#service-add-image, #service-add-name").val("");this.update()},show:function(){},leave:function(){e(n.docker).off(".services");this.docker.release();this.docker=null},update:function(){var t=e("#service-add-images");var n=[];for(var i in this.docker.images){var a=this.docker.images[i];if(a&&a.RepoTags&&a.RepoTags[0]!="<none>:<none>")n.push(a)}n.sort(function(e,t){var n=e.RepoTags[0];var i=t.RepoTags[0];return n>i?1:n<i?-1:0});t.html(n.map(function(t){return e('<a class="list-group-item">').text(t.RepoTags[0]).click(function(){e("#service-add-image").val(t.RepoTags[0])})}))},add:function(){e("#service-add-dialog").modal("hide");t.spawn(["gear","install","--has-foreground",e("#service-add-image").val(),e("#service-add-name").val()],{host:f.address}).fail(n.show_unexpected_error)}};function f(){this._init()}n.dialogs.push(new f);p.prototype={_init:function(){this.id="service";this.section_id="services"},getTitle:function(){return C_("page-title","Services")},setup:function(){var i=this;var a=[{title:_("Start"),action:"start",is_default:true},{title:_("Stop"),action:"stop"},{title:_("Restart"),action:"restart"},{title:_("Reload"),action:"reload"},{title:_("Reload or Restart"),action:"reload-or-restart"},{title:_("Try Restart"),action:"try-restart"},{title:_("Reload or Try Restart"),action:"reload-or-try-restart"},{title:_("Isolate"),action:"isolate"}];i.unit_action_btn=n.action_btn(function(e){i.action(e)},a);e("#service-unit-action-btn").html(i.unit_action_btn);var o=[{title:_("Enable"),action:"enable",is_default:true},{title:_("Enable Forcefully"),action:"force-enable"},{title:_("Disable"),action:"disable"},{title:_("Preset"),action:"preset"},{title:_("Preset Forcefully"),action:"force-preset"},{title:_("Mask"),action:"mask"},{title:_("Mask Forcefully"),action:"force-mask"},{title:_("Unmask"),action:"unmask"}];i.file_action_btn=n.action_btn(function(e){i.action(e)},o);e("#service-file-action-btn").html(i.file_action_btn);e("#service-refresh").on("click",function(){i.update()});e("#service-instantiate").on("click",function(){var n=i.service.indexOf("@");var a=i.service.lastIndexOf(".");if(n!=-1){var o=i.service.substring(0,n+1);o=o+l(e("#service-parameter").val());if(a!=-1)o=o+i.service.substring(a);t.location.go("service",{s:o})}})},enter:function(){var i=this;i.address=n.get_page_machine();i.client=n.dbus(i.address);i.manager=i.client.get("/com/redhat/Cockpit/Services","com.redhat.Cockpit.Services");e(i.manager).on("ServiceUpdate",function(e,t){if(t[0]==i.service)i.update()});e(i.manager).on("ServiceUpdateAll",function(){i.update()});i.service=n.get_page_param("s")||"";i.update();i.watch_journal();var a=["#006bb4","#008ff0","#2daaff","#69c2ff","#a5daff","#e1f3ff","#00243c","#004778"];i.monitor=i.client.get("/com/redhat/Cockpit/LxcMonitor","com.redhat.Cockpit.MultiResourceMonitor");function r(e){return e&&e.endsWith(i.service)}this.cpu_plot=n.setup_multi_plot("#service-
|
|
|
|
-this.danger_enabled=false},getTitle:function(){return C_("page-title","Containers")},toggle_danger:function(t){var n=this;n.danger_enabled=t;e("#containers-containers button.enable-danger").toggleClass("active",n.danger_enabled);e("#containers-containers td.container-col-actions").toggle(!n.danger_enabled);e("#containers-containers td.container-col-danger").toggle(n.danger_enabled)},setup:function(){var t=this;D("#containers-containers","#"+this.id,function(){t.toggle_danger(!t.danger_enabled)});this.container_filter_btn=n.select_btn(e.proxy(this,"filter"),[{title:_("All"),choice:"all",is_default:true},{title:_("Running"),choice:"running"}]);e("#containers-containers .panel-heading span").append(this.container_filter_btn);e("#containers-images-search").on("click",function(){M.display();return false})},enter:function(){var i=this;this.address=n.get_page_machine();this.client=n.docker(this.address);this.dbus_client=n.dbus(this.address);var a=["#250304","#5c080c","#970911","#ce0e15","#ef2930","#f36166","#f7999c","#fbd1d2"];var o=["#006bb4","#008ff0","#2daaff","#69c2ff","#a5daff","#e1f3ff","#00243c","#004778"];function r(t,n){n=i.client.container_from_cgroup(n)||n;e("#containers-containers tr").removeClass("highlight");e("#"+n).addClass("highlight")}this.cpu_plot=this.client.setup_cgroups_plot("#containers-cpu-graph",4,o.concat(o));e(this.cpu_plot).on("update-total",function(t,n){e("#containers-cpu-text").text(g(n))});e(this.cpu_plot).on("highlight",r);this.mem_plot=this.client.setup_cgroups_plot("#containers-mem-graph",0,o.concat(o));e(this.mem_plot).on("update-total",function(n,i){e("#containers-mem-text").text(t.format_bytes(i,1024))});e(this.mem_plot).on("highlight",r);e("#containers-containers table tbody tr").remove();e("#containers-images table tbody tr").remove();e(this.client).on("container.containers",function(e,t,n){i.render_container(t,n)});e(this.client).on("image.containers",function(e,t,n){i.render_image(t,n)});var s;e("#containers-containers button.enable-danger").toggle(false);for(s in this.client.containers){this.render_container(s,this.client.containers[s])}for(s in this.client.images){this.render_image(s,this.client.images[s])}x(i,i.client,i.address)},show:function(){this.cpu_plot.start();this.mem_plot.start()},leave:function(){C(this.client);this.dbus_client.release();this.dbus_client=null;this.cpu_plot.destroy();this.mem_plot.destroy();e(this.client).off(".containers");this.client.release();this.client=null},render_container:function(t,n){S(this.client,e("#containers-containers"),this.container_filter_btn,"",t,n,this.danger_enabled)},render_image:function(n,i){var a=this;var o=e("#"+n);if(!i||!i.RepoTags||i.RepoTags[0]=="<none>:<none>"){o.remove();return}var r=false;if(!o.length){var s=e('<button class="btn btn-default btn-control btn-play">').on("click",function(){N.display(a.client,n);return false});o=e('<tr id="'+n+'">').append(e('<td class="image-col-tags">'),e('<td class="image-col-created">'),e('<td class="image-col-size-graph">'),e('<td class="image-col-size-text">'),e('<td class="cell-buttons">').append(s));o.on("click",function(e){t.location.go("image-details",{id:n})});r=true}var c=o.children("td");e(c[0]).html(p(i.RepoTags));var l=new Date(i.Created*1e3);l.setDate(l.getDate()+2);if(l>new Date){e(c[1]).text(new Date(i.Created*1e3).toLocaleString())}else{var d=new Date(i.Created*1e3);e(c[1]).text(d.toLocaleDateString()).attr("title",d.toLocaleString())}e(c[2]).children("div").attr("value",i.VirtualSize);e(c[3]).text(t.format_bytes(i.VirtualSize,1024));if(r){b(e("#containers-images table"),o)}},filter:function(){var t=n.select_btn_selected(this.container_filter_btn);e("#containers-containers table").toggleClass("filter-unimportant",t==="running")}};function j(){this._init()}n.pages.push(new j);N.prototype={_init:function(){this.id="containers_run_image_dialog"},show:function(){},leave:function(){},setup:function(){e("#containers-run-image-run").on("click",e.proxy(this,"run"));this.memory_slider=new y(e("#containers-run-image-memory"),10*1024*1024,2*1024*1024*1024);this.cpu_slider=new w(e("#con
|
|
|
|
\ No newline at end of file
|
|
|
|
+this.danger_enabled=false},getTitle:function(){return C_("page-title","Containers")},toggle_danger:function(t){var n=this;n.danger_enabled=t;e("#containers-containers button.enable-danger").toggleClass("active",n.danger_enabled);e("#containers-containers td.container-col-actions").toggle(!n.danger_enabled);e("#containers-containers td.container-col-danger").toggle(n.danger_enabled)},setup:function(){var t=this;D("#containers-containers","#"+this.id,function(){t.toggle_danger(!t.danger_enabled)});this.container_filter_btn=n.select_btn(e.proxy(this,"filter"),[{title:_("All"),choice:"all",is_default:true},{title:_("Running"),choice:"running"}]);e("#containers-containers .panel-heading span").append(this.container_filter_btn);e("#containers-images-search").on("click",function(){M.display();return false})},enter:function(){var i=this;this.address=n.get_page_machine();this.client=n.docker(this.address);this.dbus_client=n.dbus(this.address);var a=["#250304","#5c080c","#970911","#ce0e15","#ef2930","#f36166","#f7999c","#fbd1d2"];var o=["#006bb4","#008ff0","#2daaff","#69c2ff","#a5daff","#e1f3ff","#00243c","#004778"];function r(t,n){n=i.client.container_from_cgroup(n)||n;e("#containers-containers tr").removeClass("highlight");e("#"+n).addClass("highlight")}this.cpu_plot=this.client.setup_cgroups_plot("#containers-cpu-graph",4,o.concat(o));e(this.cpu_plot).on("update-total",function(t,n){e("#containers-cpu-text").text(g(n))});e(this.cpu_plot).on("highlight",r);this.mem_plot=this.client.setup_cgroups_plot("#containers-mem-graph",0,o.concat(o));e(this.mem_plot).on("update-total",function(n,i){e("#containers-mem-text").text(t.format_bytes(i,1024))});e(this.mem_plot).on("highlight",r);e("#containers-containers table tbody tr").remove();e("#containers-images table tbody tr").remove();e(this.client).on("container.containers",function(e,t,n){i.render_container(t,n)});e(this.client).on("image.containers",function(e,t,n){i.render_image(t,n)});var s;e("#containers-containers button.enable-danger").toggle(false);for(s in this.client.containers){this.render_container(s,this.client.containers[s])}for(s in this.client.images){this.render_image(s,this.client.images[s])}x(i,i.client,i.address)},show:function(){this.cpu_plot.start();this.mem_plot.start()},leave:function(){C(this.client);this.dbus_client.release();this.dbus_client=null;this.cpu_plot.destroy();this.mem_plot.destroy();e(this.client).off(".containers");this.client.release();this.client=null},render_container:function(t,n){S(this.client,e("#containers-containers"),this.container_filter_btn,"",t,n,this.danger_enabled)},render_image:function(n,i){var a=this;var o=e("#"+n);if(!i||!i.RepoTags||i.RepoTags[0]=="<none>:<none>"){o.remove();return}var r=false;if(!o.length){var s=e('<button class="btn btn-default btn-control btn-play">').on("click",function(){N.display(a.client,n);return false});o=e('<tr id="'+n+'">').append(e('<td class="image-col-tags">'),e('<td class="image-col-created">'),e('<td class="image-col-size-graph">'),e('<td class="image-col-size-text">'),e('<td class="cell-buttons">').append(s));o.on("click",function(e){t.location.go("image-details",{id:n})});r=true}var c=o.children("td");e(c[0]).html(p(i.RepoTags));var l=new Date(i.Created*1e3);l.setDate(l.getDate()+2);if(l>new Date){e(c[1]).text(new Date(i.Created*1e3).toLocaleString())}else{var d=new Date(i.Created*1e3);e(c[1]).text(d.toLocaleDateString()).attr("title",d.toLocaleString())}e(c[2]).children("div").attr("value",i.VirtualSize);e(c[3]).text(t.format_bytes(i.VirtualSize,1024));if(r){b(e("#containers-images table"),o)}},filter:function(){var t=n.select_btn_selected(this.container_filter_btn);e("#containers-containers table").toggleClass("filter-unimportant",t==="running")}};function j(){this._init()}n.pages.push(new j);N.prototype={_init:function(){this.id="containers_run_image_dialog"},show:function(){},leave:function(){},setup:function(){e("#containers-run-image-run").on("click",e.proxy(this,"run"));this.memory_slider=new y(e("#containers-run-image-memory"),10*1024*1024,2*1024*1024*1024);this.cpu_slider=new w(e("#con
|