PHP Classes

File: dist/js/tool.js

Recommend this page to a friend!
  Classes of Naif Alshaye   Nova PHP Push Notifications   dist/js/tool.js   Download  
File: dist/js/tool.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nova PHP Push Notifications
Laravel based Web app to send push notifications
Author: By
Last change:
Date: 5 years ago
Size: 13,497 bytes
 

Contents

Class file image Download
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(1); module.exports = __webpack_require__(11); /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { Nova.booting(function (Vue, router) { router.addRoutes([{ name: 'nova-push-notification', path: '/nova-push-notification', component: __webpack_require__(2) }]); }); /***/ }), /* 2 */ /***/ (function(module, exports, __webpack_require__) { var disposed = false var normalizeComponent = __webpack_require__(8) /* script */ var __vue_script__ = __webpack_require__(9) /* template */ var __vue_template__ = __webpack_require__(10) /* template functional */ var __vue_template_functional__ = false /* styles */ var __vue_styles__ = null /* scopeId */ var __vue_scopeId__ = null /* moduleIdentifier (server only) */ var __vue_module_identifier__ = null var Component = normalizeComponent( __vue_script__, __vue_template__, __vue_template_functional__, __vue_styles__, __vue_scopeId__, __vue_module_identifier__ ) Component.options.__file = "resources/js/components/Tool.vue" /* hot reload */ if (false) {(function () { var hotAPI = require("vue-hot-reload-api") hotAPI.install(require("vue"), false) if (!hotAPI.compatible) return module.hot.accept() if (!module.hot.data) { hotAPI.createRecord("data-v-68ff5483", Component.options) } else { hotAPI.reload("data-v-68ff5483", Component.options) } module.hot.dispose(function (data) { disposed = true }) })()} module.exports = Component.exports /***/ }), /* 3 */, /* 4 */, /* 5 */, /* 6 */, /* 7 */, /* 8 */ /***/ (function(module, exports) { /* globals __VUE_SSR_CONTEXT__ */ // IMPORTANT: Do NOT use ES2015 features in this file. // This module is a runtime utility for cleaner component module output and will // be included in the final webpack user bundle. module.exports = function normalizeComponent ( rawScriptExports, compiledTemplate, functionalTemplate, injectStyles, scopeId, moduleIdentifier /* server only */ ) { var esModule var scriptExports = rawScriptExports = rawScriptExports || {} // ES6 modules interop var type = typeof rawScriptExports.default if (type === 'object' || type === 'function') { esModule = rawScriptExports scriptExports = rawScriptExports.default } // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (compiledTemplate) { options.render = compiledTemplate.render options.staticRenderFns = compiledTemplate.staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = injectStyles } if (hook) { var functional = options.functional var existing = functional ? options.render : options.beforeCreate if (!functional) { // inject component registration as beforeCreate hook options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } else { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file options.render = function renderWithStyleInjection (h, context) { hook.call(context) return existing(h, context) } } } return { esModule: esModule, exports: scriptExports, options: options } } /***/ }), /* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ data: function data() { return { heading: "", text: "", errors: [], recipients: 0 }; }, mounted: function mounted() {}, methods: { sendSMS: function sendSMS() { var _this = this; Nova.request().post('/nova-vendor/nova-push-notification/send', { heading: this.heading, text: this.text }).then(function (response) { if (response.data.errors) { _this.errors = response.data.errors; } else if (response.data.id && response.data.recipients > 0) { _this.recipients = 'Push Notifications Sent Successfully to ' + response.data.recipients + ' Recipients'; _this.heading = ''; _this.text = ''; } }); } } }); /***/ }), /* 10 */ /***/ (function(module, exports, __webpack_require__) { var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", [ _c("heading", { staticClass: "mb-6" }, [_vm._v("Push Notifications")]), _vm._v(" "), _c( "card", { staticClass: "flex flex-col items-center justify-center", staticStyle: { "min-height": "300px" } }, [ _c("div", [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.recipients, expression: "recipients" } ], staticStyle: { "text-align": "center", "margin-top": "20px", color: "green" } }, [_vm._v(_vm._s(_vm.recipients))] ), _vm._v(" "), _c( "div", { staticStyle: { "text-align": "center", "margin-top": "20px", color: "red" } }, [ _vm.errors.length ? _c("p") : _vm._e(), _vm._l(_vm.errors, function(error) { return _c("div", [_vm._v(_vm._s(error))]) }), _vm._v(" "), _c("p") ], 2 ), _vm._v(" "), _c("div", { staticClass: "flex border-b border-40" }, [ _c("div", { staticClass: "w-2/8 px-22 py-8" }, [ _c( "label", { staticClass: "inline-block", attrs: { for: "heading" } }, [ _vm._v( "\n Heading\n " ) ] ) ]), _vm._v(" "), _c("div", { staticClass: "w-2/2 px-8 py-6" }, [ _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.heading, expression: "heading" } ], staticClass: "w-full form-control form-input form-input-bordered", staticStyle: { width: "280px !important", "margin-left": "30px" }, attrs: { id: "heading", type: "text" }, domProps: { value: _vm.heading }, on: { input: function($event) { if ($event.target.composing) { return } _vm.heading = $event.target.value } } }) ]) ]), _vm._v(" "), _c("div", { staticClass: "flex border-b border-40" }, [ _c("div", { staticClass: "w-2/2 px-8 py-6" }, [ _c( "label", { staticClass: "inline-block", attrs: { for: "text" } }, [ _vm._v( "\n Text\n " ) ] ) ]), _vm._v(" "), _c("div", { staticClass: "w-2/2 px-8 py-6" }, [ _c("textarea", { directives: [ { name: "model", rawName: "v-model", value: _vm.text, expression: "text" } ], staticClass: "w-full form-control form-input form-input-bordered", staticStyle: { height: "140px" }, attrs: { id: "text", cols: "30" }, domProps: { value: _vm.text }, on: { input: function($event) { if ($event.target.composing) { return } _vm.text = $event.target.value } } }) ]) ]) ]), _vm._v(" "), _c("div", { staticClass: "px-4 py-2", attrs: { align: "center" } }, [ _c( "button", { staticClass: "ml-auto btn btn-default btn-primary mr-3", on: { click: _vm.sendSMS } }, [_vm._v("Send")] ) ]) ] ) ], 1 ) } var staticRenderFns = [] render._withStripped = true module.exports = { render: render, staticRenderFns: staticRenderFns } if (false) { module.hot.accept() if (module.hot.data) { require("vue-hot-reload-api") .rerender("data-v-68ff5483", module.exports) } } /***/ }), /* 11 */ /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }) /******/ ]);