Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
self-reg-form
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
self-reg-form
Commits
5ea1a3bf
Commit
5ea1a3bf
authored
5 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Remove irrelevant import
parent
2e95c4fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
react/package-lock.json
+0
-14
0 additions, 14 deletions
react/package-lock.json
react/package.json
+0
-2
0 additions, 2 deletions
react/package.json
react/src/App.js
+1
-9
1 addition, 9 deletions
react/src/App.js
react/src/index.js
+2
-22
2 additions, 22 deletions
react/src/index.js
with
3 additions
and
47 deletions
react/package-lock.json
+
0
−
14
View file @
5ea1a3bf
...
@@ -10793,15 +10793,6 @@
...
@@ -10793,15 +10793,6 @@
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
},
"react-loader-spinner": {
"version": "3.1.14",
"resolved": "https://registry.npmjs.org/react-loader-spinner/-/react-loader-spinner-3.1.14.tgz",
"integrity": "sha512-7V+upnW+RVA/O94LIB/EQLK2uaz/TpZBHG5uNXlOXgvxvALxlxVYeEDmus5Oex2C58fiwrsRvSyu/4VRmLbZ9Q==",
"requires": {
"babel-runtime": "^6.26.0",
"prop-types": "^15.7.2"
}
},
"react-overlays": {
"react-overlays": {
"version": "3.2.0",
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/react-overlays/-/react-overlays-3.2.0.tgz",
"resolved": "https://registry.npmjs.org/react-overlays/-/react-overlays-3.2.0.tgz",
...
@@ -10817,11 +10808,6 @@
...
@@ -10817,11 +10808,6 @@
"warning": "^4.0.3"
"warning": "^4.0.3"
}
}
},
},
"react-promise-tracker": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/react-promise-tracker/-/react-promise-tracker-2.1.0.tgz",
"integrity": "sha512-1LQSGAnFF4o++iPFgeBrMpS+ZHQg8ZGl9Zuf70v+OoLxuOnUeLCP7ugma+InBCUZzPnSLyWTLt/jyW+FAy5ELQ=="
},
"react-scripts": {
"react-scripts": {
"version": "3.4.1",
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz",
"resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz",
...
...
This diff is collapsed.
Click to expand it.
react/package.json
+
0
−
2
View file @
5ea1a3bf
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
"react"
:
"^16.13.1"
,
"react"
:
"^16.13.1"
,
"react-bootstrap"
:
"^1.0.1"
,
"react-bootstrap"
:
"^1.0.1"
,
"react-dom"
:
"^16.13.1"
,
"react-dom"
:
"^16.13.1"
,
"react-loader-spinner"
:
"^3.1.14"
,
"react-promise-tracker"
:
"^2.1.0"
,
"react-scripts"
:
"3.4.1"
,
"react-scripts"
:
"3.4.1"
,
"socket.io-client"
:
"^2.3.0"
,
"socket.io-client"
:
"^2.3.0"
,
"typescript"
:
"^3.9.6"
"typescript"
:
"^3.9.6"
...
...
This diff is collapsed.
Click to expand it.
react/src/App.js
+
1
−
9
View file @
5ea1a3bf
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Main
from
'
./components/Main
'
;
import
Main
from
'
./components/Main
'
;
import
io
from
'
socket.io-client
'
const
App
=
()
=>
<
Main
/>
;
const
socket
=
io
(
'
http://localhost:5000
'
)
const
App
=
()
=>
(
<
div
>
<
h1
>
Self
user
reg
<
/h1
>
<
Main
/>
<
/div
>
);
export
default
App
;
export
default
App
;
This diff is collapsed.
Click to expand it.
react/src/index.js
+
2
−
22
View file @
5ea1a3bf
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
ReactDOM
from
'
react-dom
'
;
import
App
from
'
./App
'
;
import
App
from
'
./App
'
;
import
{
usePromiseTracker
}
from
"
react-promise-tracker
"
;
import
'
bootstrap/dist/css/bootstrap.min.css
'
;
import
Loader
from
'
react-loader-spinner
'
;
const
LoadingIndicator
=
props
=>
{
const
{
promiseInProgress
}
=
usePromiseTracker
();
return
(
promiseInProgress
&&
<
div
style
=
{{
width
:
"
100%
"
,
height
:
"
100
"
,
display
:
"
flex
"
,
justifyContent
:
"
center
"
,
alignItems
:
"
center
"
}}
>
<
Loader
type
=
"
ThreeDots
"
color
=
"
#2BAD60
"
height
=
"
100
"
width
=
"
100
"
/>
<
/div
>
);
}
ReactDOM
.
render
(
ReactDOM
.
render
(
<
React
.
StrictMode
>
<
React
.
StrictMode
>
<
App
/>
<
App
/>
<
LoadingIndicator
/>
<
/React.StrictMode>
,
<
/React.StrictMode>
,
document
.
getElementById
(
'
root
'
)
document
.
getElementById
(
'
root
'
)
);
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment