commit03#3
Open
Chamindukavya wants to merge 81 commits into
Open
Conversation
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
Booking api finalized
api changes with procedures
aircrats conflicet handled
… Add-graph-and-piecharts-to-reports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.