a43d2ac23a346a0493f39da7f12c1b2e.json
3.1 KB
{"ast":null,"code":"import axios from 'axios';\nimport qs from 'qs';\nexport const getTexToSvg = data => {\n const options = {\n method: 'POST',\n headers: {\n 'content-type': 'application/x-www-form-urlencoded'\n },\n data: qs.stringify(data),\n url: 'http://ai.natmal.com:9292'\n };\n return axios(options);\n};\nconst hostMath = \"http://ai.natmal.com:7070\";\nexport const checkQno = qno => axios.get(`${hostMath}/checkQno?qno=${qno}`);\nexport const saveFileAndQno = data => axios.post('/upload/tikz', { ...data\n});\nexport const removeItem = id => axios.get(`/tikzs/removeItem?id=${id}`);\nexport const removeItems = ids => axios.post(\"/tikzs/removeItems\", {\n ids\n}); //export const getData = (user, pageSize, currentPage,orderWhat) => axios.post('/tikzs',{user, pageSize, currentPage,ordeWhat});\n//export const tikz = (id) => tikz.post(`/users?id=${id != null ? id : ''}`);\n//export const testAdd = (name, tel) => client.post('/users/add', { name, tel });","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/lib/api/tikz.js"],"names":["axios","qs","getTexToSvg","data","options","method","headers","stringify","url","hostMath","checkQno","qno","get","saveFileAndQno","post","removeItem","id","removeItems","ids"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,EAAP,MAAe,IAAf;AACA,OAAO,MAAMC,WAAW,GAAIC,IAAD,IAC3B;AACI,QAAMC,OAAO,GAAG;AACZC,IAAAA,MAAM,EAAE,MADI;AAEZC,IAAAA,OAAO,EAAE;AAAE,sBAAgB;AAAlB,KAFG;AAGZH,IAAAA,IAAI,EAAEF,EAAE,CAACM,SAAH,CAAaJ,IAAb,CAHM;AAIZK,IAAAA,GAAG,EAAC;AAJQ,GAAhB;AAMD,SAAOR,KAAK,CAACI,OAAD,CAAZ;AAEF,CAVM;AAYP,MAAMK,QAAQ,GAAG,2BAAjB;AAEA,OAAO,MAAMC,QAAQ,GAAIC,GAAD,IAASX,KAAK,CAACY,GAAN,CAAW,GAAEH,QAAS,iBAAgBE,GAAI,EAA1C,CAA1B;AAEP,OAAO,MAAME,cAAc,GAAIV,IAAD,IAAUH,KAAK,CAACc,IAAN,CAAW,cAAX,EAA0B,EAAC,GAAGX;AAAJ,CAA1B,CAAjC;AAEP,OAAO,MAAMY,UAAU,GAAIC,EAAD,IAAQhB,KAAK,CAACY,GAAN,CAAW,wBAAuBI,EAAG,EAArC,CAA3B;AAEP,OAAO,MAAMC,WAAW,GAAIC,GAAD,IAASlB,KAAK,CAACc,IAAN,CAAW,oBAAX,EAAgC;AAACI,EAAAA;AAAD,CAAhC,CAA7B,C,CAGP;AAKA;AACA","sourcesContent":["import axios from 'axios';\r\nimport qs from 'qs';\r\nexport const getTexToSvg = (data) => \r\n{\r\n const options = {\r\n method: 'POST',\r\n headers: { 'content-type': 'application/x-www-form-urlencoded' },\r\n data: qs.stringify(data),\r\n url:'http://ai.natmal.com:9292',\r\n };\r\n return axios(options);\r\n\r\n}\r\n\r\nconst hostMath = \"http://ai.natmal.com:7070\";\r\n\r\nexport const checkQno = (qno) => axios.get(`${hostMath}/checkQno?qno=${qno}`);\r\n\r\nexport const saveFileAndQno = (data) => axios.post('/upload/tikz',{...data});\r\n\r\nexport const removeItem = (id) => axios.get(`/tikzs/removeItem?id=${id}`);\r\n\r\nexport const removeItems = (ids) => axios.post(\"/tikzs/removeItems\",{ids});\r\n\r\n\r\n//export const getData = (user, pageSize, currentPage,orderWhat) => axios.post('/tikzs',{user, pageSize, currentPage,ordeWhat});\r\n\r\n\r\n\r\n\r\n//export const tikz = (id) => tikz.post(`/users?id=${id != null ? id : ''}`);\r\n//export const testAdd = (name, tel) => client.post('/users/add', { name, tel });\r\n"]},"metadata":{},"sourceType":"module"}