text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-admin-index~b26b267b"],{4208:function(e,n,i){"use strict";i.r(n);var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{staticClass:"row justify-content-center"},[i("div",{staticClass:"col-6"},[i("p",{staticClass:"p-2"},[e._v("Data Aktif User "+e._s(e.iduser)+": ")]),i("select",{directives:[{name:"model",rawName:"v-model",value:e.iduser,expression:"iduser"}],staticClass:"form-control",staticStyle:{width:"300px"},on:{change:function(n){var i=Array.prototype.filter.call(n.target.options,(function(e){return e.selected})).map((function(e){var n="_value"in e?e._value:e.value;return n}));e.iduser=n.target.multiple?i:i[0]}}},e._l(e.listuser,(function(n,t){return i("option",{key:t+"listuser",domProps:{value:n.id}},[e._v(e._s(n.username))])})),0),i("hr"),i("button",{staticClass:"btn btn-sm btn-primary  ",attrs:{type:"button"},on:{click:e.updateuser}},[e._v("Update User")])])]),i("div",{staticClass:"p-4"},e._l(e.listMenu,(function(n,t){return i("div",{key:t+"listmenu"},[i("p",{staticClass:"font-semibold p-2"},[e._v(e._s(n.group))]),e._l(n.menu,(function(n,t){return i("button",{key:t+"menus",staticClass:"btn btn-sm btn-dark ml-2 text-lg",attrs:{type:"button"},on:{click:function(i){return e.$router.push(n.link)}}},[i("span",{staticClass:"typcn typcn-cog"}),e._v(" "+e._s(n.name))])}))],2)})),0)])},o=[],a=i("4b97"),l=(i("bc3a"),new a["a"]),r={layout:"app_admin",methods:{updateuser:function(){l.collection("app_portofolio_aktif",!1).doc().set({id:1,user:this.iduser}).then((function(e){l.alert("berhasil update!")}))},getuseraktif:function(){var e=this;l.collection("app_portofolio_aktif",!1).doc().select("select * from app_portofolio_aktif where id='1'").then((function(n){e.iduser=n[0].user,e.$forceUpdate()}))},getUser:function(){var e=this;l.collection("tbuser",!1).doc().select("select * from tbuser").then((function(n){console.log(n),e.listuser=n,e.$forceUpdate()}))}},mounted:function(){this.getUser(),this.getuseraktif()},data:function(){return{listuser:[],iduser:"",listMenu:[{group:"About/Tentang",icon:"dropbox",level:["Admin"],menu:[{name:"About",link:"/admin/about",level:["Admin"],icon:"user"},{name:"Pengalaman",link:"/admin/about/pengalaman",level:["Admin"],icon:"user"},{name:"Pendidikan",link:"/admin/about/pendidikan",level:["Admin"],icon:"user"},{name:"Service",link:"/admin/about/service",level:["Admin"],icon:"user"}]},{group:"Portofolio",icon:"dropbox",level:["Admin"],menu:[{name:"Skill",link:"/admin/portofolio/skill",level:["Admin"],icon:"user"},{name:"Sub SKill",link:"/admin/portofolio/subskill",level:["Admin"],icon:"user"},{name:"Activity",link:"/admin/portofolio/activity",level:["Admin"],icon:"user"}]},{group:"Project",icon:"dropbox",level:["Admin"],menu:[{name:"Project",link:"/admin/project",level:["Admin"],icon:"user"},{name:"Kategori",link:"/admin/project/kategori",level:["Admin"],icon:"user"}]},{group:"Sertifikat",icon:"dropbox",level:["Admin"],menu:[{name:"Sertifikat",link:"/admin/sertifikat",level:["Admin"],icon:"user"},{name:"Award",link:"/admin/sertifikat/award",level:["Admin"],icon:"user"},{name:"Seminar",link:"/admin/sertifikat/seminar",level:["Admin"],icon:"user"}]},{group:"Layout",icon:"dropbox",level:["Admin"],menu:[{name:"Layout",link:"/admin/layout",level:["Admin"],icon:"user"}]}]}}},s=r,u=i("2877"),c=Object(u["a"])(s,t,o,!1,null,null,null);n["default"]=c.exports}}]);
  //# sourceMappingURL=page-admin-index~b26b267b.24609fc7.js.map