Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file encoding detection #100

Open
wants to merge 153 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
03fa8da
Configure for using hook in development
Bunlong Aug 28, 2021
72146b6
Merge branch 'master' of https://github.com/Bunlong/react-papaparse i…
Bunlong Sep 4, 2021
b501fa9
Define readString in usePapaParse
Bunlong Sep 8, 2021
f6caa50
Define readRemoteFile in usePapaParse
Bunlong Sep 8, 2021
0730fe6
Define jsonToCSV in usePapaParse
Bunlong Sep 8, 2021
3c20d7e
:sparkles: feat: add file encoding detection
exaucae Oct 14, 2021
afbd117
Add .github
Bunlong Nov 3, 2021
00917ac
Fix types
Bunlong Nov 3, 2021
a52b59e
Fix miss encoding type
Bunlong Nov 4, 2021
0e8ef80
Fix unmount issue with CSVReader
joey-b Nov 4, 2021
1042722
Add reference
Bunlong Nov 4, 2021
34f8e1a
Create model interface
Bunlong Nov 4, 2021
4ae6ae3
Create ReadRemoteFileConfig model
Bunlong Nov 4, 2021
8c9d296
Create CustomConfig model
Bunlong Nov 4, 2021
34e9e1c
Fix options
Bunlong Nov 4, 2021
b502a23
Fix string type
Bunlong Nov 5, 2021
0243fc5
Update CHANGELOG
Bunlong Nov 5, 2021
4d54d5b
Set download
Bunlong Nov 5, 2021
307191c
Make prettier
Bunlong Nov 5, 2021
1576705
Update docs
Bunlong Nov 5, 2021
99a3c24
Wrong Typescript CSVDownloader config type ( #99 )
Bunlong Nov 5, 2021
e9fc298
Update format
Bunlong Nov 5, 2021
175392f
Update format
Bunlong Nov 5, 2021
657493d
Update docs
Bunlong Nov 5, 2021
e14ca4f
Update CHANGELOG
Bunlong Nov 5, 2021
eb14085
Update README
Bunlong Nov 5, 2021
192283c
Update README
Bunlong Nov 6, 2021
f2a5b1f
Add CODE_OF_CONDUCT
Bunlong Nov 6, 2021
0b6f202
Merge pull request #103 from joey-b/master
Bunlong Nov 7, 2021
d691649
Update CHANGELOG and upgrade version
Bunlong Nov 7, 2021
abd7731
Update CHANGELOG
Bunlong Nov 7, 2021
3c5ea73
Update README
Bunlong Nov 8, 2021
a42e799
Merge branch 'master' of github.com:Bunlong/react-papaparse into v4.0.0
Bunlong Nov 8, 2021
7278baf
Merge branch 'master' of https://github.com/Bunlong/react-papaparse i…
Bunlong Nov 18, 2021
a302eee
Create useCSVDownloader
Bunlong Nov 18, 2021
05cfb3b
Create button and link download in useCSVDownloader
Bunlong Nov 18, 2021
cde6e6a
Create button and link download in useCSVDownloader
Bunlong Nov 18, 2021
678e7be
Merge branch 'v4.0.0' of github.com:Bunlong/react-papaparse into v4.0.0
Bunlong Nov 19, 2021
feacdd8
Import useCSVDownloader
Bunlong Nov 19, 2021
91c09ec
Add useCSVReader.tsx
Bunlong Nov 19, 2021
f700e41
Define initialize classes
Bunlong Nov 19, 2021
164761e
Define Props and Interface
Bunlong Nov 19, 2021
52f4b26
Add onClick event
Bunlong Nov 20, 2021
6708ed5
Setup input
Bunlong Nov 21, 2021
b44ddbc
Validate files
Bunlong Nov 22, 2021
c1114be
Read accepted files
Bunlong Nov 22, 2021
faa17f0
Set multiple files
Bunlong Nov 23, 2021
9ab5059
Parse CSV
Bunlong Nov 24, 2021
7652b5b
Parse CSV
Bunlong Nov 24, 2021
711b2ff
Change results format
Bunlong Nov 24, 2021
1e1967a
Refactor name
Bunlong Nov 25, 2021
703083a
Update github settings
Bunlong Nov 25, 2021
1b3e8d7
Merge branch 'master' of https://github.com/Bunlong/react-papaparse
Bunlong Nov 25, 2021
9e16125
Update github settings
Bunlong Nov 25, 2021
d3f87e4
Use onUploadAccepted to get data
Bunlong Nov 25, 2021
1f62c29
Display file name
Bunlong Nov 26, 2021
ff1b949
Refactor ProgressBar
Bunlong Nov 27, 2021
de51b6a
Set progressbar active
Bunlong Nov 28, 2021
6ac4d00
Export ProgressBar component
Bunlong Nov 28, 2021
fda76b9
Export ProgressBar component
Bunlong Nov 28, 2021
ebb5538
Set ProgressBar style
Bunlong Nov 29, 2021
4aca4b0
Add className props to ProgressBar
Bunlong Nov 29, 2021
bd6f351
Fix ProgressBar className
Bunlong Nov 30, 2021
9d91586
Refactor functions name
Bunlong Nov 30, 2021
e308873
Fix format
Bunlong Dec 1, 2021
b215368
Check children is button or dropzone
Bunlong Dec 4, 2021
28c6563
Add onDragOver event
Bunlong Dec 7, 2021
58c889e
Add Drop onFocus and onBlur
Bunlong Dec 19, 2021
4e56862
Add Drop onKeyDown
Bunlong Dec 19, 2021
7335f16
Add Drop onDragLeave
Bunlong Dec 19, 2021
db72aae
Add Drop onDragOver
Bunlong Dec 19, 2021
b411650
Add Drop onDragEnter
Bunlong Dec 19, 2021
0cc23d7
Fix getting files
Bunlong Dec 19, 2021
2c5df4b
Fix Drop onClick
Bunlong Dec 20, 2021
46a396a
Uncomment drop example
Bunlong Dec 20, 2021
2779d36
Fix displaying progressbar
Bunlong Dec 22, 2021
6f0d62c
Add onClick to button
Bunlong Dec 23, 2021
46173e4
Fix performance
Bunlong Dec 26, 2021
4e69371
Fix drop
Bunlong Dec 27, 2021
22e2f3b
Set Event type
Bunlong Dec 28, 2021
ec4cd63
Fix type
Bunlong Dec 28, 2021
18f3851
Add comment
Bunlong Dec 28, 2021
ceb4022
Update Basic Upload
Bunlong Dec 29, 2021
4f7d693
Update Click and Drag Upload
Bunlong Dec 29, 2021
ecdde1c
Update Drag ( No Click ) Upload
Bunlong Dec 29, 2021
9c22551
Update No Drag
Bunlong Dec 29, 2021
c8db4b8
Update CSVDownloader button
Bunlong Dec 29, 2021
3589107
Update CSVDownloader link
Bunlong Dec 29, 2021
0804e49
Update Data as a Function/Callback
Bunlong Dec 29, 2021
3531d50
Update import useCSVDownloader
Bunlong Dec 29, 2021
75f6605
Update readString
Bunlong Dec 30, 2021
92fb556
Update readRemoteFile
Bunlong Dec 30, 2021
62f4bac
Update jsonToCSV
Bunlong Dec 30, 2021
9683313
Update Stream
Bunlong Dec 30, 2021
c6e3502
Update Changelog
Bunlong Dec 31, 2021
7b41a2b
Refactor useCSVDownloader
Bunlong Dec 31, 2021
9042a73
Refactor useCSVDownloader
Bunlong Dec 31, 2021
bdd3cad
Refactor
Bunlong Dec 31, 2021
b6d8a06
Refactor
Bunlong Dec 31, 2021
11dffaa
Add remove file programmatically
Bunlong Jan 2, 2022
6a505a4
Fix breaking change in webpack 5
Bunlong Jan 3, 2022
3d68e19
Merge pull request #112 from Bunlong/webpack-v5-compatibility
Bunlong Jan 3, 2022
8b9bb3f
Update v3.18.2
Bunlong Jan 3, 2022
fb3ef9c
Resolve conflict
Bunlong Jan 3, 2022
3c67452
Add Remove button
Bunlong Jan 4, 2022
5f1bb19
Update CSVDownloader button
Bunlong Jan 5, 2022
1f01a15
Update CSVDownloader link
Bunlong Jan 5, 2022
df7a629
Update Data as a Function/Callback
Bunlong Jan 5, 2022
3fa74ea
Update readString
Bunlong Jan 5, 2022
c04d3fa
Update readRemoteFile
Bunlong Jan 5, 2022
ab5c1c6
Update jsonToCSV
Bunlong Jan 5, 2022
53e9424
Update Header Row Support
Bunlong Jan 5, 2022
dcc1984
Update Stream
Bunlong Jan 5, 2022
b51b1c2
Update CHANGELOG
Bunlong Jan 5, 2022
b4cf2ac
Update Click and Drag Upload
Bunlong Jan 6, 2022
8251638
Update Drag ( No Click ) Upload
Bunlong Jan 6, 2022
756824c
Update Drag ( No Click ) Upload
Bunlong Jan 6, 2022
513d328
Update Click ( No Drag ) Upload
Bunlong Jan 6, 2022
4421837
Add remove button
Bunlong Jan 6, 2022
252536b
Update Basic Upload
Bunlong Jan 6, 2022
97a54a3
Fix rendering object in DOM
Bunlong Jan 7, 2022
0b54f16
Update examples
Bunlong Jan 8, 2022
453f046
Format files
Bunlong Jan 8, 2022
23ce361
Update docs
Bunlong Jan 9, 2022
f757a99
Update Demo
Bunlong Jan 10, 2022
7fecf00
Update docs
Bunlong Jan 11, 2022
b78318f
Update CSVDownloader docs
Bunlong Jan 12, 2022
b4ca401
Update Demo docs
Bunlong Jan 12, 2022
cb60679
Add examples
Bunlong Jan 15, 2022
ae9ae16
Add CSVReaderBasicUpload
Bunlong Jan 15, 2022
cbd3b73
Add CSVReaderClickAndDragUpload
Bunlong Jan 15, 2022
3e9232e
Add CSVReaderClickNoDragUpload
Bunlong Jan 15, 2022
880c32f
Add CSVReaderDragNoClickUpload
Bunlong Jan 15, 2022
29f8114
Add CSVDownloader
Bunlong Jan 15, 2022
bfbe828
Add readString
Bunlong Jan 15, 2022
4665409
Add readRemoteFile
Bunlong Jan 16, 2022
9e67874
Update docs
Bunlong Jan 16, 2022
fa380bd
Update README
Bunlong Jan 16, 2022
f0ee297
Fix testing
Bunlong Jan 16, 2022
d159bc5
v4.0.0 #98
Bunlong Jan 18, 2022
4e129d1
Update version
Bunlong Jan 18, 2022
9e415b6
Upgrade react-papaparse to v4.0.0
Bunlong Jan 18, 2022
31b5550
Fix config does not work (#115)
Bunlong Jan 20, 2022
5c2c2e9
Update CHANGELOG
Bunlong Jan 20, 2022
2872726
Fix config does not work in CSVReader
Bunlong Jan 20, 2022
a9f2805
v4.0.1
Bunlong Jan 20, 2022
7aaca33
Add comments
Bunlong Jan 22, 2022
c309774
Fixed onUploadAccepted signature when a preview is set
MichielDeMey Jan 24, 2022
d9de023
Fix onUploadAccepted signature when a preview is set
Bunlong Jan 25, 2022
8dc552a
Update CHANGELOG (#119)
Bunlong Jan 25, 2022
ed60a55
chore: rebase from head
exaucae Feb 25, 2022
0f04493
refactor: move file encoding to new hook
exaucae Feb 25, 2022
daf96d7
fix: resolve conflicts with upstream
exaucae Feb 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ node_modules
build
dist

# editors
.idea

# misc
.DS_Store
.env
Expand All @@ -20,6 +23,7 @@ yarn-debug.log*
yarn-error.log*

package-lock.json
yarn.lock

/docs/node_modules
/docs/.next
Expand Down
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
## 4.0.2 (2022-01-26)

### ✨ Bugs

* Fix onUploadAccepted signature when a preview is set

Credits

* [@MichielDeMey](https://github.com/MichielDeMey)

## 4.0.1 (2022-01-21)

### ✨ Bugs

* Fix config props does not work in CSVReader

Credits

* [@jadenmazzone](https://github.com/jadenmazzone)

## 4.0.0 (2022-01-18)

### ✨ Features

* Improve code performance
* Rewrite any existing based components to hooks

Credits

* [@Bunlong](https://github.com/Bunlong)

## 3.18.2 (2022-01-04)

### ✨ Bugs

* Fix breaking change with webpack 5

Credits

* ax0n-pr1me [@ax0n-pr1me](https://github.com/ax0n-pr1me)

## 3.18.1 (2021-11-07)

### ✨ Bugs

* Fix a bug when component is unmounted immediately after file load in CSVReader

Credits

* Joey Baker [@joey-b](https://github.com/joey-b)

## 3.18.0 (2021-11-05)

### ✨ Bugs

* Upgrade dependency
* Change readString API

Credits

* Graveheart [@Graveheart](https://github.com/Graveheart)

## 3.17.2 (2021-09-4)

### ✨ Features
Expand Down
49 changes: 49 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Contributor Code of Conduct

Our open source projects are no exception. Trust, respect, collaboration and transparency are core values we believe should live and breathe within our projects. Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share.

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Attempting collaboration before conflict
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* Violence, threats of violence, or inciting others to commit self-harm
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, intentionally spreading misinformation, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Abuse of the reporting process to intentionally harass or exclude others
* Advocating for, or encouraging, any of the above behavior
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at `[email protected]`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct/)
Loading