Skip to content

commit03#3

Open
Chamindukavya wants to merge 81 commits into
Methmifrom
main
Open

commit03#3
Chamindukavya wants to merge 81 commits into
Methmifrom
main

Conversation

@Chamindukavya

Copy link
Copy Markdown
Owner

No description provided.

Chamindukavya and others added 23 commits August 30, 2024 23:37
This commit adds a new utility function, `cn`, to the `utils.ts` file in the `src/lib` directory. The `cn` function uses the `clsx` and `twMerge` libraries to merge multiple CSS class values into a single string. This function will be useful for dynamically applying CSS classes in the application.

Refactor: Update database password in next.config.mjs

This commit updates the password for the development database in the `next.config.mjs` file. The previous password was insecure, so it has been replaced with a stronger password.

fix: Fix typo in common.ts

This commit fixes a typo in the `GetDBSettings` function in the `common.ts` file. The typo caused an error when trying to access the `process.env.NE` variable. The correct variable name is `process.env.NODE_ENV`.

refactor: Update table name in route.ts files

This commit updates the table names in the `route.ts` files for the `passenger`, `userDetails`, `flight/addFlight`, and `mysql/students` API routes. The table names were prefixed with `students.`, which is unnecessary and has been removed.

feat: Add new components.json file

This commit adds a new `components.json` file to the root directory of the project. The file defines configuration settings for the UI components used in the application. It specifies the Tailwind CSS configuration file, the base color, and aliases for component imports.

refactor: Update SQL query in auth.ts

This commit updates the SQL query in the `auth.ts` file to retrieve user information from the database. The query now includes additional columns for `date_of_birth`, `age`, `user_state`, `total_no_bookings`, and `role_name`.

refactor: Update SQL query in show/route.ts

This commit updates the SQL query in the `show/route.ts` file to retrieve flight information from the database. The query now uses the correct column name `flight_shedule_id` instead of `flightSchedule_id`.

feat: Add AdminLayout component

This commit adds a new `AdminLayout` component to the `adminOnly` directory. The component is a layout for admin-only pages and includes a sidebar and content area.

feat: Add Label component

This commit adds a new `Label` component to the `ui` directory. The component is a wrapper for the `@radix-ui/react-label` package and provides styling and accessibility enhancements for labels.

refactor: Update RootLayout component

This commit updates the `RootLayout` component in the `layout.tsx` file. The component now imports the `AuthProvider` component from the correct path and includes it as a wrapper around the `Navbar` and `children` components.

feat: Add Separator component

This commit adds a new `Separator` component to the `ui` directory. The component is a wrapper for the `@radix-ui/react-separator` package and provides a horizontal or vertical separator element.

feat: Add Input component

This commit adds a new `Input` component to the `ui` directory. The component is a styled input element with various CSS classes for different states and styles.

refactor: Update SQL query in addbooking/route.ts

This commit updates the SQL queries in the `addbooking/route.ts` file to insert booking and passenger details into the database. The queries now use the correct table names `booking` and `passenger`.

feat: Add getAirports API route

This commit adds a new API route, `getAirports`, to fetch a list of airport codes from the database. The route is implemented in the `getAirports/route.ts` file.
…eneger-page-of-the-dashboard

Create APIs for getting reports and front-end files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants