parent
69b327945c
commit
a6b0700151
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=edc3c72e1006f0f5c9a9",
|
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=75e2b3f58f212d5e8f48",
|
||||||
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=72ca373c83375a1dbe0b",
|
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=49fd19f4521a4eb26375",
|
||||||
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=03592ff04d0ec3cea27b",
|
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=54352e041f006e06e650",
|
||||||
"/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=65d80bc6799294ce9444",
|
"/js/vue/Modules/Reservation/app.js": "/js/vue/Modules/Reservation/app.js?id=043db3597a61bd6c17ce",
|
||||||
"/js/vue/User/app.js": "/js/vue/User/app.js?id=e08d6d83816bb1be1a4d"
|
"/js/vue/User/app.js": "/js/vue/User/app.js?id=8d1ceb454e7e8e475706"
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
var CommingSoonArray = [
|
||||||
|
"document",
|
||||||
|
"discount",
|
||||||
|
"transaction",
|
||||||
|
"email",
|
||||||
|
"sms",
|
||||||
|
|
||||||
|
|
||||||
|
"crm-setting",
|
||||||
|
"crm-client-filter",
|
||||||
|
"crm-statistics",
|
||||||
|
"crm-myRequest",
|
||||||
|
"crm-myTasks",
|
||||||
|
|
||||||
|
"user-list-filter",
|
||||||
|
"user-roles",
|
||||||
|
|
||||||
|
"main-reservation",
|
||||||
|
|
||||||
|
];
|
||||||
|
const commingSoon = {
|
||||||
|
methods: {
|
||||||
|
$_inCommingSoon(option) {
|
||||||
|
if(process.env.MIX_PUSHER_APP_PRODUCT == 'false' || !CommingSoonArray.includes(option)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export { commingSoon };
|
@ -0,0 +1,6 @@
|
|||||||
|
import { mapActions } from 'vuex'
|
||||||
|
const hasRole = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export {hasRole}
|
@ -0,0 +1,17 @@
|
|||||||
|
import { mapActions, mapGetters } from "vuex";
|
||||||
|
const modal = {
|
||||||
|
methods: {
|
||||||
|
...mapActions("modal", ["openModal", "closeModal", "dialog"]),
|
||||||
|
$_openModal(options) {
|
||||||
|
this.openModal(options);
|
||||||
|
},
|
||||||
|
$_closeModal(options) {
|
||||||
|
this.closeModal(options);
|
||||||
|
},
|
||||||
|
$_dialog(options) {
|
||||||
|
this.dialog(options);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export { modal };
|
@ -1,9 +0,0 @@
|
|||||||
const WMAlert = {
|
|
||||||
delete(Options) {
|
|
||||||
let text = Options.text ? Options.text : 'آیا از حذف آیتم مطمئن هستید؟ امکان بازگشت وجود نخواهد نداشت. ';
|
|
||||||
let removeCallBack = Options.remove ? Options.remove : function () {} ;
|
|
||||||
},
|
|
||||||
success(){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,159 @@
|
|||||||
|
! function(n, e) {
|
||||||
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : ((n = n || self).__vee_validate_locale__fa = n.__vee_validate_locale__fa || {}, n.__vee_validate_locale__fa.js = e())
|
||||||
|
}(this, function() {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function r(n) {
|
||||||
|
var e = {
|
||||||
|
Byte: "بايت",
|
||||||
|
KB: "كيلوبايت",
|
||||||
|
GB: "گیگابايت",
|
||||||
|
PB: "پتابايت"
|
||||||
|
};
|
||||||
|
return function(n) {
|
||||||
|
var e = 1024,
|
||||||
|
t = 0 === (n = Number(n) * e) ? 0 : Math.floor(Math.log(n) / Math.log(e));
|
||||||
|
return 1 * (n / Math.pow(e, t)).toFixed(2) + " " + ["Byte", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"][t]
|
||||||
|
}(n).replace(/(Byte|KB|GB|PB)/, function(n) {
|
||||||
|
return e[n]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var n, e = {
|
||||||
|
name: "fa",
|
||||||
|
messages: {
|
||||||
|
_default: function(n) {
|
||||||
|
return "مقدار " + n + " معتبر نیست"
|
||||||
|
},
|
||||||
|
after: function(n, e) {
|
||||||
|
return n + " باید بعد از تاریخ " + e[0] + " باشد"
|
||||||
|
},
|
||||||
|
alpha: function(n) {
|
||||||
|
return n + " فقط می تواند از حروف تشکیل شود"
|
||||||
|
},
|
||||||
|
alpha_dash: function(n) {
|
||||||
|
return n + " فقط می تواند از حروف، اعداد، خط فاصله و زیرخط تشکیل شود"
|
||||||
|
},
|
||||||
|
alpha_num: function(n) {
|
||||||
|
return n + " فقط میتواند از حروف و اعداد تشکیل شود"
|
||||||
|
},
|
||||||
|
alpha_spaces: function(n) {
|
||||||
|
return n + " فقط می تواند از حروف و فاصله تشکیل شود"
|
||||||
|
},
|
||||||
|
before: function(n, e) {
|
||||||
|
return n + " باید قبل از تاریخ " + e[0] + " باشد"
|
||||||
|
},
|
||||||
|
between: function(n, e) {
|
||||||
|
return n + " باید بین " + e[0] + " و " + e[1] + " کارکتر باشد"
|
||||||
|
},
|
||||||
|
confirmed: function(n) {
|
||||||
|
return n + " با تاییدیه اش مطابقت ندارد"
|
||||||
|
},
|
||||||
|
credit_card: function(n) {
|
||||||
|
return n + " غیر معتبر است"
|
||||||
|
},
|
||||||
|
date_between: function(n, e) {
|
||||||
|
return n + " باید بین تاریخ " + e[0] + " and " + e[1] + " باشد"
|
||||||
|
},
|
||||||
|
date_format: function(n, e) {
|
||||||
|
return n + " باید در قالب " + e[0] + " باشد"
|
||||||
|
},
|
||||||
|
decimal: function(n, e) {
|
||||||
|
void 0 === e && (e = []);
|
||||||
|
var t = e[0];
|
||||||
|
return void 0 === t && (t = "*"), n + " باید یک مقدار عددی " + ("*" === t ? "" : " با حداکثر " + t + " اعشار") + " باشد"
|
||||||
|
},
|
||||||
|
digits: function(n, e) {
|
||||||
|
return n + " باید یک مقدار عددی و دقیقاً " + e[0] + " رقم باشد"
|
||||||
|
},
|
||||||
|
dimensions: function(n, e) {
|
||||||
|
return n + " باید در اندازه " + e[0] + " پیکسل عرض و " + e[1] + " پیکسل ارتفاع باشد"
|
||||||
|
},
|
||||||
|
email: function(n) {
|
||||||
|
return n + " باید یک پست الکترونیک معتبر باشد"
|
||||||
|
},
|
||||||
|
excluded: function(n) {
|
||||||
|
return n + "باید یک مقدار معتبر باشد"
|
||||||
|
},
|
||||||
|
ext: function(n) {
|
||||||
|
return n + " باید یک فایل معتبر باشد"
|
||||||
|
},
|
||||||
|
image: function(n) {
|
||||||
|
return n + " باید یک تصویر باشد"
|
||||||
|
},
|
||||||
|
included: function(n) {
|
||||||
|
return n + " باید یک مقدار معتبر باشد"
|
||||||
|
},
|
||||||
|
ip: function(n) {
|
||||||
|
return n + " باید یک آدرس آی پی معتبر باشد"
|
||||||
|
},
|
||||||
|
max: function(n, e) {
|
||||||
|
return n + " نباید بیشتر از " + e[0] + " کارکتر باشد"
|
||||||
|
},
|
||||||
|
max_value: function(n, e) {
|
||||||
|
return "مقدار " + n + " باید " + e[0] + " یا کمتر باشد"
|
||||||
|
},
|
||||||
|
mimes: function(n) {
|
||||||
|
return n + " باید از نوع معتبر باشد"
|
||||||
|
},
|
||||||
|
min: function(n, e) {
|
||||||
|
return n + " باید حداقل " + e[0] + " کارکتر باشد"
|
||||||
|
},
|
||||||
|
min_value: function(n, e) {
|
||||||
|
return "مقدار " + n + " باید " + e[0] + " یا بیشتر باشد"
|
||||||
|
},
|
||||||
|
numeric: function(n) {
|
||||||
|
return n + " فقط می تواند عددی باشد"
|
||||||
|
},
|
||||||
|
regex: function(n) {
|
||||||
|
return "قالب " + n + " قابل قبول نیست"
|
||||||
|
},
|
||||||
|
required: function(n) {
|
||||||
|
return n + " الزامی است"
|
||||||
|
},
|
||||||
|
size: function(n, e) {
|
||||||
|
var t = e[0];
|
||||||
|
return "حجم " + n + " کمتر از " + r(t) + " باشد"
|
||||||
|
},
|
||||||
|
url: function(n) {
|
||||||
|
return n + " باید یک تارنمای معتبر باشد"
|
||||||
|
},
|
||||||
|
digits_between: function(n, e) {
|
||||||
|
return n + " باید بین " + e[0] + " و " + e[1] + " کارکتر باشد"
|
||||||
|
},
|
||||||
|
digits_between: function(n, e) {
|
||||||
|
return n + " باید بین " + e[0] + " و " + e[1] + " کارکتر باشد"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
attributes: {
|
||||||
|
email: "ایمیل",
|
||||||
|
name: "نام",
|
||||||
|
phone: "شماره ی تلفن",
|
||||||
|
duplicatephone0: "شماره ی تلفن",
|
||||||
|
duplicatephone1: "شماره ی تلفن",
|
||||||
|
duplicatephone2: "شماره ی تلفن",
|
||||||
|
duplicatephone3: "شماره ی تلفن",
|
||||||
|
duplicatephone4: "شماره ی تلفن",
|
||||||
|
duplicatephone5: "شماره ی تلفن",
|
||||||
|
duplicatephone6: "شماره ی تلفن",
|
||||||
|
duplicatephone7: "شماره ی تلفن",
|
||||||
|
duplicatephone8: "شماره ی تلفن",
|
||||||
|
duplicatephone9: "شماره ی تلفن",
|
||||||
|
duplicatephone10: "شماره ی تلفن",
|
||||||
|
duplicateAddress0: "آدرس",
|
||||||
|
duplicateAddress1: "آدرس",
|
||||||
|
duplicateAddress2: "آدرس",
|
||||||
|
duplicateAddress3: "آدرس",
|
||||||
|
duplicateAddress4: "آدرس",
|
||||||
|
duplicateAddress5: "آدرس",
|
||||||
|
duplicateAddress6: "آدرس",
|
||||||
|
duplicateAddress7: "آدرس",
|
||||||
|
duplicateAddress8: "آدرس",
|
||||||
|
duplicateAddress9: "آدرس",
|
||||||
|
duplicateAddress10: "آدرس",
|
||||||
|
},
|
||||||
|
custom: {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return "undefined" != typeof VeeValidate && VeeValidate.Validator.localize(((n = {})[e.name] = e, n)), e
|
||||||
|
});
|
@ -0,0 +1,12 @@
|
|||||||
|
import { Validator } from "vee-validate";
|
||||||
|
|
||||||
|
const isBetween = (value, { min, max } = {}) => {
|
||||||
|
return Number(min) <= value.length && Number(max) >= value.length;
|
||||||
|
};
|
||||||
|
|
||||||
|
// The first param is called 'min', and the second is called 'max'.
|
||||||
|
const paramNames = ['min', 'max'];
|
||||||
|
|
||||||
|
Validator.extend('digits_between', isBetween, {
|
||||||
|
paramNames // pass it in the extend options.
|
||||||
|
});
|
Loading…
Reference in new issue