Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2017110269
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
MinsoftK
2020-12-14 19:33:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f63037a4b857bf55eeb6437b893501a1ebcfe907
f63037a4
1 parent
d889a469
Editor side menu 추가
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
24 deletions
mypro/client/src/Container/Home.js
mypro/client/src/component/authRoute.js
mypro/client/src/lib/api/Editor.js
mypro/client/src/Container/Home.js
View file @
f63037a
...
...
@@ -85,7 +85,7 @@ const Home = ({history}) => {
const
[
currentPage
,
setCurrentPage
]
=
useState
(
1
);
const
[
pageSize
,
setPageSize
]
=
useState
(
10
);
const
[
orderWhat
,
setOrderWhat
]
=
useState
(
'qno'
);
const
[
orderWhatKor
,
setOrderWhatKor
]
=
useState
(
'
문제
번호순'
);
const
[
orderWhatKor
,
setOrderWhatKor
]
=
useState
(
'
그림
번호순'
);
const
[
orderKind
,
setOrderKind
]
=
useState
(
'desc'
);
const
[
orderKindKor
,
setOrderKindKor
]
=
useState
(
'내림차순'
);
const
[
orderWhatStatus
,
setOrderWhatStatus
]
=
useState
(
false
);
...
...
@@ -97,13 +97,13 @@ const Home = ({history}) => {
}
}
const
onOrderWhat
=
async
()
=>
{
if
(
orderWhatKor
===
"
문제
번호순"
){
if
(
orderWhatKor
===
"
그림
번호순"
){
setOrderWhat
(
'id'
);
setOrderWhatKor
(
"최근등록순"
);
setOrderWhatStatus
(
true
);
}
else
{
setOrderWhat
(
'qno'
);
setOrderWhatKor
(
"
문제
번호순"
);
setOrderWhatKor
(
"
그림
번호순"
);
setOrderWhatStatus
(
true
);
}
};
...
...
@@ -180,17 +180,14 @@ const Home = ({history}) => {
const
columns
=
[
{
title
:
'
문제
번호'
,
title
:
'
그림
번호'
,
dataIndex
:
'qno'
,
},
{
title
:
'
문제
타입'
,
title
:
'
그림
타입'
,
dataIndex
:
'typeSol'
,
},
{
title
:
'문제/풀이 구분'
,
dataIndex
:
'typeQue'
,
},
{
title
:
'HTML'
,
dataIndex
:
'htmlFileName'
,
...
...
@@ -418,7 +415,7 @@ const Home = ({history}) => {
paddingLeft
:
'0px'
,
background
:
'rgb(0, 21, 41)'
,
textAlign
:
'center'
,
}}
><
a
href
=
"http
://mathcha.io"
target
=
"_blank"
>
MathCha
다운로드
<
/a
>
}}
><
a
href
=
"http
s://github.com/nhn/toast-ui.react-image-editor/archive/master.zip"
target
=
"_blank"
>
Tui
-
image
-
tool
다운로드
<
/a
>
<
/Menu.Item
>
<
Menu
.
Item
key
=
"2"
...
...
@@ -428,7 +425,7 @@ const Home = ({history}) => {
paddingLeft
:
'0px'
,
background
:
'rgb(0, 21, 41)'
,
textAlign
:
'center'
,
}}
><
a
href
=
"https://
m.blog.naver.com/PostView.nhn?blogId=wool613&logNo=221511340406&proxyReferer=https:%2F%2Fwww.google.com%2F"
target
=
"_blank"
>
tikz
간단
설명
<
/a
>
}}
><
a
href
=
"https://
github.com/nhn/tui.image-editor"
target
=
"_blank"
>
What
is
Tui
-
image
-
tool
?
<
/a
>
<
/Menu.Item
>
<
Menu
.
Item
key
=
"3"
...
...
@@ -438,7 +435,7 @@ const Home = ({history}) => {
paddingLeft
:
'0px'
,
background
:
'rgb(0, 21, 41)'
,
textAlign
:
'center'
,
}}
><
a
href
=
"https://
www.bu.edu/math/files/2013/08/tikzpgfmanual.pdf"
target
=
"_blank"
>
tikz
상세
메뉴얼
<
/a
>
}}
><
a
href
=
"https://
github.com/nhn/tui.image-editor/blob/master/docs/Basic-Tutorial.md"
target
=
"_blank"
>
상세
메뉴얼
<
/a
>
<
/Menu.Item
>
<
/SubMenu
>
<
/Menu
>
...
...
@@ -471,23 +468,16 @@ const Home = ({history}) => {
shape
=
"round"
icon
=
{
<
UploadOutlined
/>
}
onClick
=
{
onHtml
}
>
HTML
업로드
<
/Button
>
<
Button
style
=
{{
display
:
'inline-block'
,
top
:
'0.5vh'
,
left
:
'8.5vw'
}}
type
=
"primary"
shape
=
"round"
icon
=
{
<
UploadOutlined
/>
}
onClick
=
{
onMathcha
}
>
Mathcha
업로드
그림
업로드
<
/Button
>
<
Button
style
=
{{
display
:
'inline-block'
,
top
:
'0.5vh'
,
left
:
'9vw'
}}
type
=
"primary"
shape
=
"round"
icon
=
{
<
UploadOutlined
/>
}
onClick
=
{
onTikz
}
>
TikZ
업로드
Editor
직접
업로드
<
/Button
>
<
Button
style
=
{{
...
...
@@ -515,7 +505,7 @@ const Home = ({history}) => {
style
=
{{
display
:
'inline-block'
,
top
:
'0.5vh'
,
left
:
'
5
0vw'
,
left
:
'
4
0vw'
,
}}
className
=
"orderWhat"
type
=
"default"
onClick
=
{
onOrderWhat
}
>
{
orderWhatKor
}
<
/Button
>
...
...
@@ -523,7 +513,7 @@ const Home = ({history}) => {
style
=
{{
display
:
'inline-block'
,
top
:
'0.5vh'
,
left
:
'
5
0.2vw'
,
left
:
'
4
0.2vw'
,
}}
className
=
"orderKind"
type
=
"default"
onClick
=
{
onOrderKind
}
>
{
orderKindKor
}
<
/Button
>
...
...
mypro/client/src/component/authRoute.js
deleted
100644 → 0
View file @
d889a46
File mode changed
mypro/client/src/lib/api/Editor.js
0 → 100644
View file @
f63037a
import
axios
from
'axios'
;
import
qs
from
'qs'
;
export
const
getTexToSvg
=
(
data
)
=>
{
const
options
=
{
method
:
'POST'
,
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
},
data
:
qs
.
stringify
(
data
),
url
:
'http://ai.natmal.com:9292'
,
};
return
axios
(
options
);
}
const
hostMath
=
"http://ai.natmal.com:7070"
;
export
const
checkQno
=
(
qno
)
=>
axios
.
get
(
`
${
hostMath
}
/checkQno?qno=
${
qno
}
`
);
export
const
saveFileAndQno
=
(
data
)
=>
axios
.
post
(
'/upload/tikz'
,{...
data
});
export
const
removeItem
=
(
id
)
=>
axios
.
get
(
`/tikzs/removeItem?id=
${
id
}
`
);
export
const
removeItems
=
(
ids
)
=>
axios
.
post
(
"/tikzs/removeItems"
,{
ids
});
//export const getData = (user, pageSize, currentPage,orderWhat) => axios.post('/tikzs',{user, pageSize, currentPage,ordeWhat});
//export const tikz = (id) => tikz.post(`/users?id=${id != null ? id : ''}`);
//export const testAdd = (name, tel) => client.post('/users/add', { name, tel });
Please
register
or
login
to post a comment