Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@hospitalrun-org/components
Advanced tools
This repository will host reusable react components made for the HospitalRun frontend.
Install components:
npm install @hospitalrun-org/components
Install react-bootstrap:
npm install react-bootstrap
[Optional] You may need node-sass
if you want to import components' .scss
files:
npm install -D node-sass
Contributions are always welcome. Before contributing please read our contributor guide.
cd components
npm install
npm link
to link the local repo to the global npm foldernpm run dev
to build and watch for code changesnpx create-react-app my-app
cd my-app
) to your react project and install node-sass: npm install -D node-sass
. Components styles are coded using scss and you need this dependency in order to successfully import components' .scss
filesnpm link components
npm start
and enjoy hot reloading when applying changes in the components repoSpinner it's a customizable spinner component. It's a wrapper component built upon react-spinners.
Example:
import React from "react";
import { Spinner } from "components";
import "components/scss/main.scss";
class App extends React.Component {
render() {
return (
<Spinner
type="ScaleLoader"
loading={true}
color={"orange"}
size={[5, 25]}
sizeUnit={["px", "px"]}
/>
);
}
}
export default App;
MANDATORY PARAMETERS
type: string
Choose the spinner type. You can choose from:
loading: boolean
This prop tells Spinner when to show itself. It should be linked to something dynamic, like a property in the parent component's state.
OPTIONAL PARAMETERS
color: string
Choose the spinner color.
margin: string
Adds a margin to the Spinner component.
size: number | [number, number]
Declares the size of the spinner. If you choose to declare it, in the following spinners it must be an array of two numbers (for width & height):
sizeUnit: "px" | "%" | "em" | ["px" | "%" | "em", "px" | "%" | "em"]
Declares the unit of measure for the previous size parameter. If you choose to declare it, in the following spinners it must be an array of two strings (respectively for width & height):
Travis Boudreaux | Stefano Casasola | Michael J Feher | Riccardo Gulin | Matteo Vivona |
---|
John Kleinschmidtr | Joel Worrall | Joel Glovier |
---|
Released under the MIT license.
FAQs
The new package is [available here](https://www.npmjs.com/package/@hospitalrun/components) at @hospitalrun/components
The npm package @hospitalrun-org/components receives a total of 2 weekly downloads. As such, @hospitalrun-org/components popularity was classified as not popular.
We found that @hospitalrun-org/components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.