diff --git a/build/asset-manifest.json b/build/asset-manifest.json index 2a36644..7b821ac 100644 --- a/build/asset-manifest.json +++ b/build/asset-manifest.json @@ -8,16 +8,16 @@ "main.css": "./static/css/main.4ecfe4c7.chunk.css", "main.js": "./static/js/main.4272ed70.chunk.js", "main.js.map": "./static/js/main.4272ed70.chunk.js.map", - "runtime-main.js": "./static/js/runtime-main.7f8272c8.js", - "runtime-main.js.map": "./static/js/runtime-main.7f8272c8.js.map", + "runtime-main.js": "./static/js/runtime-main.460ca9dc.js", + "runtime-main.js.map": "./static/js/runtime-main.460ca9dc.js.map", "static/js/4.86a777f2.chunk.js": "./static/js/4.86a777f2.chunk.js", "static/js/4.86a777f2.chunk.js.map": "./static/js/4.86a777f2.chunk.js.map", "static/js/5.3c8b2f63.chunk.js": "./static/js/5.3c8b2f63.chunk.js", "static/js/5.3c8b2f63.chunk.js.map": "./static/js/5.3c8b2f63.chunk.js.map", "static/js/6.51bb1ff7.chunk.js": "./static/js/6.51bb1ff7.chunk.js", "static/js/6.51bb1ff7.chunk.js.map": "./static/js/6.51bb1ff7.chunk.js.map", - "static/js/7.5ea729bc.chunk.js": "./static/js/7.5ea729bc.chunk.js", - "static/js/7.5ea729bc.chunk.js.map": "./static/js/7.5ea729bc.chunk.js.map", + "static/js/7.ed0a32b5.chunk.js": "./static/js/7.ed0a32b5.chunk.js", + "static/js/7.ed0a32b5.chunk.js.map": "./static/js/7.ed0a32b5.chunk.js.map", "static/js/8.1b2eaf2a.chunk.js": "./static/js/8.1b2eaf2a.chunk.js", "static/js/8.1b2eaf2a.chunk.js.map": "./static/js/8.1b2eaf2a.chunk.js.map", "static/js/9.973d1ed6.chunk.js": "./static/js/9.973d1ed6.chunk.js", @@ -42,7 +42,7 @@ "static/js/5.3c8b2f63.chunk.js.LICENSE.txt": "./static/js/5.3c8b2f63.chunk.js.LICENSE.txt" }, "entrypoints": [ - "static/js/runtime-main.7f8272c8.js", + "static/js/runtime-main.460ca9dc.js", "static/js/4.86a777f2.chunk.js", "static/css/main.4ecfe4c7.chunk.css", "static/js/main.4272ed70.chunk.js" diff --git a/build/index.html b/build/index.html index 90a2aa2..3ac34bb 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -FBS Admin tool
\ No newline at end of file +FBS Admin tool
\ No newline at end of file diff --git a/build/static/js/7.5ea729bc.chunk.js b/build/static/js/7.5ea729bc.chunk.js deleted file mode 100644 index 2ee769a..0000000 --- a/build/static/js/7.5ea729bc.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[7],{689:function(e,t,c){"use strict";c.r(t);var n=c(636),i=c(1),s=c(632),r=c.n(s),a=c(630),l=c(629),j=c(17);t.default=function(){var e=Object(i.useState)(null),t=Object(n.a)(e,2),c=t[0],s=t[1];return Object(j.jsx)("div",{children:Object(j.jsxs)(a.f,{children:[Object(j.jsx)(a.j,{children:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9"}),Object(j.jsxs)(a.g,{children:[Object(j.jsxs)(a.t,{row:!0,children:[Object(j.jsx)(a.k,{md:"3",children:Object(j.jsx)(a.H,{htmlFor:"date-input",children:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044"})}),Object(j.jsx)(a.k,{xs:"12",md:"9",children:Object(j.jsx)(a.C,{type:"file",onChange:function(e){s(e.target.files[0])},id:"file-input",name:"file-input"})})]}),Object(j.jsx)(a.h,{children:Object(j.jsxs)(a.e,{type:"submit",onClick:function(e){var t=new FormData;t.append("file",c),r.a.post("http://natnats.mobilous.com:8000/upload",t,{}).then((function(e){console.log(e.statusText)}))},size:"sm",color:"primary",children:[Object(j.jsx)(l.a,{name:"cil-scrubber"})," \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9"]})})]})]})})}}}]); -//# sourceMappingURL=7.5ea729bc.chunk.js.map \ No newline at end of file diff --git a/build/static/js/7.5ea729bc.chunk.js.map b/build/static/js/7.5ea729bc.chunk.js.map deleted file mode 100644 index 18f1abe..0000000 --- a/build/static/js/7.5ea729bc.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["views/Uploader/index.js"],"names":["Uploader","useState","file","setFile","row","md","htmlFor","xs","type","onChange","e","target","files","id","name","onClick","data","FormData","append","axios","post","then","res","console","log","statusText","size","color"],"mappings":"mPA4DeA,UA3Cf,WAEE,MAAwBC,mBAAS,MAAjC,mBAAOC,EAAP,KAAaC,EAAb,KAiBA,OACE,8BACE,eAAC,IAAD,WACA,cAAC,IAAD,mDAGA,eAAC,IAAD,WACA,eAAC,IAAD,CAAYC,KAAG,EAAf,UACE,cAAC,IAAD,CAAMC,GAAG,IAAT,SACE,cAAC,IAAD,CAAQC,QAAQ,aAAhB,wIAEF,cAAC,IAAD,CAAMC,GAAG,KAAKF,GAAG,IAAjB,SACE,cAAC,IAAD,CAAYG,KAAK,OAAOC,SA3BhC,SAAyBC,GACvBP,EAAQO,EAAEC,OAAOC,MAAM,KA0BkCC,GAAG,aAAaC,KAAK,oBAG5E,cAAC,IAAD,UACA,eAAC,IAAD,CAASN,KAAK,SAASO,QA3B3B,SAAwBL,GACtB,IAAMM,EAAO,IAAIC,SACjBD,EAAKE,OAAO,OAAQhB,GAEpBiB,IAAMC,KAAK,0CAA2CJ,EAAM,IAEzDK,MAAK,SAAAC,GACJC,QAAQC,IAAIF,EAAIG,gBAoB8BC,KAAK,KAAKC,MAAM,UAAhE,UAA0E,cAAC,IAAD,CAAOb,KAAK,iBAAtF","file":"static/js/7.5ea729bc.chunk.js","sourcesContent":["import React, {useState} from 'react';\nimport axios from 'axios';\nimport {\n CCol,\n CFormGroup,\n CInput,\n CInputFile,\n CLabel,\n CButton,\n CCard,\n CCardHeader,\n CCardBody,\n CCardFooter,\n} from '@coreui/react'\nimport CIcon from '@coreui/icons-react'\n\n\nfunction Uploader() {\n\n const [file, setFile] = useState(null);\n\n function onChangeHandler(e){\n setFile(e.target.files[0])\n }\n\n function onClickHandler(e) {\n const data = new FormData()\n data.append('file', file);\n //console.log(file);\n axios.post(\"http://natnats.mobilous.com:8000/upload\", data, { // receive two parameter endpoint url ,form data\n })\n .then(res => { // then print response status\n console.log(res.statusText)\n });\n }\n\n return (\n
\n \n \n アップロード\n \n \n \n \n アップロードするファイルを選んでください\n \n \n \n \n \n \n アップロード\n \n \n \n
\n )\n}\n\nexport default Uploader\n"],"sourceRoot":""} \ No newline at end of file diff --git a/build/static/js/7.ed0a32b5.chunk.js b/build/static/js/7.ed0a32b5.chunk.js new file mode 100644 index 0000000..4baf0da --- /dev/null +++ b/build/static/js/7.ed0a32b5.chunk.js @@ -0,0 +1,2 @@ +(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[7],{689:function(e,t,c){"use strict";c.r(t);var n=c(636),i=c(1),s=c(632),r=c.n(s),a=c(630),l=c(629),j=c(17);t.default=function(){var e=Object(i.useState)(null),t=Object(n.a)(e,2),c=t[0],s=t[1];return Object(j.jsxs)("div",{children:[Object(j.jsxs)(a.f,{children:[Object(j.jsx)(a.j,{children:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 "})," ",Object(j.jsxs)(a.g,{children:[Object(j.jsxs)(a.t,{row:!0,children:[Object(j.jsxs)(a.k,{md:"3",children:[Object(j.jsx)(a.H,{htmlFor:"date-input",children:" \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044 "})," "]})," ",Object(j.jsx)(a.k,{xs:"12",md:"9",children:Object(j.jsx)(a.C,{type:"file",onChange:function(e){s(e.target.files[0])},id:"file-input",name:"file-input"})})," "]})," ",Object(j.jsxs)(a.h,{children:[Object(j.jsxs)(a.e,{type:"submit",onClick:function(e){var t=new FormData;t.append("file",c),r.a.post("https://natnats.mobilous.com:8000/upload",t,{}).then((function(e){console.log(e.statusText)}))},size:"sm",color:"primary",children:[" ",Object(j.jsx)(l.a,{name:"cil-scrubber"})," \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9 "]})," "]})," "]})," "]})," "]})}}}]); +//# sourceMappingURL=7.ed0a32b5.chunk.js.map \ No newline at end of file diff --git a/build/static/js/7.ed0a32b5.chunk.js.map b/build/static/js/7.ed0a32b5.chunk.js.map new file mode 100644 index 0000000..e49fbcf --- /dev/null +++ b/build/static/js/7.ed0a32b5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["views/Uploader/index.js"],"names":["Uploader","useState","file","setFile","row","md","htmlFor","xs","type","onChange","e","target","files","id","name","onClick","data","FormData","append","axios","post","then","res","console","log","statusText","size","color"],"mappings":"mPA2EeA,UA1Df,WAEI,MAAwBC,mBAAS,MAAjC,mBAAOC,EAAP,KAAaC,EAAb,KAiBA,OAAS,gCAEL,eACA,IADA,WAEA,cACA,IADA,oDAFA,IAKc,eACd,IADc,WAEd,eACA,IADA,CACWC,KAAG,EADd,UAEA,eACA,IADA,CACKC,GAAK,IADV,UAEA,cACA,IADA,CACOC,QAAU,aADjB,wIAFA,OAFA,IAMO,cACP,IADO,CACFC,GAAK,KACVF,GAAK,IAFE,SAGP,cACA,IADA,CACWG,KAAO,OAClBC,SAnCJ,SAAyBC,GACrBP,EAAQO,EAAEC,OAAOC,MAAM,KAmCvBC,GAAK,aACLC,KAAO,iBAbP,OAFc,IAkBD,eACb,IADa,WAEb,eACA,IADA,CACQN,KAAO,SACfO,QAxCJ,SAAwBL,GACpB,IAAMM,EAAO,IAAIC,SACjBD,EAAKE,OAAO,OAAQhB,GAEpBiB,IAAMC,KAAK,2CAA4CJ,EAAM,IAExDK,MAAK,SAAAC,GACFC,QAAQC,IAAIF,EAAIG,gBAkCxBC,KAAO,KACPC,MAAQ,UAJR,cAIoB,cAAE,IAAF,CAAQb,KAAO,iBAJnC,4CAFa,OAlBC,OALd,OAFK","file":"static/js/7.ed0a32b5.chunk.js","sourcesContent":["import React, { useState } from 'react';\nimport axios from 'axios';\nimport {\n CCol,\n CFormGroup,\n CInput,\n CInputFile,\n CLabel,\n CButton,\n CCard,\n CCardHeader,\n CCardBody,\n CCardFooter,\n} from '@coreui/react'\nimport CIcon from '@coreui/icons-react'\n\n\nfunction Uploader() {\n\n const [file, setFile] = useState(null);\n\n function onChangeHandler(e) {\n setFile(e.target.files[0])\n }\n\n function onClickHandler(e) {\n const data = new FormData()\n data.append('file', file);\n //console.log(file);\n axios.post(\"https://natnats.mobilous.com:8000/upload\", data, { // receive two parameter endpoint url ,form data\n })\n .then(res => { // then print response status\n console.log(res.statusText)\n });\n }\n\n return ( <\n div >\n <\n CCard >\n <\n CCardHeader >\n アップロード <\n /CCardHeader> <\n CCardBody >\n <\n CFormGroup row >\n <\n CCol md = \"3\" >\n <\n CLabel htmlFor = \"date-input\" > アップロードするファイルを選んでください < /CLabel> < /\n CCol > <\n CCol xs = \"12\"\n md = \"9\" >\n <\n CInputFile type = \"file\"\n onChange = { onChangeHandler }\n id = \"file-input\"\n name = \"file-input\" / >\n <\n /CCol> < /\n CFormGroup > <\n CCardFooter >\n <\n CButton type = \"submit\"\n onClick = { onClickHandler }\n size = \"sm\"\n color = \"primary\" > < CIcon name = \"cil-scrubber\" / > アップロード < /CButton> < /\n CCardFooter > <\n /CCardBody> < /\n CCard > <\n /div>\n )\n}\n\nexport default Uploader"],"sourceRoot":""} \ No newline at end of file diff --git a/build/static/js/runtime-main.7f8272c8.js b/build/static/js/runtime-main.460ca9dc.js similarity index 95% rename from build/static/js/runtime-main.7f8272c8.js rename to build/static/js/runtime-main.460ca9dc.js index d2572df..f628c27 100644 --- a/build/static/js/runtime-main.7f8272c8.js +++ b/build/static/js/runtime-main.460ca9dc.js @@ -1,2 +1,2 @@ -!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],l=0,d=[];l { // then print response status - console.log(res.statusText) - }); - } + function onClickHandler(e) { + const data = new FormData() + data.append('file', file); + //console.log(file); + axios.post("https://natnats.mobilous.com:8000/upload", data, { // receive two parameter endpoint url ,form data + }) + .then(res => { // then print response status + console.log(res.statusText) + }); + } - return ( -
- - - アップロード - - - - - アップロードするファイルを選んでください - - - - - - - アップロード - - - -
- ) + return ( < + div > + < + CCard > + < + CCardHeader > + アップロード < + /CCardHeader> < + CCardBody > + < + CFormGroup row > + < + CCol md = "3" > + < + CLabel htmlFor = "date-input" > アップロードするファイルを選んでください < /CLabel> < / + CCol > < + CCol xs = "12" + md = "9" > + < + CInputFile type = "file" + onChange = { onChangeHandler } + id = "file-input" + name = "file-input" / > + < + /CCol> < / + CFormGroup > < + CCardFooter > + < + CButton type = "submit" + onClick = { onClickHandler } + size = "sm" + color = "primary" > < CIcon name = "cil-scrubber" / > アップロード < /CButton> < / + CCardFooter > < + /CCardBody> < / + CCard > < + /div> + ) } -export default Uploader +export default Uploader \ No newline at end of file