fix(client): 🐛 do not allow private resumes to be viewable or downloadable through the link

This commit is contained in:
Amruth Pillai
2023-07-12 15:59:22 +02:00
parent 5ef4bfcb6b
commit 1c2d796c50
121 changed files with 3193 additions and 2068 deletions

View File

@ -24,7 +24,7 @@ export const dateFormatOptions: string[] = [
export const getRelativeTime = (timestamp: dayjs.ConfigType): string => dayjs(timestamp).toNow(true);
export const formatDateString = (date: string | DateRange, formatStr: string): string | null => {
const presentString = i18n?.t<string>('common.date.present') ?? '';
const presentString = i18n?.t('common.date.present') ?? '';
if (isEmpty(date)) return null;

View File

@ -1,8 +1,21 @@
import { ThemeConfig, Typography } from 'schema';
import clsx, { ClassValue } from 'clsx';
import { RgbColor } from 'react-colorful';
import { ThemeConfig, Typography } from 'schema';
import { twMerge } from 'tailwind-merge';
import { hexColorPattern } from '@/config/colors';
export const breakpoints = {
xs: 0,
sm: 640,
md: 768,
lg: 1024,
xl: 1280,
'2xl': 1400,
};
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
export const generateTypographyStyles = ({ family, size }: Typography): string => `
font-size: ${size.body}px !important;
font-family: ${family.body} !important;