Skip to content

Commit 4299c09

Browse files
Merge pull request #168 from upayanmazumder-DevLabs/prod
Prettier
2 parents 793e1bf + 903ebc7 commit 4299c09

135 files changed

Lines changed: 8512 additions & 8825 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn lint-staged

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
build
4+
.next
5+
coverage
6+
.env

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 100,
7+
"bracketSpacing": true,
8+
"arrowParens": "avoid"
9+
}

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ version 2.1, available at
120120
https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
121121

122122
For answers to common questions about this code of conduct, see the FAQ at
123-
https://www.contributor-covenant.org/faq.
123+
https://www.contributor-covenant.org/faq.

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ Please note that this project is released with a [Contributor Code of Conduct](C
2020
- Review code on other people’s submissions and help improving / finding vulnerabilities
2121

2222
## Making a PR
23+
2324
- Provide all the appropriate details asked in PR template
2425
- A pull request doesn’t have to represent finished work. It’s usually better to open a pull request early on, so others can watch or give feedback on your progress. Just mark it as a “WIP” (Work in Progress) in the subject line. You can always add more commits later.
2526

2627
## Opening an Issue
28+
2729
- Make use of an appropriate Issue Template
2830
- We welcome Feature request, Bug Report, Documentation fix and others
2931
- Do not open critical security issues here, report them directly at [our email](mailto:contact@codechefvit.com).
3032

3133
## Communicating effectively
34+
3235
**Give context.** Help others get quickly up to speed. If you’re running into an error, explain what you’re trying to do and how to reproduce it. If you’re suggesting a new idea, explain why you think it’d be useful to the project (not just to you!).
3336

3437
```
@@ -65,8 +68,10 @@ Please note that this project is released with a [Contributor Code of Conduct](C
6568
```
6669

6770
## Misc
71+
6872
- You are welcome to Propose a new feature by creating an **Issue**.
6973
- You may Discuss a high-level topic or idea (for example, community, vision or policies) by writing to us at our [Email](mailto:contact@codechefvit.com).
7074

7175
## Attribution
72-
- [Open Source Guide](https://opensource.guide/how-to-contribute/)
76+
77+
- [Open Source Guide](https://opensource.guide/how-to-contribute/)

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
FFCS-inator
99
</h2>
1010

11-
## FFCS-inator - CodeChef VIT
12-
Generate priority-based timetables in seconds with FFCS-inator. The smartest way to plan your VIT FFCS. Pick your favorite faculties, set your subject and faculty priorities, and let FFCS-inator create the perfect clash-free timetable for you. Save your timetables for later, and easily share them with friends. No hassle. No stress. Just your ideal schedule, tailored to you.
11+
## FFCS-inator - CodeChef VIT
1312

13+
Generate priority-based timetables in seconds with FFCS-inator. The smartest way to plan your VIT FFCS. Pick your favorite faculties, set your subject and faculty priorities, and let FFCS-inator create the perfect clash-free timetable for you. Save your timetables for later, and easily share them with friends. No hassle. No stress. Just your ideal schedule, tailored to you.
1414

1515
## Tech Stack
1616

@@ -23,35 +23,39 @@ Generate priority-based timetables in seconds with FFCS-inator. The smartest way
2323

2424
## Features
2525

26-
**Faculty Listings by Domain, School, Subject, and Slot**
26+
**Faculty Listings by Domain, School, Subject, and Slot**
27+
2728
- Search and explore a complete list of faculties, organized by school, domain, subject, and slot.
2829

29-
**Automatic Timetable Generation**
30+
**Automatic Timetable Generation**
31+
3032
- Generate all possible clash-free timetables automatically using a smart 2D priority algorithm that considers your faculty and subject preferences.
3133

32-
**Download Detailed Reports**
34+
**Download Detailed Reports**
35+
3336
- Export a comprehensive PDF report showing:
3437
- All faculties possible for each subject
3538
- Detailed clash information between selected slots and faculties
3639

37-
**Save Timetables**
40+
**Save Timetables**
41+
3842
- Save your generated timetables for future access and comparison.
3943

40-
**Share Timetables Securely**
44+
**Share Timetables Securely**
45+
4146
- Share your timetable with others via a unique shareable link.
4247
- Control privacy settings to make your timetable public or private as needed.
4348

4449
**Interactive Slot View & Clash Detection**
50+
4551
- Quickly visualize all available slots on a timetable grid.
4652
- Once a slot is selected, conflicting slots are automatically blocked to prevent clashes and simplify your choices.
4753

48-
49-
5054
## Get Started
5155

5256
The repository has two branches, 'prod' and 'staging'.
5357

54-
prod (Production Branch) represents the live, user-facing version of the project where bug-free, well-tested code resides.
58+
prod (Production Branch) represents the live, user-facing version of the project where bug-free, well-tested code resides.
5559

5660
staging (Staging Branch) serves as a pre-production environment, where features and fixes are tested before they go live.
5761

@@ -62,6 +66,7 @@ Clone the 'prod' branch (production)
6266
```bash
6367
git clone -b prod https://github.com/CodeChefVIT/ffcs.git
6468
```
69+
6570
OR
6671

6772
Clone the 'staging' branch (staging)
@@ -91,6 +96,7 @@ Before getting started, please ensure that the .env file is properly configured.
9196
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)
9297

9398
## Meet the Team
99+
94100
[![Meet the Team](https://img.shields.io/badge/Meet%20the%20Team-Click%20Here-ff69b4?style=for-the-badge)](https://www.codechefvit.com/ffcs-inator)
95101

96102
<p align="center">

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

eslint.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { dirname } from "path";
2-
import { fileURLToPath } from "url";
3-
import { FlatCompat } from "@eslint/eslintrc";
1+
import { dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
import { FlatCompat } from '@eslint/eslintrc';
44

55
const __filename = fileURLToPath(import.meta.url);
66
const __dirname = dirname(__filename);
@@ -10,7 +10,7 @@ const compat = new FlatCompat({
1010
});
1111

1212
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
13+
...compat.extends('next/core-web-vitals', 'next/typescript'),
1414
{
1515
rules: {
1616
// "@next/next/no-img-element": "off",
@@ -27,4 +27,4 @@ const eslintConfig = [
2727
},
2828
];
2929

30-
export default eslintConfig;
30+
export default eslintConfig;

middleware.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { NextRequest, NextResponse } from "next/server";
1+
import { NextRequest, NextResponse } from 'next/server';
22

33
export async function middleware(request: NextRequest) {
44
const sessionToken =
5-
request.cookies.get("next-auth.session-token")?.value ||
6-
request.cookies.get("__Secure-next-auth.session-token")?.value;
5+
request.cookies.get('next-auth.session-token')?.value ||
6+
request.cookies.get('__Secure-next-auth.session-token')?.value;
77

88
if (!sessionToken) {
9-
return NextResponse.redirect(new URL("/", request.url));
9+
return NextResponse.redirect(new URL('/', request.url));
1010
}
1111
return NextResponse.next();
1212
}
1313

1414
export const config = {
15-
matcher: ["/user/favorites"],
15+
matcher: ['/user/favorites'],
1616
};

next.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
images: {
55
remotePatterns: [
66
{
7-
protocol: "https",
8-
hostname: "lh3.googleusercontent.com",
9-
port: "",
10-
pathname: "/**",
7+
protocol: 'https',
8+
hostname: 'lh3.googleusercontent.com',
9+
port: '',
10+
pathname: '/**',
1111
},
1212
],
1313
},

0 commit comments

Comments
 (0)