diff --git a/yocto_console_view/yocto_console_view/static/scripts.js b/yocto_console_view/yocto_console_view/static/scripts.js index f68fab9..362c1c7 100644 --- a/yocto_console_view/yocto_console_view/static/scripts.js +++ b/yocto_console_view/yocto_console_view/static/scripts.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular-animate"),require("@uirouter/angularjs"),require("guanlecoja-ui"),require("buildbot-data-js")):"function"==typeof define&&define.amd?define("yocto-console-view",["angular-animate","@uirouter/angularjs","guanlecoja-ui","buildbot-data-js"],t):"object"==typeof exports?exports["yocto-console-view"]=t(require("angular-animate"),require("@uirouter/angularjs"),require("guanlecoja-ui"),require("buildbot-data-js")):e["yocto-console-view"]=t(e["angular-animate"],e["@uirouter/angularjs"],e["guanlecoja-ui"],e["buildbot-data-js"])}("undefined"!=typeof self?self:this,(function(e,t,i,n){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";i.r(t);i(1),i(2),i(3),i(4);angular.module("yocto_console_view",["ui.router","ui.bootstrap","ngAnimate","guanlecoja.ui","bbData"]).config(["$stateProvider","glMenuServiceProvider","bbSettingsServiceProvider",class ConsoleState{constructor(e,t,n){var r="console";t.addGroup({name:r,caption:"Yocto Console View",icon:"exclamation-circle",order:5});var s={group:r,caption:"Yocto Console View"},l={controller:"".concat(r,"Controller"),controllerAs:"c",template:i(5),name:r,url:"/".concat(r),data:s};e.state(l),n.addSettingsGroup({name:"Console",caption:"Console related settings",items:[{type:"integer",name:"buildLimit",caption:"Number of builds to fetch",default_value:200},{type:"integer",name:"changeLimit",caption:"Number of changes to fetch",default_value:30}]})}}]).controller("consoleController",["$scope","$q","$window","dataService","bbSettingsService","resultsService","$uibModal","$timeout",class Console{constructor(e,t,i,n,r,s,l,a){this.onChange=this.onChange.bind(this),this._onChange=this._onChange.bind(this),this.matchBuildWithChange=this.matchBuildWithChange.bind(this),this.makeFakeChange=this.makeFakeChange.bind(this),this.$scope=e,this.$window=i,this.$uibModal=l,this.$timeout=a,angular.extend(this,s);var o=r.getSettingsGroup("Console");if(this.buildLimit=o.buildLimit.value,this.changeLimit=o.changeLimit.value,this.dataAccessor=n.open().closeOnDestroy(this.$scope),this._infoIsExpanded={},this.$scope.all_builders=this.all_builders=this.dataAccessor.getBuilders(),this.$scope.builders=this.builders=[],"undefined"!=typeof Intl&&null!==Intl){var d=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});this.strcompare=d.compare}else this.strcompare=function(e,t){return e{var t=!1,i=e.buildid;null!=(null!=e.properties?e.properties.yp_build_revision:void 0)&&(this.revmapping[e.buildid]=e.properties.yp_build_revision[0],t=!0),null!=(null!=e.properties?e.properties.yp_build_branch:void 0)&&(this.branchmapping[e.buildid]=e.properties.yp_build_branch[0],t=!0),this.revmapping[i]&&this.branchmapping[i]||e.complete_at||(e.getProperties().onChange=e=>{if(t=!1,i=e.endpoint.split("/")[1],!this.revmapping[i]){var n=this.getBuildProperty(e[0],"yp_build_revision");null!=n&&(this.revmapping[i]=n,t=!0)}if(!this.branchmapping[i]){var r=this.getBuildProperty(e[0],"yp_build_branch");null!=r&&(this.branchmapping[i]=r,t=!0)}t&&null==this.onchange_debounce&&(console.log("onNew change props"),this.onchange_debounce=this.$timeout(this._onChange,100))}),t&&null==this.onchange_debounce&&(console.log("onNew change"),this.onchange_debounce=this.$timeout(this._onChange,100))}}getBuildProperty(e,t){return e&&e.hasOwnProperty(t)?e[t][0]:null}onChange(e){0!==this.builds.length&&0!==this.all_builders.length&&this.changes.$resolved&&0!==this.buildsets.length&&0!==this.buildrequests&&null==this.onchange_debounce&&(this.onchange_debounce=this.$timeout(this._onChange,100))}_onChange(){var e,t;console.log("onChange called"),this.onchange_debounce=void 0;for(var i=0,n=Array.from(this.builds);i0){this.filtered_changes.push(t);break}}}}sortBuildersByTags(e){for(var t=[],i="",n=0,r=Array.from(e);ne(t,i+1));t.builders.sort((e,t)=>c.strcompare(e.name,t.name)),o=o.concat(t.builders);for(var n=1;n<=100;n++)d(i+n,"",t.builders.length)},h=0,g=Array.from(l);ht.builders.length-e.builders.length);for(var c=[],u={},h=0,g=Array.from(d);h1)for(var C=0,B=Array.from(c);Ct.bid||null==t.bid)&&(t.bid=o,t.loglink="https://wiki.yoctoproject.org/wiki/BuildLog#"+o),null!=(null!=e.properties?e.properties.reason:void 0)&&(t.reason=e.properties.reason[0]),null!=(null!=e.properties?e.properties.publish_destination:void 0)&&(t.publishurl=e.properties.publish_destination[0].replace("/srv/autobuilder/autobuilder.yoctoproject.org/","https://autobuilder.yocto.io/"))}else i="Unresolved Revision",null==t&&(t=this.changesBySSID[i]),null==t&&((t=this.makeFakeChange(i,e.started_at,i)).caption=i);-1==t.buildersById[e.builderid].builds.indexOf(e)&&t.buildersById[e.builderid].builds.push(e)}}}makeFakeChange(e,t,i){var n={revision:e,changeid:e,when_timestamp:t,comments:i};return this.changesBySSID[e]=n,this.populateChange(n),n}openAll(){return Array.from(this.filtered_changes).map(e=>e.show_details=!0)}closeAll(){return Array.from(this.filtered_changes).map(e=>e.show_details=!1)}getRowHeaderWidth(){return this.hasExpanded()?400:200}getColHeaderHeight(){for(var e=0,t=0,i=Array.from(this.builders);te}})}toggleInfo(e){return e.show_details=!e.show_details}infoIsExpanded(e){return e.show_details}}]),i(7),i(8),i(10)},function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t){e.exports=window.T["console_view/views/console.html"]||'

loading

No changes. Console view needs changesource to be setup, andchangesto be in the system.

{{tag.tag}}
{{ build.number }}
'},function(e,t){e.exports=window.T["console_view/views/modal.html"]||'\x3c!-- Show build summary for the selected build in a modal window--\x3e'},function(e,t){angular.module("yocto_console_view").controller("consoleModalController",["$scope","$uibModalInstance","selectedBuild",class ConsoleModal{constructor(e,t,i){this.$uibModalInstance=t,this.selectedBuild=i,e.$on("$stateChangeStart",()=>this.close())}close(){return this.$uibModalInstance.close()}}])},function(e,t,i){angular.module("yocto_console_view").directive("releaseselectorfield",[class Releaseselectorfield{constructor(){return{replace:!1,restrict:"E",scope:!1,template:i(9),controller:"_ReleaseselectorfieldController"}}}]).controller("_ReleaseselectorfieldController",["$scope","$http",class _releaseselectorfield{constructor(e,t){for(var i=e;null!=i&&null==i.rootfield;)i=i.$parent;if(null!=i){var n={},r=e=>Array.from(e).map(e=>null!=e.fields?r(e.fields):n[e.fullName]=e);r(i.rootfield.fields),e.$watch("field.value",(function(t,i){var r=e.field.selectors[t];if(null!=r)return(()=>{var e=[];for(var t in r){var i=r[t];t in n&&e.push(n[t].value=i)}return e})()}))}else console.log("rootfield not found!?!?")}}])},function(e,t){e.exports=window.T["console_view/views/releaseselectorfield.html"]||'
'},function(e,t,i){angular.module("yocto_console_view").directive("yoctochangedetails",[class Yoctochangedetails{constructor(){return{replace:!0,restrict:"E",scope:{change:"=",compact:"=?"},template:i(11)}}}])},function(e,t){e.exports=window.T["console_view/views/yoctochangedetails.html"]||'
{{ change.caption }}  {{ "Errors" }}  {{ "WikiLog" }}  {{ "Output" }}  {{ change.caption }}  ({{ change.when_timestamp | timeago }})  
Reason{{ change.reason }}
Author{{ change.author }}
Date{{ change.when_timestamp | dateformat:\'LLL\'}} ({{ change.when_timestamp | timeago }})
Repository{{ change.repository }}
Branch{{ change.branch }}
Revision {{ change.revision }}
Comment
{{ change.comments }}
Changed files
  • {{file}}

No files

'}])})); +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular-animate"),require("@uirouter/angularjs"),require("guanlecoja-ui"),require("buildbot-data-js")):"function"==typeof define&&define.amd?define("yocto-console-view",["angular-animate","@uirouter/angularjs","guanlecoja-ui","buildbot-data-js"],t):"object"==typeof exports?exports["yocto-console-view"]=t(require("angular-animate"),require("@uirouter/angularjs"),require("guanlecoja-ui"),require("buildbot-data-js")):e["yocto-console-view"]=t(e["angular-animate"],e["@uirouter/angularjs"],e["guanlecoja-ui"],e["buildbot-data-js"])}("undefined"!=typeof self?self:this,(function(e,t,i,s){return function(e){var t={};function i(s){if(t[s])return t[s].exports;var l=t[s]={i:s,l:!1,exports:{}};return e[s].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var l in e)i.d(s,l,function(t){return e[t]}.bind(null,l));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";i.r(t);i(1),i(2),i(3),i(4);angular.module("yocto_console_view",["ui.router","ui.bootstrap","ngAnimate","guanlecoja.ui","bbData"]).config(["$stateProvider","glMenuServiceProvider","bbSettingsServiceProvider",class ConsoleState{constructor(e,t,s){var l="console";t.addGroup({name:l,caption:"Yocto Console View",icon:"exclamation-circle",order:5});var r={group:l,caption:"Yocto Console View"},n={controller:"".concat(l,"Controller"),controllerAs:"c",template:i(5),name:l,url:"/".concat(l),data:r};e.state(n),s.addSettingsGroup({name:"Console",caption:"Console related settings",items:[{type:"integer",name:"buildLimit",caption:"Number of builds to fetch",default_value:200},{type:"integer",name:"changeLimit",caption:"Number of changes to fetch",default_value:30}]})}}]).controller("consoleController",["$scope","$q","$window","dataService","bbSettingsService","resultsService","$uibModal","$timeout",class Console{constructor(e,t,i,s,l,r,n,a){this.onChange=this.onChange.bind(this),this._onChange=this._onChange.bind(this),this.matchBuildWithChange=this.matchBuildWithChange.bind(this),this.makeFakeChange=this.makeFakeChange.bind(this),this.$scope=e,this.$window=i,this.$uibModal=n,this.$timeout=a,angular.extend(this,r);var o=l.getSettingsGroup("Console");if(this.buildLimit=o.buildLimit.value,this.changeLimit=o.changeLimit.value,this.dataAccessor=s.open().closeOnDestroy(this.$scope),this._infoIsExpanded={},this.$scope.all_builders=this.all_builders=this.dataAccessor.getBuilders(),this.$scope.builders=this.builders=[],"undefined"!=typeof Intl&&null!==Intl){var d=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});this.strcompare=d.compare}else this.strcompare=function(e,t){return e{var t=!1,i=e.buildid;null!=(null!=e.properties?e.properties.yp_build_revision:void 0)&&(this.revmapping[e.buildid]=e.properties.yp_build_revision[0],t=!0),null!=(null!=e.properties?e.properties.yp_build_branch:void 0)&&(this.branchmapping[e.buildid]=e.properties.yp_build_branch[0],t=!0),this.revmapping[i]&&this.branchmapping[i]||e.complete_at||(e.getProperties().onChange=e=>{if(t=!1,i=e.endpoint.split("/")[1],!this.revmapping[i]){var s=this.getBuildProperty(e[0],"yp_build_revision");null!=s&&(this.revmapping[i]=s,t=!0)}if(!this.branchmapping[i]){var l=this.getBuildProperty(e[0],"yp_build_branch");null!=l&&(this.branchmapping[i]=l,t=!0)}t&&null==this.onchange_debounce&&(this.onchange_debounce=this.$timeout(this._onChange,100))}),t&&null==this.onchange_debounce&&(this.onchange_debounce=this.$timeout(this._onChange,100))}}getBuildProperty(e,t){return e&&e.hasOwnProperty(t)?e[t][0]:null}onChange(e){0!==this.builds.length&&0!==this.all_builders.length&&this.changes.$resolved&&0!==this.buildsets.length&&0!==this.buildrequests&&null==this.onchange_debounce&&(this.onchange_debounce=this.$timeout(this._onChange,100))}_onChange(){var e,t;this.onchange_debounce=void 0;for(var i=0,s=Array.from(this.builds);i0){this.filtered_changes.push(t);break}}}}sortBuildersByTags(e){for(var t=[],i="",s=0,l=Array.from(e);se(t,i+1));t.builders.sort((e,t)=>u.strcompare(e.name,t.name)),o=o.concat(t.builders);for(var s=1;s<=100;s++)d(i+s,"",t.builders.length)},c=0,g=Array.from(n);ct.builders.length-e.builders.length);for(var u=[],h={},c=0,g=Array.from(d);c1)for(var C=0,B=Array.from(u);Ct.bid||null==t.bid)&&(t.bid=r,t.loglink="https://wiki.yoctoproject.org/wiki/BuildLog#"+r),null!=(null!=e.properties?e.properties.reason:void 0)&&(t.reason=e.properties.reason[0]),null!=(null!=e.properties?e.properties.publish_destination:void 0)&&(t.publishurl=e.properties.publish_destination[0].replace("/srv/autobuilder/autobuilder.yoctoproject.org/","https://autobuilder.yocto.io/"),t.publishurl=t.publishurl.replace("/srv/autobuilder/autobuilder.yocto.io/","https://autobuilder.yocto.io/"))}else i="Unresolved Revision",null==t&&(t=this.changesBySSID[i]),null==t&&((t=this.makeFakeChange(i,e.started_at,i)).caption=i,this.fakechanges.push(t));t.buildersById[e.builderid].builds.push(e)}}}makeFakeChange(e,t,i){var s={revision:e,changeid:e,when_timestamp:t,comments:i};return this.changesBySSID[e]=s,this.populateChange(s),s}openAll(){return Array.from(this.filtered_changes).map(e=>e.show_details=!0)}closeAll(){return Array.from(this.filtered_changes).map(e=>e.show_details=!1)}getRowHeaderWidth(){return this.hasExpanded()?400:200}getColHeaderHeight(){for(var e=0,t=0,i=Array.from(this.builders);te}})}toggleInfo(e){return e.show_details=!e.show_details}infoIsExpanded(e){return e.show_details}}]),i(7),i(8),i(10)},function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,t){e.exports=window.T["console_view/views/console.html"]||'

loading

No changes. Console view needs changesource to be setup, andchangesto be in the system.

{{tag.tag}}
{{ build.number }}
\";","module.exports = window.T['console_view/views/modal.html'] || \"

Build summary

\";","/*\n * decaffeinate suggestions:\n * DS102: Remove unnecessary code created because of implicit returns\n * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md\n */\nclass ConsoleModal {\n constructor($scope, $uibModalInstance, selectedBuild) {\n this.$uibModalInstance = $uibModalInstance;\n this.selectedBuild = selectedBuild;\n $scope.$on('$stateChangeStart', () => {\n return this.close();\n });\n }\n\n close() {\n return this.$uibModalInstance.close();\n }\n}\n\n\nangular.module('yocto_console_view')\n.controller('consoleModalController', ['$scope', '$uibModalInstance', 'selectedBuild', ConsoleModal]);\n","/*\n * decaffeinate suggestions:\n * DS002: Fix invalid constructor\n * DS101: Remove unnecessary use of Array.from\n * DS102: Remove unnecessary code created because of implicit returns\n * DS205: Consider reworking code to avoid use of IIFEs\n * DS207: Consider shorter variations of null checks\n * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md\n */\n\nclass Releaseselectorfield {\n constructor() {\n return {\n replace: false,\n restrict: 'E',\n scope: false,\n template: require('./releaseselectorfield.tpl.jade'),\n controller: '_ReleaseselectorfieldController'\n };\n }\n}\n\nclass _releaseselectorfield {\n constructor($scope, $http) {\n // HACK: we find the rootfield by doing $scope.$parent.$parent\n let rootfield = $scope;\n while ((rootfield != null) && (rootfield.rootfield == null)) {\n rootfield = rootfield.$parent;\n }\n\n if ((rootfield == null)) {\n console.log(\"rootfield not found!?!?\");\n return;\n }\n\n // copy paste of code in forcedialog, which flatten the fields to be able to find easily\n const fields_ref = {};\n var gatherFields = fields => Array.from(fields).map((field) =>\n (field.fields != null) ?\n gatherFields(field.fields)\n :\n (fields_ref[field.fullName] = field));\n\n gatherFields(rootfield.rootfield.fields);\n\n // when our field change, we update the fields that we are suppose to\n $scope.$watch(\"field.value\", function(n, o) {\n\n const selector = $scope.field.selectors[n];\n if (selector != null) {\n return (() => {\n const result = [];\n for (let k in selector) {\n const v = selector[k];\n if (k in fields_ref) {\n result.push(fields_ref[k].value = v);\n }\n }\n return result;\n })();\n }\n });\n }\n}\n\nangular.module('yocto_console_view')\n.directive('releaseselectorfield', [Releaseselectorfield])\n.controller('_ReleaseselectorfieldController', ['$scope', '$http', _releaseselectorfield])\n","module.exports = window.T['console_view/views/releaseselectorfield.html'] || \"
\";","/*\n * decaffeinate suggestions:\n * DS002: Fix invalid constructor\n * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md\n */\nclass Yoctochangedetails {\n constructor() {\n return {\n replace: true,\n restrict: 'E',\n scope: {\n change: '=',\n compact: '=?'\n },\n template: require('./yoctochangedetails.tpl.jade')\n };\n }\n}\n\nangular.module('yocto_console_view')\n.directive('yoctochangedetails', [Yoctochangedetails])\n","module.exports = window.T['console_view/views/yoctochangedetails.html'] || \"
{{ change.caption }}  {{ \\\"Errors\\\" }}  {{ \\\"WikiLog\\\" }}  {{ \\\"Output\\\" }}  {{ change.caption }}  ({{ change.when_timestamp | timeago }})  
Reason{{ change.reason }}
Author{{ change.author }}
Date{{ change.when_timestamp | dateformat:'LLL'}} ({{ change.when_timestamp | timeago }})
Repository{{ change.repository }}
Branch{{ change.branch }}
Revision {{ change.revision }}
Comment
{{ change.comments }}
Changed files
  • {{file}}

No files

\";"],"sourceRoot":""} \ No newline at end of file