Skip to content

Commit db8c6f0

Browse files
Merge pull request #37 from CodeChefVIT/staging
Staging
2 parents a760961 + b5fcd36 commit db8c6f0

File tree

9 files changed

+717
-158
lines changed

9 files changed

+717
-158
lines changed

next.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@ await import("./src/env.js");
66

77
/** @type {import("next").NextConfig} */
88
const config = {
9-
images: {
10-
domains: ["res.cloudinary.com"],
11-
},
9+
images: {
10+
domains: ["res.cloudinary.com"],
11+
},
12+
webpack: (
13+
config, options
14+
) => {
15+
config.module.rules.push({
16+
test: /\.node/,
17+
use: 'raw-loader',
18+
});
19+
return config;
20+
},
1221
};
1322

1423
export default config;

ongoing-papers.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ import { type Paper } from "@/interface";
22

33
const papers: Paper[] = [
44
{
5-
_id: "670989963ec3fdad83b2d23b",
5+
_id: "670903eb02a75017a4f087b0",
66
finalUrl:
7-
"https://res.cloudinary.com/dtorpaj1c/image/upload/v1728678280/papers/rfzqpi8pf0tczozllynz.pdf",
7+
"https://res.cloudinary.com/dtorpaj1c/image/upload/v1728642885/papers/aukdvlikf09cscx6hzgt.pdf",
88
thumbnailUrl:
9-
"https://res.cloudinary.com/dtorpaj1c/image/upload/w_400,h_400,c_fill/v1728678280/papers/rfzqpi8pf0tczozllynz.jpg",
10-
subject: "Data Structures and Algorithms [BCSE202L]",
11-
slot: "A1",
12-
year: "2022",
9+
"https://res.cloudinary.com/dtorpaj1c/image/upload/w_400,h_400,c_fill/v1728642885/papers/aukdvlikf09cscx6hzgt.jpg",
10+
subject: "Discrete Mathematics and Graph Theory [BMAT205L]",
11+
slot: "D2",
12+
year: "2023",
1313
exam: "CAT-2",
1414
},
1515

1616
{
17-
_id: "670985673ec3fdad83b2d220",
17+
_id: "670980523ec3fdad83b2d211",
1818
finalUrl:
19-
"https://res.cloudinary.com/dtorpaj1c/image/upload/v1728677214/papers/ssw52yz7fpbjdeyp9bha.pdf",
19+
"https://res.cloudinary.com/dtorpaj1c/image/upload/v1728675912/papers/lvtypsfdtref5mjskley.pdf",
2020
thumbnailUrl:
21-
"https://res.cloudinary.com/dtorpaj1c/image/upload/w_400,h_400,c_fill/v1728677214/papers/ssw52yz7fpbjdeyp9bha.jpg",
22-
subject: "Operating Systems [BCSE303L]",
23-
slot: "B1",
24-
year: "2023",
21+
"https://res.cloudinary.com/dtorpaj1c/image/upload/w_400,h_400,c_fill/v1728675912/papers/lvtypsfdtref5mjskley.jpg",
22+
subject: "Compiler Design [BCSE307L]",
23+
slot: "A2",
24+
year: "2024",
2525
exam: "CAT-2",
2626
},
2727
{

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"@radix-ui/react-separator": "^1.1.0",
1919
"@radix-ui/react-slot": "^1.1.0",
2020
"@radix-ui/react-switch": "^1.1.1",
21+
"@react-pdf-viewer/core": "3.12.0",
22+
"@react-pdf-viewer/default-layout": "^3.12.0",
23+
"@react-pdf-viewer/full-screen": "^3.12.0",
24+
"@react-pdf-viewer/zoom": "^3.12.0",
2125
"@t3-oss/env-nextjs": "^0.10.1",
2226
"@types/mongoose": "^5.11.97",
2327
"axios": "^1.7.2",
@@ -45,6 +49,7 @@
4549
"nodemailer": "^6.9.13",
4650
"pdf-compressor": "^1.0.5",
4751
"pdf-lib": "^1.17.1",
52+
"pdfjs-dist": "^3.4.120",
4853
"react": "^18.3.0",
4954
"react-camera-pro": "^1.4.0",
5055
"react-dom": "^18.3.0",
@@ -75,6 +80,7 @@
7580
"postcss": "^8.4.34",
7681
"prettier": "^3.2.5",
7782
"prettier-plugin-tailwindcss": "^0.5.14",
83+
"raw-loader": "^4.0.2",
7884
"tailwindcss": "^3.4.3",
7985
"typescript": "^5.4.2"
8086
},

0 commit comments

Comments
 (0)