Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
c71f284
Squashed commit of the following:
heydoyouknowme0 Sep 28, 2024
bd1c097
Squashed commit of the following:
heydoyouknowme0 Sep 28, 2024
3e3a59b
feat: institute landing page
geekysilento Jun 7, 2024
ea6b383
feat: individual dean's page
geekysilento Jun 20, 2024
b54be11
feat: curriculum page
geekysilento May 15, 2024
e419036
fix: translation schema and coordinator typo
GetPsyched Jun 26, 2024
7d2613e
fix: updated curriculum page ui
geekysilento Jul 3, 2024
2434967
feat: added accounts page
heydoyouknowme0 Jun 19, 2024
c361427
section/estate
som-04 Jun 17, 2024
32f2f65
feat: programmes page
geekysilento Sep 30, 2024
c220395
feat: scholarships page
geekysilento Sep 30, 2024
5c8a859
faculty profile page
SilentJungle399 Mar 18, 2024
a36379e
feat: administration-landing init
KambojRajan Jun 7, 2024
32710cd
feat: convocation page init
KambojRajan May 11, 2024
33965ce
feat: awards init
KambojRajan May 16, 2024
efec84d
feature: replaced footer loremipsum with dummy links
geekysilento Sep 30, 2024
35c6a66
Squashed commit of the following:
geekysilento Oct 1, 2024
48a2151
Squashed commit of the following:
geekysilento Oct 2, 2024
98d3321
Squashed commit of the following:
geekysilento Oct 2, 2024
26c0ff7
Squashed commit of the following:
geekysilento Jan 6, 2025
3d66adf
feature/tnp
som-04 Jun 21, 2024
5543af3
campus infra
som-04 Jun 7, 2024
204009f
chabbra details
geekysilento Feb 3, 2025
9d73c7d
Added Administration Static Page
aryansri-19 Feb 3, 2025
661b5a7
feat:navbar changes
heydoyouknowme0 Feb 3, 2025
139afec
hotfix: skill issue
geekysilento Feb 3, 2025
5af0537
added loading
heydoyouknowme0 Feb 5, 2025
38fdeab
temp
heydoyouknowme0 Feb 5, 2025
27f1255
fixxx
heydoyouknowme0 Mar 27, 2025
9bcf940
temp: force http typesense
heydoyouknowme0 Mar 31, 2025
faee79b
style: consistant nav changes
heydoyouknowme0 Mar 31, 2025
efee755
fix: faculty profile page
heydoyouknowme0 Apr 1, 2025
8dc6404
TEMPFIX: faculty profile picture fallback
geekysilento Apr 2, 2025
328a6ad
fix: update footer links, slideshow icons and update copyright year i…
geekysilento Apr 10, 2025
947bae8
feature: HOD message in department
geekysilento Apr 10, 2025
10b5c48
feature: add quick links section to homepage
geekysilento Apr 10, 2025
b182cce
refactor: move hostels page inside institute
geekysilento Apr 10, 2025
9fd5eef
added external prop
heydoyouknowme0 Apr 10, 2025
a1bdac8
fix: hostel links
heydoyouknowme0 Apr 11, 2025
af72a82
fix: more flexi navbar
heydoyouknowme0 Apr 11, 2025
1072edb
temp:linked in
heydoyouknowme0 Apr 11, 2025
b260fa5
fix: schemas reverted during rebase
heydoyouknowme0 Jun 10, 2025
7e63a0b
feat: flexible faculty details
heydoyouknowme0 Apr 10, 2025
ac1abb0
refactor: tabs to accommodate faculty profike
heydoyouknowme0 Apr 12, 2025
1dde8f5
feat: faculty page frontend
heydoyouknowme0 Apr 12, 2025
ed4576a
feat: faculty fullstack implementation
heydoyouknowme0 Apr 15, 2025
1944f15
feat: faculty section edit
heydoyouknowme0 Jun 9, 2025
e1d71a1
fix: courses nature
heydoyouknowme0 Jun 10, 2025
a2249a1
refactor: removed redundant events schema file
aryansri-19 Jun 11, 2025
ca97c05
added page patents-and-technologies (#307)
Soumil221 Aug 12, 2025
e74a1af
Added Copyrights and Designs (#309)
yashika1221 Aug 12, 2025
047e93d
feat: Added all the cells pages (#312)
Aryawart-kathpal Aug 21, 2025
11009a5
added research page (#314)
Soumil221 Aug 21, 2025
a850ece
fix: fix to Research submenus and IPR shifted to Institute (#350)
Aryawart-kathpal Aug 30, 2025
ef9128c
Refactor/faculty (#334)
Debatreya Sep 1, 2025
88eeaf3
fix: Removed empty headings from departments (#354)
Aryawart-kathpal Sep 5, 2025
20fed9f
Refactor/faculty (#356)
Aryawart-kathpal Sep 5, 2025
6039943
fix : image visible on large screens , TODO:Fix path of the image (#353)
ArnavSharma005 Sep 6, 2025
3beafcf
Feat/filter faculty staff (#358)
Debatreya Sep 7, 2025
e9d2900
feat: Populated copyrights,designs and patents (#363)
Aryawart-kathpal Sep 10, 2025
5a494ef
fix: image header added to dept page (#377)
Nxtyyaaaa Sep 17, 2025
c5efce3
fix: added scroll-area to filter faculty section (#361)
ArnavSharma005 Sep 17, 2025
9db49e2
added animation in navbar (#379)
ArnavSharma005 Sep 19, 2025
5fd544b
Feat/sections (#378) 20th Sept update (Library and Medical)
Debatreya Sep 20, 2025
6bf9965
added links to resources (#362)
Soumil221 Oct 1, 2025
6939330
Added gallery component (#376)
yashika1221 Oct 10, 2025
e37b1c2
administration page (#386)
Abhay145 Oct 10, 2025
211c8c7
added a generic table component (#388)
Soumil221 Oct 10, 2025
74be405
Refactor/faculty (#392)
Debatreya Oct 12, 2025
c2bf621
Feat/populate/research and consultancy (#396)
Aryawart-kathpal Oct 15, 2025
c784141
fix: Added gradient (#399)
Rogan308Rylie Oct 15, 2025
88fcf5c
Added SC & ST cell page (#400)
ArnavSharma005 Oct 17, 2025
95f535d
fix: fixed overflow on small screens when hindi is selected (#402)
ArnavSharma005 Oct 17, 2025
1351bf8
elephants fix (#405)
Nxtyyaaaa Oct 19, 2025
5f60f82
Refactor/faculty (#411)
Debatreya Nov 1, 2025
652be7e
fix: handle empty coursesToMajors in Courses component (#412)
NavvneetK Nov 1, 2025
fa15235
Feat/clubs update (#407)
Aryawart-kathpal Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions app/[locale]/@modals/(.)profile/delete/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
'use client';
import { Button } from '~/components/buttons';
import { Dialog } from '~/components/dialog';
import { Card, CardFooter, CardHeader } from '~/components/ui';
import { toast } from '~/lib/hooks';
import { cn } from '~/lib/utils';
import { deleteFacultySelectionElement } from '~/server/actions';

export default function Page({
params: { locale },
searchParams: { topic, id },
}: {
params: { locale: string };
searchParams: { topic?: string; id?: string };
}) {
return (
<Dialog
className={cn(
'container p-0',
'max-w-[calc(100vw-2rem)] sm:max-w-[512px] md:max-w-[640px] lg:max-w-[640px]'
)}
>
<Card className="rounded-lg border bg-background shadow-sm">
<CardHeader className="border-b px-6 py-4">
<h2>Do you really want to delete this information?</h2>
</CardHeader>
<CardFooter className="flex justify-end gap-2 p-6">
<Button
variant="outline"
className="p-1"
onClick={() => window.history.back()}
>
Cancel
</Button>
<Button
variant="primary"
className="p-1"
onClick={async () => {
const result = await deleteFacultySelectionElement(topic, id);
toast({
title: result.success ? 'Deleted' : 'Error',
description: result.message,
variant: result.success ? 'success' : 'error',
});
window.history.back();
}}
>
Delete
</Button>
</CardFooter>
</Card>
</Dialog>
);
}
Loading