added user api
This commit is contained in:
@ -8,15 +8,15 @@
|
|||||||
"main.css": "./static/css/main.12e98d00.chunk.css",
|
"main.css": "./static/css/main.12e98d00.chunk.css",
|
||||||
"main.js": "./static/js/main.c02dc652.chunk.js",
|
"main.js": "./static/js/main.c02dc652.chunk.js",
|
||||||
"main.js.map": "./static/js/main.c02dc652.chunk.js.map",
|
"main.js.map": "./static/js/main.c02dc652.chunk.js.map",
|
||||||
"runtime-main.js": "./static/js/runtime-main.b31c46f0.js",
|
"runtime-main.js": "./static/js/runtime-main.bcfa8757.js",
|
||||||
"runtime-main.js.map": "./static/js/runtime-main.b31c46f0.js.map",
|
"runtime-main.js.map": "./static/js/runtime-main.bcfa8757.js.map",
|
||||||
"static/js/4.2aecef49.chunk.js": "./static/js/4.2aecef49.chunk.js",
|
"static/js/4.2aecef49.chunk.js": "./static/js/4.2aecef49.chunk.js",
|
||||||
"static/js/4.2aecef49.chunk.js.map": "./static/js/4.2aecef49.chunk.js.map",
|
"static/js/4.2aecef49.chunk.js.map": "./static/js/4.2aecef49.chunk.js.map",
|
||||||
"static/css/5.ecdd39c8.chunk.css": "./static/css/5.ecdd39c8.chunk.css",
|
"static/css/5.ecdd39c8.chunk.css": "./static/css/5.ecdd39c8.chunk.css",
|
||||||
"static/js/5.713b21d1.chunk.js": "./static/js/5.713b21d1.chunk.js",
|
"static/js/5.713b21d1.chunk.js": "./static/js/5.713b21d1.chunk.js",
|
||||||
"static/js/5.713b21d1.chunk.js.map": "./static/js/5.713b21d1.chunk.js.map",
|
"static/js/5.713b21d1.chunk.js.map": "./static/js/5.713b21d1.chunk.js.map",
|
||||||
"static/js/6.bba51257.chunk.js": "./static/js/6.bba51257.chunk.js",
|
"static/js/6.7433f033.chunk.js": "./static/js/6.7433f033.chunk.js",
|
||||||
"static/js/6.bba51257.chunk.js.map": "./static/js/6.bba51257.chunk.js.map",
|
"static/js/6.7433f033.chunk.js.map": "./static/js/6.7433f033.chunk.js.map",
|
||||||
"static/js/7.7a5be647.chunk.js": "./static/js/7.7a5be647.chunk.js",
|
"static/js/7.7a5be647.chunk.js": "./static/js/7.7a5be647.chunk.js",
|
||||||
"static/js/7.7a5be647.chunk.js.map": "./static/js/7.7a5be647.chunk.js.map",
|
"static/js/7.7a5be647.chunk.js.map": "./static/js/7.7a5be647.chunk.js.map",
|
||||||
"static/js/8.717aeff9.chunk.js": "./static/js/8.717aeff9.chunk.js",
|
"static/js/8.717aeff9.chunk.js": "./static/js/8.717aeff9.chunk.js",
|
||||||
@ -43,10 +43,10 @@
|
|||||||
"static/css/main.12e98d00.chunk.css.map": "./static/css/main.12e98d00.chunk.css.map",
|
"static/css/main.12e98d00.chunk.css.map": "./static/css/main.12e98d00.chunk.css.map",
|
||||||
"static/js/0.e423db2b.chunk.js.LICENSE.txt": "./static/js/0.e423db2b.chunk.js.LICENSE.txt",
|
"static/js/0.e423db2b.chunk.js.LICENSE.txt": "./static/js/0.e423db2b.chunk.js.LICENSE.txt",
|
||||||
"static/js/4.2aecef49.chunk.js.LICENSE.txt": "./static/js/4.2aecef49.chunk.js.LICENSE.txt",
|
"static/js/4.2aecef49.chunk.js.LICENSE.txt": "./static/js/4.2aecef49.chunk.js.LICENSE.txt",
|
||||||
"static/js/6.bba51257.chunk.js.LICENSE.txt": "./static/js/6.bba51257.chunk.js.LICENSE.txt"
|
"static/js/6.7433f033.chunk.js.LICENSE.txt": "./static/js/6.7433f033.chunk.js.LICENSE.txt"
|
||||||
},
|
},
|
||||||
"entrypoints": [
|
"entrypoints": [
|
||||||
"static/js/runtime-main.b31c46f0.js",
|
"static/js/runtime-main.bcfa8757.js",
|
||||||
"static/js/4.2aecef49.chunk.js",
|
"static/js/4.2aecef49.chunk.js",
|
||||||
"static/css/main.12e98d00.chunk.css",
|
"static/css/main.12e98d00.chunk.css",
|
||||||
"static/js/main.c02dc652.chunk.js"
|
"static/js/main.c02dc652.chunk.js"
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="description" content="CoreUI for React - Open Source Bootstrap Admin Template"><meta name="author" content="Łukasz Holeczek"><meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,CSS,SCSS,HTML,RWD,Dashboard,React"><title>FBS Admin tool</title><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><link href="./static/css/main.12e98d00.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],d=0,s=[];d<u.length;d++)o=u[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(l&&l(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={3:0},a={3:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{0:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"455ee148",1:"31d6cfe0",5:"ecdd39c8",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(l=c[f]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===n||i===a))return t()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var l;if((i=(l=d[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"e423db2b",1:"bd3709d0",5:"713b21d1",6:"bba51257",7:"7a5be647",8:"717aeff9",9:"311e2cfe",10:"1aee78b2",11:"d20ada69",12:"2c871bc8",13:"886a98ec",14:"ef6f2a9c",15:"e3d77fc1",16:"3fdf9cdf"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(d);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var d=0;d<f.length;d++)t(f[d]);var l=i;r()}([])</script><script src="./static/js/4.2aecef49.chunk.js"></script><script src="./static/js/main.c02dc652.chunk.js"></script></body></html>
|
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="description" content="CoreUI for React - Open Source Bootstrap Admin Template"><meta name="author" content="Łukasz Holeczek"><meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,CSS,SCSS,HTML,RWD,Dashboard,React"><title>FBS Admin tool</title><link rel="manifest" href="./manifest.json"><link rel="shortcut icon" href="./favicon.ico"><link href="./static/css/main.12e98d00.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],d=0,s=[];d<u.length;d++)o=u[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(l&&l(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={3:0},a={3:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{0:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"455ee148",1:"31d6cfe0",5:"ecdd39c8",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(l=c[f]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===n||i===a))return t()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var l;if((i=(l=d[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"e423db2b",1:"bd3709d0",5:"713b21d1",6:"7433f033",7:"7a5be647",8:"717aeff9",9:"311e2cfe",10:"1aee78b2",11:"d20ada69",12:"2c871bc8",13:"886a98ec",14:"ef6f2a9c",15:"e3d77fc1",16:"3fdf9cdf"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(d);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var d=0;d<f.length;d++)t(f[d]);var l=i;r()}([])</script><script src="./static/js/4.2aecef49.chunk.js"></script><script src="./static/js/main.c02dc652.chunk.js"></script></body></html>
|
||||||
3
build/static/js/6.7433f033.chunk.js
Normal file
3
build/static/js/6.7433f033.chunk.js
Normal file
File diff suppressed because one or more lines are too long
1
build/static/js/6.7433f033.chunk.js.map
Normal file
1
build/static/js/6.7433f033.chunk.js.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],d=0,s=[];d<u.length;d++)o=u[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(l&&l(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={3:0},a={3:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{0:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"455ee148",1:"31d6cfe0",5:"ecdd39c8",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(l=c[f]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===n||i===a))return t()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var l;if((i=(l=d[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"e423db2b",1:"bd3709d0",5:"713b21d1",6:"bba51257",7:"7a5be647",8:"717aeff9",9:"311e2cfe",10:"1aee78b2",11:"d20ada69",12:"2c871bc8",13:"886a98ec",14:"ef6f2a9c",15:"e3d77fc1",16:"3fdf9cdf"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(d);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var d=0;d<f.length;d++)t(f[d]);var l=i;r()}([]);
|
!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],d=0,s=[];d<u.length;d++)o=u[d],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(l&&l(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={3:0},a={3:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{0:1,5:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"455ee148",1:"31d6cfe0",5:"ecdd39c8",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(l=c[f]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(i===n||i===a))return t()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var l;if((i=(l=d[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"e423db2b",1:"bd3709d0",5:"713b21d1",6:"7433f033",7:"7a5be647",8:"717aeff9",9:"311e2cfe",10:"1aee78b2",11:"d20ada69",12:"2c871bc8",13:"886a98ec",14:"ef6f2a9c",15:"e3d77fc1",16:"3fdf9cdf"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(d);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var d=0;d<f.length;d++)t(f[d]);var l=i;r()}([]);
|
||||||
//# sourceMappingURL=runtime-main.b31c46f0.js.map
|
//# sourceMappingURL=runtime-main.bcfa8757.js.map
|
||||||
File diff suppressed because one or more lines are too long
@ -3,83 +3,109 @@ import axios from 'axios';
|
|||||||
//import Cookies from 'js-cookie';
|
//import Cookies from 'js-cookie';
|
||||||
import Cookies from 'universal-cookie';
|
import Cookies from 'universal-cookie';
|
||||||
import {
|
import {
|
||||||
Redirect,
|
Redirect,
|
||||||
Route,
|
Route,
|
||||||
Switch
|
Switch
|
||||||
} from 'react-router-dom'
|
} from 'react-router-dom'
|
||||||
import { CContainer, CFade } from '@coreui/react'
|
import { CContainer, CFade } from '@coreui/react'
|
||||||
|
|
||||||
// routes config
|
// routes config
|
||||||
import routes from '../routes'
|
import routes from '../routes'
|
||||||
|
|
||||||
const loading = (
|
const loading = ( <
|
||||||
<div className="pt-3 text-center">
|
div className = "pt-3 text-center" >
|
||||||
<div className="sk-spinner sk-spinner-pulse"></div>
|
<div className = "sk-spinner sk-spinner-pulse" > </div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
const TheContent = () => {
|
const TheContent = () => {
|
||||||
|
|
||||||
const [SsoSession, setSsoSession] = useState('');
|
const [SsoSession, setSsoSession] = useState('');
|
||||||
|
const [UserData, setUserData] = useState('');
|
||||||
|
|
||||||
async function fetchSession() {
|
async function fetchSession() {
|
||||||
// You can await here
|
|
||||||
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
|
|
||||||
setSsoSession(result.data);
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_token_from_storage_or_cookie() {
|
// You can await here
|
||||||
const cookies = new Cookies();
|
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
|
||||||
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468')
|
setSsoSession(result.data);
|
||||||
if(shib !== undefined) {
|
}
|
||||||
fetchSession().then(() => {
|
|
||||||
if(SsoSession.includes('Session Expiration')){
|
async function fetchUser() {
|
||||||
return true;
|
|
||||||
|
const user_email = JSON.parse(SsoSession);
|
||||||
|
const company_code = "FBS";
|
||||||
|
const key = "api"
|
||||||
|
const pwd = "c558a56c63c44f65956adde8863ecc3558f3e55a465d4338bb2e7d2692866fd8";
|
||||||
|
|
||||||
|
// You can await here
|
||||||
|
const result = await axios.get('https://api.ts.bizside.biz/api/v7/' + company_code + '/users?email=' + user_email, {
|
||||||
|
auth: {
|
||||||
|
username: key,
|
||||||
|
password: pwd
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
setUserData(result);
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
return null;
|
function get_token_from_storage_or_cookie() {
|
||||||
|
|
||||||
|
localStorage.setItem('state', 'off');
|
||||||
|
|
||||||
|
// const data = '{ "expiration": 479, "client_address": "123.231.121.140", "protocol": "urn:oasis:names:tc:SAML:2.0:protocol", "identity_provider": "https://sso.ts.bizside.biz/idp/shibboleth", "authn_instant": "2021-08-16T11:29:41.254Z", "authncontext_class": "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport", "attributes": [ { "name": "mail", "values": [ "akira.miyata@mobilous.com" ] } ] }'
|
||||||
|
// const jdata = JSON.parse(data);
|
||||||
|
|
||||||
|
// const user_email = jdata.attributes[0].values[0]
|
||||||
|
|
||||||
|
// //console.log(jdata.attributes[0].values[0]);
|
||||||
|
|
||||||
|
//return true;
|
||||||
|
const cookies = new Cookies();
|
||||||
|
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468')
|
||||||
|
if (shib !== undefined) {
|
||||||
|
fetchSession().then(() => {
|
||||||
|
if (SsoSession.includes('Session Expiration')) {
|
||||||
|
fetchUser().then(() => {
|
||||||
|
console.log(UserData);
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="c-main">
|
<main className = "c-main">
|
||||||
<CContainer fluid>
|
<CContainer fluid >
|
||||||
<Suspense fallback={loading}>
|
<Suspense fallback = { loading }>
|
||||||
<Switch>
|
<Switch > {
|
||||||
{routes.map((route, idx) => {
|
routes.map((route, idx) => {
|
||||||
return route.component && (
|
return route.component && (
|
||||||
<Route
|
<Route key = { idx }
|
||||||
key={idx}
|
path = { route.path }
|
||||||
path={route.path}
|
exact = { route.exact }
|
||||||
exact={route.exact}
|
name = { route.name }
|
||||||
name={route.name}
|
render = {
|
||||||
|
props =>
|
||||||
render={props =>
|
get_token_from_storage_or_cookie() !== null ?
|
||||||
get_token_from_storage_or_cookie() !== null
|
( <route.component {...props }/>
|
||||||
? (
|
) : ( <Redirect to = {
|
||||||
<route.component {...props} />
|
{ pathname: "/sso" }
|
||||||
) : (
|
}
|
||||||
<Redirect to={{ pathname: "/sso" }} />
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
/>
|
||||||
|
)
|
||||||
// render={props => (
|
})
|
||||||
// <CFade>
|
}
|
||||||
// <route.component {...props} />
|
<Redirect
|
||||||
// </CFade>
|
from = "/"
|
||||||
// )}
|
to = "/dashboard" / >
|
||||||
/>
|
</Switch> </Suspense >
|
||||||
)
|
</CContainer> </main >
|
||||||
})}
|
)
|
||||||
<Redirect from="/" to="/dashboard" />
|
|
||||||
</Switch>
|
|
||||||
</Suspense>
|
|
||||||
</CContainer>
|
|
||||||
</main>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default React.memo(TheContent)
|
export default React.memo(TheContent)
|
||||||
|
|||||||
Reference in New Issue
Block a user