eslint
parent
fd74b2d8cb
commit
879eb46832
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"airbnb-base"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"vue"
|
||||
],
|
||||
"rules": {
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
|
|
@ -7,7 +7,8 @@
|
|||
"watch-poll": "mix watch -- --watch-options-poll=1000",
|
||||
"hot": "mix watch --hot",
|
||||
"prod": "npm run production",
|
||||
"production": "mix --production"
|
||||
"production": "mix --production",
|
||||
"eslint": "./node_modules/.bin/eslint resources/js/ --ext .js,.vue --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@inertiajs/inertia": "^0.8.4",
|
||||
|
|
@ -17,13 +18,13 @@
|
|||
"@tailwindcss/typography": "^0.3.0",
|
||||
"@types/lodash": "^4.14.168",
|
||||
"@vue/compiler-sfc": "^3.0.5",
|
||||
"axios": "^0.21",
|
||||
"eslint": "^7.28.0",
|
||||
"eslint-plugin-vue": "^7.11.1",
|
||||
"laravel-mix": "^6.0.6",
|
||||
"lodash": "^4.17.21",
|
||||
"postcss": "^8.1.14",
|
||||
"postcss-import": "^12.0.1",
|
||||
"tailwindcss": "^2.0.1",
|
||||
"vue": "^3.0.5",
|
||||
|
||||
"vue-loader": "^16.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
@ -31,6 +32,9 @@
|
|||
"vue-multiselect": "^3.0.0-alpha.2",
|
||||
"vue-unicons": "^3.2.1",
|
||||
"vue3-datepicker": "^0.2.4",
|
||||
"vuex": "^4.0.0"
|
||||
"vuex": "^4.0.0",
|
||||
"axios": "^0.21",
|
||||
"lodash": "^4.17.21",
|
||||
"vue": "^3.0.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17913,9 +17913,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
computed: {
|
||||
allClasses: function allClasses() {
|
||||
var classes = "justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition";
|
||||
var classes = 'justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition';
|
||||
classes += " bg-".concat(this.colour, "-800 hover:bg-").concat(this.colour, "-700 active:bg-").concat(this.colour, "-900 focus:border-").concat(this.colour, "-900 focus:ring-").concat(this.colour, "-300");
|
||||
return classes + " " + this["class"];
|
||||
return "".concat(classes, " ").concat(this["class"]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -17966,9 +17966,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
computed: {
|
||||
allClasses: function allClasses() {
|
||||
var classes = "justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition";
|
||||
var classes = 'justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition';
|
||||
classes += " bg-".concat(this.colour, "-800 hover:bg-").concat(this.colour, "-700 active:bg-").concat(this.colour, "-900 focus:border-").concat(this.colour, "-900 focus:ring-").concat(this.colour, "-300");
|
||||
return classes + " " + this["class"];
|
||||
return "".concat(classes, " ").concat(this["class"]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -17998,7 +17998,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
data: function data() {
|
||||
return {
|
||||
meta: {
|
||||
'contact': 'Verkäufer'
|
||||
contact: 'Verkäufer'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -18077,7 +18077,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
computed: {
|
||||
contractClasses: function contractClasses() {
|
||||
return "col-span-12 h-full relative sm:col-span-" + (this.contract.car ? '4' : '6');
|
||||
return "col-span-12 h-full relative sm:col-span-".concat(this.contract.car ? '4' : '6');
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
|
|
@ -18191,9 +18191,9 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
var STATUS_INITIAL = 0,
|
||||
STATUS_SAVING = 1,
|
||||
STATUS_FAILED = 2;
|
||||
var STATUS_INITIAL = 0;
|
||||
var STATUS_SAVING = 1;
|
||||
var STATUS_FAILED = 2;
|
||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
||||
props: {
|
||||
id: Number,
|
||||
|
|
@ -18547,7 +18547,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
data: function data() {
|
||||
return {
|
||||
meta: {
|
||||
'contact': 'Käufer'
|
||||
contact: 'Käufer'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -18670,8 +18670,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
this.sort.by = col;
|
||||
this.$inertia.get(this.data.path, {
|
||||
'sortby': this.sort.by,
|
||||
'direction': this.sort.direction
|
||||
sortby: this.sort.by,
|
||||
direction: this.sort.direction
|
||||
}, {
|
||||
preserveState: true
|
||||
});
|
||||
|
|
@ -18817,7 +18817,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
return this.checked;
|
||||
},
|
||||
set: function set(val) {
|
||||
this.$emit("update:checked", val);
|
||||
this.$emit('update:checked', val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19068,17 +19068,19 @@ __webpack_require__.r(__webpack_exports__);
|
|||
computed: {
|
||||
widthClass: function widthClass() {
|
||||
return {
|
||||
'48': 'w-48'
|
||||
48: 'w-48'
|
||||
}[this.width.toString()];
|
||||
},
|
||||
alignmentClasses: function alignmentClasses() {
|
||||
if (this.align === 'left') {
|
||||
return 'origin-top-left left-0';
|
||||
} else if (this.align === 'right') {
|
||||
return 'origin-top-right right-0';
|
||||
} else {
|
||||
return 'origin-top';
|
||||
}
|
||||
|
||||
if (this.align === 'right') {
|
||||
return 'origin-top-right right-0';
|
||||
}
|
||||
|
||||
return 'origin-top';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -19131,7 +19133,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
return !!this.$slots.actions;
|
||||
},
|
||||
classnames: function classnames() {
|
||||
var classnames = !this.emptyBg ? 'px-4 py-5 bg-white sm:p-6 shadow ' : "";
|
||||
var classnames = !this.emptyBg ? 'px-4 py-5 bg-white sm:p-6 shadow ' : '';
|
||||
classnames += this.hasActions ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md';
|
||||
return classnames;
|
||||
}
|
||||
|
|
@ -19263,10 +19265,10 @@ __webpack_require__.r(__webpack_exports__);
|
|||
computed: {
|
||||
maxWidthClass: function maxWidthClass() {
|
||||
return {
|
||||
'sm': 'sm:max-w-sm',
|
||||
'md': 'sm:max-w-md',
|
||||
'lg': 'sm:max-w-lg',
|
||||
'xl': 'sm:max-w-xl',
|
||||
sm: 'sm:max-w-sm',
|
||||
md: 'sm:max-w-md',
|
||||
lg: 'sm:max-w-lg',
|
||||
xl: 'sm:max-w-xl',
|
||||
'2xl': 'sm:max-w-2xl'
|
||||
}[this.maxWidth];
|
||||
}
|
||||
|
|
@ -19405,7 +19407,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
methods: {
|
||||
switchToTeam: function switchToTeam(team) {
|
||||
this.$inertia.put(route('current-team.update'), {
|
||||
'team_id': team.id
|
||||
team_id: team.id
|
||||
}, {
|
||||
preserveState: false
|
||||
});
|
||||
|
|
@ -19581,15 +19583,15 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _ApiTokenManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiTokenManager */ "./resources/js/Pages/API/ApiTokenManager.vue");
|
||||
/* harmony import */ var _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Layouts/AppLayout */ "./resources/js/Layouts/AppLayout.vue");
|
||||
/* harmony import */ var _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/AppLayout */ "./resources/js/Layouts/AppLayout.vue");
|
||||
/* harmony import */ var _ApiTokenManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiTokenManager */ "./resources/js/Pages/API/ApiTokenManager.vue");
|
||||
|
||||
|
||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
||||
props: ['tokens', 'availablePermissions', 'defaultPermissions'],
|
||||
components: {
|
||||
ApiTokenManager: _ApiTokenManager__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
AppLayout: _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_1__.default
|
||||
ApiTokenManager: _ApiTokenManager__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
AppLayout: _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_0__.default
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -20211,8 +20213,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ });
|
||||
/* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue");
|
||||
/* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue");
|
||||
/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue");
|
||||
|
||||
|
||||
|
||||
|
|
@ -20221,7 +20223,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
components: {
|
||||
Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__.default
|
||||
CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__.default
|
||||
},
|
||||
props: {
|
||||
brands: Array
|
||||
|
|
@ -20241,8 +20243,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
vin: null,
|
||||
colour: null,
|
||||
car_model_id: null,
|
||||
initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_3__.ref)(new Date()),
|
||||
last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_3__.ref)(new Date()),
|
||||
initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date()),
|
||||
last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date()),
|
||||
kilometers: null,
|
||||
known_damage: null,
|
||||
notes: null
|
||||
|
|
@ -20274,8 +20276,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ });
|
||||
/* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue");
|
||||
/* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue");
|
||||
/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/CarForm.vue */ "./resources/js/Pages/Cars/Components/CarForm.vue");
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
|
||||
|
|
@ -20286,7 +20288,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||
components: {
|
||||
BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_2__.default
|
||||
CarForm: _Components_CarForm_vue__WEBPACK_IMPORTED_MODULE_3__.default
|
||||
},
|
||||
props: {
|
||||
car: Object,
|
||||
|
|
@ -20300,7 +20302,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||
out += this.brand.name;
|
||||
|
||||
if (this.car_model.name) {
|
||||
out += ' ' + this.car_model.name;
|
||||
out += " ".concat(this.car_model.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -20311,7 +20313,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||
return {
|
||||
currentRoute: 'cars.edit',
|
||||
meta: {
|
||||
form_name: 'EditCar' + this.car.id,
|
||||
form_name: "EditCar".concat(this.car.id),
|
||||
route: this.route('cars.update', this.car.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
|
|
@ -20323,11 +20325,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||
id: this.car.id,
|
||||
stammnummer: this.car.stammnummer,
|
||||
vin: this.car.vin,
|
||||
initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_3__.ref)(new Date(this.car.initial_date)),
|
||||
initial_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.car.initial_date)),
|
||||
colour: this.car.colour,
|
||||
notes: this.car.notes,
|
||||
car_model_id: this.car.car_model.id,
|
||||
last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_3__.ref)(new Date(this.car.last_check_date)),
|
||||
last_check_date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.car.last_check_date)),
|
||||
kilometers: this.car.kilometers,
|
||||
known_damage: this.car.known_damage
|
||||
}, "notes", this.car.notes)
|
||||
|
|
@ -20648,8 +20650,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony import */ var _Jetstream_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Jetstream/Button */ "./resources/js/Jetstream/Button.vue");
|
||||
/* harmony import */ var _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Jetstream/ActionMessage */ "./resources/js/Jetstream/ActionMessage.vue");
|
||||
/* harmony import */ var _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Jetstream/FormSection */ "./resources/js/Jetstream/FormSection.vue");
|
||||
/* harmony import */ var _ContactFormFields__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ContactFormFields */ "./resources/js/Pages/Contacts/Components/ContactFormFields.vue");
|
||||
/* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js");
|
||||
/* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js");
|
||||
/* harmony import */ var _ContactFormFields__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ContactFormFields */ "./resources/js/Pages/Contacts/Components/ContactFormFields.vue");
|
||||
|
||||
|
||||
|
||||
|
|
@ -20660,7 +20662,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
JetButton: _Jetstream_Button__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
JetFormSection: _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
JetActionMessage: _Jetstream_ActionMessage__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
ContactFormFields: _ContactFormFields__WEBPACK_IMPORTED_MODULE_3__.default
|
||||
ContactFormFields: _ContactFormFields__WEBPACK_IMPORTED_MODULE_4__.default
|
||||
},
|
||||
props: {
|
||||
data: Object,
|
||||
|
|
@ -20668,7 +20670,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
data: function data() {
|
||||
return {
|
||||
form: (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_4__.useForm)(this.meta.form_name, this.data)
|
||||
form: (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_3__.useForm)(this.meta.form_name, this.data)
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -20790,7 +20792,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
data: function data() {
|
||||
return {
|
||||
meta: {
|
||||
form_name: 'EditContact' + this.contact.id,
|
||||
form_name: "EditContact".concat(this.contact.id),
|
||||
route: this.route('contacts.update', this.contact.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
|
|
@ -21057,11 +21059,11 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ });
|
||||
/* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue");
|
||||
/* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue");
|
||||
/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue");
|
||||
/* harmony import */ var _Components_CarCard_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Components/CarCard.vue */ "./resources/js/Components/CarCard.vue");
|
||||
/* harmony import */ var _Components_ContactCard_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/Components/ContactCard.vue */ "./resources/js/Components/ContactCard.vue");
|
||||
/* harmony import */ var _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/Jetstream/FormSection */ "./resources/js/Jetstream/FormSection.vue");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var _Components_CarCard_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Components/CarCard.vue */ "./resources/js/Components/CarCard.vue");
|
||||
/* harmony import */ var _Components_ContactCard_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Components/ContactCard.vue */ "./resources/js/Components/ContactCard.vue");
|
||||
/* harmony import */ var _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/Jetstream/FormSection */ "./resources/js/Jetstream/FormSection.vue");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue");
|
||||
|
||||
|
||||
|
||||
|
|
@ -21073,10 +21075,10 @@ __webpack_require__.r(__webpack_exports__);
|
|||
components: {
|
||||
Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
CarCard: _Components_CarCard_vue__WEBPACK_IMPORTED_MODULE_3__.default,
|
||||
ContactCard: _Components_ContactCard_vue__WEBPACK_IMPORTED_MODULE_4__.default,
|
||||
JetFormSection: _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_5__.default
|
||||
ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_6__.default,
|
||||
CarCard: _Components_CarCard_vue__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
ContactCard: _Components_ContactCard_vue__WEBPACK_IMPORTED_MODULE_3__.default,
|
||||
JetFormSection: _Jetstream_FormSection__WEBPACK_IMPORTED_MODULE_4__.default
|
||||
},
|
||||
props: {
|
||||
car: Object,
|
||||
|
|
@ -21096,25 +21098,25 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
data: {
|
||||
id: null,
|
||||
date: (0,vue__WEBPACK_IMPORTED_MODULE_6__.ref)(new Date()),
|
||||
date: (0,vue__WEBPACK_IMPORTED_MODULE_5__.ref)(new Date()),
|
||||
price: null,
|
||||
type: this.type,
|
||||
insurance_type: '0',
|
||||
car_id: this.car.id,
|
||||
contact_id: this.contact.id,
|
||||
is_sell_contract: this.type == "SellContract"
|
||||
is_sell_contract: this.type == 'SellContract'
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
contractType: function contractType() {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function contactType() {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function isSellContract() {
|
||||
return this.type == "SellContract";
|
||||
return this.type == 'SellContract';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -21192,13 +21194,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
computed: {
|
||||
contractType: function contractType() {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function contactType() {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function isSellContract() {
|
||||
return this.type == "SellContract";
|
||||
return this.type == 'SellContract';
|
||||
},
|
||||
emptyContact: function emptyContact() {
|
||||
return {
|
||||
|
|
@ -21335,13 +21337,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||
},
|
||||
computed: {
|
||||
contractType: function contractType() {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function contactType() {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function isSellContract() {
|
||||
return this.type == "SellContract";
|
||||
return this.type == 'SellContract';
|
||||
},
|
||||
emptyCar: function emptyCar() {
|
||||
return {
|
||||
|
|
@ -21410,8 +21412,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ });
|
||||
/* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue");
|
||||
/* harmony import */ var _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Components/BreadCrumb.vue */ "./resources/js/Components/BreadCrumb.vue");
|
||||
/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
|
||||
/* harmony import */ var _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Components/ContractForm.vue */ "./resources/js/Pages/Contracts/Components/ContractForm.vue");
|
||||
|
||||
|
||||
|
||||
|
|
@ -21420,7 +21422,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
components: {
|
||||
BreadCrumb: _Components_BreadCrumb_vue__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_2__.default
|
||||
ContractForm: _Components_ContractForm_vue__WEBPACK_IMPORTED_MODULE_3__.default
|
||||
},
|
||||
props: {
|
||||
contract: Object,
|
||||
|
|
@ -21430,14 +21432,14 @@ __webpack_require__.r(__webpack_exports__);
|
|||
return {
|
||||
currentRoute: 'contracts.edit',
|
||||
meta: {
|
||||
form_name: 'EditContract' + this.contract.id,
|
||||
form_name: "EditContract".concat(this.contract.id),
|
||||
route: this.route('contracts.update', this.contract.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
on_success: 'Änderungen gespeichert'
|
||||
},
|
||||
data: {
|
||||
date: (0,vue__WEBPACK_IMPORTED_MODULE_3__.ref)(new Date(this.contract.date)),
|
||||
date: (0,vue__WEBPACK_IMPORTED_MODULE_2__.ref)(new Date(this.contract.date)),
|
||||
price: this.contract.price,
|
||||
insurance_type: this.contract.insurance_type,
|
||||
is_sell_contract: this.contract.is_sell_contract
|
||||
|
|
@ -21768,8 +21770,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/Layout */ "./resources/js/Layouts/Layout.vue");
|
||||
/* harmony import */ var _DeleteUserForm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DeleteUserForm */ "./resources/js/Pages/Profile/DeleteUserForm.vue");
|
||||
/* harmony import */ var _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/Jetstream/SectionBorder */ "./resources/js/Jetstream/SectionBorder.vue");
|
||||
/* harmony import */ var _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Jetstream/SectionBorder */ "./resources/js/Jetstream/SectionBorder.vue");
|
||||
/* harmony import */ var _DeleteUserForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DeleteUserForm */ "./resources/js/Pages/Profile/DeleteUserForm.vue");
|
||||
/* harmony import */ var _LogoutOtherBrowserSessionsForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LogoutOtherBrowserSessionsForm */ "./resources/js/Pages/Profile/LogoutOtherBrowserSessionsForm.vue");
|
||||
/* harmony import */ var _TwoFactorAuthenticationForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TwoFactorAuthenticationForm */ "./resources/js/Pages/Profile/TwoFactorAuthenticationForm.vue");
|
||||
/* harmony import */ var _UpdatePasswordForm__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./UpdatePasswordForm */ "./resources/js/Pages/Profile/UpdatePasswordForm.vue");
|
||||
|
|
@ -21785,8 +21787,8 @@ __webpack_require__.r(__webpack_exports__);
|
|||
props: ['sessions'],
|
||||
components: {
|
||||
Layout: _Layouts_Layout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
DeleteUserForm: _DeleteUserForm__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
JetSectionBorder: _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
DeleteUserForm: _DeleteUserForm__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
JetSectionBorder: _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
LogoutOtherBrowserSessionsForm: _LogoutOtherBrowserSessionsForm__WEBPACK_IMPORTED_MODULE_3__.default,
|
||||
TwoFactorAuthenticationForm: _TwoFactorAuthenticationForm__WEBPACK_IMPORTED_MODULE_4__.default,
|
||||
UpdatePasswordForm: _UpdatePasswordForm__WEBPACK_IMPORTED_MODULE_5__.default,
|
||||
|
|
@ -22220,10 +22222,10 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _TeamMemberManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TeamMemberManager */ "./resources/js/Pages/Teams/TeamMemberManager.vue");
|
||||
/* harmony import */ var _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Layouts/AppLayout */ "./resources/js/Layouts/AppLayout.vue");
|
||||
/* harmony import */ var _DeleteTeamForm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DeleteTeamForm */ "./resources/js/Pages/Teams/DeleteTeamForm.vue");
|
||||
/* harmony import */ var _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/Jetstream/SectionBorder */ "./resources/js/Jetstream/SectionBorder.vue");
|
||||
/* harmony import */ var _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/Layouts/AppLayout */ "./resources/js/Layouts/AppLayout.vue");
|
||||
/* harmony import */ var _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/Jetstream/SectionBorder */ "./resources/js/Jetstream/SectionBorder.vue");
|
||||
/* harmony import */ var _TeamMemberManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TeamMemberManager */ "./resources/js/Pages/Teams/TeamMemberManager.vue");
|
||||
/* harmony import */ var _DeleteTeamForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DeleteTeamForm */ "./resources/js/Pages/Teams/DeleteTeamForm.vue");
|
||||
/* harmony import */ var _UpdateTeamNameForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./UpdateTeamNameForm */ "./resources/js/Pages/Teams/UpdateTeamNameForm.vue");
|
||||
|
||||
|
||||
|
|
@ -22233,10 +22235,10 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
||||
props: ['team', 'availableRoles', 'permissions'],
|
||||
components: {
|
||||
AppLayout: _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
DeleteTeamForm: _DeleteTeamForm__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
JetSectionBorder: _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_3__.default,
|
||||
TeamMemberManager: _TeamMemberManager__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
AppLayout: _Layouts_AppLayout__WEBPACK_IMPORTED_MODULE_0__.default,
|
||||
DeleteTeamForm: _DeleteTeamForm__WEBPACK_IMPORTED_MODULE_3__.default,
|
||||
JetSectionBorder: _Jetstream_SectionBorder__WEBPACK_IMPORTED_MODULE_1__.default,
|
||||
TeamMemberManager: _TeamMemberManager__WEBPACK_IMPORTED_MODULE_2__.default,
|
||||
UpdateTeamNameForm: _UpdateTeamNameForm__WEBPACK_IMPORTED_MODULE_4__.default
|
||||
}
|
||||
});
|
||||
|
|
@ -32572,7 +32574,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony import */ var vue_unicons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-unicons */ "./node_modules/vue-unicons/dist/vue-unicons.es.js");
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm-bundler.js");
|
||||
/* harmony import */ var vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-unicons/dist/icons */ "./node_modules/vue-unicons/dist/icons.js");
|
||||
__webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); // Import modules...
|
||||
// Import modules...
|
||||
|
||||
|
||||
|
||||
|
|
@ -32580,6 +32582,7 @@ __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); // Import
|
|||
|
||||
|
||||
|
||||
__webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
|
||||
|
||||
vue_unicons__WEBPACK_IMPORTED_MODULE_3__.default.add([vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniChart, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniFileAlt, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniPalette, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniCalendarAlt, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniPlusCircle, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniMeh, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniUsersAlt, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniCarSideview, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniDashboard, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniSearch, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniFilter, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniFilterSlash, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniTrashAlt, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniPen, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniExclamationTriangle, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniMapMarker, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniPhone, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniEnvelope, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniFileDownload, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniArrowDown, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniArrowUp, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniArrowRight, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniAngleRight, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniAngleUp, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniAngleDown, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniAngleLeft, vue_unicons_dist_icons__WEBPACK_IMPORTED_MODULE_4__.uniFileUploadAlt]); // Create a new store instance.
|
||||
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@ export default {
|
|||
href: String,
|
||||
text: String,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ export default {
|
|||
class: String,
|
||||
href: String,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -14,5 +14,5 @@ export default {
|
|||
class: String,
|
||||
href: String,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -14,14 +14,14 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
colour: 'indigo',
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
allClasses: function () {
|
||||
let classes = "justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition"
|
||||
allClasses() {
|
||||
let classes = 'justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition';
|
||||
classes += ` bg-${this.colour}-800 hover:bg-${this.colour}-700 active:bg-${this.colour}-900 focus:border-${this.colour}-900 focus:ring-${this.colour}-300`;
|
||||
return classes + " " + this.class;
|
||||
}
|
||||
return `${classes} ${this.class}`;
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -14,5 +14,5 @@ export default {
|
|||
class: String,
|
||||
href: String,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -10,15 +10,15 @@ export default {
|
|||
props: {
|
||||
class: String,
|
||||
href: String,
|
||||
colour: String
|
||||
colour: String,
|
||||
},
|
||||
computed: {
|
||||
allClasses: function () {
|
||||
let classes = "justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition"
|
||||
allClasses() {
|
||||
let classes = 'justify-center inline-flex items-center px-4 py-2 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest focus:outline-none focus:ring disabled:opacity-25 transition';
|
||||
classes += ` bg-${this.colour}-800 hover:bg-${this.colour}-700 active:bg-${this.colour}-900 focus:border-${this.colour}-900 focus:ring-${this.colour}-300`;
|
||||
return classes + " " + this.class;
|
||||
}
|
||||
return `${classes} ${this.class}`;
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ContractCard from '@/Components/ContractCard.vue'
|
||||
import ContractCard from '@/Components/ContractCard.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -15,9 +15,9 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
meta: {
|
||||
'contact': 'Verkäufer',
|
||||
contact: 'Verkäufer',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -65,5 +65,5 @@ export default ({
|
|||
car: Object,
|
||||
hideEmpty: String,
|
||||
},
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -43,5 +43,5 @@ export default ({
|
|||
props: {
|
||||
contact: Object,
|
||||
},
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -55,10 +55,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import PrintButton from './Buttons/PrintButton.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import PrintButton from './Buttons/PrintButton.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -73,18 +73,18 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
contractClasses() {
|
||||
return "col-span-12 h-full relative sm:col-span-" + (this.contract.car ? '4' : '6');
|
||||
return `col-span-12 h-full relative sm:col-span-${this.contract.car ? '4' : '6'}`;
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
sellContractsColumns: [
|
||||
{key: 'buyer', value: 'Käufer'},
|
||||
{key: 'date', value: 'Verkaufsdatum'},
|
||||
{key: 'price', value: 'Verkaufspreis'},
|
||||
{key: 'insurance_type', value: 'Versicherungstyp'},
|
||||
{ key: 'buyer', value: 'Käufer' },
|
||||
{ key: 'date', value: 'Verkaufsdatum' },
|
||||
{ key: 'price', value: 'Verkaufspreis' },
|
||||
{ key: 'insurance_type', value: 'Versicherungstyp' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -3,18 +3,18 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import useCurrencyInput from 'vue-currency-input'
|
||||
import useCurrencyInput from 'vue-currency-input';
|
||||
|
||||
export default {
|
||||
name: 'CurrencyInput',
|
||||
props: {
|
||||
modelValue: Number,
|
||||
options: Object
|
||||
options: Object,
|
||||
},
|
||||
setup (props) {
|
||||
const { formattedValue, inputRef } = useCurrencyInput(props.options)
|
||||
setup(props) {
|
||||
const { formattedValue, inputRef } = useCurrencyInput(props.options);
|
||||
|
||||
return { inputRef, formattedValue }
|
||||
}
|
||||
}
|
||||
return { inputRef, formattedValue };
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -18,5 +18,5 @@ export default {
|
|||
number: Number,
|
||||
link: String,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -24,5 +24,5 @@ export default {
|
|||
this.$emit('delete', this.document.id);
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
<script>
|
||||
|
||||
const STATUS_INITIAL = 0, STATUS_SAVING = 1, STATUS_FAILED = 2;
|
||||
const STATUS_INITIAL = 0; const STATUS_SAVING = 1; const
|
||||
STATUS_FAILED = 2;
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
@ -30,7 +31,7 @@ export default {
|
|||
uploadError: null,
|
||||
currentStatus: null,
|
||||
uploadFieldName: 'document',
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
isInitial() {
|
||||
|
|
@ -53,11 +54,11 @@ export default {
|
|||
// upload data to the server
|
||||
this.currentStatus = STATUS_SAVING;
|
||||
axios.post(this.route('documents.store', this.id), formData)
|
||||
.then(response => {
|
||||
.then((response) => {
|
||||
this.documents.push(response.data);
|
||||
this.reset();
|
||||
})
|
||||
.catch(err => {
|
||||
.catch((err) => {
|
||||
this.uploadError = err.response;
|
||||
this.currentStatus = STATUS_FAILED;
|
||||
});
|
||||
|
|
@ -71,7 +72,7 @@ export default {
|
|||
// append the files to FormData
|
||||
Array
|
||||
.from(Array(fileList.length).keys())
|
||||
.map(x => {
|
||||
.map((x) => {
|
||||
formData.append(fieldName, fileList[x], fileList[x].name);
|
||||
});
|
||||
|
||||
|
|
@ -82,5 +83,5 @@ export default {
|
|||
mounted() {
|
||||
this.reset();
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -9,9 +9,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import DocumentItem from '@/Components/Documents/Item.vue'
|
||||
import DocumentUpload from '@/Components/Documents/Upload.vue'
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
import DocumentItem from '@/Components/Documents/Item.vue';
|
||||
import DocumentUpload from '@/Components/Documents/Upload.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -26,19 +26,19 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
documents: this.initial_documents,
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
deleteDocument(documentId) {
|
||||
let form = useForm(`deleteDocument${documentId}`, {id: documentId});
|
||||
const form = useForm(`deleteDocument${documentId}`, { id: documentId });
|
||||
form.delete(route('documents.destroy', this.id), {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => {
|
||||
form.reset();
|
||||
this.documents = this.initial_documents;
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -32,7 +32,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
show: false,
|
||||
}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
show(show) {
|
||||
|
|
@ -43,19 +43,19 @@ export default {
|
|||
modifiers: {
|
||||
preventOverflow: { boundariesElement: this.boundary },
|
||||
},
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
} else if (this.popper) {
|
||||
setTimeout(() => this.popper.destroy(), 100)
|
||||
setTimeout(() => this.popper.destroy(), 100);
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
document.addEventListener('keydown', e => {
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.keyCode === 27) {
|
||||
this.show = false
|
||||
this.show = false;
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -59,9 +59,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetDropdown from '@/Jetstream/Dropdown'
|
||||
import JetDropdownLink from '@/Jetstream/DropdownLink'
|
||||
import { mapState } from 'vuex'
|
||||
import JetDropdown from '@/Jetstream/Dropdown';
|
||||
import JetDropdownLink from '@/Jetstream/DropdownLink';
|
||||
import { mapState } from 'vuex';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
JetDropdown,
|
||||
|
|
@ -69,20 +70,20 @@ export default {
|
|||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['sideBarOpen'])
|
||||
...mapState(['sideBarOpen']),
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dropDownOpen: false
|
||||
}
|
||||
dropDownOpen: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
toggleSidebar() {
|
||||
this.$store.dispatch('toggleSidebar')
|
||||
this.$store.dispatch('toggleSidebar');
|
||||
},
|
||||
logout() {
|
||||
this.$inertia.post(route('logout'));
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -14,5 +14,5 @@ export default {
|
|||
props: {
|
||||
links: Array,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -38,15 +38,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetInput from '@/Jetstream/Input.vue'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import Datepicker from 'vue3-datepicker'
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import { ref } from 'vue'
|
||||
import DialogModal from '@/Jetstream/DialogModal.vue'
|
||||
import CurrencyInput from '@/Components/CurrencyInput'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetInput from '@/Jetstream/Input.vue';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import Datepicker from 'vue3-datepicker';
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
import { ref } from 'vue';
|
||||
import DialogModal from '@/Jetstream/DialogModal.vue';
|
||||
import CurrencyInput from '@/Components/CurrencyInput';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -77,7 +77,7 @@ export default {
|
|||
exportValueAsInteger: true,
|
||||
hideGroupingSeparatorOnFocus: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
|
|
@ -90,5 +90,5 @@ export default {
|
|||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -14,10 +14,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import PaymentCreateModal from '@/Components/Payments/CreateModal.vue'
|
||||
import StandardButton from '@/Components/Buttons/StandardButton.vue'
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
import PaymentCreateModal from '@/Components/Payments/CreateModal.vue';
|
||||
import StandardButton from '@/Components/Buttons/StandardButton.vue';
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -34,12 +34,12 @@ export default {
|
|||
return {
|
||||
showModal: false,
|
||||
columns: [
|
||||
{key: 'date', value: 'Datum', sortable: false},
|
||||
{key: 'amount', value: 'Betrag', sortable: false},
|
||||
{key: 'type', value: 'Bezahlart', sortable: false},
|
||||
{key: 'delete', value: '', sortable: false},
|
||||
{ key: 'date', value: 'Datum', sortable: false },
|
||||
{ key: 'amount', value: 'Betrag', sortable: false },
|
||||
{ key: 'type', value: 'Bezahlart', sortable: false },
|
||||
{ key: 'delete', value: '', sortable: false },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
openModal(e) {
|
||||
|
|
@ -47,12 +47,12 @@ export default {
|
|||
this.showModal = true;
|
||||
},
|
||||
deletePayment(id) {
|
||||
let form = useForm(`deletePayment${id}`, {id: id});
|
||||
const form = useForm(`deletePayment${id}`, { id });
|
||||
form.delete(route('payments.destroy', this.contract.id), {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => form.reset(),
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -17,5 +17,5 @@ export default {
|
|||
default: 300,
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ContractCard from '@/Components/ContractCard.vue'
|
||||
import ContractCard from '@/Components/ContractCard.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -15,9 +15,9 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
meta: {
|
||||
'contact': 'Käufer',
|
||||
contact: 'Käufer',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -20,11 +20,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Layout,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -63,15 +63,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import JetNavLink from '@/Jetstream/NavLink'
|
||||
import { mapState } from 'vuex';
|
||||
import JetNavLink from '@/Jetstream/NavLink';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
JetNavLink,
|
||||
},
|
||||
computed: {
|
||||
...mapState(['sideBarOpen'])
|
||||
}
|
||||
}
|
||||
...mapState(['sideBarOpen']),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -66,9 +66,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Paginator from "@/Components/Paginator"
|
||||
import StandardButton from "@/Components/Buttons/StandardButton.vue"
|
||||
import { pickBy, throttle, mapValues } from 'lodash'
|
||||
import Paginator from '@/Components/Paginator';
|
||||
import StandardButton from '@/Components/Buttons/StandardButton.vue';
|
||||
import { pickBy, throttle, mapValues } from 'lodash';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -89,21 +89,19 @@ export default {
|
|||
return {
|
||||
form: this.filters,
|
||||
sort: this.defaultSort,
|
||||
}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
form: {
|
||||
deep: true,
|
||||
handler: throttle(function() {
|
||||
handler: throttle(function () {
|
||||
this.refreshTable();
|
||||
}, 300),
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
resolve(path, obj) {
|
||||
return path.split('.').reduce(function(prev, curr) {
|
||||
return prev ? prev[curr] : null
|
||||
}, obj || self)
|
||||
return path.split('.').reduce((prev, curr) => (prev ? prev[curr] : null), obj || self);
|
||||
},
|
||||
sortTable(col) {
|
||||
event.preventDefault();
|
||||
|
|
@ -113,19 +111,19 @@ export default {
|
|||
this.sort.direction = 'asc';
|
||||
}
|
||||
this.sort.by = col;
|
||||
this.$inertia.get(this.data.path, {'sortby': this.sort.by, 'direction': this.sort.direction}, { preserveState: true })
|
||||
this.$inertia.get(this.data.path, { sortby: this.sort.by, direction: this.sort.direction }, { preserveState: true });
|
||||
},
|
||||
reset() {
|
||||
this.form = mapValues(this.form, () => null)
|
||||
this.form = mapValues(this.form, () => null);
|
||||
},
|
||||
refreshTable() {
|
||||
if (this.currentRoute) {
|
||||
this.$inertia.get(this.route(this.currentRoute), pickBy(this.form), { preserveState: true })
|
||||
this.$inertia.get(this.route(this.currentRoute), pickBy(this.form), { preserveState: true });
|
||||
}
|
||||
},
|
||||
isActiveSort(col, dir) {
|
||||
return col == this.sort.by && dir == this.sort.direction;
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: ['on'],
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetSectionTitle from './SectionTitle'
|
||||
import JetSectionTitle from './SectionTitle';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetSectionTitle,
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -38,21 +38,21 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: true,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
style() {
|
||||
return this.$page.props.jetstream.flash?.bannerStyle || 'success'
|
||||
return this.$page.props.jetstream.flash?.bannerStyle || 'success';
|
||||
},
|
||||
|
||||
message() {
|
||||
return this.$page.props.jetstream.flash?.banner || ''
|
||||
return this.$page.props.jetstream.flash?.banner || '';
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'submit',
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ export default {
|
|||
},
|
||||
|
||||
set(val) {
|
||||
this.$emit("update:checked", val);
|
||||
this.$emit('update:checked', val);
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Modal from './Modal'
|
||||
import Modal from './Modal';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
|
|
@ -39,20 +39,20 @@
|
|||
|
||||
props: {
|
||||
show: {
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
maxWidth: {
|
||||
default: '2xl'
|
||||
default: '2xl',
|
||||
},
|
||||
closeable: {
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
close() {
|
||||
this.$emit('close')
|
||||
this.$emit('close');
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -36,13 +36,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from './Button'
|
||||
import JetDialogModal from './DialogModal'
|
||||
import JetInput from './Input'
|
||||
import JetInputError from './InputError'
|
||||
import JetSecondaryButton from './SecondaryButton'
|
||||
import JetButton from './Button';
|
||||
import JetDialogModal from './DialogModal';
|
||||
import JetInput from './Input';
|
||||
import JetInputError from './InputError';
|
||||
import JetSecondaryButton from './SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
emits: ['confirmed'],
|
||||
|
||||
props: {
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
},
|
||||
button: {
|
||||
default: 'Confirm',
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
components: {
|
||||
|
|
@ -72,20 +72,20 @@
|
|||
password: '',
|
||||
error: '',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
startConfirmingPassword() {
|
||||
axios.get(route('password.confirmation')).then(response => {
|
||||
axios.get(route('password.confirmation')).then((response) => {
|
||||
if (response.data.confirmed) {
|
||||
this.$emit('confirmed');
|
||||
} else {
|
||||
this.confirmingPassword = true;
|
||||
|
||||
setTimeout(() => this.$refs.password.focus(), 250)
|
||||
setTimeout(() => this.$refs.password.focus(), 250);
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
confirmPassword() {
|
||||
|
|
@ -95,20 +95,20 @@
|
|||
password: this.form.password,
|
||||
}).then(() => {
|
||||
this.form.processing = false;
|
||||
this.closeModal()
|
||||
this.closeModal();
|
||||
this.$nextTick(() => this.$emit('confirmed'));
|
||||
}).catch(error => {
|
||||
}).catch((error) => {
|
||||
this.form.processing = false;
|
||||
this.form.error = error.response.data.errors.password[0];
|
||||
this.$refs.password.focus()
|
||||
this.$refs.password.focus();
|
||||
});
|
||||
},
|
||||
|
||||
closeModal() {
|
||||
this.confirmingPassword = false
|
||||
this.confirmingPassword = false;
|
||||
this.form.password = '';
|
||||
this.form.error = '';
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'button',
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Modal from './Modal'
|
||||
import Modal from './Modal';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
|
|
@ -31,20 +31,20 @@
|
|||
|
||||
props: {
|
||||
show: {
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
maxWidth: {
|
||||
default: '2xl'
|
||||
default: '2xl',
|
||||
},
|
||||
closeable: {
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
close() {
|
||||
this.$emit('close')
|
||||
this.$emit('close');
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -29,54 +29,53 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { onMounted, onUnmounted, ref } from "vue";
|
||||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
align: {
|
||||
default: 'right'
|
||||
default: 'right',
|
||||
},
|
||||
width: {
|
||||
default: '48'
|
||||
default: '48',
|
||||
},
|
||||
contentClasses: {
|
||||
default: () => ['py-1', 'bg-white']
|
||||
}
|
||||
default: () => ['py-1', 'bg-white'],
|
||||
},
|
||||
},
|
||||
|
||||
setup() {
|
||||
let open = ref(false)
|
||||
const open = ref(false);
|
||||
|
||||
const closeOnEscape = (e) => {
|
||||
if (open.value && e.keyCode === 27) {
|
||||
open.value = false
|
||||
}
|
||||
open.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => document.addEventListener('keydown', closeOnEscape))
|
||||
onUnmounted(() => document.removeEventListener('keydown', closeOnEscape))
|
||||
onMounted(() => document.addEventListener('keydown', closeOnEscape));
|
||||
onUnmounted(() => document.removeEventListener('keydown', closeOnEscape));
|
||||
|
||||
return {
|
||||
open,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
widthClass() {
|
||||
return {
|
||||
'48': 'w-48',
|
||||
}[this.width.toString()]
|
||||
48: 'w-48',
|
||||
}[this.width.toString()];
|
||||
},
|
||||
|
||||
alignmentClasses() {
|
||||
if (this.align === 'left') {
|
||||
return 'origin-top-left left-0'
|
||||
} else if (this.align === 'right') {
|
||||
return 'origin-top-right right-0'
|
||||
} else {
|
||||
return 'origin-top'
|
||||
return 'origin-top-left left-0';
|
||||
} if (this.align === 'right') {
|
||||
return 'origin-top-right right-0';
|
||||
}
|
||||
return 'origin-top';
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['href', 'as']
|
||||
}
|
||||
export default {
|
||||
props: ['href', 'as'],
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetSectionTitle from './SectionTitle'
|
||||
import JetSectionTitle from './SectionTitle';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
emits: ['submitted'],
|
||||
|
||||
props: {
|
||||
|
|
@ -40,13 +40,13 @@
|
|||
|
||||
computed: {
|
||||
hasActions() {
|
||||
return !! this.$slots.actions
|
||||
return !!this.$slots.actions;
|
||||
},
|
||||
classnames() {
|
||||
let classnames = !this.emptyBg ? 'px-4 py-5 bg-white sm:p-6 shadow ' :"";
|
||||
let classnames = !this.emptyBg ? 'px-4 py-5 bg-white sm:p-6 shadow ' : '';
|
||||
classnames += this.hasActions ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md';
|
||||
return classnames;
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -3,16 +3,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: ['modelValue'],
|
||||
|
||||
emits: ['update:modelValue'],
|
||||
|
||||
methods: {
|
||||
focus() {
|
||||
this.$refs.input.focus()
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$refs.input.focus();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['message']
|
||||
}
|
||||
export default {
|
||||
props: ['message'],
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['value']
|
||||
}
|
||||
export default {
|
||||
props: ['value'],
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -29,20 +29,20 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { onMounted, onUnmounted } from "vue";
|
||||
import { onMounted, onUnmounted } from 'vue';
|
||||
|
||||
export default {
|
||||
emits: ['close'],
|
||||
|
||||
props: {
|
||||
show: {
|
||||
default: false
|
||||
default: false,
|
||||
},
|
||||
maxWidth: {
|
||||
default: '2xl'
|
||||
default: '2xl',
|
||||
},
|
||||
closeable: {
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
|
|
@ -51,45 +51,45 @@ export default {
|
|||
immediate: true,
|
||||
handler: (show) => {
|
||||
if (show) {
|
||||
document.body.style.overflow = 'hidden'
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
document.body.style.overflow = null
|
||||
}
|
||||
}
|
||||
document.body.style.overflow = null;
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, {emit}) {
|
||||
setup(props, { emit }) {
|
||||
const close = () => {
|
||||
if (props.closeable) {
|
||||
emit('close')
|
||||
}
|
||||
emit('close');
|
||||
}
|
||||
};
|
||||
|
||||
const closeOnEscape = (e) => {
|
||||
if (e.key === 'Escape' && props.show) {
|
||||
close()
|
||||
}
|
||||
close();
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => document.addEventListener('keydown', closeOnEscape))
|
||||
onUnmounted(() => document.removeEventListener('keydown', closeOnEscape))
|
||||
onMounted(() => document.addEventListener('keydown', closeOnEscape));
|
||||
onUnmounted(() => document.removeEventListener('keydown', closeOnEscape));
|
||||
|
||||
return {
|
||||
close,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
maxWidthClass() {
|
||||
return {
|
||||
'sm': 'sm:max-w-sm',
|
||||
'md': 'sm:max-w-md',
|
||||
'lg': 'sm:max-w-lg',
|
||||
'xl': 'sm:max-w-xl',
|
||||
sm: 'sm:max-w-sm',
|
||||
md: 'sm:max-w-md',
|
||||
lg: 'sm:max-w-lg',
|
||||
xl: 'sm:max-w-xl',
|
||||
'2xl': 'sm:max-w-2xl',
|
||||
}[this.maxWidth]
|
||||
}
|
||||
}
|
||||
}
|
||||
}[this.maxWidth];
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: ['href', 'active'],
|
||||
|
||||
computed: {
|
||||
classes() {
|
||||
return this.active
|
||||
? 'w-full flex items-center text-indigo-100 h-10 pl-4 rounded-lg cursor-pointer transition'
|
||||
: 'w-full flex items-center hover:text-indigo-100 text-indigo-300 h-10 pl-4 rounded-lg cursor-pointer transition'
|
||||
}
|
||||
}
|
||||
}
|
||||
: 'w-full flex items-center hover:text-indigo-100 text-indigo-300 h-10 pl-4 rounded-lg cursor-pointer transition';
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: ['active', 'href', 'as'],
|
||||
|
||||
computed: {
|
||||
classes() {
|
||||
return this.active
|
||||
? 'block pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition'
|
||||
: 'block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition'
|
||||
}
|
||||
}
|
||||
}
|
||||
: 'block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition';
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'button',
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -9,15 +9,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
export default {
|
||||
computed: {
|
||||
errors() {
|
||||
return this.$page.props.errors
|
||||
return this.$page.props.errors;
|
||||
},
|
||||
|
||||
hasErrors() {
|
||||
return Object.keys(this.errors).length > 0;
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -242,14 +242,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetApplicationMark from '@/Jetstream/ApplicationMark'
|
||||
import JetBanner from '@/Jetstream/Banner'
|
||||
import JetDropdown from '@/Jetstream/Dropdown'
|
||||
import JetDropdownLink from '@/Jetstream/DropdownLink'
|
||||
import JetNavLink from '@/Jetstream/NavLink'
|
||||
import JetResponsiveNavLink from '@/Jetstream/ResponsiveNavLink'
|
||||
import JetApplicationMark from '@/Jetstream/ApplicationMark';
|
||||
import JetBanner from '@/Jetstream/Banner';
|
||||
import JetDropdown from '@/Jetstream/Dropdown';
|
||||
import JetDropdownLink from '@/Jetstream/DropdownLink';
|
||||
import JetNavLink from '@/Jetstream/NavLink';
|
||||
import JetResponsiveNavLink from '@/Jetstream/ResponsiveNavLink';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetApplicationMark,
|
||||
JetBanner,
|
||||
|
|
@ -262,21 +262,21 @@
|
|||
data() {
|
||||
return {
|
||||
showingNavigationDropdown: false,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
switchToTeam(team) {
|
||||
this.$inertia.put(route('current-team.update'), {
|
||||
'team_id': team.id
|
||||
team_id: team.id,
|
||||
}, {
|
||||
preserveState: false
|
||||
})
|
||||
preserveState: false,
|
||||
});
|
||||
},
|
||||
|
||||
logout() {
|
||||
this.$inertia.post(route('logout'));
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -20,19 +20,19 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import Sidebar from "@/Components/Sidebar"
|
||||
import Navbar from "@/Components/Navbar"
|
||||
import JetBanner from '@/Jetstream/Banner'
|
||||
import { mapState } from 'vuex';
|
||||
import Sidebar from '@/Components/Sidebar';
|
||||
import Navbar from '@/Components/Navbar';
|
||||
import JetBanner from '@/Jetstream/Banner';
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
...mapState(['sideBarOpen'])
|
||||
...mapState(['sideBarOpen']),
|
||||
},
|
||||
components: {
|
||||
Sidebar,
|
||||
Navbar,
|
||||
JetBanner,
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -164,21 +164,21 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal'
|
||||
import JetDangerButton from '@/Jetstream/DangerButton'
|
||||
import JetDialogModal from '@/Jetstream/DialogModal'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetCheckbox from '@/Jetstream/Checkbox'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal';
|
||||
import JetDangerButton from '@/Jetstream/DangerButton';
|
||||
import JetDialogModal from '@/Jetstream/DialogModal';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetCheckbox from '@/Jetstream/Checkbox';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionMessage,
|
||||
JetActionSection,
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
}),
|
||||
|
||||
updateApiTokenForm: this.$inertia.form({
|
||||
permissions: []
|
||||
permissions: [],
|
||||
}),
|
||||
|
||||
deleteApiTokenForm: this.$inertia.form(),
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
displayingToken: false,
|
||||
managingPermissionsFor: null,
|
||||
apiTokenBeingDeleted: null,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -225,16 +225,16 @@
|
|||
this.createApiTokenForm.post(route('api-tokens.store'), {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => {
|
||||
this.displayingToken = true
|
||||
this.createApiTokenForm.reset()
|
||||
}
|
||||
})
|
||||
this.displayingToken = true;
|
||||
this.createApiTokenForm.reset();
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
manageApiTokenPermissions(token) {
|
||||
this.updateApiTokenForm.permissions = token.abilities
|
||||
this.updateApiTokenForm.permissions = token.abilities;
|
||||
|
||||
this.managingPermissionsFor = token
|
||||
this.managingPermissionsFor = token;
|
||||
},
|
||||
|
||||
updateApiToken() {
|
||||
|
|
@ -242,11 +242,11 @@
|
|||
preserveScroll: true,
|
||||
preserveState: true,
|
||||
onSuccess: () => (this.managingPermissionsFor = null),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
confirmApiTokenDeletion(token) {
|
||||
this.apiTokenBeingDeleted = token
|
||||
this.apiTokenBeingDeleted = token;
|
||||
},
|
||||
|
||||
deleteApiToken() {
|
||||
|
|
@ -254,8 +254,8 @@
|
|||
preserveScroll: true,
|
||||
preserveState: true,
|
||||
onSuccess: () => (this.apiTokenBeingDeleted = null),
|
||||
})
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ApiTokenManager from './ApiTokenManager'
|
||||
import AppLayout from '@/Layouts/AppLayout'
|
||||
import AppLayout from '@/Layouts/AppLayout';
|
||||
import ApiTokenManager from './ApiTokenManager';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
props: [
|
||||
'tokens',
|
||||
'availablePermissions',
|
||||
|
|
@ -31,5 +31,5 @@
|
|||
ApiTokenManager,
|
||||
AppLayout,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -26,37 +26,37 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
JetButton,
|
||||
JetInput,
|
||||
JetLabel,
|
||||
JetValidationErrors
|
||||
JetValidationErrors,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
form: this.$inertia.form({
|
||||
password: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form.post(this.route('password.confirm'), {
|
||||
onFinish: () => this.form.reset(),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -30,39 +30,39 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
JetButton,
|
||||
JetInput,
|
||||
JetLabel,
|
||||
JetValidationErrors
|
||||
JetValidationErrors,
|
||||
},
|
||||
|
||||
props: {
|
||||
status: String
|
||||
status: String,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
form: this.$inertia.form({
|
||||
email: ''
|
||||
})
|
||||
}
|
||||
email: '',
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form.post(this.route('password.email'))
|
||||
}
|
||||
}
|
||||
}
|
||||
this.form.post(this.route('password.email'));
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -42,15 +42,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetCheckbox from '@/Jetstream/Checkbox'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetCheckbox from '@/Jetstream/Checkbox';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
|
|
@ -58,12 +58,12 @@
|
|||
JetInput,
|
||||
JetCheckbox,
|
||||
JetLabel,
|
||||
JetValidationErrors
|
||||
JetValidationErrors,
|
||||
},
|
||||
|
||||
props: {
|
||||
canResetPassword: Boolean,
|
||||
status: String
|
||||
status: String,
|
||||
},
|
||||
|
||||
data() {
|
||||
|
|
@ -71,22 +71,22 @@
|
|||
form: this.$inertia.form({
|
||||
email: '',
|
||||
password: '',
|
||||
remember: false
|
||||
})
|
||||
}
|
||||
remember: false,
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form
|
||||
.transform(data => ({
|
||||
... data,
|
||||
remember: this.form.remember ? 'on' : ''
|
||||
.transform((data) => ({
|
||||
...data,
|
||||
remember: this.form.remember ? 'on' : '',
|
||||
}))
|
||||
.post(this.route('login'), {
|
||||
onFinish: () => this.form.reset('password'),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -53,15 +53,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetCheckbox from "@/Jetstream/Checkbox";
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetCheckbox from '@/Jetstream/Checkbox';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
|
|
@ -69,7 +69,7 @@
|
|||
JetInput,
|
||||
JetCheckbox,
|
||||
JetLabel,
|
||||
JetValidationErrors
|
||||
JetValidationErrors,
|
||||
},
|
||||
|
||||
data() {
|
||||
|
|
@ -80,16 +80,16 @@
|
|||
password: '',
|
||||
password_confirmation: '',
|
||||
terms: false,
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form.post(this.route('register'), {
|
||||
onFinish: () => this.form.reset('password', 'password_confirmation'),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -32,21 +32,21 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
JetButton,
|
||||
JetInput,
|
||||
JetLabel,
|
||||
JetValidationErrors
|
||||
JetValidationErrors,
|
||||
},
|
||||
|
||||
props: {
|
||||
|
|
@ -61,16 +61,16 @@
|
|||
email: this.email,
|
||||
password: '',
|
||||
password_confirmation: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form.post(this.route('password.update'), {
|
||||
onFinish: () => this.form.reset('password', 'password_confirmation'),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -47,14 +47,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetValidationErrors from '@/Jetstream/ValidationErrors';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
|
|
@ -70,28 +70,28 @@
|
|||
form: this.$inertia.form({
|
||||
code: '',
|
||||
recovery_code: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggleRecovery() {
|
||||
this.recovery ^= true
|
||||
this.recovery ^= true;
|
||||
|
||||
this.$nextTick(() => {
|
||||
if (this.recovery) {
|
||||
this.$refs.recovery_code.focus()
|
||||
this.$refs.recovery_code.focus();
|
||||
this.form.code = '';
|
||||
} else {
|
||||
this.$refs.code.focus()
|
||||
this.form.recovery_code = ''
|
||||
this.$refs.code.focus();
|
||||
this.form.recovery_code = '';
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
submit() {
|
||||
this.form.post(this.route('two-factor.login'))
|
||||
}
|
||||
}
|
||||
}
|
||||
this.form.post(this.route('two-factor.login'));
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -25,11 +25,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard'
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetAuthenticationCard from '@/Jetstream/AuthenticationCard';
|
||||
import JetAuthenticationCardLogo from '@/Jetstream/AuthenticationCardLogo';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetAuthenticationCard,
|
||||
JetAuthenticationCardLogo,
|
||||
|
|
@ -37,25 +37,25 @@
|
|||
},
|
||||
|
||||
props: {
|
||||
status: String
|
||||
status: String,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
form: this.$inertia.form()
|
||||
}
|
||||
form: this.$inertia.form(),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
submit() {
|
||||
this.form.post(this.route('verification.send'))
|
||||
this.form.post(this.route('verification.send'));
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
verificationLinkSent() {
|
||||
return this.status === 'verification-link-sent';
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import CarFormFields from '@/Pages/Cars/Components/CarFormFields.vue'
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import CarFormFields from '@/Pages/Cars/Components/CarFormFields.vue';
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -50,12 +50,12 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
form: useForm(this.meta.form_name, this.data),
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
this.form.submit(this.meta.method, this.meta.route);
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -81,13 +81,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetInput from '@/Jetstream/Input.vue'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import Multiselect from 'vue-multiselect'
|
||||
import Datepicker from 'vue3-datepicker'
|
||||
import CurrencyInput from '@/Components/CurrencyInput'
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetInput from '@/Jetstream/Input.vue';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import Multiselect from 'vue-multiselect';
|
||||
import Datepicker from 'vue3-datepicker';
|
||||
import CurrencyInput from '@/Components/CurrencyInput';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -120,7 +120,7 @@ export default {
|
|||
precision: 0,
|
||||
currencyDisplay: 'hidden',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
updateBrand(brand) {
|
||||
|
|
@ -152,7 +152,7 @@ export default {
|
|||
this.updateCarModel(null);
|
||||
},
|
||||
updateBrandSearch(searchQuery, id) {
|
||||
this.brandSearch = searchQuery
|
||||
this.brandSearch = searchQuery;
|
||||
},
|
||||
addBrand() {
|
||||
axios.post(this.route('brands.store'), {
|
||||
|
|
@ -164,7 +164,7 @@ export default {
|
|||
});
|
||||
},
|
||||
updateCarModelSearch(searchQuery, id) {
|
||||
this.modelSearch = searchQuery
|
||||
this.modelSearch = searchQuery;
|
||||
},
|
||||
addCarModel() {
|
||||
axios.post(this.route('models.store'), {
|
||||
|
|
@ -177,14 +177,14 @@ export default {
|
|||
});
|
||||
},
|
||||
},
|
||||
mounted: function () {
|
||||
mounted() {
|
||||
this.$nextTick(function () {
|
||||
this.brandSelection = this.brands.find(x => x.id === this.brand.id);
|
||||
this.brandSelection = this.brands.find((x) => x.id === this.brand.id);
|
||||
if (this.brandSelection) {
|
||||
this.carModels = this.brandSelection.models ?? [];
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
||||
|
|
@ -17,10 +17,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import CarForm from './Components/CarForm.vue'
|
||||
import { ref } from 'vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import { ref } from 'vue';
|
||||
import CarForm from './Components/CarForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -52,9 +52,9 @@ export default {
|
|||
known_damage: null,
|
||||
notes: null,
|
||||
},
|
||||
brand: {id: null, name: null},
|
||||
car_model: {id: null, name: null},
|
||||
}
|
||||
brand: { id: null, name: null },
|
||||
car_model: { id: null, name: null },
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -19,10 +19,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import CarForm from './Components/CarForm.vue'
|
||||
import { ref } from 'vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import { ref } from 'vue';
|
||||
import CarForm from './Components/CarForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -35,12 +35,12 @@ export default {
|
|||
brands: Array,
|
||||
},
|
||||
computed: {
|
||||
name: function () {
|
||||
name() {
|
||||
let out = '';
|
||||
if (this.brand.name) {
|
||||
out += this.brand.name;
|
||||
if (this.car_model.name) {
|
||||
out += ' ' + this.car_model.name;
|
||||
out += ` ${this.car_model.name}`;
|
||||
}
|
||||
}
|
||||
return out;
|
||||
|
|
@ -50,7 +50,7 @@ export default {
|
|||
return {
|
||||
currentRoute: 'cars.edit',
|
||||
meta: {
|
||||
form_name: 'EditCar' + this.car.id,
|
||||
form_name: `EditCar${this.car.id}`,
|
||||
route: this.route('cars.update', this.car.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
|
|
@ -71,7 +71,7 @@ export default {
|
|||
known_damage: this.car.known_damage,
|
||||
notes: this.car.notes,
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,15 +32,15 @@ export default {
|
|||
return {
|
||||
currentRoute: 'cars',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'stammnummer', value: 'Stammummer', sortable: true},
|
||||
{key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true},
|
||||
{key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true},
|
||||
{key: 'sell_contract.date', value: 'Verkaufssdatum', sortable: true},
|
||||
{key: 'sell_contract.price', value: 'Verkaufspreis', sortable: true},
|
||||
{key: 'profit', value: 'Profit', sortable: true},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'stammnummer', value: 'Stammummer', sortable: true },
|
||||
{ key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true },
|
||||
{ key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true },
|
||||
{ key: 'sell_contract.date', value: 'Verkaufssdatum', sortable: true },
|
||||
{ key: 'sell_contract.price', value: 'Verkaufspreis', sortable: true },
|
||||
{ key: 'profit', value: 'Profit', sortable: true },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -51,14 +51,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ShowPage from '@/Components/ShowPage.vue'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import BuyContractCard from '@/Components/BuyContractCard.vue'
|
||||
import SellContractCard from '@/Components/SellContractCard.vue'
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue'
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue'
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue'
|
||||
import ShowPage from '@/Components/ShowPage.vue';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import BuyContractCard from '@/Components/BuyContractCard.vue';
|
||||
import SellContractCard from '@/Components/SellContractCard.vue';
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue';
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue';
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -77,7 +77,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
currentRoute: 'cars.show',
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,15 +32,15 @@ export default {
|
|||
return {
|
||||
currentRoute: 'cars.sold',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'stammnummer', value: 'Stammummer', sortable: true},
|
||||
{key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true},
|
||||
{key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true},
|
||||
{key: 'sell_contract.date', value: 'Verkaufssdatum', sortable: true},
|
||||
{key: 'sell_contract.price', value: 'Verkaufspreis', sortable: true},
|
||||
{key: 'profit', value: 'Profit', sortable: true},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'stammnummer', value: 'Stammummer', sortable: true },
|
||||
{ key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true },
|
||||
{ key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true },
|
||||
{ key: 'sell_contract.date', value: 'Verkaufssdatum', sortable: true },
|
||||
{ key: 'sell_contract.price', value: 'Verkaufspreis', sortable: true },
|
||||
{ key: 'profit', value: 'Profit', sortable: true },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,13 +32,13 @@ export default {
|
|||
return {
|
||||
currentRoute: 'cars.unsold',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'stammnummer', value: 'Stammummer', sortable: true},
|
||||
{key: 'initial_date', value: 'Inverkehrssetzung', sortable: true},
|
||||
{key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true},
|
||||
{key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'stammnummer', value: 'Stammummer', sortable: true },
|
||||
{ key: 'initial_date', value: 'Inverkehrssetzung', sortable: true },
|
||||
{ key: 'buy_contract.date', value: 'Einkaufsdatum', sortable: true },
|
||||
{ key: 'buy_contract.price', value: 'Einkaufspreis', sortable: true },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,13 +32,13 @@ export default {
|
|||
return {
|
||||
currentRoute: 'contacts.buyers',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'company', value: 'Firma', sortable: true},
|
||||
{key: 'address', value: 'Adresse', sortable: true},
|
||||
{key: 'fullCity', value: 'Ort', sortable: true},
|
||||
{key: 'phone', value: 'Telefon'},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'company', value: 'Firma', sortable: true },
|
||||
{ key: 'address', value: 'Adresse', sortable: true },
|
||||
{ key: 'fullCity', value: 'Ort', sortable: true },
|
||||
{ key: 'phone', value: 'Telefon' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -27,11 +27,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import ContactFormFields from './ContactFormFields'
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
import ContactFormFields from './ContactFormFields';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -47,12 +47,12 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
form: useForm(this.meta.form_name, this.data),
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
this.form.submit(this.meta.method, this.meta.route);
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -70,9 +70,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetInput from '@/Jetstream/Input.vue'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetInput from '@/Jetstream/Input.vue';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -83,5 +83,5 @@ export default {
|
|||
props: {
|
||||
form: Object,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContactForm from './Components/ContactForm.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import ContactForm from './Components/ContactForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -49,7 +49,7 @@ export default {
|
|||
country: 'CH',
|
||||
notes: null,
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -20,9 +20,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContactForm from './Components/ContactForm.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import ContactForm from './Components/ContactForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -37,7 +37,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
meta: {
|
||||
form_name: 'EditContact' + this.contact.id,
|
||||
form_name: `EditContact${this.contact.id}`,
|
||||
route: this.route('contacts.update', this.contact.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
|
|
@ -56,7 +56,7 @@ export default {
|
|||
country: this.contact.country,
|
||||
notes: this.contact.notes,
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,13 +32,13 @@ export default {
|
|||
return {
|
||||
currentRoute: 'contacts',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'company', value: 'Firma', sortable: true},
|
||||
{key: 'address', value: 'Adresse', sortable: true},
|
||||
{key: 'fullCity', value: 'Ort', sortable: true},
|
||||
{key: 'phone', value: 'Telefon'},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'company', value: 'Firma', sortable: true },
|
||||
{ key: 'address', value: 'Adresse', sortable: true },
|
||||
{ key: 'fullCity', value: 'Ort', sortable: true },
|
||||
{ key: 'phone', value: 'Telefon' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -32,13 +32,13 @@ export default {
|
|||
return {
|
||||
currentRoute: 'contacts.sellers',
|
||||
columns: [
|
||||
{key: 'name', value: 'Name', sortable: true},
|
||||
{key: 'company', value: 'Firma', sortable: true},
|
||||
{key: 'address', value: 'Adresse', sortable: true},
|
||||
{key: 'fullCity', value: 'Ort', sortable: true},
|
||||
{key: 'phone', value: 'Telefon'},
|
||||
{ key: 'name', value: 'Name', sortable: true },
|
||||
{ key: 'company', value: 'Firma', sortable: true },
|
||||
{ key: 'address', value: 'Adresse', sortable: true },
|
||||
{ key: 'fullCity', value: 'Ort', sortable: true },
|
||||
{ key: 'phone', value: 'Telefon' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -54,14 +54,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ShowPage from '@/Components/ShowPage.vue'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import BuyContractCard from '@/Components/BuyContractCard.vue'
|
||||
import SellContractCard from '@/Components/SellContractCard.vue'
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue'
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue'
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue'
|
||||
import ShowPage from '@/Components/ShowPage.vue';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import BuyContractCard from '@/Components/BuyContractCard.vue';
|
||||
import SellContractCard from '@/Components/SellContractCard.vue';
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue';
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue';
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -81,7 +81,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
currentRoute: 'contacts.show',
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -47,15 +47,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetInput from '@/Jetstream/Input.vue'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import Datepicker from 'vue3-datepicker'
|
||||
import { useForm } from '@inertiajs/inertia-vue3'
|
||||
import CurrencyInput from '@/Components/CurrencyInput'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetInput from '@/Jetstream/Input.vue';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import Datepicker from 'vue3-datepicker';
|
||||
import { useForm } from '@inertiajs/inertia-vue3';
|
||||
import CurrencyInput from '@/Components/CurrencyInput';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -82,12 +82,12 @@ export default {
|
|||
exportValueAsInteger: true,
|
||||
hideGroupingSeparatorOnFocus: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
submitForm() {
|
||||
this.form.submit(this.meta.method, this.meta.route);
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -54,13 +54,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContractForm from './Components/ContractForm.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import { ref } from 'vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import { ref } from 'vue';
|
||||
import ContractForm from './Components/ContractForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -95,20 +95,20 @@ export default {
|
|||
insurance_type: '0',
|
||||
car_id: this.car.id,
|
||||
contact_id: this.contact.id,
|
||||
is_sell_contract: this.type == "SellContract",
|
||||
is_sell_contract: this.type == 'SellContract',
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
contractType: function () {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
contractType() {
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function () {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
contactType() {
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function () {
|
||||
return this.type == "SellContract";
|
||||
isSellContract() {
|
||||
return this.type == 'SellContract';
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -67,16 +67,16 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContactFormFields from '@/Pages/Contacts/Components/ContactFormFields.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import Multiselect from 'vue-multiselect'
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import ContactFormFields from '@/Pages/Contacts/Components/ContactFormFields.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import Multiselect from 'vue-multiselect';
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -114,19 +114,19 @@ export default {
|
|||
errors: {},
|
||||
},
|
||||
createContact: false,
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
contractType: function () {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
contractType() {
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function () {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
contactType() {
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function () {
|
||||
return this.type == "SellContract";
|
||||
isSellContract() {
|
||||
return this.type == 'SellContract';
|
||||
},
|
||||
emptyContact: function() {
|
||||
emptyContact() {
|
||||
return {
|
||||
id: null,
|
||||
firstname: null,
|
||||
|
|
@ -149,7 +149,7 @@ export default {
|
|||
type: this.isSellContract ? 1 : 0,
|
||||
car: this.car.id,
|
||||
contact: this.contact.id,
|
||||
}), { preserveScroll: true, carFirst: true, });
|
||||
}), { preserveScroll: true, carFirst: true });
|
||||
},
|
||||
openContactForm() {
|
||||
this.createContact = true;
|
||||
|
|
@ -158,23 +158,22 @@ export default {
|
|||
submitCreateContactForm(e) {
|
||||
e.preventDefault();
|
||||
axios.post(this.route('contacts.store_for_contract'), this.contact)
|
||||
.then(res => {
|
||||
.then((res) => {
|
||||
this.contactsChoice.push(res.data);
|
||||
this.contact = res.data;
|
||||
this.createContact = false;
|
||||
}).catch(err => {
|
||||
}).catch((err) => {
|
||||
if (err.response) {
|
||||
let errors = err.response.data.errors;
|
||||
const { errors } = err.response.data;
|
||||
|
||||
Object.keys(errors).map(function(key, index) {
|
||||
Object.keys(errors).map((key, index) => {
|
||||
errors[key] = errors[key].join(' ');
|
||||
});
|
||||
this.contact.errors = errors;
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
||||
|
|
@ -67,16 +67,16 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import CarFormFields from '@/Pages/Cars/Components/CarFormFields.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import Multiselect from 'vue-multiselect'
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import CarFormFields from '@/Pages/Cars/Components/CarFormFields.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import Multiselect from 'vue-multiselect';
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -113,22 +113,22 @@ export default {
|
|||
notes: null,
|
||||
errors: {},
|
||||
},
|
||||
brand: {id: null, name: null},
|
||||
car_model: {id: null, name: null},
|
||||
brand: { id: null, name: null },
|
||||
car_model: { id: null, name: null },
|
||||
createCar: false,
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
contractType: function () {
|
||||
return this.isSellContract ? "Verkaufsvertrag" : "Ankaufsvertrag";
|
||||
contractType() {
|
||||
return this.isSellContract ? 'Verkaufsvertrag' : 'Ankaufsvertrag';
|
||||
},
|
||||
contactType: function () {
|
||||
return this.isSellContract ? "Käufer" : "Verkäufer";
|
||||
contactType() {
|
||||
return this.isSellContract ? 'Käufer' : 'Verkäufer';
|
||||
},
|
||||
isSellContract: function () {
|
||||
return this.type == "SellContract";
|
||||
isSellContract() {
|
||||
return this.type == 'SellContract';
|
||||
},
|
||||
emptyCar: function() {
|
||||
emptyCar() {
|
||||
return {
|
||||
id: null,
|
||||
stammnummer: null,
|
||||
|
|
@ -159,23 +159,22 @@ export default {
|
|||
submitCreateCarForm(e) {
|
||||
e.preventDefault();
|
||||
axios.post(this.route('cars.store_for_contract'), this.car)
|
||||
.then(res => {
|
||||
.then((res) => {
|
||||
this.carsChoice.push(res.data);
|
||||
this.car = res.data;
|
||||
this.createCar = false;
|
||||
}).catch(err => {
|
||||
}).catch((err) => {
|
||||
if (err.response) {
|
||||
let errors = err.response.data.errors;
|
||||
const { errors } = err.response.data;
|
||||
|
||||
Object.keys(errors).map(function(key, index) {
|
||||
Object.keys(errors).map((key, index) => {
|
||||
errors[key] = errors[key].join(' ');
|
||||
});
|
||||
this.car.errors = errors;
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
||||
|
|
@ -20,10 +20,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import ContractForm from './Components/ContractForm.vue'
|
||||
import { ref } from 'vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import { ref } from 'vue';
|
||||
import ContractForm from './Components/ContractForm.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -39,7 +39,7 @@ export default {
|
|||
return {
|
||||
currentRoute: 'contracts.edit',
|
||||
meta: {
|
||||
form_name: 'EditContract' + this.contract.id,
|
||||
form_name: `EditContract${this.contract.id}`,
|
||||
route: this.route('contracts.update', this.contract.id),
|
||||
method: 'put',
|
||||
button_text: 'Änderungen speichern',
|
||||
|
|
@ -50,8 +50,8 @@ export default {
|
|||
price: this.contract.price,
|
||||
insurance_type: this.contract.insurance_type,
|
||||
is_sell_contract: this.contract.is_sell_contract,
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
@ -73,18 +73,17 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ShowPage from '@/Components/ShowPage.vue'
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue'
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue'
|
||||
import CarCard from '@/Components/CarCard.vue'
|
||||
import PrintButton from '@/Components/Buttons/PrintButton.vue'
|
||||
import ContactCard from '@/Components/ContactCard.vue'
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue'
|
||||
import DocumentsView from '@/Components/Documents/View.vue'
|
||||
import PaymentsView from '@/Components/Payments/View.vue'
|
||||
|
||||
import ShowPage from '@/Components/ShowPage.vue';
|
||||
import BreadCrumb from '@/Components/BreadCrumb.vue';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
import DeleteButton from '@/Components/Buttons/DeleteButton.vue';
|
||||
import RestoreButton from '@/Components/Buttons/RestoreButton.vue';
|
||||
import CarCard from '@/Components/CarCard.vue';
|
||||
import PrintButton from '@/Components/Buttons/PrintButton.vue';
|
||||
import ContactCard from '@/Components/ContactCard.vue';
|
||||
import EditButton from '@/Components/Buttons/EditButton.vue';
|
||||
import DocumentsView from '@/Components/Documents/View.vue';
|
||||
import PaymentsView from '@/Components/Payments/View.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -105,25 +104,25 @@ export default {
|
|||
contract: Object,
|
||||
},
|
||||
computed: {
|
||||
contactTitle: function() {
|
||||
contactTitle() {
|
||||
return this.contract.is_sell_contract ? 'Käufer' : 'Verkäufer';
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentRoute: 'contracts.show',
|
||||
buyContractsColumns: [
|
||||
{key: 'contact', value: 'Verkäufer'},
|
||||
{key: 'date', value: 'Kaufdatum'},
|
||||
{key: 'price', value: 'Kaufpreis'},
|
||||
{ key: 'contact', value: 'Verkäufer' },
|
||||
{ key: 'date', value: 'Kaufdatum' },
|
||||
{ key: 'price', value: 'Kaufpreis' },
|
||||
],
|
||||
sellContractsColumns: [
|
||||
{key: 'contact', value: 'Käufer'},
|
||||
{key: 'date', value: 'Verkaufsdatum'},
|
||||
{key: 'price', value: 'Verkaufspreis'},
|
||||
{key: 'insurance_type', value: 'Versicherungstyp'},
|
||||
{ key: 'contact', value: 'Käufer' },
|
||||
{ key: 'date', value: 'Verkaufsdatum' },
|
||||
{ key: 'price', value: 'Verkaufspreis' },
|
||||
{ key: 'insurance_type', value: 'Versicherungstyp' },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -22,11 +22,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import SimpleTable from '@/Components/SimpleTable.vue'
|
||||
import DashItem from '@/Components/Dashboard/DashItem.vue'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import SimpleTable from '@/Components/SimpleTable.vue';
|
||||
import DashItem from '@/Components/Dashboard/DashItem.vue';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
Layout,
|
||||
SimpleTable,
|
||||
|
|
@ -43,18 +43,18 @@
|
|||
return {
|
||||
currentRoute: 'cars',
|
||||
buyContractColumns: [
|
||||
{key: 'date', value: 'Datum', sortable: false},
|
||||
{ key: 'date', value: 'Datum', sortable: false },
|
||||
// {key: 'car', value: 'Auto', sortable: false},
|
||||
{key: 'contact', value: 'Verkäufer', sortable: false},
|
||||
{key: 'price', value: 'Einkaufspreis', sortable: false},
|
||||
{ key: 'contact', value: 'Verkäufer', sortable: false },
|
||||
{ key: 'price', value: 'Einkaufspreis', sortable: false },
|
||||
],
|
||||
sellContractColumns: [
|
||||
{key: 'date', value: 'Datum', sortable: false},
|
||||
{ key: 'date', value: 'Datum', sortable: false },
|
||||
// {key: 'car', value: 'Auto', sortable: false},
|
||||
{key: 'contact', value: 'Käufer', sortable: false},
|
||||
{key: 'price', value: 'Verkaufspreis', sortable: false},
|
||||
{ key: 'contact', value: 'Käufer', sortable: false },
|
||||
{ key: 'price', value: 'Verkaufspreis', sortable: false },
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -53,14 +53,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetDialogModal from '@/Jetstream/DialogModal'
|
||||
import JetDangerButton from '@/Jetstream/DangerButton'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetDialogModal from '@/Jetstream/DialogModal';
|
||||
import JetDangerButton from '@/Jetstream/DangerButton';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionSection,
|
||||
JetDangerButton,
|
||||
|
|
@ -76,15 +76,15 @@
|
|||
|
||||
form: this.$inertia.form({
|
||||
password: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
confirmUserDeletion() {
|
||||
this.confirmingUserDeletion = true;
|
||||
|
||||
setTimeout(() => this.$refs.password.focus(), 250)
|
||||
setTimeout(() => this.$refs.password.focus(), 250);
|
||||
},
|
||||
|
||||
deleteUser() {
|
||||
|
|
@ -93,14 +93,14 @@
|
|||
onSuccess: () => this.closeModal(),
|
||||
onError: () => this.$refs.password.focus(),
|
||||
onFinish: () => this.form.reset(),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
closeModal() {
|
||||
this.confirmingUserDeletion = false
|
||||
this.confirmingUserDeletion = false;
|
||||
|
||||
this.form.reset()
|
||||
this.form.reset();
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -87,15 +87,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetDialogModal from '@/Jetstream/DialogModal'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetDialogModal from '@/Jetstream/DialogModal';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
props: ['sessions'],
|
||||
|
||||
components: {
|
||||
|
|
@ -114,15 +114,15 @@
|
|||
|
||||
form: this.$inertia.form({
|
||||
password: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
confirmLogout() {
|
||||
this.confirmingLogout = true
|
||||
this.confirmingLogout = true;
|
||||
|
||||
setTimeout(() => this.$refs.password.focus(), 250)
|
||||
setTimeout(() => this.$refs.password.focus(), 250);
|
||||
},
|
||||
|
||||
logoutOtherBrowserSessions() {
|
||||
|
|
@ -131,14 +131,14 @@
|
|||
onSuccess: () => this.closeModal(),
|
||||
onError: () => this.$refs.password.focus(),
|
||||
onFinish: () => this.form.reset(),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
closeModal() {
|
||||
this.confirmingLogout = false
|
||||
this.confirmingLogout = false;
|
||||
|
||||
this.form.reset()
|
||||
this.form.reset();
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -39,15 +39,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import DeleteUserForm from './DeleteUserForm'
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder'
|
||||
import LogoutOtherBrowserSessionsForm from './LogoutOtherBrowserSessionsForm'
|
||||
import TwoFactorAuthenticationForm from './TwoFactorAuthenticationForm'
|
||||
import UpdatePasswordForm from './UpdatePasswordForm'
|
||||
import UpdateProfileInformationForm from './UpdateProfileInformationForm'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder';
|
||||
import DeleteUserForm from './DeleteUserForm';
|
||||
import LogoutOtherBrowserSessionsForm from './LogoutOtherBrowserSessionsForm';
|
||||
import TwoFactorAuthenticationForm from './TwoFactorAuthenticationForm';
|
||||
import UpdatePasswordForm from './UpdatePasswordForm';
|
||||
import UpdateProfileInformationForm from './UpdateProfileInformationForm';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
props: ['sessions'],
|
||||
|
||||
components: {
|
||||
|
|
@ -59,5 +59,5 @@
|
|||
UpdatePasswordForm,
|
||||
UpdateProfileInformationForm,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -87,13 +87,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetConfirmsPassword from '@/Jetstream/ConfirmsPassword'
|
||||
import JetDangerButton from '@/Jetstream/DangerButton'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetConfirmsPassword from '@/Jetstream/ConfirmsPassword';
|
||||
import JetDangerButton from '@/Jetstream/DangerButton';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionSection,
|
||||
JetButton,
|
||||
|
|
@ -109,12 +109,12 @@
|
|||
|
||||
qrCode: null,
|
||||
recoveryCodes: [],
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
enableTwoFactorAuthentication() {
|
||||
this.enabling = true
|
||||
this.enabling = true;
|
||||
|
||||
this.$inertia.post('/user/two-factor-authentication', {}, {
|
||||
preserveScroll: true,
|
||||
|
|
@ -123,44 +123,44 @@
|
|||
this.showRecoveryCodes(),
|
||||
]),
|
||||
onFinish: () => (this.enabling = false),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
showQrCode() {
|
||||
return axios.get('/user/two-factor-qr-code')
|
||||
.then(response => {
|
||||
this.qrCode = response.data.svg
|
||||
})
|
||||
.then((response) => {
|
||||
this.qrCode = response.data.svg;
|
||||
});
|
||||
},
|
||||
|
||||
showRecoveryCodes() {
|
||||
return axios.get('/user/two-factor-recovery-codes')
|
||||
.then(response => {
|
||||
this.recoveryCodes = response.data
|
||||
})
|
||||
.then((response) => {
|
||||
this.recoveryCodes = response.data;
|
||||
});
|
||||
},
|
||||
|
||||
regenerateRecoveryCodes() {
|
||||
axios.post('/user/two-factor-recovery-codes')
|
||||
.then(response => {
|
||||
this.showRecoveryCodes()
|
||||
})
|
||||
.then((response) => {
|
||||
this.showRecoveryCodes();
|
||||
});
|
||||
},
|
||||
|
||||
disableTwoFactorAuthentication() {
|
||||
this.disabling = true
|
||||
this.disabling = true;
|
||||
|
||||
this.$inertia.delete('/user/two-factor-authentication', {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => (this.disabling = false),
|
||||
})
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
twoFactorEnabled() {
|
||||
return ! this.enabling && this.$page.props.user.two_factor_enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
return !this.enabling && this.$page.props.user.two_factor_enabled;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -41,14 +41,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionMessage,
|
||||
JetButton,
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
password: '',
|
||||
password_confirmation: '',
|
||||
}),
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -76,17 +76,17 @@
|
|||
onSuccess: () => this.form.reset(),
|
||||
onError: () => {
|
||||
if (this.form.errors.password) {
|
||||
this.form.reset('password', 'password_confirmation')
|
||||
this.$refs.password.focus()
|
||||
this.form.reset('password', 'password_confirmation');
|
||||
this.$refs.password.focus();
|
||||
}
|
||||
|
||||
if (this.form.errors.current_password) {
|
||||
this.form.reset('current_password')
|
||||
this.$refs.current_password.focus()
|
||||
this.form.reset('current_password');
|
||||
this.$refs.current_password.focus();
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -69,15 +69,15 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionMessage,
|
||||
JetButton,
|
||||
|
|
@ -100,18 +100,18 @@
|
|||
}),
|
||||
|
||||
photoPreview: null,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
updateProfileInformation() {
|
||||
if (this.$refs.photo) {
|
||||
this.form.photo = this.$refs.photo.files[0]
|
||||
this.form.photo = this.$refs.photo.files[0];
|
||||
}
|
||||
|
||||
this.form.post(route('user-profile-information.update'), {
|
||||
errorBag: 'updateProfileInformation',
|
||||
preserveScroll: true
|
||||
preserveScroll: true,
|
||||
});
|
||||
},
|
||||
|
||||
|
|
@ -136,5 +136,5 @@
|
|||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import Layout from '@/Layouts/Layout'
|
||||
import JetLabel from '@/Jetstream/Label.vue'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import Layout from '@/Layouts/Layout';
|
||||
import JetLabel from '@/Jetstream/Label.vue';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
@ -47,12 +47,12 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
link() {
|
||||
return route('reports.print', {year: this.year});
|
||||
return route('reports.print', { year: this.year });
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -15,13 +15,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import AppLayout from '@/Layouts/AppLayout'
|
||||
import CreateTeamForm from './CreateTeamForm'
|
||||
import AppLayout from '@/Layouts/AppLayout';
|
||||
import CreateTeamForm from './CreateTeamForm';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
AppLayout,
|
||||
CreateTeamForm,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetButton,
|
||||
JetFormSection,
|
||||
|
|
@ -57,17 +57,17 @@
|
|||
return {
|
||||
form: this.$inertia.form({
|
||||
name: '',
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
createTeam() {
|
||||
this.form.post(route('teams.store'), {
|
||||
errorBag: 'createTeam',
|
||||
preserveScroll: true
|
||||
preserveScroll: true,
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -44,12 +44,12 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal'
|
||||
import JetDangerButton from '@/Jetstream/DangerButton'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal';
|
||||
import JetDangerButton from '@/Jetstream/DangerButton';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
props: ['team'],
|
||||
|
||||
components: {
|
||||
|
|
@ -64,20 +64,20 @@
|
|||
confirmingTeamDeletion: false,
|
||||
deleting: false,
|
||||
|
||||
form: this.$inertia.form()
|
||||
}
|
||||
form: this.$inertia.form(),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
confirmTeamDeletion() {
|
||||
this.confirmingTeamDeletion = true
|
||||
this.confirmingTeamDeletion = true;
|
||||
},
|
||||
|
||||
deleteTeam() {
|
||||
this.form.delete(route('teams.destroy', this.team), {
|
||||
errorBag: 'deleteTeam'
|
||||
errorBag: 'deleteTeam',
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import TeamMemberManager from './TeamMemberManager'
|
||||
import AppLayout from '@/Layouts/AppLayout'
|
||||
import DeleteTeamForm from './DeleteTeamForm'
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder'
|
||||
import UpdateTeamNameForm from './UpdateTeamNameForm'
|
||||
import AppLayout from '@/Layouts/AppLayout';
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder';
|
||||
import TeamMemberManager from './TeamMemberManager';
|
||||
import DeleteTeamForm from './DeleteTeamForm';
|
||||
import UpdateTeamNameForm from './UpdateTeamNameForm';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
props: [
|
||||
'team',
|
||||
'availableRoles',
|
||||
|
|
@ -46,5 +46,5 @@
|
|||
TeamMemberManager,
|
||||
UpdateTeamNameForm,
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -247,20 +247,20 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetActionSection from '@/Jetstream/ActionSection'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal'
|
||||
import JetDangerButton from '@/Jetstream/DangerButton'
|
||||
import JetDialogModal from '@/Jetstream/DialogModal'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton'
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetActionSection from '@/Jetstream/ActionSection';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetConfirmationModal from '@/Jetstream/ConfirmationModal';
|
||||
import JetDangerButton from '@/Jetstream/DangerButton';
|
||||
import JetDialogModal from '@/Jetstream/DialogModal';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
import JetSecondaryButton from '@/Jetstream/SecondaryButton';
|
||||
import JetSectionBorder from '@/Jetstream/SectionBorder';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionMessage,
|
||||
JetActionSection,
|
||||
|
|
@ -279,7 +279,7 @@
|
|||
props: [
|
||||
'team',
|
||||
'availableRoles',
|
||||
'userPermissions'
|
||||
'userPermissions',
|
||||
],
|
||||
|
||||
data() {
|
||||
|
|
@ -300,7 +300,7 @@
|
|||
managingRoleFor: null,
|
||||
confirmingLeavingTeam: false,
|
||||
teamMemberBeingRemoved: null,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -314,33 +314,33 @@
|
|||
|
||||
cancelTeamInvitation(invitation) {
|
||||
this.$inertia.delete(route('team-invitations.destroy', invitation), {
|
||||
preserveScroll: true
|
||||
preserveScroll: true,
|
||||
});
|
||||
},
|
||||
|
||||
manageRole(teamMember) {
|
||||
this.managingRoleFor = teamMember
|
||||
this.updateRoleForm.role = teamMember.membership.role
|
||||
this.currentlyManagingRole = true
|
||||
this.managingRoleFor = teamMember;
|
||||
this.updateRoleForm.role = teamMember.membership.role;
|
||||
this.currentlyManagingRole = true;
|
||||
},
|
||||
|
||||
updateRole() {
|
||||
this.updateRoleForm.put(route('team-members.update', [this.team, this.managingRoleFor]), {
|
||||
preserveScroll: true,
|
||||
onSuccess: () => (this.currentlyManagingRole = false),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
confirmLeavingTeam() {
|
||||
this.confirmingLeavingTeam = true
|
||||
this.confirmingLeavingTeam = true;
|
||||
},
|
||||
|
||||
leaveTeam() {
|
||||
this.leaveTeamForm.delete(route('team-members.destroy', [this.team, this.$page.props.user]))
|
||||
this.leaveTeamForm.delete(route('team-members.destroy', [this.team, this.$page.props.user]));
|
||||
},
|
||||
|
||||
confirmTeamMemberRemoval(teamMember) {
|
||||
this.teamMemberBeingRemoved = teamMember
|
||||
this.teamMemberBeingRemoved = teamMember;
|
||||
},
|
||||
|
||||
removeTeamMember() {
|
||||
|
|
@ -349,12 +349,12 @@
|
|||
preserveScroll: true,
|
||||
preserveState: true,
|
||||
onSuccess: () => (this.teamMemberBeingRemoved = null),
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
displayableRole(role) {
|
||||
return this.availableRoles.find(r => r.key === role).name
|
||||
return this.availableRoles.find((r) => r.key === role).name;
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -50,14 +50,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage'
|
||||
import JetButton from '@/Jetstream/Button'
|
||||
import JetFormSection from '@/Jetstream/FormSection'
|
||||
import JetInput from '@/Jetstream/Input'
|
||||
import JetInputError from '@/Jetstream/InputError'
|
||||
import JetLabel from '@/Jetstream/Label'
|
||||
import JetActionMessage from '@/Jetstream/ActionMessage';
|
||||
import JetButton from '@/Jetstream/Button';
|
||||
import JetFormSection from '@/Jetstream/FormSection';
|
||||
import JetInput from '@/Jetstream/Input';
|
||||
import JetInputError from '@/Jetstream/InputError';
|
||||
import JetLabel from '@/Jetstream/Label';
|
||||
|
||||
export default {
|
||||
export default {
|
||||
components: {
|
||||
JetActionMessage,
|
||||
JetButton,
|
||||
|
|
@ -73,17 +73,17 @@
|
|||
return {
|
||||
form: this.$inertia.form({
|
||||
name: this.team.name,
|
||||
})
|
||||
}
|
||||
}),
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
updateTeamName() {
|
||||
this.form.put(route('teams.update', this.team), {
|
||||
errorBag: 'updateTeamName',
|
||||
preserveScroll: true
|
||||
preserveScroll: true,
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,44 +1,43 @@
|
|||
require('./bootstrap');
|
||||
|
||||
// Import modules...
|
||||
import { createApp, h } from 'vue';
|
||||
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
|
||||
import { InertiaProgress } from '@inertiajs/progress';
|
||||
import Unicon from 'vue-unicons';
|
||||
import { createStore } from 'vuex'
|
||||
import { uniChart, uniFileAlt, uniPalette, uniCalendarAlt, uniPlusCircle, uniMeh, uniUsersAlt, uniCarSideview, uniDashboard, uniSearch, uniFilter, uniFilterSlash, uniTrashAlt, uniPen, uniExclamationTriangle, uniMapMarker, uniPhone, uniEnvelope, uniFileDownload, uniArrowDown, uniArrowUp, uniArrowRight, uniAngleRight, uniAngleUp, uniAngleDown, uniAngleLeft, uniFileUploadAlt } from 'vue-unicons/dist/icons'
|
||||
import { createStore } from 'vuex';
|
||||
import {
|
||||
uniChart, uniFileAlt, uniPalette, uniCalendarAlt, uniPlusCircle, uniMeh, uniUsersAlt, uniCarSideview, uniDashboard, uniSearch, uniFilter, uniFilterSlash, uniTrashAlt, uniPen, uniExclamationTriangle, uniMapMarker, uniPhone, uniEnvelope, uniFileDownload, uniArrowDown, uniArrowUp, uniArrowRight, uniAngleRight, uniAngleUp, uniAngleDown, uniAngleLeft, uniFileUploadAlt,
|
||||
} from 'vue-unicons/dist/icons';
|
||||
|
||||
Unicon.add([uniChart, uniFileAlt, uniPalette, uniCalendarAlt, uniPlusCircle, uniMeh, uniUsersAlt, uniCarSideview, uniDashboard, uniSearch, uniFilter, uniFilterSlash, uniTrashAlt, uniPen, uniExclamationTriangle, uniMapMarker, uniPhone, uniEnvelope, uniFileDownload, uniArrowDown, uniArrowUp, uniArrowRight, uniAngleRight, uniAngleUp, uniAngleDown, uniAngleLeft, uniFileUploadAlt])
|
||||
require('./bootstrap');
|
||||
|
||||
Unicon.add([uniChart, uniFileAlt, uniPalette, uniCalendarAlt, uniPlusCircle, uniMeh, uniUsersAlt, uniCarSideview, uniDashboard, uniSearch, uniFilter, uniFilterSlash, uniTrashAlt, uniPen, uniExclamationTriangle, uniMapMarker, uniPhone, uniEnvelope, uniFileDownload, uniArrowDown, uniArrowUp, uniArrowRight, uniAngleRight, uniAngleUp, uniAngleDown, uniAngleLeft, uniFileUploadAlt]);
|
||||
|
||||
// Create a new store instance.
|
||||
const store = createStore({
|
||||
state () {
|
||||
state() {
|
||||
return {
|
||||
sideBarOpen: false
|
||||
}
|
||||
sideBarOpen: false,
|
||||
};
|
||||
},
|
||||
getters: {
|
||||
sideBarOpen: state => {
|
||||
return state.sideBarOpen
|
||||
}
|
||||
sideBarOpen: (state) => state.sideBarOpen,
|
||||
},
|
||||
mutations: {
|
||||
toggleSidebar (state) {
|
||||
state.sideBarOpen = !state.sideBarOpen
|
||||
}
|
||||
toggleSidebar(state) {
|
||||
state.sideBarOpen = !state.sideBarOpen;
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
toggleSidebar(context) {
|
||||
context.commit('toggleSidebar')
|
||||
}
|
||||
}
|
||||
})
|
||||
context.commit('toggleSidebar');
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const el = document.getElementById('app');
|
||||
|
||||
createApp({
|
||||
render: () =>
|
||||
h(InertiaApp, {
|
||||
render: () => h(InertiaApp, {
|
||||
initialPage: JSON.parse(el.dataset.page),
|
||||
resolveComponent: (name) => require(`./Pages/${name}`).default,
|
||||
}),
|
||||
|
|
@ -49,7 +48,7 @@ createApp({
|
|||
.use(Unicon, {
|
||||
fill: '#4B5563',
|
||||
height: 32,
|
||||
width: 32
|
||||
width: 32,
|
||||
})
|
||||
.mount(el);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue