mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: ignore package-lock.json file.
This commit is contained in:
1
client/.gitignore
vendored
1
client/.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
.pnp.js
|
.pnp.js
|
||||||
|
package-lock.json
|
||||||
|
|
||||||
# testing
|
# testing
|
||||||
/coverage
|
/coverage
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import printValue from '../printValue';
|
import printValue from '../printValue';
|
||||||
export const locale = {
|
export const locale = {
|
||||||
|
|
||||||
mixed: {
|
mixed: {
|
||||||
default: "${path} is invalid",
|
default: '${path} is invalid',
|
||||||
required: "${path} is a required field ",
|
required: '${path} is a required field ',
|
||||||
oneOf: "${path} must be one of the following values: ${values}",
|
oneOf: '${path} must be one of the following values: ${values}',
|
||||||
notOneOf: "${path} must not be one of the following values: ${values}",
|
notOneOf: '${path} must not be one of the following values: ${values}',
|
||||||
notType: ({ path, type, value, originalValue }) => {
|
notType: ({ path, type, value, originalValue }) => {
|
||||||
let isCast = originalValue != null && originalValue !== value;
|
let isCast = originalValue != null && originalValue !== value;
|
||||||
let msg =
|
let msg =
|
||||||
@@ -24,37 +23,37 @@ export const locale = {
|
|||||||
defined: '${path} must be defined',
|
defined: '${path} must be defined',
|
||||||
},
|
},
|
||||||
string: {
|
string: {
|
||||||
length: "${path} must be exactly ${length} characters",
|
length: '${path} must be exactly ${length} characters',
|
||||||
min: "${path} must be at least ${min} characters",
|
min: '${path} must be at least ${min} characters',
|
||||||
max: "${path} must be at most ${max} characters",
|
max: '${path} must be at most ${max} characters',
|
||||||
matches: '${path} must match the following: "${regex}"',
|
matches: '${path} must match the following: "${regex}"',
|
||||||
email: "${path} must be a valid email",
|
email: '${path} must be a valid email',
|
||||||
url: "${path} must be a valid URL",
|
url: '${path} must be a valid URL',
|
||||||
trim: "${path} must be a trimmed string",
|
trim: '${path} must be a trimmed string',
|
||||||
lowercase: "${path} must be a lowercase string",
|
lowercase: '${path} must be a lowercase string',
|
||||||
uppercase: "${path} must be a upper case string"
|
uppercase: '${path} must be a upper case string',
|
||||||
},
|
},
|
||||||
number: {
|
number: {
|
||||||
min: "${path} must be greater than or equal to ${min}",
|
min: '${path} must be greater than or equal to ${min}',
|
||||||
max: "${path} must be less than or equal to ${max}",
|
max: '${path} must be less than or equal to ${max}',
|
||||||
lessThan: "${path} must be less than ${less}",
|
lessThan: '${path} must be less than ${less}',
|
||||||
moreThan: "${path} must be greater than ${more}",
|
moreThan: '${path} must be greater than ${more}',
|
||||||
notEqual: "${path} must be not equal to ${notEqual}",
|
notEqual: '${path} must be not equal to ${notEqual}',
|
||||||
positive: "${path} must be a positive number",
|
positive: '${path} must be a positive number',
|
||||||
negative: "${path} must be a negative number",
|
negative: '${path} must be a negative number',
|
||||||
integer: "${path} must be an integer"
|
integer: '${path} must be an integer',
|
||||||
},
|
},
|
||||||
date: {
|
date: {
|
||||||
min: "${path} field must be later than ${min}",
|
min: '${path} field must be later than ${min}',
|
||||||
max: "${path} field must be at earlier than ${max}"
|
max: '${path} field must be at earlier than ${max}',
|
||||||
},
|
},
|
||||||
boolean : {},
|
boolean: {},
|
||||||
object: {
|
object: {
|
||||||
noUnknown:
|
noUnknown:
|
||||||
"${path} field cannot have keys not specified in the object shape"
|
'${path} field cannot have keys not specified in the object shape',
|
||||||
},
|
},
|
||||||
array: {
|
array: {
|
||||||
min: "${path} field must have at least ${min} items",
|
min: '${path} field must have at least ${min} items',
|
||||||
max: "${path} field must have less than or equal to ${max} items"
|
max: '${path} field must have less than or equal to ${max} items',
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
2
server/.gitignore
vendored
2
server/.gitignore
vendored
@@ -2,3 +2,5 @@
|
|||||||
/.env
|
/.env
|
||||||
/.env.test
|
/.env.test
|
||||||
/storage
|
/storage
|
||||||
|
package-lock.json
|
||||||
|
stdout.log
|
||||||
Reference in New Issue
Block a user