Bundle embedded web app

This commit is contained in:
gabek 2022-12-28 18:48:08 +00:00
parent 6b0ac9d0bc
commit 78b956532f
117 changed files with 214 additions and 214 deletions

View file

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a66c1861aaf07bb6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a66c1861aaf07bb6.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-1a3f4d452e45bd34.js" defer=""></script><script src="/_next/static/chunks/framework-1f1fb5c07f2be279.js" defer=""></script><script src="/_next/static/chunks/main-69ff52f5129a1962.js" defer=""></script><script src="/_next/static/chunks/pages/_app-0fcad559d37163c2.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/wmhhPkEJtbzUkjMUPtkmV/_buildManifest.js" defer=""></script><script src="/_next/static/wmhhPkEJtbzUkjMUPtkmV/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a66c1861aaf07bb6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a66c1861aaf07bb6.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-ccdecf83552e0432.js" defer=""></script><script src="/_next/static/chunks/framework-2fe4cb6473b20297.js" defer=""></script><script src="/_next/static/chunks/main-c53b29b11cf344ae.js" defer=""></script><script src="/_next/static/chunks/pages/_app-8ab3a6299baa1911.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/SpvCuhy-neeOsG2t0rnpf/_buildManifest.js" defer=""></script><script src="/_next/static/SpvCuhy-neeOsG2t0rnpf/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
body { margin: 0; color: #000; background: #fff; }
.next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3);
@ -9,4 +9,4 @@
.next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3);
}
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"wmhhPkEJtbzUkjMUPtkmV","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"SpvCuhy-neeOsG2t0rnpf","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>

View file

@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a66c1861aaf07bb6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a66c1861aaf07bb6.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-1a3f4d452e45bd34.js" defer=""></script><script src="/_next/static/chunks/framework-1f1fb5c07f2be279.js" defer=""></script><script src="/_next/static/chunks/main-69ff52f5129a1962.js" defer=""></script><script src="/_next/static/chunks/pages/_app-0fcad559d37163c2.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/wmhhPkEJtbzUkjMUPtkmV/_buildManifest.js" defer=""></script><script src="/_next/static/wmhhPkEJtbzUkjMUPtkmV/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a66c1861aaf07bb6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a66c1861aaf07bb6.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-ccdecf83552e0432.js" defer=""></script><script src="/_next/static/chunks/framework-2fe4cb6473b20297.js" defer=""></script><script src="/_next/static/chunks/main-c53b29b11cf344ae.js" defer=""></script><script src="/_next/static/chunks/pages/_app-8ab3a6299baa1911.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/SpvCuhy-neeOsG2t0rnpf/_buildManifest.js" defer=""></script><script src="/_next/static/SpvCuhy-neeOsG2t0rnpf/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div><div style="font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>
body { margin: 0; color: #000; background: #fff; }
.next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3);
@ -9,4 +9,4 @@
.next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3);
}
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"wmhhPkEJtbzUkjMUPtkmV","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
}</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"SpvCuhy-neeOsG2t0rnpf","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>

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

@ -3,4 +3,4 @@
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){var r,t;return!1!==o(e)&&(void 0===(r=e.constructor)||!1!==o(t=r.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))}t.d(r,{P:function(){return n}})}}]);
*/ function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){var r,t;return!1!==o(e)&&(void 0===(r=e.constructor)||!1!==o(t=r.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))}t.d(r,{P:function(){return n}})}}]);

View file

