From 36274292c7cf70636992a4838d6dc7d5fa647118 Mon Sep 17 00:00:00 2001 From: Michiel Kempen Date: Thu, 28 Nov 2019 09:20:11 +0100 Subject: [PATCH] compile assets --- dist/js/field.js | 423 +---------------------------------------------- 1 file changed, 1 insertion(+), 422 deletions(-) diff --git a/dist/js/field.js b/dist/js/field.js index 054c8ac..b41e015 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1,422 +1 @@ -/******/ (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__) { - -module.exports = __webpack_require__(1); - - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -Nova.booting(function (Vue, router) { - Vue.component('index-order-field', __webpack_require__(2)); -}); - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -var disposed = false -var normalizeComponent = __webpack_require__(3) -/* script */ -var __vue_script__ = __webpack_require__(4) -/* template */ -var __vue_template__ = __webpack_require__(5) -/* 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/IndexField.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-9e63f81a", Component.options) - } else { - hotAPI.reload("data-v-9e63f81a", Component.options) - } - module.hot.dispose(function (data) { - disposed = true - }) -})()} - -module.exports = Component.exports - - -/***/ }), -/* 3 */ -/***/ (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 - } -} - - -/***/ }), -/* 4 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ __webpack_exports__["default"] = ({ - props: ["resourceName", "field"], - computed: { - resourceId: function resourceId() { - return this.$parent.resource.id.value; - }, - parentList: function parentList() { - return this.$parent.$parent.$parent.$parent.$parent.$parent; - } - }, - methods: { - reorderResource: function reorderResource(direction) { - var _this = this; - - Nova.request().post("/nova-vendor/michielkempen/nova-order-field/" + this.resourceName, { - direction: direction, - resource: this.resourceName, - resourceId: this.resourceId, - viaResource: this.field.viaResource, - viaResourceId: this.field.viaResourceId, - viaRelationship: this.field.viaRelationship - }).then(function () { - _this.$toasted.show(_this.__("The new order has been set!"), { - type: "success" - }); - - _this.parentList.getResources(); - }); - } - } -}); - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -var render = function() { - var _vm = this - var _h = _vm.$createElement - var _c = _vm._self._c || _h - return _c("div", { staticClass: "flex items-center" }, [ - !_vm.field.last - ? _c( - "button", - { - staticClass: "cursor-pointer text-70 hover:text-primary mr-3", - on: { - click: function($event) { - return _vm.reorderResource("down") - } - } - }, - [ - _c( - "svg", - { - staticClass: "fill-white", - attrs: { - xmlns: "http://www.w3.org/2000/svg", - height: "22", - width: "22", - stroke: "currentColor", - "stroke-linecap": "round", - "stroke-linejoin": "round", - "stroke-width": "2", - viewBox: "0 0 24 24" - } - }, - [ - _c("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), - _vm._v(" "), - _c("polyline", { attrs: { points: "8 12 12 16 16 12" } }), - _vm._v(" "), - _c("line", { attrs: { x1: "12", x2: "12", y1: "8", y2: "16" } }) - ] - ) - ] - ) - : _vm._e(), - _vm._v(" "), - !_vm.field.first - ? _c( - "button", - { - staticClass: "cursor-pointer text-70 hover:text-primary", - on: { - click: function($event) { - return _vm.reorderResource("up") - } - } - }, - [ - _c( - "svg", - { - staticClass: "fill-white", - attrs: { - xmlns: "http://www.w3.org/2000/svg", - height: "22", - width: "22", - stroke: "currentColor", - "stroke-linecap": "round", - "stroke-linejoin": "round", - "stroke-width": "2", - viewBox: "0 0 24 24" - } - }, - [ - _c("circle", { attrs: { cx: "12", cy: "12", r: "10" } }), - _vm._v(" "), - _c("polyline", { attrs: { points: "16 12 12 8 8 12" } }), - _vm._v(" "), - _c("line", { attrs: { x1: "12", x2: "12", y1: "16", y2: "8" } }) - ] - ) - ] - ) - : _vm._e() - ]) -} -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-9e63f81a", module.exports) - } -} - -/***/ }) -/******/ ]); \ No newline at end of file +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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="",r(r.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){Nova.booting(function(e,t){e.component("index-order-field",r(2))})},function(e,t,r){var n=r(3)(r(4),r(5),!1,null,null,null);e.exports=n.exports},function(e,t){e.exports=function(e,t,r,n,o,s){var i,c=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(i=e,c=e.default);var a,l="function"==typeof c?c.options:c;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o),s?(a=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(s)},l._ssrRegister=a):n&&(a=n),a){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=a,l.render=function(e,t){return a.call(t),p(e,t)}):l.beforeCreate=p?[].concat(p,a):[a]}return{esModule:i,exports:c,options:l}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["resourceName","field"],computed:{resourceId:function(){return this.$parent.resource.id.value},parentList:function(){return this.$parent.$parent.$parent.$parent.$parent.$parent}},methods:{reorderResource:function(e){var t=this;Nova.request().post("/nova-vendor/michielkempen/nova-order-field/"+this.resourceName,{direction:e,resource:this.resourceName,resourceId:this.resourceId,viaResource:this.field.viaResource||null,viaResourceId:this.field.viaResourceId||null,viaRelationship:this.field.viaRelationship||null}).then(function(){t.$toasted.show(t.__("The new order has been set!"),{type:"success"}),t.parentList.getResources()})}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex items-center"},[e.field.last?e._e():r("button",{staticClass:"cursor-pointer text-70 hover:text-primary mr-3",on:{click:function(t){e.reorderResource("down")}}},[r("svg",{staticClass:"fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",height:"22",width:"22",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"10"}}),e._v(" "),r("polyline",{attrs:{points:"8 12 12 16 16 12"}}),e._v(" "),r("line",{attrs:{x1:"12",x2:"12",y1:"8",y2:"16"}})])]),e._v(" "),e.field.first?e._e():r("button",{staticClass:"cursor-pointer text-70 hover:text-primary",on:{click:function(t){e.reorderResource("up")}}},[r("svg",{staticClass:"fill-white",attrs:{xmlns:"http://www.w3.org/2000/svg",height:"22",width:"22",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[r("circle",{attrs:{cx:"12",cy:"12",r:"10"}}),e._v(" "),r("polyline",{attrs:{points:"16 12 12 8 8 12"}}),e._v(" "),r("line",{attrs:{x1:"12",x2:"12",y1:"16",y2:"8"}})])])])},staticRenderFns:[]}}]); \ No newline at end of file