Toggle navigation
Toggle navigation
This project
Loading...
Sign in
DongyoungKwon
/
Teleprompter-SST
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
DongyoungKwon
2020-12-08 23:18:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bd41ccb1346e2d31872d794d5606590d1f91b311
bd41ccb1
1 parent
b8f1f57b
Add warning to inform working only in Chrome
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
client/src/pages/MainPage.js
package.json
yarn.lock
client/src/pages/MainPage.js
View file @
bd41ccb
import
React
,
{
Component
,
Fragment
}
from
'react'
;
import
{
post
}
from
'axios'
;
import
{
withStyles
,
Typography
,
Paper
,
Button
,
TextField
}
from
'@material-ui/core'
;
import
Alert
from
'@material-ui/lab/Alert'
;
const
styles
=
theme
=>
({
root
:
{
...
...
@@ -15,9 +16,10 @@ const styles = theme => ({
textAlign
:
'center'
,
display
:
'none'
,
fontSize
:
'2.0rem'
,
fontColor
:
'blue'
,
[
theme
.
breakpoints
.
up
(
'sm'
)]:
{
display
:
'block'
,
}
}
,
},
paper
:
{
marginTop
:
theme
.
spacing
.
unit
*
5
,
...
...
@@ -29,6 +31,11 @@ const styles = theme => ({
marginLeft
:
theme
.
spacing
.
unit
*
20
,
fontSize
:
'1rem'
,
},
paperAlert
:
{
marginTop
:
theme
.
spacing
.
unit
*
5
,
marginLeft
:
theme
.
spacing
.
unit
*
53
,
marginRight
:
theme
.
spacing
.
unit
*
53
}
});
class
MainPage
extends
Component
{
...
...
@@ -94,6 +101,9 @@ class MainPage extends Component {
<
TextField
id
=
"outlined-textarea"
label
=
"Scriptλ₯Ό μ λ ₯ν΄μ£ΌμΈμ."
fullWidth
=
"true"
rows
=
{
20
}
placeholder
=
"Script"
multiline
variant
=
"outlined"
onChange
=
{
this
.
getScript
}
/
>
<
/Paper
>
<
Button
className
=
{
classes
.
button
}
variant
=
"contained"
color
=
"primary"
size
=
"medium"
onClick
=
{
this
.
handleScriptSubmit
}
>
μμν©λλ€
.
<
/Button
>
<
Paper
className
=
{
classes
.
paperAlert
}
>
<
Alert
severity
=
"error"
>
μ΄
μ¬μ΄νΈλ
Google
Chrome
μμ
λμν©λλ€
.
<
/Alert
>
<
/Paper
>
<
/Fragment
>
);
}
...
...
package.json
View file @
bd41ccb
...
...
@@ -16,6 +16,7 @@
"author"
:
"Dongyoung Kwon <ehddud2468@khu.ac.kr>"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@material-ui/lab"
:
"^4.0.0-alpha.57"
,
"body-parser"
:
"^1.19.0"
,
"express"
:
"^4.17.1"
},
...
...
yarn.lock
View file @
bd41ccb
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment