From a5aac2065dec630307e117f3d4b10dacc72f6593 Mon Sep 17 00:00:00 2001 From: Peter KW Date: Sat, 13 Apr 2024 21:13:26 +0200 Subject: [PATCH] Some constants for the different limits of password, username etc. --- frontend/src/Data/constants.ts | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 frontend/src/Data/constants.ts diff --git a/frontend/src/Data/constants.ts b/frontend/src/Data/constants.ts new file mode 100644 index 0000000..c803ad4 --- /dev/null +++ b/frontend/src/Data/constants.ts @@ -0,0 +1,36 @@ +//Different character limits certain strings + +/** + * Allowed character length for password + */ +export const passwordLength = 6; + +/** + * Lower limit for username length + */ +export const usernameLowLimit = 5; + +/** + * Upper limit for password length + */ +export const usernameUpLimit = 10; + +/** + * Lower limit for project name length + */ +export const projNameLowLimit = 10; + +/** + * Upper limit for project name length + */ +export const projNameHighLimit = 99; + +/** + * Upper limit for project description length + */ +export const projDescLowLimit = 0; + +/** + * Upper limit for project description length + */ +export const projDescHighLimit = 99;