first working prototype of shortly

This commit is contained in:
2023-01-12 21:18:49 -03:00
parent a897ec5f95
commit 856e01d339
34 changed files with 745 additions and 100 deletions

13
src/utils/constants.ts Normal file
View File

@@ -0,0 +1,13 @@
export type Crypto = {
iv: string
}
export type CryptoWithContent = {
iv: string
content: string
}
export type UserRoles = 'admin' | 'user'
export const charactersForIdGeneration =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-()!_><'
export const isUrlRegex = new RegExp(
'^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?'
)