Bundle embedded web app

This commit is contained in:
gabek
2022-11-23 22:55:14 +00:00
parent 8ee903e753
commit efeacc7750
65 changed files with 72 additions and 72 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

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a=Math.max,s=Math.min;t.exports=function(t,e,n){var u,c,l,f,d,p,h=0,v=!1,m=!1,E=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=u,r=c;return u=c=void 0,h=e,f=t.apply(r,n)}function x(t){var n=t-p,r=t-h;return void 0===p||n>=e||n<0||m&&r>=l}function w(){var t,n,r,o=i();if(x(o))return g(o);d=setTimeout(w,(t=o-p,n=o-h,r=e-t,m?s(r,l-n):r))}function g(t){return(d=void 0,E&&u)?y(t):(u=c=void 0,f)}function _(){var t,n=i(),r=x(n);if(u=arguments,c=this,p=n,r){if(void 0===d)return h=t=p,d=setTimeout(w,e),v?y(t):f;if(m)return clearTimeout(d),d=setTimeout(w,e),y(p)}return void 0===d&&(d=setTimeout(w,e)),f}return e=o(e)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,e):l,E="trailing"in n?!!n.trailing:E),_.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},_.flush=function(){return void 0===d?f:g(i())},_}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(86419)}])},86419:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var r=n(85893),i=n(67294),o=n(84485),a=n(93626),s=n(58091),u=n(64777),c=n(70241);let{Title:l,Paragraph:f}=o.Z;function d(){let[t,e]=(0,i.useState)([]),[n,o]=(0,i.useState)(0),[d,p]=(0,i.useState)(0),h=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*d,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:i}=n;o(i),(0,c.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,i.useEffect)(()=>{h()},[d]);let v=[{title:"Action",dataIndex:"type",key:"type",width:50,render(t,e){let n,i;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",i="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",i="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",i="Follow";break;default:n=""}return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,r.jsx)("img",{src:n,width:"70%",alt:i,title:i}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:i})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:(t,e)=>(0,r.jsx)("a",{href:e.actorIRI,children:e.actorIRI})},{title:"When",dataIndex:"timestamp",key:"timestamp",render(t,e){let n=new Date(e.timestamp);return(0,s.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(l,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(f,{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."}),(0,r.jsx)(a.Z,{dataSource:t,columns:v,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange(t){let e=t.current;p(e)}})]})}}},function(t){t.O(0,[8909,3903,4267,3626,8091,9774,2888,179],function(){return t(t.s=10203)}),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{27561:function(t,e,n){var r=n(67990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),i=n(7771),o=n(14841),a=Math.max,s=Math.min;t.exports=function(t,e,n){var u,c,l,f,d,p,h=0,v=!1,m=!1,E=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=u,r=c;return u=c=void 0,h=e,f=t.apply(r,n)}function x(t){var n=t-p,r=t-h;return void 0===p||n>=e||n<0||m&&r>=l}function w(){var t,n,r,o=i();if(x(o))return g(o);d=setTimeout(w,(t=o-p,n=o-h,r=e-t,m?s(r,l-n):r))}function g(t){return(d=void 0,E&&u)?y(t):(u=c=void 0,f)}function _(){var t,n=i(),r=x(n);if(u=arguments,c=this,p=n,r){if(void 0===d)return h=t=p,d=setTimeout(w,e),v?y(t):f;if(m)return clearTimeout(d),d=setTimeout(w,e),y(p)}return void 0===d&&(d=setTimeout(w,e)),f}return e=o(e)||0,r(n)&&(v=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,e):l,E="trailing"in n?!!n.trailing:E),_.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},_.flush=function(){return void 0===d?f:g(i())},_}},33448:function(t,e,n){var r=n(44239),i=n(37005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),i=n(13218),o=n(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}},10203:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(86419)}])},86419:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var r=n(85893),i=n(67294),o=n(84485),a=n(52206),s=n(58091),u=n(64777),c=n(70241);let{Title:l,Paragraph:f}=o.Z;function d(){let[t,e]=(0,i.useState)([]),[n,o]=(0,i.useState)(0),[d,p]=(0,i.useState)(0),h=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*d,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:i}=n;o(i),(0,c.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,i.useEffect)(()=>{h()},[d]);let v=[{title:"Action",dataIndex:"type",key:"type",width:50,render(t,e){let n,i;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",i="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",i="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",i="Follow";break;default:n=""}return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,r.jsx)("img",{src:n,width:"70%",alt:i,title:i}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:i})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:(t,e)=>(0,r.jsx)("a",{href:e.actorIRI,children:e.actorIRI})},{title:"When",dataIndex:"timestamp",key:"timestamp",render(t,e){let n=new Date(e.timestamp);return(0,s.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(l,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(f,{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."}),(0,r.jsx)(a.Z,{dataSource:t,columns:v,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange(t){let e=t.current;p(e)}})]})}}},function(t){t.O(0,[8909,3903,4267,2206,8091,9774,2888,179],function(){return t(t.s=10203)}),_N_E=t.O()}]);

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{27561:function(e,t,n){var r=n(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},33448:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),i=n(13218),l=n(33448),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(87905)}])},19849:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(85893);n(67294);var i=n(84485),l=n(20550),o=n(93626),s=n(53731),a=n(58091);let{Title:u}=i.Z;function c(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(l.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(s.Z,{children:e})}let d=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(u,{children:"Logs"}),(0,r.jsx)(o.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:c},{title:"Timestamp",dataIndex:"time",key:"time",render(e){let t=new Date(e);return(0,a.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:f}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},87905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(85893),i=n(67294),l=n(19849),o=n(64777);function s(){let[e,t]=(0,i.useState)([]),n=async()=>{try{let e=await (0,o.rQ)(o.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,i.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(l.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[8909,3903,4267,3626,8091,5360,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{27561:function(e,t,n){var r=n(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},33448:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),i=n(13218),l=n(33448),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(87905)}])},19849:function(e,t,n){"use strict";n.d(t,{o:function(){return d}});var r=n(85893);n(67294);var i=n(84485),l=n(20550),o=n(52206),s=n(53731),a=n(58091);let{Title:u}=i.Z;function c(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(l.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(s.Z,{children:e})}let d=e=>{let{logs:t,pageSize:n}=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(u,{children:"Logs"}),(0,r.jsx)(o.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:c},{title:"Timestamp",dataIndex:"time",key:"time",render(e){let t=new Date(e);return(0,a.Z)(t,"pp P")},sorter:(e,t)=>new Date(e.time).getTime()-new Date(t.time).getTime(),sortDirections:["descend","ascend"],defaultSortOrder:"descend"},{title:"Message",dataIndex:"message",key:"message",render:f}],rowKey:e=>e.time,pagination:{pageSize:n||20}})]}):null}},87905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(85893),i=n(67294),l=n(19849),o=n(64777);function s(){let[e,t]=(0,i.useState)([]),n=async()=>{try{let e=await (0,o.rQ)(o.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,i.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(l.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[8909,3903,4267,2206,8091,5360,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return t(97644)}])},97644:function(e,n,t){"use strict";t.r(n);var a=t(85893),r=t(67294),l=t(21364),s=t(84485),d=t(93626),i=t(64777);let{Title:c}=s.Z,u=e=>{let n=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:n,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,n)=>(0,a.jsx)("a",{href:n.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},o=()=>{let[e,n]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),t=async()=>{try{let e=await (0,i.Kt)();n(e)}catch(t){console.log("==== error",t)}};return((0,r.useEffect)(()=>{t()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(u,{...e.assets})]}):null};n.default=o}},function(e){e.O(0,[8909,3903,4267,3626,2069,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return t(97644)}])},97644:function(e,n,t){"use strict";t.r(n);var a=t(85893),r=t(67294),l=t(21364),s=t(84485),d=t(52206),i=t(64777);let{Title:c}=s.Z,u=e=>{let n=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:n,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,n)=>(0,a.jsx)("a",{href:n.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},o=()=>{let[e,n]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),t=async()=>{try{let e=await (0,i.Kt)();n(e)}catch(t){console.log("==== error",t)}};return((0,r.useEffect)(()=>{t()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(u,{...e.assets})]}):null};n.default=o}},function(e){e.O(0,[8909,3903,4267,2206,2069,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);