bay0 / react-app-protect Goto Github PK
View Code? Open in Web Editor NEWPassword protect a react app.
Home Page: https://bay0.github.io/react-app-protect/
Password protect a react app.
Home Page: https://bay0.github.io/react-app-protect/
This has occasionally popped up in both development and production environments. If I clear my localstorage cookies and reenter the password, the error is resolved. Since I don't think the stored cipher value is getting changed, could this be related to inconsistent parsing of that value?
I am trying to install this with a CRA app with react 17
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from react-app-protect@1.0.7
npm ERR! node_modules/react-app-protect
npm ERR! react-app-protect@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
Peer dep locked at react 17.
Styled component classes override, making it impossible to customize passed the wrapper class without targeting specific elements like input
or button
- Would be better if you included a styles prop on the main Protect
wrapper to pass in custom styles for the inner components, ie: button, input, box, header.
Example:
<Protect styles={{
input: { width: "100%" },
button: { background: "blue" },
header: { background: "red" },
wrapper: { background: "green" }
}}>{children}</Protect>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.