Skip to content

Commit da866bc

Browse files
initial commit
0 parents  commit da866bc

26 files changed

Lines changed: 12180 additions & 0 deletions

.gitignore

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
2+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
3+
4+
# User-specific stuff
5+
.idea/**/workspace.xml
6+
.idea/**/tasks.xml
7+
.idea/**/usage.statistics.xml
8+
.idea/**/dictionaries
9+
.idea/**/shelf
10+
11+
# AWS User-specific
12+
.idea/**/aws.xml
13+
14+
# Generated files
15+
.idea/**/contentModel.xml
16+
17+
# Sensitive or high-churn files
18+
.idea/**/dataSources/
19+
.idea/**/dataSources.ids
20+
.idea/**/dataSources.local.xml
21+
.idea/**/sqlDataSources.xml
22+
.idea/**/dynamic.xml
23+
.idea/**/uiDesigner.xml
24+
.idea/**/dbnavigator.xml
25+
26+
# Gradle
27+
.idea/**/gradle.xml
28+
.idea/**/libraries
29+
30+
# Gradle and Maven with auto-import
31+
# When using Gradle or Maven with auto-import, you should exclude module files,
32+
# since they will be recreated, and may cause churn. Uncomment if using
33+
# auto-import.
34+
# .idea/artifacts
35+
# .idea/compiler.xml
36+
# .idea/jarRepositories.xml
37+
# .idea/modules.xml
38+
# .idea/*.iml
39+
# .idea/modules
40+
# *.iml
41+
# *.ipr
42+
43+
# CMake
44+
cmake-build-*/
45+
46+
# Mongo Explorer plugin
47+
.idea/**/mongoSettings.xml
48+
49+
# File-based project format
50+
*.iws
51+
52+
# IntelliJ
53+
out/
54+
55+
# mpeltonen/sbt-idea plugin
56+
.idea_modules/
57+
58+
# JIRA plugin
59+
atlassian-ide-plugin.xml
60+
61+
# Cursive Clojure plugin
62+
.idea/replstate.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
70+
# Editor-based Rest Client
71+
.idea/httpRequests
72+
73+
# Android studio 3.1+ serialized cache file
74+
.idea/caches/build_file_checksums.ser
75+
76+
# Logs
77+
logs
78+
*.log
79+
npm-debug.log*
80+
yarn-debug.log*
81+
yarn-error.log*
82+
lerna-debug.log*
83+
.pnpm-debug.log*
84+
85+
# Diagnostic reports (https://nodejs.org/api/report.html)
86+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
87+
88+
# Runtime data
89+
pids
90+
*.pid
91+
*.seed
92+
*.pid.lock
93+
94+
# Directory for instrumented libs generated by jscoverage/JSCover
95+
lib-cov
96+
97+
# Coverage directory used by tools like istanbul
98+
coverage
99+
*.lcov
100+
101+
# nyc test coverage
102+
.nyc_output
103+
104+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
105+
.grunt
106+
107+
# Bower dependency directory (https://bower.io/)
108+
bower_components
109+
110+
# node-waf configuration
111+
.lock-wscript
112+
113+
# Compiled binary addons (https://nodejs.org/api/addons.html)
114+
build/Release
115+
116+
# Dependency directories
117+
node_modules/
118+
jspm_packages/
119+
120+
# Snowpack dependency directory (https://snowpack.dev/)
121+
web_modules/
122+
123+
# TypeScript cache
124+
*.tsbuildinfo
125+
126+
# Optional npm cache directory
127+
.npm
128+
129+
# Optional eslint cache
130+
.eslintcache
131+
132+
# Microbundle cache
133+
.rpt2_cache/
134+
.rts2_cache_cjs/
135+
.rts2_cache_es/
136+
.rts2_cache_umd/
137+
138+
# Optional REPL history
139+
.node_repl_history
140+
141+
# Output of 'npm pack'
142+
*.tgz
143+
144+
# Yarn Integrity file
145+
.yarn-integrity
146+
147+
# dotenv environment variables file
148+
.env
149+
.env.test
150+
.env.production
151+
152+
# parcel-bundler cache (https://parceljs.org/)
153+
.cache
154+
.parcel-cache
155+
156+
# Next.js build output
157+
.next
158+
out
159+
160+
# Nuxt.js build / generate output
161+
.nuxt
162+
dist
163+
164+
# Gatsby files
165+
.cache/
166+
# Comment in the public line in if your project uses Gatsby and not Next.js
167+
# https://nextjs.org/blog/next-9-1#public-directory-support
168+
# public
169+
170+
# vuepress build output
171+
.vuepress/dist
172+
173+
# Serverless directories
174+
.serverless/
175+
176+
# FuseBox cache
177+
.fusebox/
178+
179+
# DynamoDB Local files
180+
.dynamodb/
181+
182+
# TernJS port file
183+
.tern-port
184+
185+
# Stores VSCode versions used for testing VSCode extensions
186+
.vscode-test
187+
188+
# yarn v2
189+
.yarn/cache
190+
.yarn/unplugged
191+
.yarn/build-state.yml
192+
.yarn/install-state.gz
193+
.pnp.*
194+
195+
# project specific
196+
lib/
197+
example/node_modules
198+
example/build

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/react-toggle-slider.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Getting Started with Create React App
2+
3+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4+
5+
## Available Scripts
6+
7+
In the project directory, you can run:
8+
9+
### `yarn start`
10+
11+
Runs the app in the development mode.\
12+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13+
14+
The page will reload if you make edits.\
15+
You will also see any lint errors in the console.
16+
17+
### `yarn test`
18+
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+
### `yarn 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+
### `yarn 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/).

example/package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "example",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@testing-library/jest-dom": "^5.11.4",
7+
"@testing-library/react": "^11.1.0",
8+
"@testing-library/user-event": "^12.1.10",
9+
"@types/jest": "^26.0.15",
10+
"@types/node": "^12.0.0",
11+
"@types/react": "^17.0.0",
12+
"@types/react-dom": "^17.0.0",
13+
"react": "^17.0.2",
14+
"react-dom": "^17.0.2",
15+
"react-scripts": "4.0.3",
16+
"typescript": "^4.1.2",
17+
"web-vitals": "^1.0.1",
18+
"react-toggle-slider": "link:.."
19+
},
20+
"scripts": {
21+
"start": "react-scripts start",
22+
"build": "react-scripts build",
23+
"test": "react-scripts test",
24+
"eject": "react-scripts eject"
25+
},
26+
"eslintConfig": {
27+
"extends": [
28+
"react-app",
29+
"react-app/jest"
30+
]
31+
},
32+
"browserslist": {
33+
"production": [
34+
">0.2%",
35+
"not dead",
36+
"not op_mini all"
37+
],
38+
"development": [
39+
"last 1 chrome version",
40+
"last 1 firefox version",
41+
"last 1 safari version"
42+
]
43+
}
44+
}

example/public/favicon.ico

3.78 KB
Binary file not shown.

example/public/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>React App</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>

example/public/logo192.png

5.22 KB
Loading

0 commit comments

Comments
 (0)