Skip to content

Commit 57bf135

Browse files
authored
Merge pull request #171 from djdiptayan1/certsFix
Certificate verification enabled
2 parents 3d15fdb + 9538a88 commit 57bf135

7 files changed

Lines changed: 4162 additions & 3590 deletions

File tree

components/Verify/VerifyPage.jsx

Lines changed: 436 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@nextui-org/react": "^2.4.1",
2323
"@nextui-org/system": "^2.2.1",
2424
"@react-pdf/renderer": "^4.3.0",
25-
"@vercel/analytics": "^1.3.1",
25+
"@vercel/analytics": "^2.0.1",
2626
"axios": "^1.7.3",
2727
"dotenv": "^16.4.5",
2828
"ionicons": "^7.3.1",

pages/verify.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from "react";
2+
import VerifyPage from "@/components/Verify/VerifyPage";
3+
4+
const Verify = () => <VerifyPage />;
5+
6+
export default Verify;

pages/verify/[id].js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react";
2+
import VerifyPage from "@/components/Verify/VerifyPage";
3+
4+
const VerifyById = ({ certificateId }) => {
5+
return <VerifyPage initialCertificateId={certificateId || ""} />;
6+
};
7+
8+
export async function getServerSideProps(context) {
9+
const { id } = context.params;
10+
11+
return {
12+
props: {
13+
certificateId: typeof id === "string" ? id : "",
14+
},
15+
};
16+
}
17+
18+
export default VerifyById;

public/sitemap-0.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3-
<url><loc>https://githubsrmist.in</loc><lastmod>2025-12-02T08:58:50.626Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4-
<url><loc>https://githubsrmist.in/about</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5-
<url><loc>https://githubsrmist.in/contact</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
6-
<url><loc>https://githubsrmist.in/events</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
7-
<url><loc>https://githubsrmist.in/team</loc><lastmod>2025-12-02T08:58:50.627Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
3+
<url><loc>https://githubsrmist.in</loc><lastmod>2026-04-05T07:30:16.240Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
4+
<url><loc>https://githubsrmist.in/about</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
5+
<url><loc>https://githubsrmist.in/contact</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
6+
<url><loc>https://githubsrmist.in/events</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
7+
<url><loc>https://githubsrmist.in/team</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
8+
<url><loc>https://githubsrmist.in/verify</loc><lastmod>2026-04-05T07:30:16.241Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
89
</urlset>

utils/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const API_ENDPOINTS = {
2626
CERTIFICATES: {
2727
GENERATE: `${API_BASE_URL}/api/certificate/generate`, // POST - Generate a certificate for an event participant
2828
DOWNLOAD: (certificateId) => `${API_BASE_URL}/api/certificate/download/${certificateId}?format=pdf`, // GET - Download a verified certificate (External)
29+
VERIFY: (certificateId) => `${API_BASE_URL}/api/certificate/verify/${certificateId}`, // GET - Verify certificate authenticity
2930
},
3031
};
3132
export const API_CONFIG = {

0 commit comments

Comments
 (0)