Giter VIP home page Giter VIP logo

react-shielded's Introduction

react-shielded

Add the Women's Refuge Shielded Site button to your React website.

What's Shielded?

From The Shielded Site Project website:

We’ve created a tool for victims of abuse to ask for help, without fear of it showing up in their browser’s history or an abusive partner ever seeing it. A simple icon which can sit on any website and launch a powerful resource to help end domestic violence.

screenshot

Features

  • 💯 Rewrite of the Shielded script in React.
  • 🔒 No external resources requested—except the iframed content.
  • ✒️ Hand-crafted vector icons.
  • ♿ Accessibility support.

Usage

Install with your favourite package manager:

npm install react-shielded or yarn add react-shielded.

⚠️ Requires React v16.14.0 or higher.

Import in the Shielded component:

import Shielded from 'react-shielded';

Use in your React app:

  ...
  <Shielded />
  ...

And that's it!

react-shielded's People

Contributors

jacobbuck avatar dependabot[bot] avatar

Stargazers

JieHuangStuff avatar Naga durga Prasad E avatar Alan Tan avatar Levi avatar

Watchers

 avatar

react-shielded's Issues

Module not found: Error: Can't resolve './factoryWithThrowingShims' in 'C:\Myproject\prop-types'

I recently asked a question on Stackoverflow that is related to this project : https://stackoverflow.com/questions/76266671/module-not-found-error-cant-resolve-factorywiththrowingshims-in-c-mypro

I added react-shielded to an existing project, and my build no longer works. It's more an issue with various libraries dependencies on prop-types (Including this one deep down), but any hints on how to resolve would be very much appreciated.

Adding this library makes this change in my lock file :

image

Which seems to send things into chaos.

I believe it could also be related to this : alibaba/BizCharts#99. Where prop-types should be marked as external in your build.

Not exactly a pro when it comes to packaging libraries, but it's possible that in your rollup you need to mark prop-types as external https://github.com/jacobbuck/react-shielded/blob/main/rollup.config.mjs.

I think the drag of the prop-types is from your other project here : https://github.com/jacobbuck/react-document-portal (Which however does mark the prop types as external : https://github.com/jacobbuck/react-document-portal/blob/main/rollup.config.js, so I'm not really too sure :\ )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.