diff --git a/public/mix-manifest.json b/public/mix-manifest.json index c7810fe..570262b 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,6 +1,6 @@ { - "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=4c5fa0bdb556f1157fbf", - "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=b418ebd88575764c1eef", - "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=8eb2a7992f1192c1c852", - "/js/vue/User/app.js": "/js/vue/User/app.js?id=641003427457b9ee06d1" + "/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=01952a12eae064a9a3ce", + "/js/vue/Home/app.js": "/js/vue/Home/app.js?id=c8f7f128628d4199a9f4", + "/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=7dbb53bcc68b82e3aa7b", + "/js/vue/User/app.js": "/js/vue/User/app.js?id=0c533634f92fc1608e01" } diff --git a/resources/js/Global/components/Misc/Snackbar.vue b/resources/js/Global/components/Misc/Snackbar.vue new file mode 100644 index 0000000..067a5f1 --- /dev/null +++ b/resources/js/Global/components/Misc/Snackbar.vue @@ -0,0 +1,115 @@ + + \ No newline at end of file diff --git a/resources/js/Global/mixins/commingSoon.js b/resources/js/Global/mixins/commingSoon.js index c89a367..c9aa246 100644 --- a/resources/js/Global/mixins/commingSoon.js +++ b/resources/js/Global/mixins/commingSoon.js @@ -3,7 +3,7 @@ var CommingSoonArray = [ "discount", "transaction", "email", - "sms", + // "sms", "prescription", "crm-setting", diff --git a/resources/js/Global/plugins/globalComponent.js b/resources/js/Global/plugins/globalComponent.js index d263d6f..1a3ae4a 100644 --- a/resources/js/Global/plugins/globalComponent.js +++ b/resources/js/Global/plugins/globalComponent.js @@ -10,13 +10,14 @@ import PageTitle from "@Global/components/Dividers/PageTitle.vue"; import Checkbox from "@Global/components/Inputs/Checkbox.vue"; import InfoBlock from "@Global/components/Misc/InfoBlock.vue"; import Breadcrumbs from "@Global/components/Misc/Breadcrumbs"; +import Dialog from "@Global/components/Misc/Dialog.vue"; Vue.component("WM-PartTitle", PartTitle); Vue.component("WM-PageTitle", PageTitle); Vue.component("WM-Checkbox", Checkbox); Vue.component("WM-InfoBlock", InfoBlock); Vue.component("wm-breadcrumbs", Breadcrumbs); - +Vue.component("wm-dialog", Dialog); //jalali => 0.6MB import jalaliMoment from "vue-jalali-moment" diff --git a/resources/js/Global/services/errorHandler.services.js b/resources/js/Global/services/errorHandler.services.js index deac168..eed4df6 100644 --- a/resources/js/Global/services/errorHandler.services.js +++ b/resources/js/Global/services/errorHandler.services.js @@ -41,11 +41,11 @@ function errorResponseHandler(error) { } } function successHandler(response) { - // if(response.status == 200 || response.status == 201) { - // if(typeof response.data.message !== 'undefined') { - // toast.success(response.data.message, response.data.title); - // } - // } + if(response.status == 200 || response.status == 201) { + if(typeof response.data.message !== 'undefined' && typeof response.data.message.content !== 'undefined') { + toast.success(response.data.message.content, response.data.message.title || 'موفق'); + } + } return response; } diff --git a/resources/js/Global/store/modules/modal/actions.js b/resources/js/Global/store/modules/modal/actions.js index c30f23f..0930912 100644 --- a/resources/js/Global/store/modules/modal/actions.js +++ b/resources/js/Global/store/modules/modal/actions.js @@ -22,5 +22,5 @@ export default { state.modal.dialog = true; commit('SET_DIALOG_TYPE', properties.type); commit('SET_DIALOG_PROPERTIES', properties); - } + }, }; diff --git a/resources/js/Global/store/modules/modal/mutations.js b/resources/js/Global/store/modules/modal/mutations.js index 9d576e1..ea04150 100644 --- a/resources/js/Global/store/modules/modal/mutations.js +++ b/resources/js/Global/store/modules/modal/mutations.js @@ -13,5 +13,5 @@ export default { }, SET_DIALOG_PROPERTIES(state, properties = {}) { state.dialogProperties = properties; - } + }, }; diff --git a/resources/js/Global/store/modules/modal/state.js b/resources/js/Global/store/modules/modal/state.js index 63873ad..9c43d59 100644 --- a/resources/js/Global/store/modules/modal/state.js +++ b/resources/js/Global/store/modules/modal/state.js @@ -6,5 +6,5 @@ export default { dialog: false, }, dialogProperties: {}, - dialogType: {} + dialogType: {}, }; diff --git a/resources/js/Global/utils/vee-validate/locale/fa.js b/resources/js/Global/utils/vee-validate/locale/fa.js index 0116fe9..e19c6a6 100644 --- a/resources/js/Global/utils/vee-validate/locale/fa.js +++ b/resources/js/Global/utils/vee-validate/locale/fa.js @@ -133,6 +133,7 @@ website: "آدرس سایت", name: "نام", text: "متن", + smsContent: "متن پیام", client_type: "نوع مشتری", cell_number: " شماره همراه ", password: " کلمه عبور ",