Skip to content

Commit a102df2

Browse files
feat: faculty fullstack implementation
1 parent 0b56c71 commit a102df2

File tree

10 files changed

+486
-393
lines changed

10 files changed

+486
-393
lines changed

app/[locale]/faculty-and-staff/utils.tsx

Lines changed: 326 additions & 269 deletions
Large diffs are not rendered by default.

app/[locale]/profile/client-utils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ export const Tabs = ({
9191
qualifications: MdSchool,
9292
experience: MdWork,
9393
projects: FaFlask,
94-
educationCurrent: FaBook,
94+
continuingEducation: FaBook,
9595
publications: MdApproval,
96-
scholars: MdGroups,
97-
awards: MdEmojiEvents,
96+
researchScholars: MdGroups,
97+
awardsAndHonors: MdEmojiEvents,
9898
};
9999

100100
return select ? (

i18n/en.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,24 @@ const text: Translations = {
108108
scopusId: 'Scopus',
109109
},
110110
intellectualContributions: {
111-
patents: 'PATENTS',
112111
publications: 'PUBLICATIONS',
113-
books: 'BOOKS',
112+
continuingEducation: 'CONTINUING EDUCATION',
113+
doctoralStudents: 'DOCTORAL STUDENTS',
114+
},
115+
tags: {
116+
book: 'Book',
117+
chapter: 'Chapter',
118+
journal: 'Journal',
119+
conference: 'Conference',
114120
},
115121
tabs: {
116122
qualifications: 'Education Qualifications',
117123
experience: 'Experience',
118124
projects: 'Projects',
119-
educationCurrent: 'Continuing Education',
125+
continuingEducation: 'Continuing Education',
120126
publications: 'Publications',
121-
scholars: 'Research Scholars',
122-
awards: 'Awards and Honors',
127+
researchScholars: 'Research Scholars',
128+
awardsAndHonors: 'Awards and Honors',
123129
},
124130
},
125131
FAQ: { title: 'Frequently Asked Questions' },

i18n/hi.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,24 @@ const text: Translations = {
114114
scopusId: 'स्कोपस',
115115
},
116116
intellectualContributions: {
117-
patents: 'पेटेंट',
118117
publications: 'प्रकाशन',
119-
books: 'पुस्तकें',
118+
continuingEducation: 'निरंतर शिक्षा',
119+
doctoralStudents: 'डॉक्टरेट छात्र',
120+
},
121+
tags: {
122+
book: 'पुस्तक',
123+
journal: 'जर्नल',
124+
chapter: 'अध्याय',
125+
conference: 'सम्मेलन',
120126
},
121127
tabs: {
122128
qualifications: 'शैक्षिक योग्यता',
123129
experience: 'अनुभव',
124130
projects: 'प्रोजेक्ट्स',
125-
educationCurrent: 'निरंतर शिक्षा',
131+
continuingEducation: 'निरंतर शिक्षा',
126132
publications: 'प्रकाशन',
127-
scholars: 'अनुसंधान विद्वान',
128-
awards: 'पुरस्कार और सम्मान',
133+
researchScholars: 'अनुसंधान विद्वान',
134+
awardsAndHonors: 'पुरस्कार और सम्मान',
129135
},
130136
},
131137
FAQ: { title: 'अक्सर पूछे जाने वाले प्रश्न' },

i18n/translations.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,24 @@ export interface Translations {
7878
scopusId: string;
7979
};
8080
intellectualContributions: {
81-
patents: string;
8281
publications: string;
83-
books: string;
82+
continuingEducation: string;
83+
doctoralStudents: string;
84+
};
85+
tags: {
86+
book: string;
87+
chapter: string;
88+
journal: string;
89+
conference: string;
8490
};
8591
tabs: {
8692
qualifications: string;
8793
experience: string;
8894
projects: string;
89-
educationCurrent: string;
95+
continuingEducation: string;
9096
publications: string;
91-
scholars: string;
92-
awards: string;
97+
researchScholars: string;
98+
awardsAndHonors: string;
9399
};
94100
};
95101
FAQ: { title: string };

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"class-variance-authority": "^0.7.0",
3737
"clsx": "^2.1.0",
3838
"cmdk": "^1.0.0",
39-
"drizzle-orm": "^0.33.0",
39+
"drizzle-orm": "^0.34.1",
4040
"embla-carousel-autoplay": "^8.2.1",
4141
"embla-carousel-fade": "^8.2.1",
4242
"embla-carousel-react": "^8.2.1",
@@ -61,7 +61,7 @@
6161
"@types/react-slick": "^0.23.13",
6262
"@typescript-eslint/eslint-plugin": "^6.19.1",
6363
"autoprefixer": "^10.0.1",
64-
"drizzle-kit": "^0.24.0",
64+
"drizzle-kit": "^0.25.0",
6565
"eslint": "^8",
6666
"eslint-config-next": "14.2.4",
6767
"eslint-config-prettier": "^9.1.0",

server/db/schema/doctorates.schema.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export const doctorates = pgTable('doctorates', {
2121
studentId: integer('student_id')
2222
.references(() => students.id)
2323
.notNull(),
24-
supervisorId: integer('supervisor_id')
25-
.references(() => faculty.id)
24+
facultyId: varchar('faculty_id', { length: 8 })
25+
.references(() => faculty.employeeId)
2626
.notNull(),
2727
type: varchar('type', { enum: ['part-time', 'full-time'] }).notNull(),
2828
title: varchar('title', { length: 256 }).notNull(),
@@ -40,7 +40,7 @@ export const doctoratesRelations = relations(doctorates, ({ one }) => ({
4040
references: [students.id],
4141
}),
4242
supervisor: one(faculty, {
43-
fields: [doctorates.supervisorId],
44-
references: [faculty.id],
43+
fields: [doctorates.facultyId],
44+
references: [faculty.employeeId],
4545
}),
4646
}));

0 commit comments

Comments
 (0)