- 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
31 lines
1.4 KiB
JavaScript
31 lines
1.4 KiB
JavaScript
// The minimum length of the national significant number.
|
|
export var MIN_LENGTH_FOR_NSN = 2;
|
|
|
|
// The ITU says the maximum length should be 15,
|
|
// but one can find longer numbers in Germany.
|
|
export var MAX_LENGTH_FOR_NSN = 17;
|
|
|
|
// The maximum length of the country calling code.
|
|
export var MAX_LENGTH_COUNTRY_CODE = 3;
|
|
|
|
// Digits accepted in phone numbers
|
|
// (ascii, fullwidth, arabic-indic, and eastern arabic digits).
|
|
export var VALID_DIGITS = "0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9";
|
|
|
|
// `DASHES` will be right after the opening square bracket of the "character class"
|
|
var DASHES = "-\u2010-\u2015\u2212\u30FC\uFF0D";
|
|
var SLASHES = "\uFF0F/";
|
|
var DOTS = "\uFF0E.";
|
|
export var WHITESPACE = " \xA0\xAD\u200B\u2060\u3000";
|
|
var BRACKETS = "()\uFF08\uFF09\uFF3B\uFF3D\\[\\]";
|
|
// export const OPENING_BRACKETS = '(\uFF08\uFF3B\\\['
|
|
var TILDES = "~\u2053\u223C\uFF5E";
|
|
|
|
// Regular expression of acceptable punctuation found in phone numbers. This
|
|
// excludes punctuation found as a leading character only. This consists of dash
|
|
// characters, white space characters, full stops, slashes, square brackets,
|
|
// parentheses and tildes. Full-width variants are also present.
|
|
export var VALID_PUNCTUATION = "".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);
|
|
export var PLUS_CHARS = "+\uFF0B";
|
|
// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')
|
|
//# sourceMappingURL=constants.js.map
|