mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
- bump up version to 4.0.6
- update dependencies - remove test phase from CI script - lint and format all files
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
name: Lint, Test and Build
|
||||
name: Lint and Build
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -35,7 +35,6 @@ jobs:
|
||||
pnpm exec nx-cloud record -- pnpm exec nx format:check
|
||||
parallel-commands-on-agents: |
|
||||
pnpm exec nx affected --target=lint --parallel=3
|
||||
pnpm exec nx affected --target=test --parallel=3 --ci --code-coverage
|
||||
pnpm exec nx affected --target=build --parallel=3
|
||||
|
||||
agents:
|
||||
@ -5,14 +5,14 @@
|
||||
"esModuleInterop": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"types": ["vite/client"],
|
||||
"types": ["vite/client"]
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json",
|
||||
},
|
||||
"path": "./tsconfig.app.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../tsconfig.base.json"
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ type ValidationResult =
|
||||
export const ImportDialog = () => {
|
||||
const { toast } = useToast();
|
||||
const { isOpen, close } = useDialog("import");
|
||||
const { importResume, loading, error: importError } = useImportResume();
|
||||
const { importResume, loading } = useImportResume();
|
||||
|
||||
const [validationResult, setValidationResult] = useState<ValidationResult | null>(null);
|
||||
|
||||
@ -182,11 +182,11 @@ export const ImportDialog = () => {
|
||||
}
|
||||
|
||||
close();
|
||||
} catch (error: any) {
|
||||
} catch (error: unknown) {
|
||||
toast({
|
||||
variant: "error",
|
||||
title: t`Oops, the server returned an error.`,
|
||||
description: error["message"],
|
||||
description: error instanceof Error ? error.message : undefined,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@ -178,7 +178,7 @@ export const TwoFactorDialog = () => {
|
||||
<FormItem>
|
||||
<FormControl>
|
||||
<div className="space-y-4">
|
||||
<QRCodeSVG value={field.value!} size={256} className="mx-auto" />
|
||||
<QRCodeSVG value={field.value ?? ""} size={256} className="mx-auto" />
|
||||
<Input readOnly {...field} className="opacity-75" />
|
||||
</div>
|
||||
</FormControl>
|
||||
|
||||
@ -18,12 +18,8 @@ export const LocaleProvider = ({ children }: Props) => {
|
||||
const userLocale = useAuthStore((state) => state.user?.locale);
|
||||
|
||||
useEffect(() => {
|
||||
const detectedLocale = detect(
|
||||
fromUrl("locale"),
|
||||
fromStorage("locale"),
|
||||
userLocale,
|
||||
defaultLocale,
|
||||
)!;
|
||||
const detectedLocale =
|
||||
detect(fromUrl("locale"), fromStorage("locale"), userLocale, defaultLocale) ?? defaultLocale;
|
||||
|
||||
// Activate the locale only if it's supported
|
||||
if (languages.some((lang) => lang.locale === detectedLocale)) {
|
||||
|
||||
@ -10,7 +10,7 @@ export const findResumeStatisticsById = async (data: { id: string }) => {
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const useResumeStatistics = (id: string, enabled: boolean = false) => {
|
||||
export const useResumeStatistics = (id: string, enabled = false) => {
|
||||
const {
|
||||
error,
|
||||
isPending: loading,
|
||||
|
||||
1
apps/client/src/vite-env.d.ts
vendored
1
apps/client/src/vite-env.d.ts
vendored
@ -2,6 +2,7 @@
|
||||
|
||||
declare const appVersion: string;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface ImportMetaEnv {}
|
||||
|
||||
interface ImportMeta {
|
||||
|
||||
@ -5,17 +5,17 @@
|
||||
"esModuleInterop": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"types": ["vite/client", "vitest"],
|
||||
"types": ["vite/client", "vitest"]
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json",
|
||||
"path": "./tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../tsconfig.base.json"
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ export class AuthController {
|
||||
private readonly utils: UtilsService,
|
||||
) {}
|
||||
|
||||
private async exchangeToken(id: string, email: string, isTwoFactorAuth: boolean = false) {
|
||||
private async exchangeToken(id: string, email: string, isTwoFactorAuth = false) {
|
||||
try {
|
||||
const payload = payloadSchema.parse({ id, isTwoFactorAuth });
|
||||
|
||||
@ -67,8 +67,8 @@ export class AuthController {
|
||||
private async handleAuthenticationResponse(
|
||||
user: UserWithSecrets,
|
||||
response: Response,
|
||||
isTwoFactorAuth: boolean = false,
|
||||
redirect: boolean = false,
|
||||
isTwoFactorAuth = false,
|
||||
redirect = false,
|
||||
) {
|
||||
let status = "authenticated";
|
||||
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json",
|
||||
"path": "./tsconfig.app.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
},
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.2",
|
||||
"@swc/helpers": "~0.5.6",
|
||||
"nestjs-zod": "^3.0.0",
|
||||
"@reactive-resume/utils": "*",
|
||||
"@reactive-resume/schema": "*"
|
||||
|
||||
@ -7,16 +7,16 @@
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
],
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,17 +5,17 @@
|
||||
"esModuleInterop": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"types": ["vite/client", "vitest"],
|
||||
"types": ["vite/client", "vitest"]
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../tsconfig.base.json"
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.2",
|
||||
"@swc/helpers": "~0.5.6",
|
||||
"@reactive-resume/schema": "*",
|
||||
"nestjs-zod": "^3.0.0",
|
||||
"zod": "^3.22.4",
|
||||
|
||||
@ -7,16 +7,16 @@
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
],
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.2",
|
||||
"@swc/helpers": "~0.5.6",
|
||||
"zod": "^3.22.4",
|
||||
"@reactive-resume/utils": "*",
|
||||
"@paralleldrive/cuid2": "^2.2.2"
|
||||
|
||||
@ -7,16 +7,16 @@
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
],
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ export const Command = forwardRef<
|
||||
|
||||
Command.displayName = CommandPrimitive.displayName;
|
||||
|
||||
interface CommandDialogProps extends DialogProps {}
|
||||
type CommandDialogProps = DialogProps;
|
||||
|
||||
export const CommandDialog = ({ children, ...props }: CommandDialogProps) => (
|
||||
<Dialog {...props}>
|
||||
|
||||
@ -5,17 +5,17 @@
|
||||
"esModuleInterop": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"types": ["vite/client", "vitest"],
|
||||
"types": ["vite/client", "vitest"]
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../tsconfig.base.json"
|
||||
}
|
||||
|
||||
@ -9,10 +9,10 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@swc/helpers": "~0.5.2",
|
||||
"@swc/helpers": "~0.5.6",
|
||||
"dayjs": "^1.11.10",
|
||||
"clsx": "^2.0.0",
|
||||
"tailwind-merge": "^2.0.0",
|
||||
"clsx": "^2.1.0",
|
||||
"tailwind-merge": "^2.2.1",
|
||||
"papaparse": "^5.4.1",
|
||||
"unique-names-generator": "^4.7.1"
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
export const hexToRgb = (hex: string, alpha: number = 0) => {
|
||||
export const hexToRgb = (hex: string, alpha = 0) => {
|
||||
const r = parseInt(hex.slice(1, 3), 16),
|
||||
g = parseInt(hex.slice(3, 5), 16),
|
||||
b = parseInt(hex.slice(5, 7), 16);
|
||||
|
||||
@ -8,16 +8,16 @@
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json",
|
||||
"path": "./tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.spec.json",
|
||||
},
|
||||
],
|
||||
"path": "./tsconfig.spec.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@reactive-resume/source",
|
||||
"description": "A free and open-source resume builder that simplifies the process of creating, updating, and sharing your resume.",
|
||||
"version": "4.0.5",
|
||||
"version": "4.0.6",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"author": {
|
||||
|
||||
Reference in New Issue
Block a user