Skip to content

Commit f24aab5

Browse files
committed
update readme
1 parent 1b3d7de commit f24aab5

File tree

7 files changed

+48
-7
lines changed

7 files changed

+48
-7
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# React Image Upload
22

3+
[![NPM version][npm-image]][npm-url]
4+
35
A image upload component for React
46

7+
## Documentation
8+
9+
Visit [https://github.com/fourcels/react-image-upload](https://github.com/fourcels/react-image-upload) to view the full documentation.
10+
511
## Getting Started
612

713
### Install
@@ -19,3 +25,11 @@ function MyApp() {
1925
return <ImageUpload />;
2026
}
2127
```
28+
29+
[npm-image]: https://img.shields.io/npm/v/@fourcels/react-image-upload.svg?style=flat-square
30+
[npm-url]: https://www.npmjs.com/package/@fourcels/react-image-upload
31+
32+
## Acknowledgments
33+
34+
- [react-dropzone](https://github.com/react-dropzone/react-dropzone)
35+
- [react-photo-view](https://github.com/MinJieLiu/react-photo-view)

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# docs
22

3+
## 0.0.6
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @fourcels/react-image-upload@0.5.9
9+
310
## 0.0.4
411

512
### Patch Changes

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",

docs/src/pages/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Link from "@docusaurus/Link";
33
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
44
import Layout from "@theme/Layout";
55
import Heading from "@theme/Heading";
6-
import useBaseUrl from "@docusaurus/useBaseUrl";
76

87
import styles from "./index.module.css";
98
import { ImageUpload } from "@fourcels/react-image-upload";
@@ -45,9 +44,9 @@ export default function Home(): JSX.Element {
4544
<div className={styles.example}>
4645
<ImageUpload
4746
value={[
48-
useBaseUrl("img/undraw_docusaurus_mountain.svg"),
49-
useBaseUrl("img/undraw_docusaurus_react.svg"),
50-
useBaseUrl("img/undraw_docusaurus_tree.svg"),
47+
"img/undraw_docusaurus_mountain.svg",
48+
"img/undraw_docusaurus_react.svg",
49+
"img/undraw_docusaurus_tree.svg",
5150
]}
5251
/>
5352
</div>

packages/react-image-upload/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @fourcels/react-image-upload
22

3+
## 0.5.9
4+
5+
### Patch Changes
6+
7+
- update readme
8+
39
## 0.5.8
410

511
### Patch Changes

packages/react-image-upload/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# React Image Upload
22

3-
A image upload component for React
3+
[![NPM version][npm-image]][npm-url]
4+
5+
A image upload component for React base on
6+
7+
## Documentation
8+
9+
Visit [https://github.com/fourcels/react-image-upload](https://github.com/fourcels/react-image-upload) to view the full documentation.
410

511
## Getting Started
612

@@ -19,3 +25,11 @@ function MyApp() {
1925
return <ImageUpload />;
2026
}
2127
```
28+
29+
[npm-image]: https://img.shields.io/npm/v/@fourcels/react-image-upload.svg?style=flat-square
30+
[npm-url]: https://www.npmjs.com/package/@fourcels/react-image-upload
31+
32+
## Acknowledgments
33+
34+
- [react-dropzone](https://github.com/react-dropzone/react-dropzone)
35+
- [react-photo-view](https://github.com/MinJieLiu/react-photo-view)

packages/react-image-upload/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fourcels/react-image-upload",
3-
"version": "0.5.8",
3+
"version": "0.5.9",
44
"type": "module",
55
"description": "A image upload component for React",
66
"main": "./dist/index.js",
@@ -12,6 +12,7 @@
1212
"react",
1313
"image upload"
1414
],
15+
"homepage": "https://fourcels.github.io/react-image-upload/",
1516
"repository": {
1617
"type": "git",
1718
"url": "https://github.com/fourcels/react-image-upload.git",

0 commit comments

Comments
 (0)