mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-09 20:12:26 +10:00
- fixes #2401
This commit is contained in:
@ -14,8 +14,8 @@ export const Picture = ({ className }: PictureProps) => {
|
||||
|
||||
return (
|
||||
<img
|
||||
src={picture.url}
|
||||
alt="Profile"
|
||||
src={picture.url}
|
||||
className={cn(
|
||||
"relative z-20 object-cover",
|
||||
picture.effects.border && "border-primary",
|
||||
|
||||
@ -8,7 +8,7 @@ msgstr ""
|
||||
"Language: hi\n"
|
||||
"Project-Id-Version: reactive-resume\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2025-10-01 09:32\n"
|
||||
"PO-Revision-Date: 2025-10-08 00:10\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: Hindi\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
@ -1,11 +1,6 @@
|
||||
import { Logger, Module } from "@nestjs/common";
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
import {
|
||||
loggingMiddleware,
|
||||
PrismaModule,
|
||||
PrismaService,
|
||||
providePrismaClientExceptionFilter,
|
||||
} from "nestjs-prisma";
|
||||
import { PrismaModule, providePrismaClientExceptionFilter } from "nestjs-prisma";
|
||||
|
||||
import { Config } from "@/server/config/schema";
|
||||
|
||||
@ -16,14 +11,6 @@ import { Config } from "@/server/config/schema";
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService<Config>) => ({
|
||||
prismaOptions: { datasourceUrl: configService.get("DATABASE_URL") },
|
||||
middlewares: [
|
||||
loggingMiddleware({
|
||||
logLevel: "debug", // only in development
|
||||
logger: new Logger(PrismaService.name),
|
||||
logMessage: (query) =>
|
||||
`[Query] ${query.model}.${query.action} - ${query.executionTime}ms`,
|
||||
}),
|
||||
],
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
||||
@ -139,21 +139,7 @@ export class PrinterService {
|
||||
page.waitForSelector('[data-page="1"]', { timeout: 15_000 }),
|
||||
]);
|
||||
|
||||
if (resume.data.basics.picture.url) {
|
||||
await page.waitForSelector('img[alt="Profile"]');
|
||||
await page.evaluate(() =>
|
||||
Promise.all(
|
||||
// eslint-disable-next-line unicorn/prefer-spread
|
||||
Array.from(document.images).map((img) => {
|
||||
if (img.complete) return Promise.resolve();
|
||||
return new Promise((resolve) => {
|
||||
// eslint-disable-next-line unicorn/prefer-add-event-listener
|
||||
img.onload = img.onerror = resolve;
|
||||
});
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
await page.waitForNetworkIdle({ idleTime: 500, timeout: 15_000 });
|
||||
|
||||
const pagesBuffer: Buffer[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user