mirror of https://github.com/interlegis/sapl.git
Browse Source
* Movendo package.json para root do projeto * Consertando algumas referencias * Removendo arquivos do frontend/ que foram transferidos para o root * Force build copy frontend/public-->sapl/static/... * Rebuild frontend com arq de cfg na raiz do projeto Co-authored-by: Leandro Roberto <leandroroberto.br@gmail.com>pull/3309/head
Ulysses Lara
4 years ago
committed by
GitHub
92 changed files with 189 additions and 251 deletions
@ -1,64 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
verifica_git() { |
|||
if [[ ! -d ".git" ]]; then |
|||
echo -e "\033[31mERRO\033[0m Diretório atual não é um repositório git!" |
|||
exit 1 |
|||
fi |
|||
} |
|||
|
|||
verifica_diretorio() { |
|||
DIR=$(pwd | rev | cut -d'/' -f1 | rev) |
|||
|
|||
if [[ "$DIR" != "$1" ]]; then |
|||
echo -e "\033[31mERRO\033[0m Diretório atual não é o \033[1m$1\033[0m!" |
|||
exit 1 |
|||
fi |
|||
|
|||
verifica_git |
|||
} |
|||
|
|||
retorna_branch() { |
|||
# shellcheck disable=SC2155 |
|||
local branch=$(git branch | grep '^*' | cut -d ' ' -f2) |
|||
if [[ -z "$branch" ]]; then |
|||
echo -e "\033[31mERRO\033[0m Não foi possivel configurar a variável \033[1m$1\033[0m!" |
|||
exit 1 |
|||
else |
|||
echo "$branch" |
|||
fi |
|||
} |
|||
|
|||
if [[ ! (( "$1" == "build" ) || ( "$1" == "serve" )) ]]; then |
|||
echo -e "\033[31mERRO\033[0m Parâmetro inválido!" |
|||
echo -e " Coloque \033[1mbuild\033[0m ou \033[1mserve\033[0m." |
|||
exit 1 |
|||
fi |
|||
|
|||
verifica_diretorio "sapl-frontend" |
|||
|
|||
BRANCH_FRONTEND="$(retorna_branch "BRANCH_FRONTEND")" |
|||
|
|||
# shellcheck disable=SC2164 |
|||
cd ../sapl > /dev/null 2>&1 |
|||
if [[ ! $? -eq 0 ]]; then |
|||
echo "\033[31mERRO\033[0m Os diretórios \033[1msapl\033[0m e \033[1msapl-frontend\033[0m devem ter o mesmo diretório raiz." |
|||
exit 1 |
|||
fi |
|||
|
|||
verifica_diretorio "sapl" |
|||
|
|||
BRANCH_BACKEND="$(retorna_branch "BRANCH_BACKEND")" |
|||
|
|||
cd ../sapl-frontend > /dev/null 2>&1 |
|||
|
|||
if [[ "$BRANCH_FRONTEND" == "$BRANCH_BACKEND" ]]; then |
|||
echo -e "\033[33mEXECUTANDO\033[0m \033[1myarn run $1\033[1m." |
|||
yarn run "$1" |
|||
echo -e "\033[32mSUCESSO\033[0m $1 realizado com sucesso." |
|||
else |
|||
echo -e "\033[31mERRO\033[0m $1 não realizada porque as branchs dos dois repositórios são diferentes." |
|||
echo -e " Branch do Frontend: \033[1m$BRANCH_FRONTEND\033[0m" |
|||
echo -e " Branch do Backend: \033[1m$BRANCH_BACKEND\033[0m" |
|||
echo -e " Para que a operação seja feita, coloque os dois repositórios na mesma branch." |
|||
fi |
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 730 KiB After Width: | Height: | Size: 730 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Binary file not shown.
Before Width: | Height: | Size: 896 KiB After Width: | Height: | Size: 896 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,2 @@ |
|||
(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/static/sapl/frontend/",n(n.s=2)})({2:function(e,t,n){e.exports=n("8d07")},2501:function(e,t,n){},"8d07":function(e,t,n){"use strict";n.r(t);n("2501")}}); |
|||
//# sourceMappingURL=painel.37936654.js.map
|
Binary file not shown.
@ -0,0 +1 @@ |
|||
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./frontend/src/__apps/painel/main.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAO,YACtC,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,yBAIjBlC,EAAoBA,EAAoBmC,EAAI,I,oGClFrD","file":"js/painel.37936654.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/static/sapl/frontend/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","import './scss/painel.scss'\n"],"sourceRoot":""} |
Binary file not shown.
@ -1,2 +0,0 @@ |
|||
(function(e){function t(t){for(var r,c,i=t[0],l=t[1],a=t[2],p=0,s=[];p<i.length;p++)c=i[p],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&s.push(o[c][0]),o[c]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);f&&f(t);while(s.length)s.shift()();return u.push.apply(u,a||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(r=!1)}r&&(u.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},o={painel:0},u=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/static/sapl/frontend/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var f=l;u.push([2,"chunk-vendors"]),n()})({"1c80":function(e,t,n){},2:function(e,t,n){e.exports=n("9728")},9728:function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("1c80")}}); |
|||
//# sourceMappingURL=painel.ca386338.js.map
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1,2 +0,0 @@ |
|||
(function(e){function a(a){for(var r,s,l=a[0],o=a[1],u=a[2],c=0,f=[];c<l.length;c++)s=l[c],Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&f.push(n[s][0]),n[s]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);p&&p(a);while(f.length)f.shift()();return i.push.apply(i,u||[]),t()}function t(){for(var e,a=0;a<i.length;a++){for(var t=i[a],r=!0,l=1;l<t.length;l++){var o=t[l];0!==n[o]&&(r=!1)}r&&(i.splice(a--,1),e=s(s.s=t[0]))}return e}var r={},n={parlamentar:0},i=[];function s(a){if(r[a])return r[a].exports;var t=r[a]={i:a,l:!1,exports:{}};return e[a].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.m=e,s.c=r,s.d=function(e,a,t){s.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:t})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,a){if(1&a&&(e=s(e)),8&a)return e;if(4&a&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var r in e)s.d(t,r,function(a){return e[a]}.bind(null,r));return t},s.n=function(e){var a=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(a,"a",a),a},s.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},s.p="/static/sapl/frontend/";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=a,l=l.slice();for(var u=0;u<l.length;u++)a(l[u]);var p=o;i.push([3,"chunk-vendors"]),t()})({3:function(e,a,t){e.exports=t("71e4")},"49c2":function(e,a,t){},"71e4":function(e,a,t){"use strict";t.r(a),function(e){t("4de4"),t("d3b7"),t("25f0"),t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("49c2");var a=t("a026"),r=t("44d4"),n=t("bc3a"),i=t.n(n);i.a.defaults.xsrfCookieName="csrftoken",i.a.defaults.xsrfHeaderName="X-CSRFToken",a["a"].use(r["a"]);new a["a"]({delimiters:["[[","]]"],el:"#app2",data:function(){return{nome_pesquisa:"",is_pesquisa:!1,legislatura_selecionada:"",legislaturas:[],parlamentares:[],visible_parlamentares:[],size_parlamentares:0,filter_ativo:!1,filter_titular:""}},watch:{nome_pesquisa:function(e){this.debouncepesquisaParlamentar()}},created:function(){this.debouncepesquisaParlamentar=e.debounce(this.pesquisaParlamentar,500)},methods:{getParlamentares:function(e){var a=this;(this.legislatura_selecionada||"0"===this.legislatura_selecionada.toString())&&i.a.get("/api/parlamentares/parlamentar/"+this.legislatura_selecionada+"/parlamentares_by_legislatura/").then((function(e){a.parlamentares=e.data,a.visible_parlamentares=a.parlamentares,a.size_parlamentares=a.visible_parlamentares.length,a.checkTitularAtivo()})).catch((function(e){}))},pesquisaParlamentar:function(e){var a=this;i.a.get("/api/parlamentares/parlamentar/search_parlamentares/",{params:{nome_parlamentar:this.nome_pesquisa}}).then((function(e){a.parlamentares=e.data,a.visible_parlamentares=a.parlamentares,a.size_parlamentares=a.visible_parlamentares.length})).catch((function(e){}))},checkTitularAtivo:function(e){this.visible_parlamentares=this.parlamentares,this.filter_ativo&&(this.visible_parlamentares=this.visible_parlamentares.filter((function(e){return e.ativo}))),this.filter_titular&&(this.visible_parlamentares=this.visible_parlamentares.filter((function(e){return"Sim"===e.titular}))),this.size_parlamentares=this.visible_parlamentares.length},pesquisaChange:function(e){this.is_pesquisa=!this.is_pesquisa,this.filter_ativo=!1,this.is_pesquisa?this.parlamentares=[]:this.getParlamentares()}},mounted:function(){var e=this;i.a.get("/api/parlamentares/legislatura/?get_all=true").then((function(a){e.legislaturas=a.data,e.legislatura_selecionada=a.data[0].id})).then((function(a){e.getParlamentares()})).catch((function(e){}))}})}.call(this,t("2ef0"))}}); |
|||
//# sourceMappingURL=parlamentar.5eb59670.js.map
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,2 @@ |
|||
(function(e){function a(a){for(var r,n,l=a[0],o=a[1],p=a[2],h=0,c=[];h<l.length;h++)n=l[h],Object.prototype.hasOwnProperty.call(s,n)&&s[n]&&c.push(s[n][0]),s[n]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);u&&u(a);while(c.length)c.shift()();return i.push.apply(i,p||[]),t()}function t(){for(var e,a=0;a<i.length;a++){for(var t=i[a],r=!0,l=1;l<t.length;l++){var o=t[l];0!==s[o]&&(r=!1)}r&&(i.splice(a--,1),e=n(n.s=t[0]))}return e}var r={},s={parlamentar:0},i=[];function n(a){if(r[a])return r[a].exports;var t=r[a]={i:a,l:!1,exports:{}};return e[a].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=e,n.c=r,n.d=function(e,a,t){n.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:t})},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 t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var r in e)n.d(t,r,function(a){return e[a]}.bind(null,r));return t},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 l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=a,l=l.slice();for(var p=0;p<l.length;p++)a(l[p]);var u=o;i.push([3,"chunk-vendors"]),t()})({3:function(e,a,t){e.exports=t("3742")},3742:function(e,a,t){"use strict";t.r(a),function(e){t("a30a");var a=t("a026"),r=t("44d4"),s=t("bc3a"),i=t.n(s);i.a.defaults.xsrfCookieName="csrftoken",i.a.defaults.xsrfHeaderName="X-CSRFToken",a["a"].use(r["a"]);new a["a"]({delimiters:["[[","]]"],el:"#app2",data(){return{nome_pesquisa:"",is_pesquisa:!1,legislatura_selecionada:"",legislaturas:[],parlamentares:[],visible_parlamentares:[],size_parlamentares:0,filter_ativo:!1,filter_titular:""}},watch:{nome_pesquisa:function(e){this.debouncepesquisaParlamentar()}},created(){this.debouncepesquisaParlamentar=e.debounce(this.pesquisaParlamentar,500)},methods:{getParlamentares(e){(this.legislatura_selecionada||"0"===this.legislatura_selecionada.toString())&&i.a.get("/api/parlamentares/parlamentar/"+this.legislatura_selecionada+"/parlamentares_by_legislatura/").then(e=>{this.parlamentares=e.data,this.visible_parlamentares=this.parlamentares,this.size_parlamentares=this.visible_parlamentares.length,this.checkTitularAtivo()}).catch(e=>{})},pesquisaParlamentar(e){i.a.get("/api/parlamentares/parlamentar/search_parlamentares/",{params:{nome_parlamentar:this.nome_pesquisa}}).then(e=>{this.parlamentares=e.data,this.visible_parlamentares=this.parlamentares,this.size_parlamentares=this.visible_parlamentares.length}).catch(e=>{})},checkTitularAtivo(e){this.visible_parlamentares=this.parlamentares,this.filter_ativo&&(this.visible_parlamentares=this.visible_parlamentares.filter(e=>e.ativo)),this.filter_titular&&(this.visible_parlamentares=this.visible_parlamentares.filter(e=>"Sim"===e.titular)),this.size_parlamentares=this.visible_parlamentares.length},pesquisaChange(e){this.is_pesquisa=!this.is_pesquisa,this.filter_ativo=!1,this.is_pesquisa?this.parlamentares=[]:this.getParlamentares()}},mounted(){i.a.get("/api/parlamentares/legislatura/?get_all=true").then(e=>{this.legislaturas=e.data,this.legislatura_selecionada=e.data[0].id}).then(e=>{this.getParlamentares()}).catch(e=>{})}})}.call(this,t("2ef0"))},a30a:function(e,a,t){}}); |
|||
//# sourceMappingURL=parlamentar.eaf09460.js.map
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -1 +1 @@ |
|||
{"status":"done","publicPath":"/static/sapl/frontend/","chunks":{"chunk-vendors":[{"name":"css/chunk-vendors.e87b224e.css","publicPath":"/static/sapl/frontend/css/chunk-vendors.e87b224e.css","path":"../sapl/static/sapl/frontend/css/chunk-vendors.e87b224e.css"},{"name":"js/chunk-vendors.2a9ca889.js","publicPath":"/static/sapl/frontend/js/chunk-vendors.2a9ca889.js","path":"../sapl/static/sapl/frontend/js/chunk-vendors.2a9ca889.js"},{"name":"css/chunk-vendors.e87b224e.css.map","publicPath":"/static/sapl/frontend/css/chunk-vendors.e87b224e.css.map","path":"../sapl/static/sapl/frontend/css/chunk-vendors.e87b224e.css.map"},{"name":"js/chunk-vendors.2a9ca889.js.map","publicPath":"/static/sapl/frontend/js/chunk-vendors.2a9ca889.js.map","path":"../sapl/static/sapl/frontend/js/chunk-vendors.2a9ca889.js.map"}],"compilacao":[{"name":"css/compilacao.00eb2b5d.css","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css","path":"../sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css"},{"name":"js/compilacao.512057a6.js","publicPath":"/static/sapl/frontend/js/compilacao.512057a6.js","path":"../sapl/static/sapl/frontend/js/compilacao.512057a6.js"},{"name":"css/compilacao.00eb2b5d.css.map","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css.map","path":"../sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.map"},{"name":"js/compilacao.512057a6.js.map","publicPath":"/static/sapl/frontend/js/compilacao.512057a6.js.map","path":"../sapl/static/sapl/frontend/js/compilacao.512057a6.js.map"}],"global":[{"name":"css/global.c362c381.css","publicPath":"/static/sapl/frontend/css/global.c362c381.css","path":"../sapl/static/sapl/frontend/css/global.c362c381.css"},{"name":"js/global.28cb09ed.js","publicPath":"/static/sapl/frontend/js/global.28cb09ed.js","path":"../sapl/static/sapl/frontend/js/global.28cb09ed.js"},{"name":"css/global.c362c381.css.map","publicPath":"/static/sapl/frontend/css/global.c362c381.css.map","path":"../sapl/static/sapl/frontend/css/global.c362c381.css.map"},{"name":"js/global.28cb09ed.js.map","publicPath":"/static/sapl/frontend/js/global.28cb09ed.js.map","path":"../sapl/static/sapl/frontend/js/global.28cb09ed.js.map"}],"painel":[{"name":"css/painel.5d957a9b.css","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css","path":"../sapl/static/sapl/frontend/css/painel.5d957a9b.css"},{"name":"js/painel.ca386338.js","publicPath":"/static/sapl/frontend/js/painel.ca386338.js","path":"../sapl/static/sapl/frontend/js/painel.ca386338.js"},{"name":"css/painel.5d957a9b.css.map","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css.map","path":"../sapl/static/sapl/frontend/css/painel.5d957a9b.css.map"},{"name":"js/painel.ca386338.js.map","publicPath":"/static/sapl/frontend/js/painel.ca386338.js.map","path":"../sapl/static/sapl/frontend/js/painel.ca386338.js.map"}],"parlamentar":[{"name":"css/parlamentar.0e433876.css","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css","path":"../sapl/static/sapl/frontend/css/parlamentar.0e433876.css"},{"name":"js/parlamentar.5eb59670.js","publicPath":"/static/sapl/frontend/js/parlamentar.5eb59670.js","path":"../sapl/static/sapl/frontend/js/parlamentar.5eb59670.js"},{"name":"css/parlamentar.0e433876.css.map","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css.map","path":"../sapl/static/sapl/frontend/css/parlamentar.0e433876.css.map"},{"name":"js/parlamentar.5eb59670.js.map","publicPath":"/static/sapl/frontend/js/parlamentar.5eb59670.js.map","path":"../sapl/static/sapl/frontend/js/parlamentar.5eb59670.js.map"}]}} |
|||
{"status":"done","publicPath":"/static/sapl/frontend/","chunks":{"chunk-vendors":[{"name":"css/chunk-vendors.de0fe4be.css","publicPath":"/static/sapl/frontend/css/chunk-vendors.de0fe4be.css","path":"sapl/static/sapl/frontend/css/chunk-vendors.de0fe4be.css"},{"name":"js/chunk-vendors.2f06c2ae.js","publicPath":"/static/sapl/frontend/js/chunk-vendors.2f06c2ae.js","path":"sapl/static/sapl/frontend/js/chunk-vendors.2f06c2ae.js"},{"name":"css/chunk-vendors.de0fe4be.css.map","publicPath":"/static/sapl/frontend/css/chunk-vendors.de0fe4be.css.map","path":"sapl/static/sapl/frontend/css/chunk-vendors.de0fe4be.css.map"},{"name":"js/chunk-vendors.2f06c2ae.js.map","publicPath":"/static/sapl/frontend/js/chunk-vendors.2f06c2ae.js.map","path":"sapl/static/sapl/frontend/js/chunk-vendors.2f06c2ae.js.map"}],"compilacao":[{"name":"css/compilacao.00eb2b5d.css","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css","path":"sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css"},{"name":"js/compilacao.44a714dd.js","publicPath":"/static/sapl/frontend/js/compilacao.44a714dd.js","path":"sapl/static/sapl/frontend/js/compilacao.44a714dd.js"},{"name":"css/compilacao.00eb2b5d.css.map","publicPath":"/static/sapl/frontend/css/compilacao.00eb2b5d.css.map","path":"sapl/static/sapl/frontend/css/compilacao.00eb2b5d.css.map"},{"name":"js/compilacao.44a714dd.js.map","publicPath":"/static/sapl/frontend/js/compilacao.44a714dd.js.map","path":"sapl/static/sapl/frontend/js/compilacao.44a714dd.js.map"}],"global":[{"name":"css/global.80b7564c.css","publicPath":"/static/sapl/frontend/css/global.80b7564c.css","path":"sapl/static/sapl/frontend/css/global.80b7564c.css"},{"name":"js/global.bd0aab4d.js","publicPath":"/static/sapl/frontend/js/global.bd0aab4d.js","path":"sapl/static/sapl/frontend/js/global.bd0aab4d.js"},{"name":"css/global.80b7564c.css.map","publicPath":"/static/sapl/frontend/css/global.80b7564c.css.map","path":"sapl/static/sapl/frontend/css/global.80b7564c.css.map"},{"name":"js/global.bd0aab4d.js.map","publicPath":"/static/sapl/frontend/js/global.bd0aab4d.js.map","path":"sapl/static/sapl/frontend/js/global.bd0aab4d.js.map"}],"painel":[{"name":"css/painel.5d957a9b.css","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css"},{"name":"js/painel.37936654.js","publicPath":"/static/sapl/frontend/js/painel.37936654.js","path":"sapl/static/sapl/frontend/js/painel.37936654.js"},{"name":"css/painel.5d957a9b.css.map","publicPath":"/static/sapl/frontend/css/painel.5d957a9b.css.map","path":"sapl/static/sapl/frontend/css/painel.5d957a9b.css.map"},{"name":"js/painel.37936654.js.map","publicPath":"/static/sapl/frontend/js/painel.37936654.js.map","path":"sapl/static/sapl/frontend/js/painel.37936654.js.map"}],"parlamentar":[{"name":"css/parlamentar.0e433876.css","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css"},{"name":"js/parlamentar.eaf09460.js","publicPath":"/static/sapl/frontend/js/parlamentar.eaf09460.js","path":"sapl/static/sapl/frontend/js/parlamentar.eaf09460.js"},{"name":"css/parlamentar.0e433876.css.map","publicPath":"/static/sapl/frontend/css/parlamentar.0e433876.css.map","path":"sapl/static/sapl/frontend/css/parlamentar.0e433876.css.map"},{"name":"js/parlamentar.eaf09460.js.map","publicPath":"/static/sapl/frontend/js/parlamentar.eaf09460.js.map","path":"sapl/static/sapl/frontend/js/parlamentar.eaf09460.js.map"}]}} |
Loading…
Reference in new issue