Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gliff-ai/upload
Advanced tools
gliff.ai UPLOAD - a React component for uploading multidimensional images
This repository contains the Open Source source code for gliff.ai's UPLOAD component for uploading multidimensional images.
Technical documentation will be available soon.
npm install @gliff-ai/upload
will install the package from npm registry.
Import the UploadImage
module and the ImageFileInfo
type:
import { UploadImage } from @gliff-ai/upload;
import { ImageFileInfo } from @gliff-ai/upload/typings;
Use the UploadImage
module:
setUploadedImage = (
imageFileInfo: ImageFileInfo,
slicesData: Array<Array<ImageBitmap>>
): void => {
this.imageFileInfo = imageFileInfo;
this.slicesData = slicesData;
};
render = (): ReactNode => (
<UploadImage
setUploadedImage={this.setUploadedImage}
spanElement={
<Button aria-label="upload-picture" component="span">
<Backup />
</Button>
} // A <span> element that marks the clickable area.
multiple // allow uploading multiple files at once; use multiple={false} to disallow
/>
);
The example above uses Material-UI.
Frontend code should be written in Typescript and transpiled using the options in tsconfig.json
.
Frontend code is distributed using the npm registry.
NPM should be used for package management.
Please follow gliff.ai's Community Guidelines when contributing to this codebase.
Run npm i
and npm run build
from the root directory to get started.
You can import this package by running npm link
in the package directory, then npm link @gliff-ai/upload
in the directory where you want to use the package (this will create a symbolic link).
Code should be linted with ESLint using .eslintrc.js
and formatted with Prettier.
HTML + CSS, mark-up and mark-down should all be formatted using prettier.
npm run lint
will lint the codebase.
We also provide a pre-commit config for running a variety of linters locally on commit.
Our GitHub Actions will also lint any pull requests before they're merged.
Code should be tested using Jest and React Testing Library.
npm run test
will run any existing tests in our codebase.
We also provide a pre-commit config for running a tests locally before a push.
Our GitHub Actions will also test any pull requests before they're merged.
Pre-commit actions should be configured in .pre-commit-config.yaml
.
GitHub Actions should be included under .github/workflows
.
This code is licensed under a GNU AGPLv3 license. Our reasons for this will be published on our website soon.
FAQs
gliff.ai UPLOAD - a React component for uploading multidimensional images
The npm package @gliff-ai/upload receives a total of 87 weekly downloads. As such, @gliff-ai/upload popularity was classified as not popular.
We found that @gliff-ai/upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.