Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/ts.corals.io/frontend/dist/_nuxt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/ts.corals.io/frontend/dist/_nuxt/0337d2c.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{719:function(t,e,o){"use strict";var r={name:"COverlay",props:{show:{default:!1,type:Boolean}}},n=o(88),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("b-overlay",{attrs:{show:t.show,rounded:"sm","spinner-variant":"primary",variant:"transparent",blur:"1px"}},[t._t("default")],2)}),[],!1,null,"5a577948",null);e.a=component.exports},720:function(t,e,o){var content=o(725);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(95).default)("7c8b2224",content,!0,{sourceMap:!1})},722:function(t,e,o){"use strict";o(33),o(47),o(41),o(19),o(18),o(14),o(12),o(20),o(15),o(21);var r=o(2);o(39);function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var c={data:function(){var t=this;return{formModalId:"",deleteRecordId:null,editRecordId:null,cloneRecordId:null,showRecordId:null,listFilters:null,filterBy:[],defaultOptions:{hideCreate:!1,headings:{},columnsDropdown:!1,initialPage:1,perPageValues:[],perPage:25,debounce:1e3,filterByColumn:!0,responseAdapter:function(t){var data=t.data;return{data:data.data,count:data.meta.pagination.total}},requestAdapter:function(data){return t.$router.replace({query:l(l({},t.$route.query),{},{page:data.page})}).catch((function(){})),data.query=Object.assign(data.query,t.filterBy),data},sortIcon:{base:"ts-ico",up:"ts-up",down:"ts-down",is:"ts-sort"},sortable:[],filterable:[],customColumns:[],requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},initFilters:{},templates:{},listColumns:{}},listTableRefs:"listTable"}},beforeMount:function(){var t=this.$route.query;this.defaultOptions.initialPage=t.page?parseInt(t.page):1},mounted:function(){this.formModalId="".concat(this.resourceURL,"Table")},computed:{deleteURL:function(){return this.deleteHref||this.resourceURL},editURL:function(){return this.editHref||this.resourceURL},cloneURL:function(){return this.cloneHref||this.resourceURL}},methods:{onSubmit:function(){var t=this;this.editRecordId?this.form.put("".concat(this.editURL,"/").concat(this.editRecordId)).then((function(e){t.handleFormHidden(),t.$emit("formUpdated",e.data)})):this.form.post("".concat(this.resourceURL)).then((function(e){t.handleFormHidden(),t.$emit("formStored",e.data)}))},tableOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.defaultOptions;return Object.assign(e,t)},showDeleteModal:function(t,e){var o=this;this.deleteRecordId=t,this.$swal.fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#d33",cancelButtonColor:"#d7d7d7",confirmButtonText:"Yes, delete it!"}).then((function(t){t.value&&o.doDeleteRecord()}))},doDeleteRecord:function(){var t=this;this.$axios.delete("".concat(this.deleteURL,"/").concat(this.deleteRecordId)).then((function(e){t.refresh(),e.data.message&&t.$toast.success(e.data.message)})).catch((function(e){var o=e.message;e.response&&e.response.data&&e.response.data.message&&(o=e.response.data.message),t.$toast.error(o)}))},refresh:function(){this.$refs[this.listTableRefs].refresh()},showFormModal:function(){this.$bvModal.show(this.formModalId)},handleFormHidden:function(){this.editRecordId=null,this.$bvModal.hide(this.formModalId),this.refresh()},handleShowHidden:function(){this.showRecordId=null},cloneRecord:function(t,e){var o=this;this.$axios.get("".concat(this.cloneURL,"/").concat(t,"?edit=1")).then((function(r){var n=r.data;o.cloneRecordId=t,o.form.cloneReplace(n.data,e),o.showFormModal()})).catch((function(t){o.$toast.error(t.message)}))},editRecord:function(t){var e=this;this.$axios.get("".concat(this.editURL,"/").concat(t,"?edit=1")).then((function(o){var r=o.data;e.editRecordId=t,e.form.replace(r.data),e.showFormModal()})).catch((function(t){e.$toast.error(t.message)}))},replace:function(data,object){for(var t in data)object[t]=data[t];return object},showRecord:function(t){this.showRecordId=t}}},d=c,f=o(723),h=o(719),m=o(293),v=o.n(m),_={mixins:[d],components:{COverlay:h.a,PageSection:f.a},inject:{handleBulkAction:{default:[]}},props:{columns:{required:!0},bulkActionOptions:{required:!1,default:function(){return[]}},resourceURL:{required:!0},deleteHref:{required:!1},editHref:{required:!1},cloneHref:{required:!1},cloneAttr:{required:!1},options:{required:!0},form:{required:!1},formSize:{required:!1,default:""},labels:{required:!0},rowColumns:{required:!1,default:"col-md-12"},nameClickable:{required:!1},compact:{required:!1},onDataLoaded:{required:!1,default:function(){return function(){}}}},name:"CrudIndex",data:function(){return{selectedIds:[]}},beforeMount:function(){this.$eventBus.$on("setSelectedIds",this.setSelectedIds)},methods:{setSelectedIds:function(t){this.selectedIds=t},onModalShow:function(){this.editRecordId||this.cloneRecordId||(this.form.replace(this.form.originalData),this.editRecordId=null,this.cloneRecordId=null,this.form.errors.purge())},onModalHidden:function(){this.form.replace(this.form.originalData),this.editRecordId=null,this.cloneRecordId=null,this.form.errors.purge(),this.$emit("edit-form-closed")},getTableData:function(){var table=this.$refs[this.listTableRefs];return v.a.get(table,"data")},selectAll:function(t){var data=this.getTableData();this.selectedIds=t?data.map((function(t){return t.id})):[],this.$refs.checkbox_header__table.checked=t}},computed:{modalTitle:function(){return(this.editRecordId?"Update ":this.cloneRecordId?"Clone ":"Create ")+this.labels.singularTitle}},watch:{selectedIds:function(t){this.$refs.checkbox_header__table.checked=this.getTableData().length===v.a.uniq(t).length}},beforeDestroy:function(){}},y=(o(724),o(88)),component=Object(y.a)(_,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"crud-index"},[o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-4"},[o("PageSection",{attrs:{title:t.labels.title}})],1),t._v(" "),o("div",{staticClass:"col-md-8 text-right"},[t.bulkActionOptions.length?o("b-dropdown",{staticClass:"m-2",attrs:{id:"dropdown-left",text:"Actions",variant:"primary",size:"sm"}},[t._l(t.bulkActionOptions,(function(e){return[o("b-dropdown-item",{staticStyle:{"text-transform":"capitalize"},attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.handleBulkAction(e,t.selectedIds)}}},[t._v("\n            "+t._s(e)+"\n          ")])]}))],2):t._e(),t._v(" "),t._t("extraButtons"),t._v(" "),t.options.hideCreate?t._e():o("b-button",{attrs:{variant:"primary",size:"sm",type:"button"},on:{click:function(e){return e.preventDefault(),t.showFormModal.apply(null,arguments)}}},[o("fa",{attrs:{icon:"plus"}}),t._v("\n        Create\n      ")],1),t._v(" "),o("b-button",{attrs:{variant:"warning",size:"sm",type:"button"},on:{click:function(e){return e.preventDefault(),t.refresh.apply(null,arguments)}}},[o("fa",{attrs:{icon:"redo"}})],1)],2)]),t._v(" "),o("div",{staticClass:"row mt-3"},[o("div",{class:t.rowColumns},[o("v-server-table",{ref:"listTable",attrs:{columns:t.columns,url:t.resourceURL,options:t.tableOptions(t.options)},on:{loaded:t.onDataLoaded},scopedSlots:t._u([{key:"checkbox",fn:function(e){return t.$isAdmin()&&t.bulkActionOptions.length?o("div",{staticClass:"text-center"},[o("b-form-checkbox",{key:e.row.id+"__checkbox_record",attrs:{value:e.row.id},model:{value:t.selectedIds,callback:function(e){t.selectedIds=e},expression:"selectedIds"}})],1):t._e()}},t._l(t.options.customColumns,(function(e){return{key:e,fn:function(o){return[t._t(e,null,{object:o})]}}})),{key:"actions",fn:function(e){return o("div",{},[e.row.edit&&Object.keys(e.row.edit).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Edit"},on:{click:function(o){return o.preventDefault(),t.editRecord(e.row.id)}}},[o("fa",{attrs:{icon:"edit"}})],1):t._e(),t._v(" "),e.row.delete&&Object.keys(e.row.delete).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"text-danger",attrs:{title:"Delete"},on:{click:function(o){return o.preventDefault(),t.showDeleteModal(e.row.id,e.index)}}},[o("fa",{attrs:{icon:"trash"}})],1):t._e(),t._v(" "),e.row.clone&&Object.keys(e.row.clone).length?o("b-link",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"text-warning",attrs:{title:"Clone"},on:{click:function(o){return o.preventDefault(),t.cloneRecord(e.row.id,t.cloneAttr)}}},[o("fa",{attrs:{icon:"clone"}})],1):t._e(),t._v(" "),t._t("extra-actions",null,{object:e.row})],2)}}],null,!0)},[o("div",{staticClass:"text-center",attrs:{slot:"h__checkbox"},slot:"h__checkbox"},[t.$isAdmin()&&t.bulkActionOptions.length?o("div",{staticClass:"custom-control custom-checkbox"},[o("input",{key:"checkbox_header__table",ref:"checkbox_header__table",staticClass:"custom-control-input",attrs:{type:"checkbox","true-value":1,"false-value":0,id:"checkbox_header__table"},on:{change:function(e){return t.selectAll(e.target.checked)}}}),t._v(" "),o("label",{staticClass:"custom-control-label",attrs:{for:"checkbox_header__table"}})]):t._e()])])],1)]),t._v(" "),o("b-modal",{attrs:{"hide-footer":"",size:t.formSize,"content-class":"shadow",title:t.modalTitle,"no-close-on-backdrop":"",id:t.formModalId},on:{hidden:t.onModalHidden,show:t.onModalShow}},[t.form?o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-12"},[o("c-overlay",{attrs:{show:!t.form.isReady}},[o("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit()}}},[t._t("default",null,{form:t.form}),t._v(" "),o("div",{staticClass:"text-right"},[o("button",{staticClass:"btn btn-sm btn-primary",attrs:{type:"submit",disabled:!t.form.isReady}},[t._v("\n                "+t._s(t.modalTitle)+"\n              ")]),t._v(" "),o("button",{staticClass:"btn btn-sm btn-secondary",attrs:{disabled:!t.form.isReady},on:{click:function(e){return e.preventDefault(),t.$bvModal.hide(t.formModalId)}}},[t._v("Close\n              ")])])],2)])],1)]):t._e()])],1)}),[],!1,null,null,null);e.a=component.exports},723:function(t,e,o){"use strict";var r={name:"PageSection",props:{title:{required:!0}}},n=o(88),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-12"},[o("div",{staticClass:"border-bottom mb-3"},[o("h4",[t._v(t._s(t.title))]),t._v(" "),t._t("default")],2)])])}),[],!1,null,"019ca8fe",null);e.a=component.exports},724:function(t,e,o){"use strict";o(720)},725:function(t,e,o){var r=o(94)(!1);r.push([t.i,".form-modal-header{padding:0!important}",""]),t.exports=r},726:function(t,e,o){"use strict";var r=o(55);o(53);e.a={methods:{yesNoOptions:function(){return[{id:!1,text:"No"},{id:!0,text:"Yes"}]},objectAsQueryString:function(t){var p,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=[];for(p in t)if(t.hasOwnProperty(p)){var n=e?e+"["+p+"]":p,l=t[p];o.push(null!==l&&"object"===Object(r.a)(l)?this.objectAsQueryString(l,n):encodeURIComponent(n)+"="+encodeURIComponent(l))}return o.join("&")}}}},813:function(t,e,o){"use strict";o.r(e);var r=o(722),n=o(726),l={name:"index",components:{CRUDIndex:r.a},middleware:"Authorization",mixins:[n.a],data:function(){return{resourceUrl:"timesheet/activities",columns:["title","hourly_rate","billable","is_special","is_limited","is_active","actions"],labels:{title:"Activities",singularTitle:"Activity"},options:{listColumns:{billable:this.yesNoOptions(),is_active:this.yesNoOptions(),is_limited:this.yesNoOptions()},sortable:["title"],filterable:["title","billable","is_active","is_limited","is_special"],customColumns:["billable","is_limited","is_special","is_active"],hideCreate:this.$cant("create","activity"),headings:{is_limited:"Limited",is_active:"Active",is_special:"Special"}},form:this.$form({title:"",description:"",billable:0,is_active:1,is_limited:0,is_special:0,properties:{},hourly_rate:""},{fetchFormDataURL:"/timesheet/activities/get-form-data",model:"activity"})}}},c=o(88),component=Object(c.a)(l,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("CRUDIndex",{attrs:{columns:t.columns,resourceURL:t.resourceUrl,options:t.options,form:t.form,labels:t.labels},scopedSlots:t._u([{key:"billable",fn:function(e){return[e.object.row.billable?o("fa",{staticClass:"text-success",attrs:{icon:"check"}}):o("span",[t._v("-")])]}},{key:"is_limited",fn:function(e){return[e.object.row.is_limited?o("fa",{staticClass:"text-success",attrs:{icon:"check"}}):o("span",[t._v("-")])]}},{key:"is_active",fn:function(t){return[t.object.row.is_active?o("fa",{staticClass:"text-success",attrs:{icon:"check"}}):o("fa",{staticClass:"text-danger",attrs:{icon:"times"}})]}},{key:"is_special",fn:function(e){return[e.object.row.is_special?o("fa",{staticClass:"text-success",attrs:{icon:"check"}}):o("span",[t._v("-")])]}},{key:"default",fn:function(e){var form=e.form;return[o("corals-input",{attrs:{form:form,field:"title",required:""}}),t._v(" "),o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-6"},[o("corals-input",{attrs:{form:form,type:"number",field:"hourly_rate",step:"0.01"}})],1)]),t._v(" "),o("div",{staticClass:"row"},[o("div",{staticClass:"col-md-6"},[o("corals-checkbox",{attrs:{field:"billable",form:form}}),t._v(" "),o("corals-checkbox",{attrs:{field:"is_active",label:"Active",form:form}}),t._v(" "),o("corals-checkbox",{attrs:{field:"is_special",label:"Special",form:form}}),t._v(" "),o("corals-checkbox",{attrs:{field:"is_limited",label:"Limited By Level",form:form}})],1)]),t._v(" "),form.is_limited?o("div",[o("table",{staticClass:"table"},[o("tr",[t._l(form.getFormData("positions"),(function(label,e){return[o("th",[t._v(t._s(label))])]}))],2),t._v(" "),o("tr",[t._l(form.getFormData("positions"),(function(label,e){return[o("td",[o("corals-input",{attrs:{form:form,type:"number",label:!1,field:"properties."+e,min:"0"},model:{value:form.properties[e],callback:function(o){t.$set(form.properties,e,o)},expression:"form.properties[key]"}})],1)]}))],2)])]):t._e(),t._v(" "),o("corals-textarea",{attrs:{field:"description",form:form}})]}}])})],1)}),[],!1,null,"3e3e9642",null);e.default=component.exports}}]);

Spamworldpro Mini