Bundle embedded web app

This commit is contained in:
gabek
2022-09-10 03:28:47 +00:00
parent 8b3c4571fd
commit e21e7eeb74
86 changed files with 60 additions and 60 deletions

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

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

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

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

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

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

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

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

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

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

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

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

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{10203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(13268)}])},13268:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(47568),i=n(70655),a=n(85893),s=n(67294),o=n(84485),c=n(10355),u=n(58091),l=n(58827),f=n(2766),d=o.Z.Title,h=o.Z.Paragraph;function E(){var e=(0,s.useState)([]),t=e[0],n=e[1],o=(0,s.useState)(0),E=o[0],p=o[1],w=(0,s.useState)(0),_=w[0],m=w[1],g=function(){var e=(0,r.Z)((function(){var e,t,r,a,s,o,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),50,e=50*_,t="".concat(l.op,"?offset=").concat(e,"&limit=").concat(50),a={},[4,(0,l.rQ)(t,(a.auth=!0,a))];case 1:return r=i.sent(),s=r.results,o=r.total,p(o),(0,f.Qr)(s)?n([]):n(s),[3,3];case 2:return c=i.sent(),console.log("==== error",c),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){g()}),[_]);var v,y,I=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(e,t){var n,r;switch(t.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,a.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,a.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,a.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(e,t){return(0,a.jsx)("a",{href:t.actorIRI,children:t.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(e,t){var n=new Date(t.timestamp);return(0,u.Z)(n,"P pp")}}];return(0,a.jsxs)("div",{children:[(0,a.jsx)(d,{level:3,children:"Fediverse Actions"}),(0,a.jsx)(h,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(v=t,y=I,(0,a.jsx)(c.Z,{dataSource:v,columns:y,size:"small",rowKey:function(e){return e.iri},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:E},onChange:function(e){var t=e.current;m(t)}}))]})}}},function(e){e.O(0,[7330,7266,355,8091,9774,2888,179],(function(){return t=10203,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{10203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(13268)}])},13268:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(47568),a=n(34051),i=n.n(a),o=n(85893),s=n(67294),c=n(84485),u=n(10355),l=n(58091),f=n(58827),d=n(2766),h=c.Z.Title,p=c.Z.Paragraph;function E(){var e=(0,s.useState)([]),t=e[0],n=e[1],a=(0,s.useState)(0),c=a[0],E=a[1],w=(0,s.useState)(0),v=w[0],m=w[1],_=function(){var e=(0,r.Z)(i().mark((function e(){var t,r,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,50,t=50*v,r="".concat(f.op,"?offset=").concat(t,"&limit=").concat(50),e.next=6,(0,f.rQ)(r,{auth:!0});case 6:a=e.sent,o=a.results,s=a.total,E(s),(0,d.Qr)(o)?n([]):n(o),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log("==== error",e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){_()}),[v]);var g,x,k=[{title:"Action",dataIndex:"type",key:"type",width:50,render:function(e,t){var n,r;switch(t.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",r="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",r="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",r="Follow";break;default:n=""}return(0,o.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,o.jsx)("img",{src:n,width:"70%",alt:r,title:r}),(0,o.jsx)("div",{style:{fontSize:"0.7rem"},children:r})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:function(e,t){return(0,o.jsx)("a",{href:t.actorIRI,children:t.actorIRI})}},{title:"When",dataIndex:"timestamp",key:"timestamp",render:function(e,t){var n=new Date(t.timestamp);return(0,l.Z)(n,"P pp")}}];return(0,o.jsxs)("div",{children:[(0,o.jsx)(h,{level:3,children:"Fediverse Actions"}),(0,o.jsx)(p,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(g=t,x=k,(0,o.jsx)(u.Z,{dataSource:g,columns:x,size:"small",rowKey:function(e){return e.iri},pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:c},onChange:function(e){var t=e.current;m(t)}}))]})}}},function(e){e.O(0,[7330,7266,355,8091,9774,2888,179],(function(){return t=10203,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{23426:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return r(65502)}])},38856:function(e,n,r){"use strict";r.d(n,{o:function(){return f}});var t=r(85893),i=(r(67294),r(84485)),a=r(20550),u=r(10355),s=r(53731),o=r(58091),l=i.Z.Title;function c(e,n){var r="black";return"warning"===n.level?r="orange":"error"===n.level&&(r="red"),(0,t.jsx)(a.Z,{color:r,children:e})}function d(e){return(0,t.jsx)(s.Z,{children:e})}var f=function(e){var n=e.logs,r=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var i=[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:function(e,n){return 0===n.level.indexOf(e)},render:c},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,o.Z)(n,"pp P")},sorter:function(e,n){return new Date(e.time).getTime()-new Date(n.time).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:d}];return(0,t.jsxs)("div",{className:"logs-section",children:[(0,t.jsx)(l,{children:"Logs"}),(0,t.jsx)(u.Z,{size:"middle",dataSource:n,columns:i,rowKey:function(e){return e.time},pagination:{pageSize:r||20}})]})}},65502:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return l}});var t=r(47568),i=r(70655),a=r(85893),u=r(67294),s=r(38856),o=r(58827);function l(){var e=(0,u.useState)([]),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,o.rQ)(o.sG)];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){var e;return setInterval(l,5e3),l(),e=setInterval(l,5e3),function(){clearInterval(e)}}),[]),(0,a.jsx)(s.o,{logs:n,pageSize:20})}}},function(e){e.O(0,[7330,7266,355,8091,2429,9774,2888,179],(function(){return n=23426,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{23426:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return r(65502)}])},38856:function(e,n,r){"use strict";r.d(n,{o:function(){return f}});var t=r(85893),i=(r(67294),r(84485)),a=r(20550),u=r(10355),o=r(53731),s=r(58091),c=i.Z.Title;function l(e,n){var r="black";return"warning"===n.level?r="orange":"error"===n.level&&(r="red"),(0,t.jsx)(a.Z,{color:r,children:e})}function d(e){return(0,t.jsx)(o.Z,{children:e})}var f=function(e){var n=e.logs,r=e.pageSize;if(!(null===n||void 0===n?void 0:n.length))return null;var i=[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:function(e,n){return 0===n.level.indexOf(e)},render:l},{title:"Timestamp",dataIndex:"time",key:"time",render:function(e){var n=new Date(e);return(0,s.Z)(n,"pp P")},sorter:function(e,n){return new Date(e.time).getTime()-new Date(n.time).getTime()},sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:d}];return(0,t.jsxs)("div",{className:"logs-section",children:[(0,t.jsx)(c,{children:"Logs"}),(0,t.jsx)(u.Z,{size:"middle",dataSource:n,columns:i,rowKey:function(e){return e.time},pagination:{pageSize:r||20}})]})}},65502:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return l}});var t=r(47568),i=r(34051),a=r.n(i),u=r(85893),o=r(67294),s=r(38856),c=r(58827);function l(){var e=(0,o.useState)([]),n=e[0],r=e[1],i=function(){var e=(0,t.Z)(a().mark((function e(){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,c.rQ)(c.sG);case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){var e;return setInterval(i,5e3),i(),e=setInterval(i,5e3),function(){clearInterval(e)}}),[]),(0,u.jsx)(s.o,{logs:n,pageSize:20})}}},function(e){e.O(0,[7330,7266,355,8091,2429,9774,2888,179],(function(){return n=23426,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(70655),s=r(85893),i=r(67294),c=r(9001),l=r(84485),o=r(10355),d=r(58827),f=l.Z.Title,h=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,s.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,s.jsx)(o.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.Kt)()];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){l()}),[]),n?(0,s.jsxs)("div",{className:"upgrade-page",children:[(0,s.jsx)(f,{level:2,children:(0,s.jsx)("a",{href:n.html_url,children:n.name})}),(0,s.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,s.jsx)(c.D,{children:n.body}),(0,s.jsx)("h3",{children:"Downloads"}),(0,s.jsx)(h,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[7330,7266,355,9001,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(34051),s=r.n(u),c=r(85893),i=r(67294),l=r(9001),o=r(84485),d=r(10355),f=r(58827),h=o.Z.Title,_=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,c.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,c.jsx)(d.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],u=function(){var e=(0,t.Z)(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,f.Kt)();case 3:n=e.sent,r(n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){u()}),[]),n?(0,c.jsxs)("div",{className:"upgrade-page",children:[(0,c.jsx)(h,{level:2,children:(0,c.jsx)("a",{href:n.html_url,children:n.name})}),(0,c.jsx)(h,{level:5,children:new Date(n.created_at).toDateString()}),(0,c.jsx)(l.D,{children:n.body}),(0,c.jsx)("h3",{children:"Downloads"}),(0,c.jsx)(_,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[7330,7266,355,9001,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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

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