mirror of https://github.com/interlegis/sapl.git
34 changed files with 323 additions and 281 deletions
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.
@ -0,0 +1 @@ |
|||||
|
.container-messages[data-v-26b3e554]{position:fixed;bottom:0;right:1rem;z-index:10001} |
||||
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
@ -0,0 +1 @@ |
|||||
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d0c4a82"],{"3c84":function(e,n,s){"use strict";s.r(n);var a={name:"sessao-plenaria-module"},t=s("0c7c"),c=Object(t.a)(a,function(){var e=this.$createElement,n=this._self._c||e;return n("div",{staticClass:"online-sessaolenaria"},[n("router-view")],1)},[],!1,null,null,null);n.default=c.exports}}]); |
||||
Binary file not shown.
@ -0,0 +1 @@ |
|||||
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d0e8be2"],{"8b24":function(n,e,t){"use strict";t.r(e);var a={name:"index",data:function(){return{}}},i=t("0c7c"),c=Object(i.a)(a,function(){var n=this.$createElement;return(this._self._c||n)("div",[this._v("\n teste de página para dentro do main - INDEX INDEX\n")])},[],!1,null,null,null);e.default=c.exports}}]); |
||||
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 @@ |
|||||
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4cf2dae1"],{3713:function(t,s,a){"use strict";(function(t){var e=a("975e");s.a={name:"sessao-plenaria-item-list",props:["sessao"],data:function(){return{utils:e.a.Utils,app:["sessao","parlamentares"],model:["sessaoplenaria","sessaolegislativa","tiposessaoplenaria","legislatura"],data_inicio:new Date,sessao_legislativa:{numero:""},tipo:{nome:""},legislatura:{numero:""},metadata:{sessao_legislativa:{app:"parlamentares",model:"sessaolegislativa",id:this.sessao.sessao_legislativa},legislatura:{app:"parlamentares",model:"legislatura",id:this.sessao.legislatura},tipo:{app:"sessao",model:"tiposessaoplenaria",id:this.sessao.tipo}}}},watch:{sessao:function(t){this.updateSessao(),this.fetch()}},computed:{titulo:function(){var t=this.sessao,s=this.tipo,a=this.data_inicio;return"".concat(t.numero,"ª ").concat(s.nome," da \n ").concat(a.getDate()>15?2:1,"ª Quizena do Mês de \n ").concat(this.month_text(a.getMonth())," de \n ").concat(a.getFullYear(),"\n ")},subtitulo:function(){return"".concat(this.sessao_legislativa.numero,"ª Sessão Legislativa da \n ").concat(this.legislatura.numero,"ª Legislatura")},date_text:function(){return"".concat(this.data_inicio.getDate()," de \n ").concat(this.month_text(this.data_inicio.getMonth())," de\n ").concat(this.data_inicio.getFullYear()," - ").concat(this.sessao.hora_inicio)}},methods:{sendStore:function(){this.insertInState({app:"sessao",model:"sessaoplenaria",id:this.sessao.id,value:this.sessao})},month_text:function(t){return["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][t]},fetch:function(){var s=this;t.mapKeys(s.metadata,function(t,a){var e=s.metadata[a];e.component=s;var i=s.getModel(e);null===i?s.insertInState(e).then(function(t){s[a]=s.getModel(e)[e.id]}):void 0===i[e.id]?s.$nextTick().then(function(){setTimeout(function(){s.fetch()},100)}):s[a]=i[e.id]})},updateSessao:function(){this.data_inicio=this.stringToDate(this.sessao.data_inicio,"yyyy-mm-dd","-"),this.metadata.sessao_legislativa.id=this.sessao.sessao_legislativa,this.metadata.tipo.id=this.sessao.tipo,this.metadata.legislatura.id=this.sessao.legislatura}},mounted:function(){this.updateSessao(),this.fetch()}}}).call(this,a("2ef0"))},4358:function(t,s,a){"use strict";var e=a("3713").a,i=(a("e94f"),a("0c7c")),n=Object(i.a)(e,function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("router-link",{class:"sessao-plenaria-item-list",attrs:{to:{name:"sessao_plenaria_online_link",params:{id:t.sessao.id}}},nativeOn:{click:function(s){return t.sendStore(s)}}},[a("h5",{staticClass:"tit"},[t._v("\n "+t._s(t.titulo)+"\n ")]),a("div",{staticClass:"subtitulo"},[a("span",[t._v(t._s(t.subtitulo))]),t._v(" – "),a("span",[t._v(t._s(t.date_text))])])])},[],!1,null,null,null);s.a=n.exports},"4a7e":function(t,s,a){"use strict";a.r(s);var e=a("4358"),i=a("975e"),n={name:"sessao-plenaria-online",components:{SessaoPlenariaItemList:e.a},data:function(){return{utils:i.a.Utils,sessao:null,app:["sessao"],model:["sessaoplenaria"]}},mounted:function(){this.fetchSessao()},methods:{fetchSessao:function(){var t=this,s=t.$route.params.id,a={app:t.app[0],model:t.model[0],id:s},e=t.getModel(a);null!==e&&e.hasOwnProperty(s)?t.sessao=e[s]:t.$nextTick().then(function(){t.insertInState(a).then(function(){e=t.getModel(a),t.sessao=e[s]})})},fetch:function(){this.fetchSessao()}}},o=(a("8e03"),a("0c7c")),l=Object(o.a)(n,function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"sessao-plenaria-online"},[this.sessao?s("div",[s("sessao-plenaria-item-list",{attrs:{sessao:this.sessao}}),this._v("\nteste\n ")],1):this._e()])},[],!1,null,null,null);s.default=l.exports},"8e03":function(t,s,a){"use strict";var e=a("e8c9");a.n(e).a},e8c9:function(t,s,a){},e94f:function(t,s,a){"use strict";var e=a("f16d");a.n(e).a},f16d:function(t,s,a){}}]); |
||||
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.
@ -1 +0,0 @@ |
|||||
!function(e){function t(t){for(var s,r,c=t[0],i=t[1],u=t[2],f=0,d=[];f<c.length;f++)r=c[f],a[r]&&d.push(a[r][0]),a[r]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(l&&l(t);d.length;)d.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],s=!0,c=1;c<n.length;c++){var i=n[c];0!==a[i]&&(s=!1)}s&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var s={},a={sessao_online:0},o=[];function r(t){if(s[t])return s[t].exports;var n=s[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/static/sapl/";var c=window.webpackJsonp=window.webpackJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=i;o.push([3,"chunk-vendors"]),n()}({3:function(e,t,n){e.exports=n("944e")},"31a2":function(e,t,n){},4157:function(e,t,n){"use strict";(function(e){var s,a=n("bd86"),o=n("81d8"),r=(s={},Object(a.a)(s,o.b,function(e,t){t.id=e.counter_id++,e.messages.unshift(t)}),Object(a.a)(s,o.a,function(t,n){e.remove(t.messages,function(e){return n==e.id})}),s),c={sendMessage:function(e,t){return(0,e.commit)(o.b,t)},popMessage:function(e,t){return(0,e.commit)(o.a,t)}};t.a={state:{messages:[],counter_id:0},mutations:r,getters:{getMessages:function(e){return e.messages}},actions:c}}).call(this,n("2ef0"))},"522c":function(e,t,n){"use strict";var s=n("31a2");n.n(s).a},"81d8":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var s="MESSAGE_SHIFT",a="MESSAGE_POP"},"83c2":function(e,t,n){},"8e44":function(e,t,n){"use strict";var s=n("83c2");n.n(s).a},"944e":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var s=n("a026"),a=n("2f62"),o=n("8c4f"),r=n("9f7b"),c=n.n(r),i={modules:{store__message:n("4157").a}},u=n("bc3a"),l=n.n(u),f=n("31bd"),d=n("cebc"),p={name:"online",data:function(){return{}},computed:{},methods:Object(d.a)({},Object(a.b)(["sendMessage"])),mounted:function(){var e=this;document.querySelector("body").classList.add("body-sessao-online"),this.sendMessage({alert:"success",message:"ok ok ok 10",time:5}),this.sendMessage({alert:"danger",message:"ok ok ok 20",time:5}),this.$options.sockets.onmessage=function(t){e.sendMessage({alert:"info",message:t.data,time:10})}}},m=(n("8e44"),n("0c7c")),b=[{name:"sessao_online_app",path:"/app/sessao/online/",component:Object(m.a)(p,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"app-sessao-online"})},[],!1,null,null,null).exports}],g=n("cd4e"),v=(n("ed27"),n("23f0")),h=n.n(v),_={name:"alert",extends:Object(d.a)({},h.a),props:["message_id"],data:function(){return{}},methods:Object(d.a)({},Object(a.b)(["popMessage"])),mounted:function(){var e=this;setInterval(function(){0===e.show&&e.popMessage(e.message_id)},1e3)}},O=Object(m.a)(_,void 0,void 0,!1,null,"08e4dad0",null).exports,j={name:"message",data:function(){return{}},computed:Object(d.a)({},Object(a.c)({getMessages:"getMessages"})),components:{alert:O}},y=(n("522c"),{name:"app",components:{Message:Object(m.a)(j,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container-messages"},e._l(e.getMessages,function(t,s){return n("alert",{key:s,attrs:{variant:t.alert,show:"",dismissible:"",message_id:t.id},model:{value:t.time,callback:function(n){e.$set(t,"time",n)},expression:"msg.time"}},[e._v("\n "+e._s(t.message)+"\n ")])}),1)},[],!1,null,"325582de",null).exports},data:function(){return{}}}),M=Object(m.a)(y,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app-frontend-base-content"}},[t("message"),t("router-view")],1)},[],!1,null,null,null).exports,w=n("b408"),k=n.n(w);l.a.defaults.xsrfCookieName="csrftoken",l.a.defaults.xsrfHeaderName="X-CSRFToken",s.a.use(a.a),s.a.use(o.a),s.a.use(c.a),s.a.use(k.a,"ws://"+window.location.host+"/ws/time-refresh/",{reconnection:!0}),Object(g.loadProgressBar)(),s.a.config.productionTip=!1;var x=new a.a.Store(i),S=new o.a({routes:b,mode:"history"});Object(f.sync)(x,S);new s.a({router:S,store:x,el:"#app-frontend-base-content",components:{App:M},template:"<App/>"})}}); |
|
||||
Binary file not shown.
Loading…
Reference in new issue