autobrr/web
soup 4449df66aa
feat(filters): import/export functionality (#755)
* initial commit

* import working

* some more changes

* import is working

* added text field for import

* made exported json look pretty

* use filter name as title in export

takes the name of the exported filter and add it as title to the json

wont be used for anything on import

* snake case for title

* visual improvements

* added export function to filter dropdown

* added import to filter list

* include empty values on export

this is needed for the import to work

* styled the add button

* reduced needed values for const defaultFilter

this is the minimum required for successful import

* reduced defaultFilter to bits

* Made export and import require minimum values

added "version": "1.0", to export json

* changed filter name

* made the import textfield dynamic

* incremental numbering for imported filter names

Updated the filter import logic to check for existing filter names and
appending incremental number to the filter name if a conflict is found

* reverted changes in details.tsx

* Improved code comments a bit

* add icon and tooltip to filter.actions_count === 0

* changed the 0-action icon to a red animate-ping

- made the tooltip trigger on both the name and the animate-ping hover
- improved colors a bit

* fixed bg color for textarea

made the focus ring less intrusive
2023-03-19 21:22:07 +01:00
..
.yarn/releases build(docker): add multiarch build for ARM, ARM64 and AMD64 (#378) 2022-08-03 19:38:32 +02:00
public feat(web): error boundry and fixes (#270) 2022-05-12 16:26:41 +02:00
src feat(filters): import/export functionality (#755) 2023-03-19 21:22:07 +01:00
.eslintrc.js chore(web): ignore eslint warnings (#662) 2023-01-28 17:04:30 +01:00
.gitignore build(docker): add multiarch build for ARM, ARM64 and AMD64 (#378) 2022-08-03 19:38:32 +02:00
.yarnrc.yml build(docker): add multiarch build for ARM, ARM64 and AMD64 (#378) 2022-08-03 19:38:32 +02:00
build.go feat: add webui 2021-08-11 15:27:48 +02:00
package.json feat(web): Add helper tooltips for inputs and link them to docs (#663) 2023-02-03 17:03:49 +01:00
postcss.config.js chore: update web dependencies (#102) 2022-02-05 13:27:44 +01:00
README.md feat: add webui 2021-08-11 15:27:48 +02:00
tailwind.config.js feat(web): better tooltips and uniformity (#474) 2022-10-14 21:54:21 +02:00
tsconfig.json refactor(web) add eslint (#222) 2022-05-17 06:44:07 +02:00
yarn.lock feat(web): Add helper tooltips for inputs and link them to docs (#663) 2023-02-03 17:03:49 +01:00

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn 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.

yarn test

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

yarn 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.

yarn 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.