Files
headroom/frontend/node_modules/@vinejs/vine/build/chunk-M2DOTJGC.js
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

84 lines
5.0 KiB
JavaScript

// src/defaults.ts
var messages = {
"required": "The {{ field }} field must be defined",
"string": "The {{ field }} field must be a string",
"email": "The {{ field }} field must be a valid email address",
"mobile": "The {{ field }} field must be a valid mobile phone number",
"creditCard": "The {{ field }} field must be a valid {{ providersList }} card number",
"passport": "The {{ field }} field must be a valid passport number",
"postalCode": "The {{ field }} field must be a valid postal code",
"regex": "The {{ field }} field format is invalid",
"ascii": "The {{ field }} field must only contain ASCII characters",
"iban": "The {{ field }} field must be a valid IBAN number",
"jwt": "The {{ field }} field must be a valid JWT token",
"coordinates": "The {{ field }} field must contain latitude and longitude coordinates",
"url": "The {{ field }} field must be a valid URL",
"activeUrl": "The {{ field }} field must be a valid URL",
"alpha": "The {{ field }} field must contain only letters",
"alphaNumeric": "The {{ field }} field must contain only letters and numbers",
"minLength": "The {{ field }} field must have at least {{ min }} characters",
"maxLength": "The {{ field }} field must not be greater than {{ max }} characters",
"fixedLength": "The {{ field }} field must be {{ size }} characters long",
"confirmed": "The {{ field }} field and {{ otherField }} field must be the same",
"endsWith": "The {{ field }} field must end with {{ substring }}",
"startsWith": "The {{ field }} field must start with {{ substring }}",
"sameAs": "The {{ field }} field and {{ otherField }} field must be the same",
"notSameAs": "The {{ field }} field and {{ otherField }} field must be different",
"in": "The selected {{ field }} is invalid",
"notIn": "The selected {{ field }} is invalid",
"ipAddress": "The {{ field }} field must be a valid IP address",
"uuid": "The {{ field }} field must be a valid UUID",
"ulid": "The {{ field }} field must be a valid ULID",
"hexCode": "The {{ field }} field must be a valid hex color code",
"boolean": "The value must be a boolean",
"number": "The {{ field }} field must be a number",
"number.in": "The selected {{ field }} is not in {{ values }}",
"min": "The {{ field }} field must be at least {{ min }}",
"max": "The {{ field }} field must not be greater than {{ max }}",
"range": "The {{ field }} field must be between {{ min }} and {{ max }}",
"positive": "The {{ field }} field must be positive",
"negative": "The {{ field }} field must be negative",
"decimal": "The {{ field }} field must have {{ digits }} decimal places",
"withoutDecimals": "The {{ field }} field must be an integer",
"accepted": "The {{ field }} field must be accepted",
"enum": "The selected {{ field }} is invalid",
"literal": "The {{ field }} field must be {{ expectedValue }}",
"object": "The {{ field }} field must be an object",
"array": "The {{ field }} field must be an array",
"array.minLength": "The {{ field }} field must have at least {{ min }} items",
"array.maxLength": "The {{ field }} field must not have more than {{ max }} items",
"array.fixedLength": "The {{ field }} field must contain {{ size }} items",
"notEmpty": "The {{ field }} field must not be empty",
"distinct": "The {{ field }} field has duplicate values",
"record": "The {{ field }} field must be an object",
"record.minLength": "The {{ field }} field must have at least {{ min }} items",
"record.maxLength": "The {{ field }} field must not have more than {{ max }} items",
"record.fixedLength": "The {{ field }} field must contain {{ size }} items",
"tuple": "The {{ field }} field must be an array",
"union": "Invalid value provided for {{ field }} field",
"unionGroup": "Invalid value provided for {{ field }} field",
"unionOfTypes": "Invalid value provided for {{ field }} field",
"date": "The {{ field }} field must be a datetime value",
"date.equals": "The {{ field }} field must be a date equal to {{ expectedValue }}",
"date.after": "The {{ field }} field must be a date after {{ expectedValue }}",
"date.before": "The {{ field }} field must be a date before {{ expectedValue }}",
"date.afterOrEqual": "The {{ field }} field must be a date after or equal to {{ expectedValue }}",
"date.beforeOrEqual": "The {{ field }} field must be a date before or equal to {{ expectedValue }}",
"date.sameAs": "The {{ field }} field and {{ otherField }} field must be the same",
"date.notSameAs": "The {{ field }} field and {{ otherField }} field must be different",
"date.afterField": "The {{ field }} field must be a date after {{ otherField }}",
"date.afterOrSameAs": "The {{ field }} field must be a date after or same as {{ otherField }}",
"date.beforeField": "The {{ field }} field must be a date before {{ otherField }}",
"date.beforeOrSameAs": "The {{ field }} field must be a date before or same as {{ otherField }}",
"date.weekend": "The {{ field }} field is not a weekend",
"date.weekday": "The {{ field }} field is not a weekday"
};
var fields = {
"": "data"
};
export {
messages,
fields
};