Total Complexity | 54 |
Complexity/F | 1.08 |
Lines of Code | 893 |
Function Count | 50 |
Duplicated Lines | 250 |
Ratio | 28 % |
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_createEquipment_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_createEquipment_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/createEquipment.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/createEquipment.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 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ |
||
183 | layout: _Layouts_app__WEBPACK_IMPORTED_MODULE_0__.default, |
||
184 | props: { |
||
185 | categories: { |
||
186 | type: Array, |
||
187 | required: true |
||
188 | }, |
||
189 | dataList: { |
||
190 | type: Array, |
||
191 | required: true |
||
192 | } |
||
193 | }, |
||
194 | data: function data() { |
||
195 | return { |
||
196 | submitted: false, |
||
197 | form: { |
||
198 | cat_id: '', |
||
199 | name: '', |
||
200 | data_fields: [] |
||
201 | }, |
||
202 | fields: 5 |
||
203 | }; |
||
204 | }, |
||
205 | methods: { |
||
206 | submitForm: function submitForm() { |
||
207 | this.$inertia.post(route('admin.equipment.store'), this.form); |
||
208 | }, |
||
209 | delOption: function delOption(index) { |
||
210 | this.form.data_fields.splice(index, 1); |
||
211 | this.fields--; |
||
212 | } |
||
213 | } |
||
214 | }); |
||
215 | |||
216 | /***/ }), |
||
217 | |||
218 | /***/ "./resources/js/Layouts/app.vue": |
||
219 | /*!**************************************!*\ |
||
220 | !*** ./resources/js/Layouts/app.vue ***! |
||
221 | \**************************************/ |
||
222 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
223 | |||
224 | "use strict"; |
||
225 | __webpack_require__.r(__webpack_exports__); |
||
226 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
227 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
228 | /* harmony export */ }); |
||
229 | /* 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&"); |
||
230 | /* 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&"); |
||
231 | /* 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"); |
||
232 | |||
233 | |||
234 | |||
235 | |||
236 | |||
237 | /* normalize component */ |
||
238 | ; |
||
239 | var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( |
||
240 | _app_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, |
||
241 | _app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.render, |
||
242 | _app_vue_vue_type_template_id_191620ed___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, |
||
243 | false, |
||
244 | null, |
||
245 | null, |
||
246 | null |
||
247 | |||
248 | ) |
||
249 | |||
250 | /* hot reload */ |
||
251 | if (false) { var api; } |
||
252 | component.options.__file = "resources/js/Layouts/app.vue" |
||
253 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); |
||
254 | |||
255 | /***/ }), |
||
256 | |||
257 | /***/ "./resources/js/Pages/Equipment/createEquipment.vue": |
||
258 | /*!**********************************************************!*\ |
||
259 | !*** ./resources/js/Pages/Equipment/createEquipment.vue ***! |
||
260 | \**********************************************************/ |
||
261 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
262 | |||
263 | "use strict"; |
||
264 | __webpack_require__.r(__webpack_exports__); |
||
265 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
266 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
267 | /* harmony export */ }); |
||
268 | /* harmony import */ var _createEquipment_vue_vue_type_template_id_2ea88798___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createEquipment.vue?vue&type=template&id=2ea88798& */ "./resources/js/Pages/Equipment/createEquipment.vue?vue&type=template&id=2ea88798&"); |
||
269 | /* harmony import */ var _createEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createEquipment.vue?vue&type=script&lang=js& */ "./resources/js/Pages/Equipment/createEquipment.vue?vue&type=script&lang=js&"); |
||
270 | /* 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"); |
||
271 | |||
272 | |||
273 | |||
274 | |||
275 | |||
276 | /* normalize component */ |
||
277 | ; |
||
278 | var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__.default)( |
||
279 | _createEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__.default, |
||
280 | _createEquipment_vue_vue_type_template_id_2ea88798___WEBPACK_IMPORTED_MODULE_0__.render, |
||
281 | _createEquipment_vue_vue_type_template_id_2ea88798___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns, |
||
282 | false, |
||
283 | null, |
||
284 | null, |
||
285 | null |
||
286 | |||
287 | ) |
||
288 | |||
289 | /* hot reload */ |
||
290 | if (false) { var api; } |
||
291 | component.options.__file = "resources/js/Pages/Equipment/createEquipment.vue" |
||
292 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports); |
||
293 | |||
294 | /***/ }), |
||
295 | |||
296 | /***/ "./resources/js/Layouts/app.vue?vue&type=script&lang=js&": |
||
297 | /*!***************************************************************!*\ |
||
298 | !*** ./resources/js/Layouts/app.vue?vue&type=script&lang=js& ***! |
||
299 | \***************************************************************/ |
||
300 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
301 | |||
302 | "use strict"; |
||
303 | __webpack_require__.r(__webpack_exports__); |
||
304 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
305 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
306 | /* harmony export */ }); |
||
307 | /* 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&"); |
||
308 | /* 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); |
||
309 | |||
310 | /***/ }), |
||
311 | |||
312 | /***/ "./resources/js/Pages/Equipment/createEquipment.vue?vue&type=script&lang=js&": |
||
313 | /*!***********************************************************************************!*\ |
||
314 | !*** ./resources/js/Pages/Equipment/createEquipment.vue?vue&type=script&lang=js& ***! |
||
315 | \***********************************************************************************/ |
||
316 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
317 | |||
318 | "use strict"; |
||
319 | __webpack_require__.r(__webpack_exports__); |
||
320 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
321 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) |
||
322 | /* harmony export */ }); |
||
323 | /* 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_createEquipment_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!./createEquipment.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/createEquipment.vue?vue&type=script&lang=js&"); |
||
324 | /* 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_createEquipment_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__.default); |
||
325 | |||
326 | /***/ }), |
||
327 | |||
328 | /***/ "./resources/js/Layouts/app.vue?vue&type=template&id=191620ed&": |
||
329 | /*!*********************************************************************!*\ |
||
330 | !*** ./resources/js/Layouts/app.vue?vue&type=template&id=191620ed& ***! |
||
331 | \*********************************************************************/ |
||
332 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
333 | |||
334 | "use strict"; |
||
335 | __webpack_require__.r(__webpack_exports__); |
||
336 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
337 | /* 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), |
||
338 | /* 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) |
||
339 | /* harmony export */ }); |
||
340 | /* 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&"); |
||
341 | |||
342 | |||
343 | /***/ }), |
||
344 | |||
345 | /***/ "./resources/js/Pages/Equipment/createEquipment.vue?vue&type=template&id=2ea88798&": |
||
346 | /*!*****************************************************************************************!*\ |
||
347 | !*** ./resources/js/Pages/Equipment/createEquipment.vue?vue&type=template&id=2ea88798& ***! |
||
348 | \*****************************************************************************************/ |
||
349 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
350 | |||
351 | "use strict"; |
||
352 | __webpack_require__.r(__webpack_exports__); |
||
353 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
354 | /* 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_createEquipment_vue_vue_type_template_id_2ea88798___WEBPACK_IMPORTED_MODULE_0__.render), |
||
355 | /* 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_createEquipment_vue_vue_type_template_id_2ea88798___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) |
||
356 | /* harmony export */ }); |
||
357 | /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_createEquipment_vue_vue_type_template_id_2ea88798___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!./createEquipment.vue?vue&type=template&id=2ea88798& */ "./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/createEquipment.vue?vue&type=template&id=2ea88798&"); |
||
358 | |||
359 | |||
360 | /***/ }), |
||
361 | |||
362 | /***/ "./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&": |
||
363 | /*!************************************************************************************************************************************************************************************************************!*\ |
||
364 | !*** ./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& ***! |
||
365 | \************************************************************************************************************************************************************************************************************/ |
||
366 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
||
367 | |||
368 | "use strict"; |
||
369 | __webpack_require__.r(__webpack_exports__); |
||
370 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
371 | /* harmony export */ "render": () => (/* binding */ render), |
||
372 | /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) |
||
373 | /* harmony export */ }); |
||
374 | var render = function() { |
||
375 | var _vm = this |
||
376 | var _h = _vm.$createElement |
||
377 | var _c = _vm._self._c || _h |
||
378 | return _c("div", { staticClass: "app-layout" }, [ |
||
379 | _c("nav", { staticClass: "navbar top-navbar fixed-top" }, [ |
||
380 | _c( |
||
381 | "div", |
||
382 | { staticClass: "navbar-logo-wrapper d-flex" }, |
||
383 | [ |
||
384 | _c( |
||
385 | "inertia-link", |
||
386 | { |
||
387 | staticClass: "navbar-logo", |
||
388 | attrs: { href: _vm.route("dashboard") } |
||
389 | }, |
||
390 | [ |
||
391 | _c("img", { |
||
392 | staticClass: "mr-2", |
||
393 | attrs: { src: _vm.app.logo, alt: _vm.app.name } |
||
394 | }) |
||
395 | ] |
||
396 | ) |
||
397 | ], |
||
398 | 1 |
||
399 | ), |
||
400 | _vm._v(" "), |
||
401 | _c("div", { staticClass: "navbar-brand d-none d-md-flex" }, [ |
||
402 | _c("h2", [_vm._v(_vm._s(_vm.app.name))]) |
||
403 | ]), |
||
404 | _vm._v(" "), |
||
405 | _c( |
||
406 | "div", |
||
407 | { staticClass: "navbar-data" }, |
||
408 | [ |
||
409 | _c( |
||
410 | "inertia-link", |
||
411 | { |
||
412 | directives: [ |
||
413 | { |
||
414 | name: "b-tooltip", |
||
415 | rawName: "v-b-tooltip.hover", |
||
416 | modifiers: { hover: true } |
||
417 | } |
||
418 | ], |
||
419 | staticClass: "text-muted", |
||
420 | attrs: { |
||
421 | href: _vm.route("about"), |
||
422 | title: "About " + _vm.app.name |
||
423 | } |
||
424 | }, |
||
425 | [_c("i", { staticClass: "fas fa-info-circle" })] |
||
426 | ), |
||
427 | _vm._v(" "), |
||
428 | _c( |
||
429 | "b-dropdown", |
||
430 | { |
||
431 | directives: [ |
||
432 | { |
||
433 | name: "b-tooltip", |
||
434 | rawName: "v-b-tooltip.hover", |
||
435 | modifiers: { hover: true } |
||
436 | } |
||
437 | ], |
||
438 | attrs: { variant: "link", title: "Account" }, |
||
439 | scopedSlots: _vm._u([ |
||
440 | { |
||
441 | key: "button-content", |
||
442 | fn: function() { |
||
443 | return [ |
||
444 | _c("b-avatar", { |
||
445 | attrs: { variant: "warning", text: _vm.user.initials } |
||
446 | }) |
||
447 | ] |
||
448 | }, |
||
449 | proxy: true |
||
450 | } |
||
451 | ]) |
||
452 | }, |
||
453 | [ |
||
454 | _vm._v(" "), |
||
455 | _c( |
||
456 | "inertia-link", |
||
457 | { |
||
458 | attrs: { |
||
459 | as: "b-dropdown-item", |
||
460 | href: _vm.route("settings.index") |
||
461 | } |
||
462 | }, |
||
463 | [_c("i", { staticClass: "fas fa-cog" }), _vm._v(" Settings")] |
||
464 | ), |
||
465 | _vm._v(" "), |
||
466 | _c( |
||
467 | "inertia-link", |
||
468 | { |
||
469 | attrs: { |
||
470 | as: "b-dropdown-item", |
||
471 | href: _vm.route("password.edit", "change") |
||
472 | } |
||
473 | }, |
||
474 | [ |
||
475 | _c("i", { staticClass: "fas fa-key" }), |
||
476 | _vm._v(" Change Password") |
||
477 | ] |
||
478 | ), |
||
479 | _vm._v(" "), |
||
480 | _c("b-dropdown-divider"), |
||
481 | _vm._v(" "), |
||
482 | _c( |
||
483 | "inertia-link", |
||
484 | { |
||
485 | attrs: { |
||
486 | as: "b-dropdown-item", |
||
487 | method: "post", |
||
488 | href: _vm.route("logout") |
||
489 | } |
||
490 | }, |
||
491 | [ |
||
492 | _c("i", { staticClass: "fas fa-sign-out-alt" }), |
||
493 | _vm._v(" Logout") |
||
494 | ] |
||
495 | ) |
||
496 | ], |
||
497 | 1 |
||
498 | ), |
||
499 | _vm._v(" "), |
||
500 | _c( |
||
501 | "button", |
||
502 | { |
||
503 | staticClass: "navbar-toggler d-lg-none", |
||
504 | attrs: { type: "button" }, |
||
505 | on: { |
||
506 | click: function($event) { |
||
507 | _vm.showNav = !_vm.showNav |
||
508 | } |
||
509 | } |
||
510 | }, |
||
511 | [_c("i", { staticClass: "fas fa-bars" })] |
||
512 | ) |
||
513 | ], |
||
514 | 1 |
||
515 | ) |
||
516 | ]), |
||
517 | _vm._v(" "), |
||
518 | _c("div", { staticClass: "container-fluid page-body-wrapper" }, [ |
||
519 | _c( |
||
520 | "nav", |
||
521 | { |
||
522 | staticClass: "sidebar sidebar-nav", |
||
523 | class: _vm.navbarActive, |
||
524 | attrs: { id: "side-nav" } |
||
525 | }, |
||
526 | [ |
||
527 | _c( |
||
528 | "ul", |
||
529 | { staticClass: "nav" }, |
||
530 | _vm._l(_vm.navbar, function(l) { |
||
531 | return _c( |
||
532 | "li", |
||
533 | { key: l.name, staticClass: "nav-item" }, |
||
534 | [ |
||
535 | _c( |
||
536 | "inertia-link", |
||
537 | { staticClass: "nav-link", attrs: { href: l.route } }, |
||
538 | [ |
||
539 | _c("i", { staticClass: "menu-icon", class: l.icon }), |
||
540 | _vm._v(" "), |
||
541 | _c("span", { staticClass: "menu-title" }, [ |
||
542 | _vm._v(_vm._s(l.name)) |
||
543 | ]) |
||
544 | ] |
||
545 | ) |
||
546 | ], |
||
547 | 1 |
||
548 | ) |
||
549 | }), |
||
550 | 0 |
||
551 | ) |
||
552 | ] |
||
553 | ), |
||
554 | _vm._v(" "), |
||
555 | _c( |
||
556 | "div", |
||
557 | { staticClass: "content" }, |
||
558 | [ |
||
559 | _c( |
||
560 | "div", |
||
561 | { staticClass: "content-wrapper" }, |
||
562 | [ |
||
563 | _c( |
||
564 | "b-alert", |
||
565 | { |
||
566 | attrs: { |
||
567 | variant: _vm.$page.props.flash.type, |
||
568 | show: _vm.$page.props.flash.message ? 30 : false |
||
569 | } |
||
570 | }, |
||
571 | [ |
||
572 | _c("p", { staticClass: "text-center" }, [ |
||
573 | _vm._v(_vm._s(_vm.$page.props.flash.message)) |
||
574 | ]) |
||
575 | ] |
||
576 | ), |
||
577 | _vm._v(" "), |
||
578 | _vm._t("default") |
||
579 | ], |
||
580 | 2 |
||
581 | ), |
||
582 | _vm._v(" "), |
||
583 | _c("axios-error"), |
||
584 | _vm._v(" "), |
||
585 | _c("footer", { staticClass: " footer page-footer" }, [ |
||
586 | _c( |
||
587 | "div", |
||
588 | { |
||
589 | staticClass: |
||
590 | "d-sm-flex justify-content-center justify-content-sm-between" |
||
591 | }, |
||
592 | [ |
||
593 | _vm._m(0), |
||
594 | _vm._v(" "), |
||
595 | _c( |
||
596 | "span", |
||
597 | { |
||
598 | staticClass: |
||
599 | "text-muted float-none float-sm-right d-block mt-1 mt-sm-0 text-center" |
||
600 | }, |
||
601 | [_vm._v(_vm._s(_vm.app.version))] |
||
602 | ) |
||
603 | ] |
||
604 | ) |
||
605 | ]) |
||
606 | ], |
||
607 | 1 |
||
608 | ) |
||
609 | ]) |
||
610 | ]) |
||
611 | } |
||
612 | var staticRenderFns = [ |
||
613 | function() { |
||
614 | var _vm = this |
||
615 | var _h = _vm.$createElement |
||
616 | var _c = _vm._self._c || _h |
||
617 | return _c( |
||
618 | "span", |
||
619 | { |
||
620 | staticClass: |
||
621 | "text-muted text-center text-sm-left d-block d-sm-inline-block" |
||
622 | }, |
||
623 | [ |
||
624 | _vm._v("Copyright © 2016-2021"), |
||
625 | _c("span", { staticClass: "d-none d-md-inline" }, [ |
||
626 | _vm._v(" Butcherman - All rights reserved.") |
||
627 | ]) |
||
628 | ] |
||
629 | ) |
||
630 | } |
||
631 | ] |
||
632 | render._withStripped = true |
||
633 | |||
634 | |||
635 | |||
636 | /***/ }), |
||
637 | |||
638 | /***/ "./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/createEquipment.vue?vue&type=template&id=2ea88798&": |
||
639 | /*!********************************************************************************************************************************************************************************************************************************!*\ |
||
640 | !*** ./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/createEquipment.vue?vue&type=template&id=2ea88798& ***! |
||
641 | \********************************************************************************************************************************************************************************************************************************/ |
||
642 | View Code Duplication | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { |
|
643 | |||
644 | "use strict"; |
||
645 | __webpack_require__.r(__webpack_exports__); |
||
646 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
||
647 | /* harmony export */ "render": () => (/* binding */ render), |
||
648 | /* harmony export */ "staticRenderFns": () => (/* binding */ staticRenderFns) |
||
649 | /* harmony export */ }); |
||
650 | var render = function() { |
||
651 | var _vm = this |
||
652 | var _h = _vm.$createElement |
||
653 | var _c = _vm._self._c || _h |
||
654 | return _c("div", [ |
||
655 | _vm._m(0), |
||
656 | _vm._v(" "), |
||
657 | _c("div", { staticClass: "row grid-margin justify-content-center" }, [ |
||
658 | _c("div", { staticClass: "col-md-6" }, [ |
||
659 | _c("div", { staticClass: "card" }, [ |
||
660 | _c( |
||
661 | "div", |
||
662 | { staticClass: "card-body" }, |
||
663 | [ |
||
664 | _c("ValidationObserver", { |
||
665 | scopedSlots: _vm._u([ |
||
666 | { |
||
667 | key: "default", |
||
668 | fn: function(ref) { |
||
669 | var handleSubmit = ref.handleSubmit |
||
670 | return [ |
||
671 | _c( |
||
672 | "b-form", |
||
673 | { |
||
674 | attrs: { novalidate: "" }, |
||
675 | on: { |
||
676 | submit: function($event) { |
||
677 | $event.preventDefault() |
||
678 | return handleSubmit(_vm.submitForm) |
||
679 | } |
||
680 | } |
||
681 | }, |
||
682 | [ |
||
683 | _c("dropdown-input", { |
||
684 | attrs: { |
||
685 | label: "Select Category", |
||
686 | name: "category", |
||
687 | "text-field": "name", |
||
688 | "value-field": "name", |
||
689 | placeholder: |
||
690 | "Select A Category This Equipment Belongs To", |
||
691 | rules: "required", |
||
692 | options: _vm.categories |
||
693 | }, |
||
694 | model: { |
||
695 | value: _vm.form.cat_id, |
||
696 | callback: function($$v) { |
||
697 | _vm.$set(_vm.form, "cat_id", $$v) |
||
698 | }, |
||
699 | expression: "form.cat_id" |
||
700 | } |
||
701 | }), |
||
702 | _vm._v(" "), |
||
703 | _c("text-input", { |
||
704 | attrs: { |
||
705 | label: "Equipment Name", |
||
706 | rules: "required|no-special", |
||
707 | name: "name", |
||
708 | placeholder: |
||
709 | "Enter A Unique Name for the Equipment" |
||
710 | }, |
||
711 | model: { |
||
712 | value: _vm.form.name, |
||
713 | callback: function($$v) { |
||
714 | _vm.$set(_vm.form, "name", $$v) |
||
715 | }, |
||
716 | expression: "form.name" |
||
717 | } |
||
718 | }), |
||
719 | _vm._v(" "), |
||
720 | _c("fieldset", [ |
||
721 | _c("label", [ |
||
722 | _vm._v("Customer Information to Gather:") |
||
723 | ]) |
||
724 | ]), |
||
725 | _vm._v(" "), |
||
726 | _c( |
||
727 | "draggable", |
||
728 | { |
||
729 | attrs: { |
||
730 | animation: "200", |
||
731 | list: _vm.form.system_data_fields |
||
732 | } |
||
733 | }, |
||
734 | _vm._l(_vm.fields, function(index) { |
||
735 | return _c( |
||
736 | "b-input-group", |
||
737 | { key: index, staticClass: "my-2" }, |
||
738 | [ |
||
739 | _c( |
||
740 | "b-input-group-prepend", |
||
741 | { |
||
742 | staticClass: "align-middle d-block mr-1" |
||
743 | }, |
||
744 | [ |
||
745 | _c("i", { |
||
746 | directives: [ |
||
747 | { |
||
748 | name: "b-tooltip", |
||
749 | rawName: "v-b-tooltip.hover", |
||
750 | modifiers: { hover: true } |
||
751 | } |
||
752 | ], |
||
753 | staticClass: |
||
754 | "fas fa-sort align-middle pointer", |
||
755 | attrs: { |
||
756 | title: "Drag to Change Order" |
||
757 | } |
||
758 | }) |
||
759 | ] |
||
760 | ), |
||
761 | _vm._v(" "), |
||
762 | _c("b-form-input", { |
||
763 | attrs: { |
||
764 | type: "text", |
||
765 | list: "data-list", |
||
766 | placeholder: |
||
767 | "Input information to gather for the customer", |
||
768 | autocomplete: "false" |
||
769 | }, |
||
770 | model: { |
||
771 | value: _vm.form.data_fields[index], |
||
772 | callback: function($$v) { |
||
773 | _vm.$set( |
||
774 | _vm.form.data_fields, |
||
775 | index, |
||
776 | $$v |
||
777 | ) |
||
778 | }, |
||
779 | expression: "form.data_fields[index]" |
||
780 | } |
||
781 | }), |
||
782 | _vm._v(" "), |
||
783 | _c( |
||
784 | "b-input-group-append", |
||
785 | { |
||
786 | staticClass: "align-middle d-block ml-1" |
||
787 | }, |
||
788 | [ |
||
789 | _c("i", { |
||
790 | directives: [ |
||
791 | { |
||
792 | name: "b-tooltip", |
||
793 | rawName: "v-b-tooltip.hover", |
||
794 | modifiers: { hover: true } |
||
795 | } |
||
796 | ], |
||
797 | staticClass: |
||
798 | "far fa-times-circle text-danger pointer", |
||
799 | attrs: { |
||
800 | title: "Remove this Option" |
||
801 | }, |
||
802 | on: { |
||
803 | click: function($event) { |
||
804 | return _vm.delOption(index) |
||
805 | } |
||
806 | } |
||
807 | }) |
||
808 | ] |
||
809 | ) |
||
810 | ], |
||
811 | 1 |
||
812 | ) |
||
813 | }), |
||
814 | 1 |
||
815 | ), |
||
816 | _vm._v(" "), |
||
817 | _c( |
||
818 | "div", |
||
819 | [ |
||
820 | _c( |
||
821 | "b-button", |
||
822 | { |
||
823 | staticClass: "float-right my-2", |
||
824 | attrs: { variant: "warning" }, |
||
825 | on: { |
||
826 | click: function($event) { |
||
827 | _vm.fields++ |
||
828 | } |
||
829 | } |
||
830 | }, |
||
831 | [ |
||
832 | _c("i", { staticClass: "fas fa-plus" }), |
||
833 | _vm._v(" Add Row") |
||
834 | ] |
||
835 | ) |
||
836 | ], |
||
837 | 1 |
||
838 | ), |
||
839 | _vm._v(" "), |
||
840 | _c( |
||
841 | "datalist", |
||
842 | { attrs: { id: "data-list" } }, |
||
843 | _vm._l(_vm.dataList, function(data) { |
||
844 | return _c("option", { key: data }, [ |
||
845 | _vm._v(_vm._s(data)) |
||
846 | ]) |
||
847 | }), |
||
848 | 0 |
||
849 | ), |
||
850 | _vm._v(" "), |
||
851 | _c("submit-button", { |
||
852 | attrs: { |
||
853 | button_text: "Create Equipment", |
||
854 | submitted: _vm.submitted |
||
855 | } |
||
856 | }) |
||
857 | ], |
||
858 | 1 |
||
859 | ) |
||
860 | ] |
||
861 | } |
||
862 | } |
||
863 | ]) |
||
864 | }) |
||
865 | ], |
||
866 | 1 |
||
867 | ) |
||
868 | ]) |
||
869 | ]) |
||
870 | ]) |
||
871 | ]) |
||
872 | } |
||
873 | var staticRenderFns = [ |
||
874 | function() { |
||
875 | var _vm = this |
||
876 | var _h = _vm.$createElement |
||
877 | var _c = _vm._self._c || _h |
||
878 | return _c("div", { staticClass: "row grid-margin" }, [ |
||
879 | _c("div", { staticClass: "col-md-12" }, [ |
||
880 | _c("h4", { staticClass: "text-center text-md-left" }, [ |
||
881 | _vm._v("Equipment") |
||
882 | ]) |
||
883 | ]) |
||
884 | ]) |
||
885 | } |
||
886 | ] |
||
887 | render._withStripped = true |
||
888 | |||
889 | |||
890 | |||
891 | /***/ }) |
||
892 | |||
893 | }]); |
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.