Total Complexity | 68 |
Complexity/F | 1.15 |
Lines of Code | 1005 |
Function Count | 59 |
Duplicated Lines | 272 |
Ratio | 27.06 % |
Changes | 0 |
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like public/js/resources_js_Pages_Equipment_editEquipment_vue.js often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
1 | (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Equipment_editEquipment_vue"],{ |
||
|
|||
2 | |||
3 | /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=script&lang=js&": |
||
4 | /*!*******************************************************************************************************************************************************************************************************!*\ |
||
5 | !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=script&lang=js& ***! |
||
6 | \*******************************************************************************************************************************************************************************************************/ |
||
7 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
8 | |||
9 | "use strict"; |
||
10 | __webpack_require__.r(__webpack_exports__); |
||
11 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
12 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
13 | /* harmony export */ }); |
||
14 | // |
||
15 | // |
||
16 | // |
||
17 | // |
||
18 | // |
||
19 | // |
||
20 | // |
||
21 | // |
||
22 | // |
||
23 | // |
||
24 | // |
||
25 | // |
||
26 | // |
||
27 | // |
||
28 | // |
||
29 | // |
||
30 | // |
||
31 | // |
||
32 | // |
||
33 | // |
||
34 | // |
||
35 | // |
||
36 | // |
||
37 | // |
||
38 | // |
||
39 | // |
||
40 | // |
||
41 | // |
||
42 | // |
||
43 | // |
||
44 | // |
||
45 | // |
||
46 | // |
||
47 | // |
||
48 | // |
||
49 | // |
||
50 | // |
||
51 | // |
||
52 | // |
||
53 | // |
||
54 | // |
||
55 | // |
||
56 | // |
||
57 | // |
||
58 | // |
||
59 | // |
||
60 | // |
||
61 | // |
||
62 | // |
||
63 | // |
||
64 | // |
||
65 | // |
||
66 | // |
||
67 | // |
||
68 | // |
||
69 | // |
||
70 | // |
||
71 | // |
||
72 | // |
||
73 | // |
||
74 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
||
75 | props: {// |
||
76 | }, |
||
77 | data: function data() { |
||
78 | return { |
||
79 | // |
||
80 | showNav: false |
||
81 | }; |
||
82 | }, |
||
83 | created: function created() {// |
||
84 | }, |
||
85 | mounted: function mounted() {// |
||
86 | }, |
||
87 | computed: { |
||
88 | app: function app() { |
||
89 | return this.$page.props.app; |
||
90 | }, |
||
91 | user: function user() { |
||
92 | return this.$page.props.user; |
||
93 | }, |
||
94 | navbarActive: function navbarActive() { |
||
95 | return this.showNav ? 'active' : ''; |
||
96 | }, |
||
97 | navbar: function navbar() { |
||
98 | return this.$page.props.navBar; |
||
99 | } |
||
100 | }, |
||
101 | watch: {// |
||
102 | }, |
||
103 | methods: {// |
||
104 | } |
||
105 | }); |
||
106 | |||
107 | /***/ }), |
||
108 | |||
109 | /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js&": |
||
110 | /*!*************************************************************************************************************************************************************************************************************************!*\ |
||
111 | !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js& ***! |
||
112 | \*************************************************************************************************************************************************************************************************************************/ |
||
113 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
114 | |||
115 | "use strict"; |
||
116 | __webpack_require__.r(__webpack_exports__); |
||
117 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
118 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
119 | /* harmony export */ }); |
||
120 | /* harmony import */ var _Layouts_app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Layouts/app */ "./resources/js/Layouts/app.vue"); |
||
121 | // |
||
122 | // |
||
123 | // |
||
124 | // |
||
125 | // |
||
126 | // |
||
127 | // |
||
128 | // |
||
129 | // |
||
130 | // |
||
131 | // |
||
132 | // |
||
133 | // |
||
134 | // |
||
135 | // |
||
136 | // |
||
137 | // |
||
138 | // |
||
139 | // |
||
140 | // |
||
141 | // |
||
142 | // |
||
143 | // |
||
144 | // |
||
145 | // |
||
146 | // |
||
147 | // |
||
148 | // |
||
149 | // |
||
150 | // |
||
151 | // |
||
152 | // |
||
153 | // |
||
154 | // |
||
155 | // |
||
156 | // |
||
157 | // |
||
158 | // |
||
159 | // |
||
160 | // |
||
161 | // |
||
162 | // |
||
163 | // |
||
164 | // |
||
165 | // |
||
166 | // |
||
167 | // |
||
168 | // |
||
169 | // |
||
170 | // |
||
171 | // |
||
172 | // |
||
173 | // |
||
174 | // |
||
175 | // |
||
176 | // |
||
177 | // |
||
178 | // |
||
179 | // |
||
180 | // |
||
181 | // |
||
182 | // |
||
183 | // |
||
184 | // |
||
185 | // |
||
186 | // |
||
187 | // |
||
188 | // |
||
189 | // |
||
190 | // |
||
191 | |||
192 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
||
193 | layout: _Layouts_app__WEBPACK_IMPORTED_MODULE_0__.default, |
||
194 | props: { |
||
195 | categories: { |
||
196 | type: Array, |
||
197 | required: true |
||
198 | }, |
||
199 | dataList: { |
||
200 | type: Array, |
||
201 | required: true |
||
202 | }, |
||
203 | equipment: { |
||
204 | type: Object, |
||
205 | required: true |
||
206 | } |
||
207 | }, |
||
208 | data: function data() { |
||
209 | return { |
||
210 | submitted: false, |
||
211 | form: { |
||
212 | cat_id: this.equipment.equipment_category.name, |
||
213 | name: this.equipment.name, |
||
214 | data_fields: [], |
||
215 | del_fields: [] |
||
216 | }, |
||
217 | data_list: this.dataList |
||
218 | }; |
||
219 | }, |
||
220 | created: function created() { |
||
221 | this.setValues(); |
||
222 | }, |
||
223 | methods: { |
||
224 | submitForm: function submitForm() { |
||
225 | this.submitted = true; |
||
226 | this.$inertia.put(route('admin.equipment.update', this.equipment.equip_id), this.form); |
||
227 | }, |
||
228 | delOption: function delOption(name, index) { |
||
229 | var _this = this; |
||
230 | |||
231 | if (name) { |
||
232 | this.$bvModal.msgBoxConfirm('This information already gathered will be deleted', { |
||
233 | title: 'Are you sure?', |
||
234 | size: 'sm', |
||
235 | buttonSize: 'sm', |
||
236 | okVariant: 'danger', |
||
237 | okTitle: 'YES', |
||
238 | cancelTitle: 'NO', |
||
239 | footerClass: 'p-2', |
||
240 | hideHeaderClose: false, |
||
241 | centered: true |
||
242 | }).then(function (value) { |
||
243 | if (value) { |
||
244 | _this.form.data_fields.splice(index, 1); |
||
245 | |||
246 | _this.form.del_fields.push(name); |
||
247 | |||
248 | _this.$bvModal.msgBoxOk('Settings will not be perminate until you save the changes', { |
||
249 | title: 'Save Changes to Commit', |
||
250 | size: 'sm', |
||
251 | buttonSize: 'sm', |
||
252 | footerClass: 'p-2', |
||
253 | hideHeaderClose: false, |
||
254 | centered: true |
||
255 | }); |
||
256 | } |
||
257 | }); |
||
258 | } else { |
||
259 | this.form.data_fields.splice(name, 1); |
||
260 | } |
||
261 | }, |
||
262 | setValues: function setValues() { |
||
263 | for (var i = 0; i < this.equipment.data_field_type.length; i++) { |
||
264 | this.form.data_fields.push(this.equipment.data_field_type[i].name); |
||
265 | this.data_list = this.arrayRemove(this.data_list, this.equipment.data_field_type[i].name); |
||
266 | } |
||
267 | }, |
||
268 | arrayRemove: function arrayRemove(arr, value) { |
||
269 | return arr.filter(function (el) { |
||
270 | return el != value; |
||
271 | }); |
||
272 | }, |
||
273 | isNewOption: function isNewOption(opt) { |
||
274 | var index = this.equipment.data_field_type.find(function (el) { |
||
275 | return el.name === opt; |
||
276 | }); |
||
277 | return index ? true : false; |
||
278 | }, |
||
279 | addRow: function addRow() { |
||
280 | this.form.data_fields.push(null); |
||
281 | }, |
||
282 | deleteEquipment: function deleteEquipment() { |
||
283 | var _this2 = this; |
||
284 | |||
285 | this.$bvModal.msgBoxConfirm('Are you sure you want to delete this Equipment?', { |
||
286 | title: 'This action canot be undone', |
||
287 | size: 'sm', |
||
288 | buttonSize: 'sm', |
||
289 | okVariant: 'danger', |
||
290 | okTitle: 'YES', |
||
291 | cancelTitle: 'NO', |
||
292 | footerClass: 'p-2', |
||
293 | hideHeaderClose: false, |
||
294 | centered: true |
||
295 | }).then(function (value) { |
||
296 | if (value) { |
||
297 | _this2.submitted = true; |
||
298 | |||
299 | _this2.$inertia["delete"](_this2.route('admin.equipment.destroy', _this2.equipment.equip_id)); |
||
300 | } |
||
301 | }); |
||
302 | } |
||
303 | } |
||
304 | }); |
||
305 | |||
306 | /***/ }), |
||
307 | |||
308 | /***/ "./resources/js/Layouts/app.vue": |
||
309 | /*!**************************************!*\ |
||
310 | !*** ./resources/js/Layouts/app.vue ***! |
||
311 | \**************************************/ |
||
312 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
313 | |||
314 | "use strict"; |
||
315 | __webpack_require__.r(__webpack_exports__); |
||
316 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
317 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
318 | /* harmony export */ }); |
||
319 | /* harmony import */ var _app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.vue?vue&type=template&id=191620ed& */ "./resources/js/Layouts/app.vue?vue&type=template&id=191620ed&"); |
||
320 | /* harmony import */ var _app_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app.vue?vue&type=script&lang=js& */ "./resources/js/Layouts/app.vue?vue&type=script&lang=js&"); |
||
321 | /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); |
||
322 | |||
323 | |||
324 | |||
325 | |||
326 | |||
327 | /* normalize component */ |
||
328 | ; |
||
329 | var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( |
||
330 | _app_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, |
||
331 | _app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.render, |
||
332 | _app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, |
||
333 | false, |
||
334 | null, |
||
335 | null, |
||
336 | null |
||
337 | |||
338 | ) |
||
339 | |||
340 | /* hot reload */ |
||
341 | if (false) { var api; } |
||
342 | component.options.__file = "resources/js/Layouts/app.vue" |
||
343 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); |
||
344 | |||
345 | /***/ }), |
||
346 | |||
347 | /***/ "./resources/js/Pages/Equipment/editEquipment.vue": |
||
348 | /*!********************************************************!*\ |
||
349 | !*** ./resources/js/Pages/Equipment/editEquipment.vue ***! |
||
350 | \********************************************************/ |
||
351 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
352 | |||
353 | "use strict"; |
||
354 | __webpack_require__.r(__webpack_exports__); |
||
355 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
356 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
357 | /* harmony export */ }); |
||
358 | /* harmony import */ var _editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./editEquipment.vue?vue&type=template&id=aa5de66c& */ "./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c&"); |
||
359 | /* harmony import */ var _editEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editEquipment.vue?vue&type=script&lang=js& */ "./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js&"); |
||
360 | /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js"); |
||
361 | |||
362 | |||
363 | |||
364 | |||
365 | |||
366 | /* normalize component */ |
||
367 | ; |
||
368 | var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( |
||
369 | _editEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, |
||
370 | _editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__.render, |
||
371 | _editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, |
||
372 | false, |
||
373 | null, |
||
374 | null, |
||
375 | null |
||
376 | |||
377 | ) |
||
378 | |||
379 | /* hot reload */ |
||
380 | if (false) { var api; } |
||
381 | component.options.__file = "resources/js/Pages/Equipment/editEquipment.vue" |
||
382 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); |
||
383 | |||
384 | /***/ }), |
||
385 | |||
386 | /***/ "./resources/js/Layouts/app.vue?vue&type=script&lang=js&": |
||
387 | /*!***************************************************************!*\ |
||
388 | !*** ./resources/js/Layouts/app.vue?vue&type=script&lang=js& ***! |
||
389 | \***************************************************************/ |
||
390 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
391 | |||
392 | "use strict"; |
||
393 | __webpack_require__.r(__webpack_exports__); |
||
394 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
395 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
396 | /* harmony export */ }); |
||
397 | /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_app_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./app.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=script&lang=js&"); |
||
398 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_app_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); |
||
399 | |||
400 | /***/ }), |
||
401 | |||
402 | /***/ "./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js&": |
||
403 | /*!*********************************************************************************!*\ |
||
404 | !*** ./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js& ***! |
||
405 | \*********************************************************************************/ |
||
406 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
407 | |||
408 | "use strict"; |
||
409 | __webpack_require__.r(__webpack_exports__); |
||
410 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
411 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
412 | /* harmony export */ }); |
||
413 | /* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_editEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./editEquipment.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=script&lang=js&"); |
||
414 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_editEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); |
||
415 | |||
416 | /***/ }), |
||
417 | |||
418 | /***/ "./resources/js/Layouts/app.vue?vue&type=template&id=191620ed&": |
||
419 | /*!*********************************************************************!*\ |
||
420 | !*** ./resources/js/Layouts/app.vue?vue&type=template&id=191620ed& ***! |
||
421 | \*********************************************************************/ |
||
422 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
423 | |||
424 | "use strict"; |
||
425 | __webpack_require__.r(__webpack_exports__); |
||
426 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
427 | /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.render), |
||
428 | /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) |
||
429 | /* harmony export */ }); |
||
430 | /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./app.vue?vue&type=template&id=191620ed& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=template&id=191620ed&"); |
||
431 | |||
432 | |||
433 | /***/ }), |
||
434 | |||
435 | /***/ "./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c&": |
||
436 | /*!***************************************************************************************!*\ |
||
437 | !*** ./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c& ***! |
||
438 | \***************************************************************************************/ |
||
439 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
440 | |||
441 | "use strict"; |
||
442 | __webpack_require__.r(__webpack_exports__); |
||
443 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
444 | /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__.render), |
||
445 | /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) |
||
446 | /* harmony export */ }); |
||
447 | /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_editEquipment_vue_vue_type_template_id_aa5de66c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./editEquipment.vue?vue&type=template&id=aa5de66c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c&"); |
||
448 | |||
449 | |||
450 | /***/ }), |
||
451 | |||
452 | /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=template&id=191620ed&": |
||
453 | /*!************************************************************************************************************************************************************************************************************!*\ |
||
454 | !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Layouts/app.vue?vue&type=template&id=191620ed& ***! |
||
455 | \************************************************************************************************************************************************************************************************************/ |
||
456 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
457 | |||
458 | "use strict"; |
||
459 | __webpack_require__.r(__webpack_exports__); |
||
460 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
461 | /* harmony export */ "render": () => (/* binding */ render), |
||
462 | /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) |
||
463 | /* harmony export */ }); |
||
464 | var render = function() { |
||
465 | var _vm = this |
||
466 | var _h = _vm.$createElement |
||
467 | var _c = _vm._self._c || _h |
||
468 | return _c("div", { staticClass: "app-layout" }, [ |
||
469 | _c("nav", { staticClass: "navbar top-navbar fixed-top" }, [ |
||
470 | _c( |
||
471 | "div", |
||
472 | { staticClass: "navbar-logo-wrapper d-flex" }, |
||
473 | [ |
||
474 | _c( |
||
475 | "inertia-link", |
||
476 | { |
||
477 | staticClass: "navbar-logo", |
||
478 | attrs: { href: _vm.route("dashboard") } |
||
479 | }, |
||
480 | [ |
||
481 | _c("img", { |
||
482 | staticClass: "mr-2", |
||
483 | attrs: { src: _vm.app.logo, alt: _vm.app.name } |
||
484 | }) |
||
485 | ] |
||
486 | ) |
||
487 | ], |
||
488 | 1 |
||
489 | ), |
||
490 | _vm._v(" "), |
||
491 | _c("div", { staticClass: "navbar-brand d-none d-md-flex" }, [ |
||
492 | _c("h2", [_vm._v(_vm._s(_vm.app.name))]) |
||
493 | ]), |
||
494 | _vm._v(" "), |
||
495 | _c( |
||
496 | "div", |
||
497 | { staticClass: "navbar-data" }, |
||
498 | [ |
||
499 | _c( |
||
500 | "inertia-link", |
||
501 | { |
||
502 | directives: [ |
||
503 | { |
||
504 | name: "b-tooltip", |
||
505 | rawName: "v-b-tooltip.hover", |
||
506 | modifiers: { hover: true } |
||
507 | } |
||
508 | ], |
||
509 | staticClass: "text-muted", |
||
510 | attrs: { |
||
511 | href: _vm.route("about"), |
||
512 | title: "About " + _vm.app.name |
||
513 | } |
||
514 | }, |
||
515 | [_c("i", { staticClass: "fas fa-info-circle" })] |
||
516 | ), |
||
517 | _vm._v(" "), |
||
518 | _c( |
||
519 | "b-dropdown", |
||
520 | { |
||
521 | directives: [ |
||
522 | { |
||
523 | name: "b-tooltip", |
||
524 | rawName: "v-b-tooltip.hover", |
||
525 | modifiers: { hover: true } |
||
526 | } |
||
527 | ], |
||
528 | attrs: { variant: "link", title: "Account" }, |
||
529 | scopedSlots: _vm._u([ |
||
530 | { |
||
531 | key: "button-content", |
||
532 | fn: function() { |
||
533 | return [ |
||
534 | _c("b-avatar", { |
||
535 | attrs: { variant: "warning", text: _vm.user.initials } |
||
536 | }) |
||
537 | ] |
||
538 | }, |
||
539 | proxy: true |
||
540 | } |
||
541 | ]) |
||
542 | }, |
||
543 | [ |
||
544 | _vm._v(" "), |
||
545 | _c( |
||
546 | "inertia-link", |
||
547 | { |
||
548 | attrs: { |
||
549 | as: "b-dropdown-item", |
||
550 | href: _vm.route("settings.index") |
||
551 | } |
||
552 | }, |
||
553 | [_c("i", { staticClass: "fas fa-cog" }), _vm._v(" Settings")] |
||
554 | ), |
||
555 | _vm._v(" "), |
||
556 | _c( |
||
557 | "inertia-link", |
||
558 | { |
||
559 | attrs: { |
||
560 | as: "b-dropdown-item", |
||
561 | href: _vm.route("password.edit", "change") |
||
562 | } |
||
563 | }, |
||
564 | [ |
||
565 | _c("i", { staticClass: "fas fa-key" }), |
||
566 | _vm._v(" Change Password") |
||
567 | ] |
||
568 | ), |
||
569 | _vm._v(" "), |
||
570 | _c("b-dropdown-divider"), |
||
571 | _vm._v(" "), |
||
572 | _c( |
||
573 | "inertia-link", |
||
574 | { |
||
575 | attrs: { |
||
576 | as: "b-dropdown-item", |
||
577 | method: "post", |
||
578 | href: _vm.route("logout") |
||
579 | } |
||
580 | }, |
||
581 | [ |
||
582 | _c("i", { staticClass: "fas fa-sign-out-alt" }), |
||
583 | _vm._v(" Logout") |
||
584 | ] |
||
585 | ) |
||
586 | ], |
||
587 | 1 |
||
588 | ), |
||
589 | _vm._v(" "), |
||
590 | _c( |
||
591 | "button", |
||
592 | { |
||
593 | staticClass: "navbar-toggler d-lg-none", |
||
594 | attrs: { type: "button" }, |
||
595 | on: { |
||
596 | click: function($event) { |
||
597 | _vm.showNav = !_vm.showNav |
||
598 | } |
||
599 | } |
||
600 | }, |
||
601 | [_c("i", { staticClass: "fas fa-bars" })] |
||
602 | ) |
||
603 | ], |
||
604 | 1 |
||
605 | ) |
||
606 | ]), |
||
607 | _vm._v(" "), |
||
608 | _c("div", { staticClass: "container-fluid page-body-wrapper" }, [ |
||
609 | _c( |
||
610 | "nav", |
||
611 | { |
||
612 | staticClass: "sidebar sidebar-nav", |
||
613 | class: _vm.navbarActive, |
||
614 | attrs: { id: "side-nav" } |
||
615 | }, |
||
616 | [ |
||
617 | _c( |
||
618 | "ul", |
||
619 | { staticClass: "nav" }, |
||
620 | _vm._l(_vm.navbar, function(l) { |
||
621 | return _c( |
||
622 | "li", |
||
623 | { key: l.name, staticClass: "nav-item" }, |
||
624 | [ |
||
625 | _c( |
||
626 | "inertia-link", |
||
627 | { staticClass: "nav-link", attrs: { href: l.route } }, |
||
628 | [ |
||
629 | _c("i", { staticClass: "menu-icon", class: l.icon }), |
||
630 | _vm._v(" "), |
||
631 | _c("span", { staticClass: "menu-title" }, [ |
||
632 | _vm._v(_vm._s(l.name)) |
||
633 | ]) |
||
634 | ] |
||
635 | ) |
||
636 | ], |
||
637 | 1 |
||
638 | ) |
||
639 | }), |
||
640 | 0 |
||
641 | ) |
||
642 | ] |
||
643 | ), |
||
644 | _vm._v(" "), |
||
645 | _c( |
||
646 | "div", |
||
647 | { staticClass: "content" }, |
||
648 | [ |
||
649 | _c( |
||
650 | "div", |
||
651 | { staticClass: "content-wrapper" }, |
||
652 | [ |
||
653 | _c( |
||
654 | "b-alert", |
||
655 | { |
||
656 | attrs: { |
||
657 | variant: _vm.$page.props.flash.type, |
||
658 | show: _vm.$page.props.flash.message ? 30 : false |
||
659 | } |
||
660 | }, |
||
661 | [ |
||
662 | _c("p", { staticClass: "text-center" }, [ |
||
663 | _vm._v(_vm._s(_vm.$page.props.flash.message)) |
||
664 | ]) |
||
665 | ] |
||
666 | ), |
||
667 | _vm._v(" "), |
||
668 | _vm._t("default") |
||
669 | ], |
||
670 | 2 |
||
671 | ), |
||
672 | _vm._v(" "), |
||
673 | _c("axios-error"), |
||
674 | _vm._v(" "), |
||
675 | _c("footer", { staticClass: " footer page-footer" }, [ |
||
676 | _c( |
||
677 | "div", |
||
678 | { |
||
679 | staticClass: |
||
680 | "d-sm-flex justify-content-center justify-content-sm-between" |
||
681 | }, |
||
682 | [ |
||
683 | _vm._m(0), |
||
684 | _vm._v(" "), |
||
685 | _c( |
||
686 | "span", |
||
687 | { |
||
688 | staticClass: |
||
689 | "text-muted float-none float-sm-right d-block mt-1 mt-sm-0 text-center" |
||
690 | }, |
||
691 | [_vm._v(_vm._s(_vm.app.version))] |
||
692 | ) |
||
693 | ] |
||
694 | ) |
||
695 | ]) |
||
696 | ], |
||
697 | 1 |
||
698 | ) |
||
699 | ]) |
||
700 | ]) |
||
701 | } |
||
702 | var staticRenderFns = [ |
||
703 | function() { |
||
704 | var _vm = this |
||
705 | var _h = _vm.$createElement |
||
706 | var _c = _vm._self._c || _h |
||
707 | return _c( |
||
708 | "span", |
||
709 | { |
||
710 | staticClass: |
||
711 | "text-muted text-center text-sm-left d-block d-sm-inline-block" |
||
712 | }, |
||
713 | [ |
||
714 | _vm._v("Copyright © 2016-2021"), |
||
715 | _c("span", { staticClass: "d-none d-md-inline" }, [ |
||
716 | _vm._v(" Butcherman - All rights reserved.") |
||
717 | ]) |
||
718 | ] |
||
719 | ) |
||
720 | } |
||
721 | ] |
||
722 | render._withStripped = true |
||
723 | |||
724 | |||
725 | |||
726 | /***/ }), |
||
727 | |||
728 | /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c&": |
||
729 | /*!******************************************************************************************************************************************************************************************************************************!*\ |
||
730 | !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Equipment/editEquipment.vue?vue&type=template&id=aa5de66c& ***! |
||
731 | \******************************************************************************************************************************************************************************************************************************/ |
||
732 | View Code Duplication | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
733 | |||
734 | "use strict"; |
||
735 | __webpack_require__.r(__webpack_exports__); |
||
736 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
737 | /* harmony export */ "render": () => (/* binding */ render), |
||
738 | /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) |
||
739 | /* harmony export */ }); |
||
740 | var render = function() { |
||
741 | var _vm = this |
||
742 | var _h = _vm.$createElement |
||
743 | var _c = _vm._self._c || _h |
||
744 | return _c("div", [ |
||
745 | _vm._m(0), |
||
746 | _vm._v(" "), |
||
747 | _c("div", { staticClass: "row grid-margin justify-content-center" }, [ |
||
748 | _c("div", { staticClass: "col-md-6" }, [ |
||
749 | _c("div", { staticClass: "card" }, [ |
||
750 | _c( |
||
751 | "div", |
||
752 | { staticClass: "card-body" }, |
||
753 | [ |
||
754 | _c("ValidationObserver", { |
||
755 | scopedSlots: _vm._u([ |
||
756 | { |
||
757 | key: "default", |
||
758 | fn: function(ref) { |
||
759 | var handleSubmit = ref.handleSubmit |
||
760 | return [ |
||
761 | _c( |
||
762 | "b-form", |
||
763 | { |
||
764 | attrs: { novalidate: "" }, |
||
765 | on: { |
||
766 | submit: function($event) { |
||
767 | $event.preventDefault() |
||
768 | return handleSubmit(_vm.submitForm) |
||
769 | } |
||
770 | } |
||
771 | }, |
||
772 | [ |
||
773 | _c("dropdown-input", { |
||
774 | attrs: { |
||
775 | label: "Select Category", |
||
776 | name: "category", |
||
777 | "text-field": "name", |
||
778 | "value-field": "name", |
||
779 | placeholder: |
||
780 | "Select A Category This Equipment Belongs To", |
||
781 | rules: "required", |
||
782 | options: _vm.categories |
||
783 | }, |
||
784 | model: { |
||
785 | value: _vm.form.cat_id, |
||
786 | callback: function($$v) { |
||
787 | _vm.$set(_vm.form, "cat_id", $$v) |
||
788 | }, |
||
789 | expression: "form.cat_id" |
||
790 | } |
||
791 | }), |
||
792 | _vm._v(" "), |
||
793 | _c("text-input", { |
||
794 | attrs: { |
||
795 | label: "Equipment Name", |
||
796 | rules: "required|no-special", |
||
797 | name: "name", |
||
798 | placeholder: |
||
799 | "Enter A Unique Name for the Equipment" |
||
800 | }, |
||
801 | model: { |
||
802 | value: _vm.form.name, |
||
803 | callback: function($$v) { |
||
804 | _vm.$set(_vm.form, "name", $$v) |
||
805 | }, |
||
806 | expression: "form.name" |
||
807 | } |
||
808 | }), |
||
809 | _vm._v(" "), |
||
810 | _c("fieldset", [ |
||
811 | _c("label", [ |
||
812 | _vm._v("Customer Information to Gather:") |
||
813 | ]) |
||
814 | ]), |
||
815 | _vm._v(" "), |
||
816 | _c( |
||
817 | "draggable", |
||
818 | { |
||
819 | attrs: { |
||
820 | animation: "200", |
||
821 | list: _vm.form.data_fields |
||
822 | } |
||
823 | }, |
||
824 | _vm._l(_vm.form.data_fields, function( |
||
825 | name, |
||
826 | index |
||
827 | ) { |
||
828 | return _c( |
||
829 | "b-input-group", |
||
830 | { key: index, staticClass: "my-2" }, |
||
831 | [ |
||
832 | _c( |
||
833 | "b-input-group-prepend", |
||
834 | { |
||
835 | staticClass: "align-middle d-block mr-1" |
||
836 | }, |
||
837 | [ |
||
838 | _c("i", { |
||
839 | directives: [ |
||
840 | { |
||
841 | name: "b-tooltip", |
||
842 | rawName: "v-b-tooltip.hover", |
||
843 | modifiers: { hover: true } |
||
844 | } |
||
845 | ], |
||
846 | staticClass: |
||
847 | "fas fa-sort align-middle pointer", |
||
848 | attrs: { |
||
849 | title: "Drag to Change Order" |
||
850 | } |
||
851 | }) |
||
852 | ] |
||
853 | ), |
||
854 | _vm._v(" "), |
||
855 | _c("b-form-input", { |
||
856 | attrs: { |
||
857 | type: "text", |
||
858 | list: "data-list", |
||
859 | placeholder: |
||
860 | "Input information to gather for the customer", |
||
861 | autocomplete: "false", |
||
862 | disabled: _vm.isNewOption(name) |
||
863 | }, |
||
864 | model: { |
||
865 | value: _vm.form.data_fields[index], |
||
866 | callback: function($$v) { |
||
867 | _vm.$set( |
||
868 | _vm.form.data_fields, |
||
869 | index, |
||
870 | $$v |
||
871 | ) |
||
872 | }, |
||
873 | expression: "form.data_fields[index]" |
||
874 | } |
||
875 | }), |
||
876 | _vm._v(" "), |
||
877 | _c( |
||
878 | "b-input-group-append", |
||
879 | { |
||
880 | staticClass: "align-middle d-block ml-1" |
||
881 | }, |
||
882 | [ |
||
883 | _c("i", { |
||
884 | directives: [ |
||
885 | { |
||
886 | name: "b-tooltip", |
||
887 | rawName: "v-b-tooltip.hover", |
||
888 | modifiers: { hover: true } |
||
889 | } |
||
890 | ], |
||
891 | staticClass: |
||
892 | "far fa-times-circle text-danger pointer", |
||
893 | attrs: { |
||
894 | title: "Remove this Option" |
||
895 | }, |
||
896 | on: { |
||
897 | click: function($event) { |
||
898 | return _vm.delOption(name, index) |
||
899 | } |
||
900 | } |
||
901 | }) |
||
902 | ] |
||
903 | ) |
||
904 | ], |
||
905 | 1 |
||
906 | ) |
||
907 | }), |
||
908 | 1 |
||
909 | ), |
||
910 | _vm._v(" "), |
||
911 | _c( |
||
912 | "div", |
||
913 | [ |
||
914 | _c( |
||
915 | "b-button", |
||
916 | { |
||
917 | staticClass: "float-right my-2", |
||
918 | attrs: { variant: "warning" }, |
||
919 | on: { click: _vm.addRow } |
||
920 | }, |
||
921 | [ |
||
922 | _c("i", { staticClass: "fas fa-plus" }), |
||
923 | _vm._v(" Add Row") |
||
924 | ] |
||
925 | ) |
||
926 | ], |
||
927 | 1 |
||
928 | ), |
||
929 | _vm._v(" "), |
||
930 | _c( |
||
931 | "datalist", |
||
932 | { attrs: { id: "data-list" } }, |
||
933 | _vm._l(_vm.data_list, function(data) { |
||
934 | return _c("option", { key: data }, [ |
||
935 | _vm._v(_vm._s(data)) |
||
936 | ]) |
||
937 | }), |
||
938 | 0 |
||
939 | ), |
||
940 | _vm._v(" "), |
||
941 | _c("submit-button", { |
||
942 | attrs: { |
||
943 | button_text: "Save Changes", |
||
944 | submitted: _vm.submitted |
||
945 | } |
||
946 | }) |
||
947 | ], |
||
948 | 1 |
||
949 | ) |
||
950 | ] |
||
951 | } |
||
952 | } |
||
953 | ]) |
||
954 | }) |
||
955 | ], |
||
956 | 1 |
||
957 | ) |
||
958 | ]) |
||
959 | ]) |
||
960 | ]), |
||
961 | _vm._v(" "), |
||
962 | _c("div", { staticClass: "row gris-margin justify-content-center" }, [ |
||
963 | _c("div", { staticClass: "col-md-4" }, [ |
||
964 | _c("div", { staticClass: "card" }, [ |
||
965 | _c( |
||
966 | "div", |
||
967 | { staticClass: "card-body text-center" }, |
||
968 | [ |
||
969 | _c( |
||
970 | "b-button", |
||
971 | { |
||
972 | attrs: { variant: "danger", block: "" }, |
||
973 | on: { click: _vm.deleteEquipment } |
||
974 | }, |
||
975 | [_vm._v("Delete Equipment")] |
||
976 | ) |
||
977 | ], |
||
978 | 1 |
||
979 | ) |
||
980 | ]) |
||
981 | ]) |
||
982 | ]) |
||
983 | ]) |
||
984 | } |
||
985 | var staticRenderFns = [ |
||
986 | function() { |
||
987 | var _vm = this |
||
988 | var _h = _vm.$createElement |
||
989 | var _c = _vm._self._c || _h |
||
990 | return _c("div", { staticClass: "row grid-margin" }, [ |
||
991 | _c("div", { staticClass: "col-md-12" }, [ |
||
992 | _c("h4", { staticClass: "text-center text-md-left" }, [ |
||
993 | _vm._v("Equipment") |
||
994 | ]) |
||
995 | ]) |
||
996 | ]) |
||
997 | } |
||
998 | ] |
||
999 | render._withStripped = true |
||
1000 | |||
1001 | |||
1002 | |||
1003 | /***/ }) |
||
1004 | |||
1005 | }]); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.