Browse Source

corrigindo arquivos de front-end

pull/3084/head
ricardocanela 5 years ago
committed by Leandro Roberto
parent
commit
6e6ad962a5
  1. 0
      sapl/static/sapl/frontend/css/comissoes.0e433876.css
  2. 1
      sapl/static/sapl/frontend/js/comissoes.24ef3c79.js
  3. BIN
      sapl/static/sapl/frontend/js/comissoes.24ef3c79.js.gz
  4. 1
      sapl/static/sapl/frontend/js/mesadiretora.4cfe1aad.js
  5. BIN
      sapl/static/sapl/frontend/js/mesadiretora.4cfe1aad.js.gz

0
sapl/static/sapl/frontend/css/mesadiretora.0e433876.css → sapl/static/sapl/frontend/css/comissoes.0e433876.css

1
sapl/static/sapl/frontend/js/comissoes.24ef3c79.js

@ -0,0 +1 @@
!function(e){function t(t){for(var o,i,s=t[0],c=t[1],u=t[2],d=0,p=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(l&&l(t);p.length;)p.shift()();return n.push.apply(n,u||[]),a()}function a(){for(var e,t=0;t<n.length;t++){for(var a=n[t],o=!0,s=1;s<a.length;s++){var c=a[s];0!==r[c]&&(o=!1)}o&&(n.splice(t--,1),e=i(i.s=a[0]))}return e}var o={},r={comissoes:0},n=[];function i(t){if(o[t])return o[t].exports;var a=o[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=o,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(a,o,function(t){return e[t]}.bind(null,o));return a},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="/static/sapl/frontend/";var s=window.webpackJsonp=window.webpackJsonp||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var l=c;n.push([4,"chunk-vendors"]),a()}({"0dbd":function(e,t,a){},4:function(e,t,a){e.exports=a("82a4")},"82a4":function(e,t,a){"use strict";a.r(t);a("28a5"),a("ac6a"),a("5df3"),a("cadf"),a("551c"),a("f751"),a("097d"),a("0dbd");var o=a("a026"),r=a("44d4"),n=a("bc3a"),i=a.n(n);i.a.defaults.xsrfCookieName="csrftoken",i.a.defaults.xsrfHeaderName="X-CSRFToken",o.a.use(r.a),new o.a({delimiters:["[[","]]"],el:"#composicao_list",data:function(){return{periodo_list:[],parlamentares:[],comissao_id:"",composicao_id:""}},methods:{getParlamentares:function(e){var t=this;this.comissao_id&&i.a.get("/api/comissoes/participacao/?composicao="+this.composicao_id).then((function(e){t.parlamentares=e.data.results})).then((function(){var e=t.parlamentares.map((function(e){i.a.get("/api/parlamentares/parlamentar/"+e.parlamentar).then((function(t){e.nome=t.data.__str__})).then((function(){i.a.get("/api/comissoes/cargocomissao/"+e.cargo).then((function(t){e.cargo=t.data.nome})).then((function(){var t={year:"numeric",month:"long",day:"numeric"};if(e.data_designacao){var a=new Date(e.data_designacao+" EDT").toLocaleDateString("pt-BR",t);e.data_designacao=a}if(e.data_desligamento){var o=new Date(e.data_desligamento+" EDT").toLocaleDateString("pt-BR",t);e.data_desligamento=o}e.titular?e.titular="Sim":e.titular="Não"}))}))}));Promise.all(e)})).catch((function(e){console.error("Ocorreu um erro ao obter os dados de parlamentares:"+e)}))}},mounted:function(){var e=this;this.comissao_id=window.location.pathname.split("/")[2],i.a.get("/api/comissoes/composicao/?comissao="+this.comissao_id).then((function(t){e.periodo_list=t.data.results,e.composicao_id=t.data.results[0].id,e.getParlamentares()})).catch((function(e){console.error("Ocorreu um erro ao obter os períodos da comissao: "+e)}))}})}});

BIN
sapl/static/sapl/frontend/js/comissoes.24ef3c79.js.gz

Binary file not shown.

1
sapl/static/sapl/frontend/js/mesadiretora.4cfe1aad.js

@ -1 +0,0 @@
!function(e){function a(a){for(var t,n,i=a[0],l=a[1],c=a[2],f=0,g=[];f<i.length;f++)n=i[f],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&g.push(o[n][0]),o[n]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t]);for(u&&u(a);g.length;)g.shift()();return r.push.apply(r,c||[]),s()}function s(){for(var e,a=0;a<r.length;a++){for(var s=r[a],t=!0,i=1;i<s.length;i++){var l=s[i];0!==o[l]&&(t=!1)}t&&(r.splice(a--,1),e=n(n.s=s[0]))}return e}var t={},o={mesadiretora:0},r=[];function n(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,a,s){n.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,a){if(1&a&&(e=n(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var t in e)n.d(s,t,function(a){return e[a]}.bind(null,t));return s},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/static/sapl/frontend/";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=a,i=i.slice();for(var c=0;c<i.length;c++)a(i[c]);var u=l;r.push([4,"chunk-vendors"]),s()}({4:function(e,a,s){e.exports=s("8600")},8600:function(e,a,s){"use strict";s.r(a);s("cadf"),s("551c"),s("f751"),s("097d"),s("dec1");var t=s("a026"),o=s("44d4"),r=s("bc3a"),n=s.n(r);n.a.defaults.xsrfCookieName="csrftoken",n.a.defaults.xsrfHeaderName="X-CSRFToken",t.a.use(o.a),new t.a({delimiters:["[[","]]"],el:"#composicaomesa",data:function(){return{legislatura_list:[],legislatura_selecionada:"",sessao_list:[],sessao_selecionada:"",composicao_mesa:[],parlamentares_vagos:[],cargos_vagos:[]}},methods:{getLegislaturas:function(e){var a=this;n.a.get("/api/parlamentares/legislatura/?page_size=50").then((function(e){a.legislatura_list=e.data.results,a.legislatura_selecionada=e.data.results[0].id})).then((function(e){a.getSessaoLegislativa()})).catch((function(e){console.error("Erro ao obter legislaturas")}))},getSessaoLegislativa:function(e){var a=this;this.legislatura_selecionada&&n.a.get("/api/parlamentares/sessaolegislativa/?legislatura="+this.legislatura_selecionada).then((function(e){a.sessao_list=e.data.results,a.sessao_selecionada=e.data.results[0].id})).then((function(e){a.getComposicaoMesa(),a.getParlamentaresVagos(),a.getCargosVagos()})).catch((function(e){console.error("Erro ao obter Sessao Legislativa:"+e)}))},getComposicaoMesa:function(e){var a=this;this.sessao_selecionada&&n.a.get("/api/parlamentares/composicaomesa/?sessao_legislativa="+this.sessao_selecionada).then((function(e){a.composicao_mesa=e.data.results})).catch((function(e){console.error("Ocorreu um erro ao obter os dados de parlamentares:"+e)}))},getParlamentaresVagos:function(e){var a=this;this.sessao_selecionada&&n.a.get("/api/parlamentares/sessaolegislativa/"+this.sessao_selecionada+"/parlamentares_vagos/").then((function(e){a.parlamentares_vagos=e.data})).catch((function(e){console.error("Ocorreu um erro ao obter os parlamentares vagos:"+e)}))},getCargosVagos:function(e){var a=this;this.sessao_selecionada&&n.a.get("/api/parlamentares/sessaolegislativa/"+this.sessao_selecionada+"/cargos_vagos/").then((function(e){console.log(e.data),a.cargos_vagos=e.data})).catch((function(e){console.error("Ocorreu um erro ao obter os cargos vagos:"+e)}))}},mounted:function(){this.getLegislaturas()}})},dec1:function(e,a,s){}});

BIN
sapl/static/sapl/frontend/js/mesadiretora.4cfe1aad.js.gz

Binary file not shown.
Loading…
Cancel
Save