Skip to content

Commit 0e71117

Browse files
committed
init
1 parent 317d943 commit 0e71117

52 files changed

Lines changed: 4697 additions & 2726 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/node_modules/**
2+
**/dist/**
3+
**/storybook-static/**
4+
**/coverage/**
5+
**/build/**
6+
**/.git/**
7+
**/public/**
8+
!.eslintrc.js
9+
packages/apps/frontend/src/*
10+
**/frontend/src/**

.eslintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true,
6+
"mocha": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:react/recommended",
11+
"plugin:@typescript-eslint/eslint-recommended"
12+
],
13+
"globals": {
14+
"Atomics": "readonly",
15+
"SharedArrayBuffer": "readonly"
16+
},
17+
"parser": "@typescript-eslint/parser",
18+
"parserOptions": {
19+
"ecmaFeatures": {
20+
"jsx": true
21+
},
22+
"ecmaVersion": 2018,
23+
"sourceType": "module"
24+
},
25+
"plugins": [
26+
"@typescript-eslint"
27+
],
28+
"rules": {
29+
"react/prop-types": "off",
30+
"react/no-unescaped-entities": "off",
31+
"react/display-name": "off",
32+
"no-unused-vars": "off",
33+
"no-debugger": "off",
34+
"no-ex-assign": "off",
35+
"no-empty-pattern": "off",
36+
"prefer-const": "warn"
37+
},
38+
"settings": {
39+
"react": {
40+
"version": "detect"
41+
// Tells eslint-plugin-react to automatically detect the version of React to use
42+
}
43+
}
44+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
# production
1212
/build
13+
/dist
1314

1415
# misc
16+
.idea
1517
.DS_Store
1618
.env.local
1719
.env.development.local
@@ -21,3 +23,4 @@
2123
npm-debug.log*
2224
yarn-debug.log*
2325
yarn-error.log*
26+

.prettierrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSpacing: true,
4+
jsxSingleQuote: false,
5+
printWidth: 120,
6+
semi: true,
7+
singleQuote: true,
8+
tabWidth: 2,
9+
trailingComma: 'all',
10+
};

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 UGNIS,
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
1-
# Getting Started with Create React App
1+
# file-validator-component ⚡
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
A component used for importing XLS / XLSX / CSV documents built with [**Material UI**](https://mui.com/). Import flow combines:
44

5-
## Available Scripts
5+
- 📥 Uploader
6+
- ⚙️ Parser
7+
- 📊 File preview
8+
- 🧪 UI for column mapping
9+
- ✏ UI for validating and editing data
610

7-
In the project directory, you can run:
11+
## Features
812

9-
### `npm start`
13+
- Custom styles - edit Material UI theme to match your project's styles 🎨
14+
- Custom validation rules - make sure valid data is being imported, easily spot and correct errors
15+
- Hooks - alter raw data after upload or make adjustments on data changes
16+
- Auto-mapping columns - automatically map most likely value to your template values, e.g. `name` -> `firstName`
1017

11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
18+
## Contributing
1319

14-
The page will reload if you make edits.\
15-
You will also see any lint errors in the console.
20+
Feel free to open issues if you have any questions or notice bugs. If you want different component behaviour, consider forking the project.
1621

17-
### `npm test`
22+
## Credits
1823

19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35-
36-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39-
40-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
24+
Modified by Muhammad H. Shahzad

0 commit comments

Comments
 (0)