Showing
3 changed files
with
46 additions
and
24 deletions
... | @@ -85,7 +85,7 @@ const Home = ({history}) => { | ... | @@ -85,7 +85,7 @@ const Home = ({history}) => { |
85 | const [currentPage, setCurrentPage] =useState(1); | 85 | const [currentPage, setCurrentPage] =useState(1); |
86 | const [pageSize,setPageSize] =useState(10); | 86 | const [pageSize,setPageSize] =useState(10); |
87 | const [orderWhat,setOrderWhat] = useState('qno'); | 87 | const [orderWhat,setOrderWhat] = useState('qno'); |
88 | - const [orderWhatKor,setOrderWhatKor] =useState('문제번호순'); | 88 | + const [orderWhatKor,setOrderWhatKor] =useState('그림번호순'); |
89 | const [orderKind,setOrderKind] = useState('desc'); | 89 | const [orderKind,setOrderKind] = useState('desc'); |
90 | const [orderKindKor,setOrderKindKor] = useState('내림차순'); | 90 | const [orderKindKor,setOrderKindKor] = useState('내림차순'); |
91 | const [orderWhatStatus,setOrderWhatStatus] =useState(false); | 91 | const [orderWhatStatus,setOrderWhatStatus] =useState(false); |
... | @@ -97,13 +97,13 @@ const Home = ({history}) => { | ... | @@ -97,13 +97,13 @@ const Home = ({history}) => { |
97 | } | 97 | } |
98 | } | 98 | } |
99 | const onOrderWhat = async() => { | 99 | const onOrderWhat = async() => { |
100 | - if(orderWhatKor ==="문제번호순"){ | 100 | + if(orderWhatKor ==="그림번호순"){ |
101 | setOrderWhat('id'); | 101 | setOrderWhat('id'); |
102 | setOrderWhatKor("최근등록순"); | 102 | setOrderWhatKor("최근등록순"); |
103 | setOrderWhatStatus(true); | 103 | setOrderWhatStatus(true); |
104 | }else{ | 104 | }else{ |
105 | setOrderWhat('qno'); | 105 | setOrderWhat('qno'); |
106 | - setOrderWhatKor("문제번호순"); | 106 | + setOrderWhatKor("그림번호순"); |
107 | setOrderWhatStatus(true); | 107 | setOrderWhatStatus(true); |
108 | } | 108 | } |
109 | }; | 109 | }; |
... | @@ -180,17 +180,14 @@ const Home = ({history}) => { | ... | @@ -180,17 +180,14 @@ const Home = ({history}) => { |
180 | const columns = [ | 180 | const columns = [ |
181 | 181 | ||
182 | { | 182 | { |
183 | - title: '문제 번호', | 183 | + title: '그림 번호', |
184 | dataIndex: 'qno', | 184 | dataIndex: 'qno', |
185 | }, | 185 | }, |
186 | { | 186 | { |
187 | - title: '문제 타입', | 187 | + title: '그림 타입', |
188 | dataIndex: 'typeSol', | 188 | dataIndex: 'typeSol', |
189 | }, | 189 | }, |
190 | - { | 190 | + |
191 | - title: '문제/풀이 구분', | ||
192 | - dataIndex: 'typeQue', | ||
193 | - }, | ||
194 | { | 191 | { |
195 | title: 'HTML', | 192 | title: 'HTML', |
196 | dataIndex: 'htmlFileName', | 193 | dataIndex: 'htmlFileName', |
... | @@ -418,7 +415,7 @@ const Home = ({history}) => { | ... | @@ -418,7 +415,7 @@ const Home = ({history}) => { |
418 | paddingLeft: '0px', | 415 | paddingLeft: '0px', |
419 | background: 'rgb(0, 21, 41)', | 416 | background: 'rgb(0, 21, 41)', |
420 | textAlign: 'center', | 417 | textAlign: 'center', |
421 | - }}><a href="http://mathcha.io" target="_blank">MathCha 다운로드</a> | 418 | + }}><a href="https://github.com/nhn/toast-ui.react-image-editor/archive/master.zip" target="_blank">Tui-image-tool 다운로드</a> |
422 | </Menu.Item> | 419 | </Menu.Item> |
423 | <Menu.Item | 420 | <Menu.Item |
424 | key="2" | 421 | key="2" |
... | @@ -428,7 +425,7 @@ const Home = ({history}) => { | ... | @@ -428,7 +425,7 @@ const Home = ({history}) => { |
428 | paddingLeft: '0px', | 425 | paddingLeft: '0px', |
429 | background: 'rgb(0, 21, 41)', | 426 | background: 'rgb(0, 21, 41)', |
430 | textAlign: 'center', | 427 | textAlign: 'center', |
431 | - }}><a href="https://m.blog.naver.com/PostView.nhn?blogId=wool613&logNo=221511340406&proxyReferer=https:%2F%2Fwww.google.com%2F" target="_blank">tikz 간단 설명</a> | 428 | + }}><a href="https://github.com/nhn/tui.image-editor" target="_blank">What is Tui-image-tool?</a> |
432 | </Menu.Item> | 429 | </Menu.Item> |
433 | <Menu.Item | 430 | <Menu.Item |
434 | key="3" | 431 | key="3" |
... | @@ -438,7 +435,7 @@ const Home = ({history}) => { | ... | @@ -438,7 +435,7 @@ const Home = ({history}) => { |
438 | paddingLeft: '0px', | 435 | paddingLeft: '0px', |
439 | background: 'rgb(0, 21, 41)', | 436 | background: 'rgb(0, 21, 41)', |
440 | textAlign: 'center', | 437 | textAlign: 'center', |
441 | - }}><a href="https://www.bu.edu/math/files/2013/08/tikzpgfmanual.pdf" target="_blank">tikz 상세 메뉴얼</a> | 438 | + }}><a href="https://github.com/nhn/tui.image-editor/blob/master/docs/Basic-Tutorial.md" target="_blank">상세 메뉴얼</a> |
442 | </Menu.Item> | 439 | </Menu.Item> |
443 | </SubMenu> | 440 | </SubMenu> |
444 | </Menu> | 441 | </Menu> |
... | @@ -471,23 +468,16 @@ const Home = ({history}) => { | ... | @@ -471,23 +468,16 @@ const Home = ({history}) => { |
471 | shape="round" | 468 | shape="round" |
472 | icon={<UploadOutlined />} | 469 | icon={<UploadOutlined />} |
473 | onClick={onHtml}> | 470 | onClick={onHtml}> |
474 | - HTML 업로드 | 471 | + 그림 업로드 |
475 | - </Button> | ||
476 | - <Button | ||
477 | - style={{ display: 'inline-block', top: '0.5vh', left: '8.5vw' }} | ||
478 | - type="primary" | ||
479 | - shape="round" | ||
480 | - icon={<UploadOutlined />} | ||
481 | - onClick={onMathcha}> | ||
482 | - Mathcha 업로드 | ||
483 | </Button> | 472 | </Button> |
473 | + | ||
484 | <Button | 474 | <Button |
485 | style={{ display: 'inline-block', top: '0.5vh', left: '9vw' }} | 475 | style={{ display: 'inline-block', top: '0.5vh', left: '9vw' }} |
486 | type="primary" | 476 | type="primary" |
487 | shape="round" | 477 | shape="round" |
488 | icon={<UploadOutlined />} | 478 | icon={<UploadOutlined />} |
489 | onClick={onTikz}> | 479 | onClick={onTikz}> |
490 | - TikZ 업로드 | 480 | + Editor 직접 업로드 |
491 | </Button> | 481 | </Button> |
492 | <Button | 482 | <Button |
493 | style={{ | 483 | style={{ |
... | @@ -515,7 +505,7 @@ const Home = ({history}) => { | ... | @@ -515,7 +505,7 @@ const Home = ({history}) => { |
515 | style={{ | 505 | style={{ |
516 | display: 'inline-block', | 506 | display: 'inline-block', |
517 | top: '0.5vh', | 507 | top: '0.5vh', |
518 | - left: '50vw', | 508 | + left: '40vw', |
519 | }}className="orderWhat" type="default" onClick={onOrderWhat}> | 509 | }}className="orderWhat" type="default" onClick={onOrderWhat}> |
520 | {orderWhatKor} | 510 | {orderWhatKor} |
521 | </Button> | 511 | </Button> |
... | @@ -523,7 +513,7 @@ const Home = ({history}) => { | ... | @@ -523,7 +513,7 @@ const Home = ({history}) => { |
523 | style={{ | 513 | style={{ |
524 | display: 'inline-block', | 514 | display: 'inline-block', |
525 | top: '0.5vh', | 515 | top: '0.5vh', |
526 | - left: '50.2vw', | 516 | + left: '40.2vw', |
527 | }}className="orderKind" type="default" onClick={onOrderKind}> | 517 | }}className="orderKind" type="default" onClick={onOrderKind}> |
528 | {orderKindKor} | 518 | {orderKindKor} |
529 | </Button> | 519 | </Button> | ... | ... |
File mode changed
mypro/client/src/lib/api/Editor.js
0 → 100644
1 | +import axios from 'axios'; | ||
2 | +import qs from 'qs'; | ||
3 | +export const getTexToSvg = (data) => | ||
4 | +{ | ||
5 | + const options = { | ||
6 | + method: 'POST', | ||
7 | + headers: { 'content-type': 'application/x-www-form-urlencoded' }, | ||
8 | + data: qs.stringify(data), | ||
9 | + url:'http://ai.natmal.com:9292', | ||
10 | + }; | ||
11 | + return axios(options); | ||
12 | + | ||
13 | +} | ||
14 | + | ||
15 | +const hostMath = "http://ai.natmal.com:7070"; | ||
16 | + | ||
17 | +export const checkQno = (qno) => axios.get(`${hostMath}/checkQno?qno=${qno}`); | ||
18 | + | ||
19 | +export const saveFileAndQno = (data) => axios.post('/upload/tikz',{...data}); | ||
20 | + | ||
21 | +export const removeItem = (id) => axios.get(`/tikzs/removeItem?id=${id}`); | ||
22 | + | ||
23 | +export const removeItems = (ids) => axios.post("/tikzs/removeItems",{ids}); | ||
24 | + | ||
25 | + | ||
26 | +//export const getData = (user, pageSize, currentPage,orderWhat) => axios.post('/tikzs',{user, pageSize, currentPage,ordeWhat}); | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | +//export const tikz = (id) => tikz.post(`/users?id=${id != null ? id : ''}`); | ||
32 | +//export const testAdd = (name, tel) => client.post('/users/add', { name, tel }); |
-
Please register or login to post a comment