1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
(function(){var n,e,t,o;window._version="v-1487165065370",window.taigaConfig={api:"http://localhost:8000/api/v1/",eventsUrl:null,tribeHost:null,eventsMaxMissedHeartbeats:5,eventsHeartbeatIntervalTime:6e4,debug:!0,defaultLanguage:"en",themes:["taiga","material-design","high-contrast"],defaultTheme:"taiga",publicRegisterEnabled:!0,feedbackEnabled:!0,privacyPolicyUrl:null,termsOfServiceUrl:null,maxUploadFileSize:null,contribPlugins:[]},window.taigaContribPlugins=[],window._decorators=[],window.addDecorator=function(n,e){return window._decorators.push({provider:n,decorator:e})},window.getDecorators=function(){return window._decorators},t=function(n){return $("head").append('<link rel="stylesheet" href="'+n+'" type="text/css" />')},n=function(n){return new Promise(function(e,o){var i,r;return r=function(n){return window.taigaContribPlugins.push(n),n.css&&t(n.css),n.js?ljs.load(n.js,e):e()},i=function(){return console.error("error loading",n)},$.getJSON(n).then(r,i)})},e=function(e){var t;return t=[],_.map(e,function(e){return t.push(n(e))}),Promise.all(t)},o=$.getJSON("/conf.json"),o.done(function(n){return window.taigaConfig=_.assign({},window.taigaConfig,n)}),o.fail(function(){return console.error("Your conf.json file is not a valid json file, please review it.")}),o.always(function(){return window.taigaConfig.contribPlugins.length>0?e(window.taigaConfig.contribPlugins).then(function(){return ljs.load("/"+window._version+"/js/app.js",function(){return angular.bootstrap(document,["taiga"])})}):ljs.load("/"+window._version+"/js/app.js",function(){return angular.bootstrap(document,["taiga"])})})}).call(this); |