PHP Classes

File: dist/js/tool.js

Recommend this page to a friend!
  Classes of Naif Alshaye   Nova PHP SMS Message   dist/js/tool.js   Download  
File: dist/js/tool.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nova PHP SMS Message
Web interface to send SMS messages
Author: By
Last change:
Date: 5 years ago
Size: 4,400 bytes
 

Contents

Class file image Download
!function(e){var t={};function s(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)}([function(e,t,s){s(1),e.exports=s(6)},function(e,t,s){Nova.booting(function(e,t){t.addRoutes([{name:"nova-sms",path:"/nova-sms",component:s(2)}])})},function(e,t,s){var n=s(3)(s(4),s(5),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports=function(e,t,s,n,r,o){var i,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(i=e,a=e.default);var u,c="function"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),s&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):n&&(u=n),u){var d=c.functional,m=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),m(e,t)}):c.beforeCreate=m?[].concat(m,u):[u]}return{esModule:i,exports:a,options:c}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{mobile_number:"",sms_text:"",response:"",errors:[]}},mounted:function(){},methods:{sendSMS:function(){var e=this;if(this.errors=[],this.mobile_number||this.errors.push("Mobile Number is required."),this.sms_text||this.errors.push("SMS Text is required."),this.errors.length)return!1;Nova.request().post("/nova-vendor/nova-sms/send",{mobile_number:this.mobile_number,sms_text:this.sms_text}).then(function(t){e.response=t.data,e.mobile_number="",e.sms_text=""})}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("heading",{staticClass:"mb-6"},[e._v("SMS")]),e._v(" "),s("card",{staticClass:"flex flex-col items-center justify-center",staticStyle:{"min-height":"300px"}},[s("div",[s("div",{directives:[{name:"show",rawName:"v-show",value:this.response.status,expression:"this.response.status"}],staticStyle:{"text-align":"center","margin-top":"20px",color:"green"}},[e._v(e._s(e.response.msg))]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!this.response.status,expression:"!this.response.status"}],staticStyle:{"text-align":"center","margin-top":"20px",color:"red"}},[e._v(e._s(e.response.msg))]),e._v(" "),s("div",{staticStyle:{"text-align":"center","margin-top":"20px",color:"red"}},[e.errors.length?s("p"):e._e(),e._l(e.errors,function(t){return s("div",[e._v(e._s(t))])}),e._v(" "),s("p")],2),e._v(" "),s("div",{staticClass:"flex border-b border-40"},[s("div",{staticClass:"w-2/8 px-22 py-8"},[s("label",{staticClass:"inline-block",attrs:{for:"mobile_number"}},[e._v("\n Mobile Number\n ")])]),e._v(" "),s("div",{staticClass:"w-2/2 px-8 py-6"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.mobile_number,expression:"mobile_number"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"mobile_number"},domProps:{value:e.mobile_number},on:{input:function(t){t.target.composing||(e.mobile_number=t.target.value)}}})])]),e._v(" "),s("div",{staticClass:"flex border-b border-40"},[s("div",{staticClass:"w-2/8 px-22 py-8"},[s("label",{staticClass:"inline-block",attrs:{for:"sms_text"}},[e._v("\n SMS Text\n ")])]),e._v(" "),s("div",{staticClass:"w-2/2 px-8 py-6"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sms_text,expression:"sms_text"}],staticClass:"w-full form-control form-input form-input-bordered",staticStyle:{height:"140px"},attrs:{cols:"30"},domProps:{value:e.sms_text},on:{input:function(t){t.target.composing||(e.sms_text=t.target.value)}}})])])]),e._v(" "),s("div",{staticClass:"px-4 py-2",attrs:{align:"center"}},[s("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:e.sendSMS}},[e._v("Send")])])])],1)},staticRenderFns:[]}},function(e,t){}]);