langflow/src/frontend
Lucas Oliveira 108decfeaa
fix: refactor mutation type (#2767)
* Fixed Mutation Types to include options as undefined

* Updated mutation function type to not include params if it is undefined

* updated useAddUser type to match the new useMutationFunctionType

* updated useDeleteUser type to match the new useMutationFunctionType

* feat: Update useLoginUser mutation function type

The useLoginUser mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* chore: Update useLogout mutation function type

The useLogout mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* feat: Update useRefreshAccessToken mutation function type

The useRefreshAccessToken mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* feat: Update useResetPassword mutation function type

The useResetPassword mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* feat: Update useUpdateUser mutation function type

The useUpdateUser mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* chore: Update useDeleteMessages mutation function type

The useDeleteMessages mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* refactor: Update useUpdateMessage mutation function type

The useUpdateMessage mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* feat: Update usePostLikeComponent mutation function type

The usePostLikeComponent mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* chore: Update usePostRetrieveVertexOrder mutation function type

The usePostRetrieveVertexOrder mutation function type has been updated to match the new useMutationFunctionType signature. This change ensures consistency and compatibility with other mutation functions in the codebase.

* refactor: Update useGetProfilePicturesQuery function type

The useGetProfilePicturesQuery function type has been updated to match the new useQueryFunctionType signature. This change ensures consistency and compatibility with other query functions in the codebase.

* feat: Update profile picture chooser component to use ProfilePicturesQueryResponse

The profile picture chooser component has been updated to use the `ProfilePicturesQueryResponse` type from the `@/controllers/API/queries/files` module. This change ensures consistency and compatibility with other parts of the codebase.

* refactor: Update ProfilePictureForm to use ProfilePicturesQueryResponse

Refactor the ProfilePictureForm component to use the ProfilePicturesQueryResponse type from the "@/controllers/API/queries/files" module. This change ensures consistency and compatibility with other parts of the codebase.

* refactor: Update handleGetProfilePictures to use useGetProfilePicturesQuery

Refactor the handleGetProfilePictures function in the GeneralPage component to use the useGetProfilePicturesQuery hook instead of manually calling the useGetProfilePicturesQuery function. This change ensures consistency and compatibility with other parts of the codebase.

* Refactored logout to use the onSuccess and onError inside the API hook instead of in a new hook.
2024-07-17 21:54:45 +00:00
..
harFiles feat: Update field types in prompt and formatter modules 2024-05-30 16:46:45 -03:00
public
src fix: refactor mutation type (#2767) 2024-07-17 21:54:45 +00:00
tests test: Add Test to Prevent Bug on Output Inspection for Grouped Components (#2667) 2024-07-12 20:10:00 +00:00
.dockerignore
.eslintrc.json 🔧 (.pre-commit-config.yaml): add eslint-plugin-react@latest as a dependency to improve linting for React components 2024-05-02 18:51:27 -03:00
.gitignore 🔧 (Makefile): remove unnecessary kill command for frontend server in run_frontend target 2024-04-19 12:38:57 -03:00
.prettierignore Format tests and update prettier command 2024-06-10 15:23:52 -03:00
.prettierrc.mjs Fixed Prettier tailwind formatting 2024-06-17 14:37:23 -03:00
cdk.Dockerfile Update Dockerfiles to use latest node version in frontend 2024-04-17 11:21:10 -03:00
dev.Dockerfile Update Dockerfiles to use latest node version in frontend 2024-04-17 11:21:10 -03:00
Dockerfile move cdk folder to scripts/cdk 2023-11-30 16:32:52 +09:00
index.html feat: POC of useQuery -> mutation and query (#2512) 2024-07-03 19:16:23 -03:00
nginx.conf
package-lock.json feat: POC of useQuery -> mutation and query (#2512) 2024-07-03 19:16:23 -03:00
package.json feat: POC of useQuery -> mutation and query (#2512) 2024-07-03 19:16:23 -03:00
playwright.config.ts add tests improvements 2024-07-01 13:53:55 -03:00
postcss.config.js
README.md
run-tests.sh 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
set_proxy.sh
start-nginx.sh
tailwind.config.mjs added beta foreground soft color 2024-06-24 04:38:39 -07:00
tsconfig.json feat: POC of useQuery -> mutation and query (#2512) 2024-07-03 19:16:23 -03:00
vite.config.mts feat: POC of useQuery -> mutation and query (#2512) 2024-07-03 19:16:23 -03:00

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you cant go back!

If you arent satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.

You dont have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.