@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6160],{66160:function(e,i,t){"use strict";t.r(i),t.d(i,{BrowserNotifyModal:function(){return m}});var s=t(85893),n=t(84485),o=t(71577),r=t(11382),a=t(71230),l=t(67294),c=t(4480),d=t(77466);async function h(e,i,t){let s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:i})};try{await fetch("".concat("/api/notifications/register","?accessToken=").concat(t),s)}catch(n){console.error(n)}}async function w(e){let i=await navigator.serviceWorker.ready,t=await i.pushManager.getSubscription();return t||(t=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let i="=".repeat((4-e.length%4)%4),t=(e+i).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(t),n=new Uint8Array(s.length);for(let o=0;o<s.length;++o)n[o]=s.charCodeAt(o);return n}(e)})),JSON.stringify(t)}var f=t(38851),u=t.n(f);function p(){return"serviceWorker"in navigator&&"PushManager"in window}let{Title:b}=n.Z,_=()=>(0,s.jsx)("div",{children:"Browser notifications are not supported in your browser."}),y=e=>{let{start:i}=e;return(0,s.jsx)("div",{id:"browser-push-preview-box",className:u().pushPreview,children:(0,s.jsxs)("div",{className:u().inner,children:[(0,s.jsxs)("div",{className:u().title,children:[window.location.toString()," wants to"]}),(0,s.jsxs)("div",{className:u().permissionLine,children:[(0,s.jsx)("svg",{className:u().bell,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),(0,s.jsx)("span",{className:u().showNotificationsText,children:"Show notifications"})]}),(0,s.jsxs)("div",{className:u().buttonRow,children:[(0,s.jsx)(o.Z,{type:"primary",onClick:()=>{i()},children:"Allow"}),(0,s.jsx)("button",{type:"button",className:u().disabled,children:"Block"})]})]})})},g=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)(b,{children:"Notifications are enabled"}),"To disable push notifications from ",window.location.hostname.toString()," access your browser permissions for this site and turn off notifications.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications",children:" Learn more."})]}),m=()=>{let[e,i]=(0,l.useState)(null),t=(0,c.sJ)(d.FI),n=(0,c.sJ)(d.g1),[o,f]=(0,l.useState)(!1),b=p()&&"default"!==Notification.permission,{notifications:m}=n,{browser:v}=m,{publicKey:x}=v,N=v.enabled&&p();if(b)return(0,s.jsx)(g,{});let j=async()=>{if(!p()||"default"===Notification.permission){f(!0);try{let e=await w(x);h("BROWSER_PUSH_NOTIFICATION",e,t),i(null)}catch(s){i("Error registering for live notifications: ".concat(s.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."))}f(!1)}};return N?(0,s.jsxs)(r.Z,{spinning:o,children:[(0,s.jsxs)(a.Z,{className:u().description,children:["Get notified right in the browser each time this stream goes live.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications/#browser-notifications",children:"Learn more"}),"\xa0 about Owncast browser notifications."]}),(0,s.jsx)(a.Z,{children:e}),(0,s.jsx)(y,{start:()=>j()})]}):(0,s.jsx)(_,{})}},38851:function(e){e.exports={description:"BrowserNotifyModal_description__tMKKq",pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",bell:"BrowserNotifyModal_bell__9mIeI",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb"}}}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6160],{66160:function(e,i,t){"use strict";t.r(i),t.d(i,{BrowserNotifyModal:function(){return m}});var s=t(85893),n=t(84485),o=t(71577),r=t(11382),a=t(71230),l=t(67294),c=t(4480),d=t(77466);async function h(e,i,t){let s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:i})};try{await fetch("".concat("/api/notifications/register","?accessToken=").concat(t),s)}catch(n){console.error(n)}}async function w(e){let i=await navigator.serviceWorker.ready,t=await i.pushManager.getSubscription();return t||(t=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let i="=".repeat((4-e.length%4)%4),t=(e+i).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(t),n=new Uint8Array(s.length);for(let o=0;o<s.length;++o)n[o]=s.charCodeAt(o);return n}(e)})),JSON.stringify(t)}var f=t(38851),u=t.n(f);function p(){return"serviceWorker"in navigator&&"PushManager"in window}let{Title:b}=n.Z,_=()=>(0,s.jsx)("div",{children:"Browser notifications are not supported in your browser."}),y=e=>{let{start:i}=e;return(0,s.jsx)("div",{id:"browser-push-preview-box",className:u().pushPreview,children:(0,s.jsxs)("div",{className:u().inner,children:[(0,s.jsxs)("div",{className:u().title,children:[window.location.toString()," wants to"]}),(0,s.jsxs)("div",{className:u().permissionLine,children:[(0,s.jsx)("svg",{className:u().bell,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),(0,s.jsx)("span",{className:u().showNotificationsText,children:"Show notifications"})]}),(0,s.jsxs)("div",{className:u().buttonRow,children:[(0,s.jsx)(o.Z,{type:"primary",onClick(){i()},children:"Allow"}),(0,s.jsx)("button",{type:"button",className:u().disabled,children:"Block"})]})]})})},g=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)(b,{children:"Notifications are enabled"}),"To disable push notifications from ",window.location.hostname.toString()," access your browser permissions for this site and turn off notifications.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications",children:" Learn more."})]}),m=()=>{let[e,i]=(0,l.useState)(null),t=(0,c.sJ)(d.FI),n=(0,c.sJ)(d.g1),[o,f]=(0,l.useState)(!1),b=p()&&"default"!==Notification.permission,{notifications:m}=n,{browser:v}=m,{publicKey:x}=v,N=v.enabled&&p();if(b)return(0,s.jsx)(g,{});let j=async()=>{if(!p()||"default"===Notification.permission){f(!0);try{let e=await w(x);h("BROWSER_PUSH_NOTIFICATION",e,t),i(null)}catch(s){i("Error registering for live notifications: ".concat(s.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."))}f(!1)}};return N?(0,s.jsxs)(r.Z,{spinning:o,children:[(0,s.jsxs)(a.Z,{className:u().description,children:["Get notified right in the browser each time this stream goes live.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications/#browser-notifications",children:"Learn more"}),"\xa0 about Owncast browser notifications."]}),(0,s.jsx)(a.Z,{children:e}),(0,s.jsx)(y,{start:()=>j()})]}):(0,s.jsx)(_,{})}},38851:function(e){e.exports={description:"BrowserNotifyModal_description__tMKKq",pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",bell:"BrowserNotifyModal_bell__9mIeI",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb"}}}]);

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

@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170],{63606:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var a=t(1413),s=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},c=t(42135),i=function(e,n){return s.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var o=s.forwardRef(i)},82753:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/EditPageContent",function(){return t(42441)}])},42441:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var a=t(85893),s=t(67294),r=t(84485),c=t(71577),i=t(87685),o=t(58909),u=t(48825),l=t(76538),d=t(99519),f=t(90745),g=t(41983),h=t(39664);let{Title:m}=r.Z;function p(){let[e,n]=(0,s.useState)(""),[t,r]=(0,s.useState)(null),[p,k]=(0,s.useState)(!1),w=(0,s.useContext)(d.aC),{serverConfig:x,setFieldInConfigState:v}=w||{},{instanceDetails:_}=x,{extraPageContent:C}=_,E=null,N=()=>{r(null),k(!1),clearTimeout(E),E=null};async function j(){r((0,g.kg)(g.Jk)),await (0,f.Si)({apiPath:f.AA,data:{value:e},onSuccess:n=>{v({fieldName:"extraPageContent",value:e,path:"instanceDetails"}),r((0,g.kg)(g.zv,n))},onError:e=>{r((0,g.kg)(g.Un,e))}}),E=setTimeout(N,f.sI)}return(0,s.useEffect)(()=>{n(C)},[_]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(m,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(i.ZP,{value:e,placeholder:"Enter your custom page content here...",theme:o.F,onChange:function(e){n(e),e===C||p?e===C&&p&&k(!1):k(!0)},extensions:[(0,u.markdown)({base:u.markdownLanguage,codeLanguages:l.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[p&&(0,a.jsx)(c.Z,{type:"primary",onClick:j,children:"Save"}),(0,a.jsx)(h.E,{status:t})]})]})}}},function(e){e.O(0,[5762,4485,1943,6538,9774,2888,179],function(){return e(e.s=82753)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170],{63606:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var a=t(1413),s=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},c=t(42135),i=function(e,n){return s.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var o=s.forwardRef(i)},82753:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/EditPageContent",function(){return t(42441)}])},42441:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var a=t(85893),s=t(67294),r=t(84485),c=t(71577),i=t(87685),o=t(58909),u=t(48825),l=t(76538),d=t(99519),f=t(90745),g=t(41983),h=t(39664);let{Title:m}=r.Z;function p(){let[e,n]=(0,s.useState)(""),[t,r]=(0,s.useState)(null),[p,k]=(0,s.useState)(!1),w=(0,s.useContext)(d.aC),{serverConfig:x,setFieldInConfigState:v}=w||{},{instanceDetails:_}=x,{extraPageContent:C}=_,E=null,N=()=>{r(null),k(!1),clearTimeout(E),E=null};async function j(){r((0,g.kg)(g.Jk)),await (0,f.Si)({apiPath:f.AA,data:{value:e},onSuccess(n){v({fieldName:"extraPageContent",value:e,path:"instanceDetails"}),r((0,g.kg)(g.zv,n))},onError(e){r((0,g.kg)(g.Un,e))}}),E=setTimeout(N,f.sI)}return(0,s.useEffect)(()=>{n(C)},[_]),(0,a.jsxs)("div",{className:"edit-page-content",children:[(0,a.jsx)(m,{level:3,className:"section-title",children:"Custom Page Content"}),(0,a.jsxs)("p",{className:"description",children:["Edit the content of your page by using simple"," ",(0,a.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noopener noreferrer",children:"Markdown syntax"}),"."]}),(0,a.jsx)(i.ZP,{value:e,placeholder:"Enter your custom page content here...",theme:o.F,onChange:function(e){n(e),e===C||p?e===C&&p&&k(!1):k(!0)},extensions:[(0,u.markdown)({base:u.markdownLanguage,codeLanguages:l.M})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{className:"page-content-actions",children:[p&&(0,a.jsx)(c.Z,{type:"primary",onClick:j,children:"Save"}),(0,a.jsx)(h.E,{status:t})]})]})}}},function(e){e.O(0,[5762,4485,1943,6538,9774,2888,179],function(){return e(e.s=82753)}),_N_E=e.O()}]);

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([[6815],{42072:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/server/EditStorage",function(){return a(68097)}])},73706:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var s=a(85893),l=a(67294),i=a(94594),t=a(41983),c=a(39664),r=a(90745),d=a(99519);let o=e=>{let{apiPath:n,checked:a,reversed:o=!1,configPath:u="",disabled:h=!1,fieldName:f,label:v,tip:m,useSubmit:g,onChange:x}=e,[j,p]=(0,l.useState)(null),N=null,k=(0,l.useContext)(d.aC),{setFieldInConfigState:C}=k||{},b=()=>{p(null),clearTimeout(N),N=null},S=async e=>{if(g){p((0,t.kg)(t.Jk));let a=o?!e:e;await (0,r.Si)({apiPath:n,data:{value:a},onSuccess(){C({fieldName:f,value:a,path:u}),p((0,t.kg)(t.zv))},onError(e){p((0,t.kg)(t.Un,"There was an error: ".concat(e)))}}),N=setTimeout(b,r.sI)}x&&x(e)},w=null!==j&&j.type===t.Jk;return(0,s.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[v&&(0,s.jsx)("div",{className:"label-side",children:(0,s.jsx)("span",{className:"formfield-label",children:v})}),(0,s.jsxs)("div",{className:"input-side",children:[(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)(i.Z,{className:"switch field-".concat(f),loading:w,onChange:S,defaultChecked:a,checked:a,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:h}),(0,s.jsx)(c.E,{status:j})]}),(0,s.jsx)("p",{className:"field-tip",children:m})]})]})};o.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},68097:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return j}});var s=a(85893),l=a(54907),i=a(71577),t=a(94184),c=a.n(t),r=a(67294),d=a(99519),o=a(82661),u=a(90745),h=a(41983),f=a(40117),v=a(39664),m=a(37174),g=a(73706);let{Panel:x}=l.Z;function j(){let[e,n]=(0,r.useState)(null),[a,t]=(0,r.useState)(null),[j,p]=(0,r.useState)(!1),N=(0,r.useContext)(d.aC),{serverConfig:k,setFieldInConfigState:C}=N||{},{setMessage:b}=(0,r.useContext)(o.k),{s3:S}=k,{accessKey:w="",acl:E="",bucket:y="",enabled:P=!1,endpoint:_="",region:z="",secret:T="",servingEndpoint:Z="",forcePathStyle:O=!1}=S;if((0,r.useEffect)(()=>{n({accessKey:w,acl:E,bucket:y,enabled:P,endpoint:_,region:z,secret:T,servingEndpoint:Z,forcePathStyle:O}),p(P)},[S]),!e)return null;let U=()=>{t(null),clearTimeout(null)},I=a=>{let{fieldName:s,value:l}=a;n({...e,[s]:l})},J=async()=>{t((0,h.kg)(h.Jk)),await (0,u.Si)({apiPath:u.$w,data:{value:e},onSuccess(){C({fieldName:"s3",value:e,path:""}),t((0,h.kg)(h.zv,"Updated.")),setTimeout(U,u.sI),b("Changing your storage configuration will take place the next time you start a new stream.")},onError(e){t((0,h.kg)(h.Un,e)),setTimeout(U,u.sI)}})},K=e=>{p(e),I({fieldName:"enabled",value:e})},F=e=>{I({fieldName:"forcePathStyle",value:e})},X=c()({"edit-storage-container":!0,"form-module":!0,enabled:j}),M=function(e,n){let{endpoint:a,accessKey:s,secret:l,bucket:i,region:t,enabled:c,servingEndpoint:r,acl:d,forcePathStyle:o}=e;if(c){if(a&&(0,m.jv)(a)&&s&&l&&i&&t&&(c!==n.enabled||a!==n.endpoint||s!==n.accessKey||l!==n.secret||i!==n.bucket||t!==n.region||!n.servingEndpoint&&""!==r||n.servingEndpoint&&r!==n.servingEndpoint||!n.acl&&""!==d||n.acl&&d!==n.acl||o!==n.forcePathStyle))return!0}else if(c!==n.enabled)return!0;return!1}(e,S);return(0,s.jsxs)("div",{className:X,children:[(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{apiPath:"",fieldName:"enabled",label:"Use S3 Storage Provider",checked:e.enabled,onChange:K})}),(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.endpoint,value:e.endpoint,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.accessKey,value:e.accessKey,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.secret,value:e.secret,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.bucket,value:e.bucket,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.region,value:e.region,onChange:I})}),(0,s.jsx)(l.Z,{className:"advanced-section",children:(0,s.jsxs)(x,{header:"Optional Settings",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.acl,value:e.acl,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.servingEndpoint,value:e.servingEndpoint,onChange:I})}),(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{...u.zm.forcePathStyle,fieldName:"forcePathStyle",checked:e.forcePathStyle,onChange:F})})]},"1")})]}),(0,s.jsxs)("div",{className:"button-container",children:[(0,s.jsx)(i.Z,{type:"primary",onClick:J,disabled:!M,children:"Save"}),(0,s.jsx)(v.E,{status:a})]})]})}}},function(e){e.O(0,[5473,9774,2888,179],function(){return e(e.s=42072)}),_N_E=e.O()}]);

View file

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6815],{42072:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/server/EditStorage",function(){return a(68097)}])},73706:function(e,n,a){"use strict";a.d(n,{Z:function(){return o}});var s=a(85893),l=a(67294),i=a(94594),t=a(41983),c=a(39664),r=a(90745),d=a(99519);let o=e=>{let{apiPath:n,checked:a,reversed:o=!1,configPath:u="",disabled:h=!1,fieldName:f,label:v,tip:m,useSubmit:g,onChange:x}=e,[j,p]=(0,l.useState)(null),N=null,k=(0,l.useContext)(d.aC),{setFieldInConfigState:C}=k||{},b=()=>{p(null),clearTimeout(N),N=null},S=async e=>{if(g){p((0,t.kg)(t.Jk));let a=o?!e:e;await (0,r.Si)({apiPath:n,data:{value:a},onSuccess:()=>{C({fieldName:f,value:a,path:u}),p((0,t.kg)(t.zv))},onError:e=>{p((0,t.kg)(t.Un,"There was an error: ".concat(e)))}}),N=setTimeout(b,r.sI)}x&&x(e)},w=null!==j&&j.type===t.Jk;return(0,s.jsxs)("div",{className:"formfield-container toggleswitch-container",children:[v&&(0,s.jsx)("div",{className:"label-side",children:(0,s.jsx)("span",{className:"formfield-label",children:v})}),(0,s.jsxs)("div",{className:"input-side",children:[(0,s.jsxs)("div",{className:"input-group",children:[(0,s.jsx)(i.Z,{className:"switch field-".concat(f),loading:w,onChange:S,defaultChecked:a,checked:a,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:h}),(0,s.jsx)(c.E,{status:j})]}),(0,s.jsx)("p",{className:"field-tip",children:m})]})]})};o.defaultProps={apiPath:"",checked:!1,reversed:!1,configPath:"",disabled:!1,label:"",tip:"",useSubmit:!1,onChange:null}},68097:function(e,n,a){"use strict";a.r(n),a.d(n,{default:function(){return j}});var s=a(85893),l=a(54907),i=a(71577),t=a(94184),c=a.n(t),r=a(67294),d=a(99519),o=a(82661),u=a(90745),h=a(41983),f=a(40117),v=a(39664),m=a(37174),g=a(73706);let{Panel:x}=l.Z;function j(){let[e,n]=(0,r.useState)(null),[a,t]=(0,r.useState)(null),[j,p]=(0,r.useState)(!1),N=(0,r.useContext)(d.aC),{serverConfig:k,setFieldInConfigState:C}=N||{},{setMessage:b}=(0,r.useContext)(o.k),{s3:S}=k,{accessKey:w="",acl:E="",bucket:y="",enabled:P=!1,endpoint:_="",region:z="",secret:T="",servingEndpoint:Z="",forcePathStyle:O=!1}=S;if((0,r.useEffect)(()=>{n({accessKey:w,acl:E,bucket:y,enabled:P,endpoint:_,region:z,secret:T,servingEndpoint:Z,forcePathStyle:O}),p(P)},[S]),!e)return null;let U=()=>{t(null),clearTimeout(null)},I=a=>{let{fieldName:s,value:l}=a;n({...e,[s]:l})},J=async()=>{t((0,h.kg)(h.Jk)),await (0,u.Si)({apiPath:u.$w,data:{value:e},onSuccess:()=>{C({fieldName:"s3",value:e,path:""}),t((0,h.kg)(h.zv,"Updated.")),setTimeout(U,u.sI),b("Changing your storage configuration will take place the next time you start a new stream.")},onError:e=>{t((0,h.kg)(h.Un,e)),setTimeout(U,u.sI)}})},K=e=>{p(e),I({fieldName:"enabled",value:e})},F=e=>{I({fieldName:"forcePathStyle",value:e})},X=c()({"edit-storage-container":!0,"form-module":!0,enabled:j}),M=function(e,n){let{endpoint:a,accessKey:s,secret:l,bucket:i,region:t,enabled:c,servingEndpoint:r,acl:d,forcePathStyle:o}=e;if(c){if(a&&(0,m.jv)(a)&&s&&l&&i&&t&&(c!==n.enabled||a!==n.endpoint||s!==n.accessKey||l!==n.secret||i!==n.bucket||t!==n.region||!n.servingEndpoint&&""!==r||n.servingEndpoint&&r!==n.servingEndpoint||!n.acl&&""!==d||n.acl&&d!==n.acl||o!==n.forcePathStyle))return!0}else if(c!==n.enabled)return!0;return!1}(e,S);return(0,s.jsxs)("div",{className:X,children:[(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{apiPath:"",fieldName:"enabled",label:"Use S3 Storage Provider",checked:e.enabled,onChange:K})}),(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.endpoint,value:e.endpoint,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.accessKey,value:e.accessKey,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.secret,value:e.secret,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.bucket,value:e.bucket,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.region,value:e.region,onChange:I})}),(0,s.jsx)(l.Z,{className:"advanced-section",children:(0,s.jsxs)(x,{header:"Optional Settings",children:[(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.acl,value:e.acl,onChange:I})}),(0,s.jsx)("div",{className:"field-container",children:(0,s.jsx)(f.nv,{...u.zm.servingEndpoint,value:e.servingEndpoint,onChange:I})}),(0,s.jsx)("div",{className:"enable-switch",children:(0,s.jsx)(g.Z,{...u.zm.forcePathStyle,fieldName:"forcePathStyle",checked:e.forcePathStyle,onChange:F})})]},"1")})]}),(0,s.jsxs)("div",{className:"button-container",children:[(0,s.jsx)(i.Z,{type:"primary",onClick:J,disabled:!M,children:"Save"}),(0,s.jsx)(v.E,{status:a})]})]})}}},function(e){e.O(0,[5473,9774,2888,179],function(){return e(e.s=42072)}),_N_E=e.O()}]);

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],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(o){}var u=a.call(t);return r&&(e?t[c]=n:delete t[c]),u}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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),o=n(7771),i=n(14841),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,f,l,p,d,v=0,h=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,v=e,l=t.apply(r,n)}function g(t){var n=t-d,r=t-v;return void 0===d||n>=e||n<0||y&&r>=f}function E(){var t,n,r,i=o();if(g(i))return b(i);p=setTimeout(E,(t=i-d,n=i-v,r=e-t,y?c(r,f-n):r))}function b(t){return(p=void 0,m&&u)?x(t):(u=s=void 0,l)}function w(){var t,n=o(),r=g(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return v=t=d,p=setTimeout(E,e),h?x(t):l;if(y)return clearTimeout(p),p=setTimeout(E,e),x(d)}return void 0===p&&(p=setTimeout(E,e)),l}return e=i(e)||0,r(n)&&(h=!!n.leading,f=(y="maxWait"in n)?a(i(n.maxWait)||0,e):f,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=d=s=p=void 0},w.flush=function(){return void 0===p?l:b(o())},w}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(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),o=n(13218),i=n(33448),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):c.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 p}});var r=n(85893),o=n(67294),i=n(84485),a=n(52206),c=n(58091),u=n(64777),s=n(70241);let{Title:f,Paragraph:l}=i.Z;function p(){let[t,e]=(0,o.useState)([]),[n,i]=(0,o.useState)(0),[p,d]=(0,o.useState)(0),v=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*p,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:o}=n;i(o),(0,s.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,o.useEffect)(()=>{v()},[p]);let h=[{title:"Action",dataIndex:"type",key:"type",width:50,render:(t,e)=>{let n,o;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",o="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",o="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",o="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:o,title:o}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:o})]})}},{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,c.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(f,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(l,{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:h,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange:t=>{let e=t.current;d(e)}})]})}}},function(t){t.O(0,[4485,8909,3903,4267,2206,8091,9774,2888,179],function(){return t(t.s=10203)}),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{62705:function(t,e,n){var r=n(55639).Symbol;t.exports=r},44239:function(t,e,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},31957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},89607:function(t,e,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(o){}var u=a.call(t);return r&&(e?t[c]=n:delete t[c]),u}},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},55639:function(t,e,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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),o=n(7771),i=n(14841),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,f,l,p,d,v=0,h=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,v=e,l=t.apply(r,n)}function g(t){var n=t-d,r=t-v;return void 0===d||n>=e||n<0||y&&r>=f}function E(){var t,n,r,i=o();if(g(i))return b(i);p=setTimeout(E,(t=i-d,n=i-v,r=e-t,y?c(r,f-n):r))}function b(t){return(p=void 0,m&&u)?x(t):(u=s=void 0,l)}function w(){var t,n=o(),r=g(n);if(u=arguments,s=this,d=n,r){if(void 0===p)return v=t=d,p=setTimeout(E,e),h?x(t):l;if(y)return clearTimeout(p),p=setTimeout(E,e),x(d)}return void 0===p&&(p=setTimeout(E,e)),l}return e=i(e)||0,r(n)&&(h=!!n.leading,f=(y="maxWait"in n)?a(i(n.maxWait)||0,e):f,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=d=s=p=void 0},w.flush=function(){return void 0===p?l:b(o())},w}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(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),o=n(13218),i=n(33448),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):c.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 p}});var r=n(85893),o=n(67294),i=n(84485),a=n(52206),c=n(58091),u=n(64777),s=n(70241);let{Title:f,Paragraph:l}=i.Z;function p(){let[t,e]=(0,o.useState)([]),[n,i]=(0,o.useState)(0),[p,d]=(0,o.useState)(0),v=async()=>{try{let t="".concat(u.op,"?offset=").concat(50*p,"&limit=").concat(50),n=await (0,u.rQ)(t,{auth:!0}),{results:r,total:o}=n;i(o),(0,s.Qr)(r)?e([]):e(r)}catch(a){console.log("==== error",a)}};(0,o.useEffect)(()=>{v()},[p]);let h=[{title:"Action",dataIndex:"type",key:"type",width:50,render(t,e){let n,o;switch(e.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",o="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",o="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",o="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:o,title:o}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:o})]})}},{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,c.Z)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(f,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(l,{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:h,size:"small",rowKey:t=>t.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange(t){let e=t.current;d(e)}})]})}}},function(t){t.O(0,[4485,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],{62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(o){}var c=l.call(e);return r&&(t?e[u]=n:delete e[u]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):u.test(e)?l:+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 o=n(84485),i=n(20550),l=n(52206),u=n(53731),c=n(58091);let{Title:a}=o.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(i.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(u.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)(a,{children:"Logs"}),(0,r.jsx)(l.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:s},{title:"Timestamp",dataIndex:"time",key:"time",render:e=>{let t=new Date(e);return(0,c.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 u}});var r=n(85893),o=n(67294),i=n(19849),l=n(64777);function u(){let[e,t]=(0,o.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,o.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(i.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[4485,8909,3903,4267,2206,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],{62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(o){}var c=l.call(e);return r&&(t?e[u]=n:delete e[u]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return l;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):u.test(e)?l:+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 o=n(84485),i=n(20550),l=n(52206),u=n(53731),c=n(58091);let{Title:a}=o.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(i.Z,{color:n,children:e})}function f(e){return(0,r.jsx)(u.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)(a,{children:"Logs"}),(0,r.jsx)(l.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:s},{title:"Timestamp",dataIndex:"time",key:"time",render(e){let t=new Date(e);return(0,c.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 u}});var r=n(85893),o=n(67294),i=n(19849),l=n(64777);function u(){let[e,t]=(0,o.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,o.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(i.o,{logs:e,pageSize:20})}}},function(e){e.O(0,[4485,8909,3903,4267,2206,8091,5360,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);

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

Some files were not shown because too many files have changed in this diff Show more