0

Bundle embedded web app

This commit is contained in:
gabek 2022-12-28 02:55:10 +00:00
parent 5a41f4a1ea
commit f03f683c3f
113 changed files with 85 additions and 66 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-7dd017fe668f39e7.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-d48aea5e54e0f244.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/UrUY2dXb-SyXuuYSh2dZu/_buildManifest.js" defer=""></script><script src="/_next/static/UrUY2dXb-SyXuuYSh2dZu/_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-a840aa511fcbb866.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/FJ1zkYWgj6PGyxtsGD6s_/_buildManifest.js" defer=""></script><script src="/_next/static/FJ1zkYWgj6PGyxtsGD6s_/_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; } body { margin: 0; color: #000; background: #fff; }
.next-error-h1 { .next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3); border-right: 1px solid rgba(0, 0, 0, .3);
@ -9,4 +9,4 @@
.next-error-h1 { .next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3); 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":"UrUY2dXb-SyXuuYSh2dZu","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":"FJ1zkYWgj6PGyxtsGD6s_","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-7dd017fe668f39e7.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-d48aea5e54e0f244.js" defer=""></script><script src="/_next/static/chunks/pages/_error-02cc11fd74b4e5ff.js" defer=""></script><script src="/_next/static/UrUY2dXb-SyXuuYSh2dZu/_buildManifest.js" defer=""></script><script src="/_next/static/UrUY2dXb-SyXuuYSh2dZu/_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-a840aa511fcbb866.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/FJ1zkYWgj6PGyxtsGD6s_/_buildManifest.js" defer=""></script><script src="/_next/static/FJ1zkYWgj6PGyxtsGD6s_/_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; } body { margin: 0; color: #000; background: #fff; }
.next-error-h1 { .next-error-h1 {
border-right: 1px solid rgba(0, 0, 0, .3); border-right: 1px solid rgba(0, 0, 0, .3);
@ -9,4 +9,4 @@
.next-error-h1 { .next-error-h1 {
border-right: 1px solid rgba(255, 255, 255, .3); 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":"UrUY2dXb-SyXuuYSh2dZu","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":"FJ1zkYWgj6PGyxtsGD6s_","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

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([[7815],{17815:function(t,e,o){"use strict";o.r(e),o.d(e,{NotifyReminderPopup:function(){return c}});var n=o(85893),r=o(55241),p=o(97937),i=o(67294),s=o(93162),u=o.n(s);let c=t=>{let{children:e,open:o,notificationClicked:s,notificationClosed:c}=t,[a,l]=(0,i.useState)(o),[d,f]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(o)},[o]),(0,i.useEffect)(()=>{f(!0)},[]);let m=(0,n.jsx)("div",{className:u().title,children:"Stay updated!"}),b=t=>{t.stopPropagation(),s()},_=t=>{t.stopPropagation(),l(!1),c()},x=(0,n.jsxs)("div",{onClick:b,onKeyDown:b,role:"menuitem",tabIndex:0,children:[(0,n.jsx)("button",{type:"button",className:u().closebutton,onClick:_,children:(0,n.jsx)(p.Z,{})}),(0,n.jsxs)("div",{className:u().contentbutton,children:["Click and never miss",(0,n.jsx)("br",{}),"future streams!"]})]});return d&&(0,n.jsx)(r.Z,{placement:"topLeft",defaultOpen:a,open:a,destroyTooltipOnHide:!0,title:m,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},color:u().popupBackgroundColor,getPopupContainer:t=>t,children:e})}},93162:function(t){t.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]);

View File

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{17815:function(t,e,o){"use strict";o.r(e),o.d(e,{NotifyReminderPopup:function(){return c}});var n=o(85893),r=o(55241),i=o(97937),p=o(67294),s=o(93162),u=o.n(s);let c=t=>{let{children:e,open:o,notificationClicked:s,notificationClosed:c}=t,[l,a]=(0,p.useState)(o),[d,f]=(0,p.useState)(!1);(0,p.useEffect)(()=>{a(o)},[o]),(0,p.useEffect)(()=>{f(!0)},[]);let m=(0,n.jsx)("div",{className:u().title,children:"Stay updated!"}),b=t=>{t.stopPropagation(),s()},_=t=>{t.stopPropagation(),a(!1),c()},x=(0,n.jsxs)("div",{onClick:b,onKeyDown:b,role:"menuitem",tabIndex:0,children:[(0,n.jsx)("button",{type:"button",className:u().closebutton,onClick:_,children:(0,n.jsx)(i.Z,{})}),(0,n.jsxs)("div",{className:u().contentbutton,children:["Click and never miss",(0,n.jsx)("br",{}),"future streams!"]})]});return d&&(0,n.jsx)(r.Z,{placement:"topLeft",defaultOpen:l,open:l,destroyTooltipOnHide:!0,title:m,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},color:u().popupBackgroundColor,children:e})}},93162:function(t){t.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]);

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 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6559],{10887:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/emojis",function(){return n(14518)}])},14518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var i=n(85893),a=n(48689),o=n(84485),s=n(26713),l=n(71577),r=n(52206),c=n(77916),u=n(67294),d=n(39664),m=n(64777),j=n(60956),f=n(41983),p=n(90745);let{Title:h,Paragraph:g}=o.Z,w=()=>{let[e,t]=(0,u.useState)([]),[n,o]=(0,u.useState)(!1),[w,y]=(0,u.useState)(null),[k,x]=(0,u.useState)(null),E=null,_=()=>{y(null),clearTimeout(E),E=null};async function T(){o(!0);try{let e=await (0,m.rQ)("/api/emoji");t(e)}catch(n){console.error("error fetching emojis",n)}o(!1)}async function v(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),o(!0),y((0,f.kg)(f.Jk,"Deleting emoji..."));try{let n=await (0,m.rQ)(m.Ff,{method:"POST",data:{name:t}});if(n instanceof Error)throw n;y((0,f.kg)(f.zv,"Emoji deleted")),E=setTimeout(_,p.sI)}catch(i){y((0,f.kg)(f.Un,"".concat(i))),o(!1),E=setTimeout(_,p.sI)}T()}async function Z(){o(!0);try{y((0,f.kg)(f.Jk,"Converting emoji..."));let e=await new Promise((e,t)=>{if(!j.d.includes(k.type)){let n="File type is not supported: ".concat(k.type);return t(n)}(0,j.y)(k,t=>e({name:k.name,url:t}))});y((0,f.kg)(f.Jk,"Uploading emoji..."));let t=await (0,m.rQ)(m.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(t instanceof Error)throw t;y((0,f.kg)(f.zv,"Emoji uploaded successfully!")),T()}catch(n){y((0,f.kg)(f.Un,"".concat(n)))}E=setTimeout(_,p.sI),o(!1)}return(0,u.useEffect)(()=>{T()},[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(h,{children:"Emojis"}),(0,i.jsx)(g,{children:"Here you can upload new custom emojis for usage in the chat. When uploading a new emoji, the filename will be used as emoji name."}),(0,i.jsx)(r.Z,{rowKey:e=>e.url,dataSource:e,columns:[{title:"",key:"delete",render:(e,t)=>(0,i.jsx)(s.Z,{size:"middle",children:(0,i.jsx)(l.Z,{onClick:()=>v(t.url),icon:(0,i.jsx)(a.Z,{})})})},{title:"Name",key:"name",dataIndex:"name"},{title:"Emoji",key:"url",render:(e,t)=>(0,i.jsx)("img",{src:t.url,alt:t.name,style:{maxWidth:"2vw"}})}],pagination:!1}),(0,i.jsx)("br",{}),(0,i.jsx)(c.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:j.d.join(","),beforeUpload:x,customRequest:Z,disabled:n,children:(0,i.jsx)(l.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(d.Z,{status:w})]})};var y=w},60956:function(e,t,n){"use strict";n.d(t,{d:function(){return i},y:function(){return a}});let i=["image/png","image/jpeg","image/gif"];function a(e,t){let n=new FileReader;n.addEventListener("load",()=>t(n.result)),n.readAsDataURL(e)}}},function(e){e.O(0,[4485,8909,3903,4267,2206,5577,2938,9774,2888,179],function(){return e(e.s=10887)}),_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

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1871],{39856:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general",function(){return i(88829)}])},88829:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return r}});var t=i(85893);i(67294);var u=i(90575),c=i(98645),a=i(3522);function r(){return(0,t.jsx)("div",{className:"config-public-details-page",children:(0,t.jsx)(u.Z,{defaultActiveKey:"1",centered:!0,items:[{label:"General",key:"1",children:(0,t.jsx)(c.default,{})},{label:"Appearance",key:"2",children:(0,t.jsx)(a.default,{})}]})})}}},function(e){e.O(0,[5762,4485,8909,3903,4267,2206,575,7910,1943,1082,7916,6538,1700,7661,7291,8645,3522,9774,2888,179],function(){return e(e.s=39856)}),_N_E=e.O()}]);

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6377],{63606:function(n,e,t){"use strict";t.d(e,{Z:function(){return u}});var i=t(1413),r=t(67294),c={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"},s=t(42135),a=function(n,e){return r.createElement(s.Z,(0,i.Z)((0,i.Z)({},n),{},{ref:e,icon:c}))};a.displayName="CheckOutlined";var u=r.forwardRef(a)},24308:function(n,e,t){"use strict";t.d(e,{c4:function(){return c}});var i=t(4942),r=t(87462),c=["xxl","xl","lg","md","sm","xs"],s={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},a=new Map,u=-1,o={};e.ZP={matchHandlers:{},dispatch:function(n){return o=n,a.forEach(function(n){return n(o)}),a.size>=1},subscribe:function(n){return a.size||this.register(),u+=1,a.set(u,n),n(o),u},unsubscribe:function(n){a.delete(n),a.size||this.unregister()},unregister:function(){var n=this;Object.keys(s).forEach(function(e){var t=s[e],i=n.matchHandlers[t];null==i||i.mql.removeListener(null==i?void 0:i.listener)}),a.clear()},register:function(){var n=this;Object.keys(s).forEach(function(e){var t=s[e],c=function(t){var c=t.matches;n.dispatch((0,r.Z)((0,r.Z)({},o),(0,i.Z)({},e,c)))},a=window.matchMedia(t);a.addListener(c),n.matchHandlers[t]={mql:a,listener:c},c(a)})}}},56048:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/AppearanceConfig",function(){return t(3522)}])}},function(n){n.O(0,[5762,4485,1943,1082,1700,7661,3522,9774,2888,179],function(){return n(n.s=56048)}),_N_E=n.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([[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

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1673],{52702:function(n,_,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config/general/GeneralConfig",function(){return e(98645)}])}},function(n){n.O(0,[5762,4485,8909,3903,4267,2206,7910,1943,7916,6538,7291,8645,9774,2888,179],function(){return n(n.s=52702)}),_N_E=n.O()}]);

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()}]);

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([[490],{54779:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/help",function(){return t(44130)}])},44130:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return y}});var r=t(85893),s=t(71230),o=t(15746),i=t(33859),l=t(71577),a=t(27049),c=t(59652),d=t(89281),x=t(11700),h=t(90543),u=t(29158),j=t(38958),p=t(17502),f=t(65987),g=t(99767),w=t(30925),Z=t(80869),m=t(43439),b=t(99906);function y(){let e=[{icon:(0,r.jsx)(h.Z,{style:{fontSize:"24px"}}),title:"I want to configure my owncast instance",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/configuration/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(j.Z,{style:{fontSize:"24px"}}),title:"Help configuring my broadcasting software",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(p.Z,{style:{fontSize:"24px"}}),title:"I want to embed my stream into another site",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/embed/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(f.Z,{style:{fontSize:"24px"}}),title:"I want to customize my website",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(g.Z,{style:{fontSize:"24px"}}),title:"I want to tweak my video output",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/encoding/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(w.Z,{style:{fontSize:"24px"}}),title:"I want to use an external storage provider",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/storage/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})}],n=[{icon:(0,r.jsx)(Z.Z,{style:{fontSize:"24px"}}),title:"I found a bug",content:(0,r.jsxs)("div",{children:["If you found a bug, then please",(0,r.jsxs)("a",{href:"https://github.com/owncast/owncast/issues/new/choose",target:"_blank",rel:"noopener noreferrer",children:[" ","let us know"]})]})},{icon:(0,r.jsx)(m.Z,{style:{fontSize:"24px"}}),title:"I have a general question",content:(0,r.jsxs)("div",{children:["Most general questions are answered in our",(0,r.jsxs)("a",{href:"https://owncast.online/docs/faq/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[" ","FAQ"]})," ","or exist in our"," ",(0,r.jsx)("a",{href:"https://github.com/owncast/owncast/discussions",target:"_blank",rel:"noopener noreferrer",children:"discussions"})]})},{icon:(0,r.jsx)(b.Z,{style:{fontSize:"24px"}}),title:"I want to build add-ons for Owncast",content:(0,r.jsxs)("div",{children:["You can build your own bots, overlays, tools and add-ons with our",(0,r.jsx)("a",{href:"https://owncast.online/thirdparty?source=admin",target:"_blank",rel:"noopener noreferrer",children:"\xa0developer APIs.\xa0"})]})}];return(0,r.jsxs)("div",{className:"help-page",children:[(0,r.jsx)(x.Z,{style:{textAlign:"center"},children:"How can we help you?"}),(0,r.jsxs)(s.Z,{gutter:[16,16],justify:"space-around",align:"middle",children:[(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"500"}),(0,r.jsx)(x.Z,{level:2,children:"Troubleshooting"}),(0,r.jsx)(l.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs/troubleshooting/?source=admin",icon:(0,r.jsx)(u.Z,{}),type:"primary",children:"Fix your problems"})]}),(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"404"}),(0,r.jsx)(x.Z,{level:2,children:"Documentation"}),(0,r.jsx)(l.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs?source=admin",icon:(0,r.jsx)(u.Z,{}),type:"primary",children:"Read the Docs"})]})]}),(0,r.jsx)(a.Z,{}),(0,r.jsx)(x.Z,{level:2,children:"Common tasks"}),(0,r.jsx)(s.Z,{gutter:[16,16],children:e.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(d.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))}),(0,r.jsx)(a.Z,{}),(0,r.jsx)(x.Z,{level:2,children:"Other"}),(0,r.jsx)(s.Z,{gutter:[16,16],children:n.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(d.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))})]})}t(67294)}},function(e){e.O(0,[575,5101,1082,1938,5682,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]); (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{54779:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/help",function(){return t(44130)}])},44130:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return y}});var r=t(85893),s=t(71230),o=t(15746),i=t(33859),l=t(71577),a=t(27049),c=t(59652),d=t(89281),x=t(11700),h=t(90543),u=t(29158),j=t(38958),p=t(17502),f=t(65987),g=t(99767),w=t(30925),Z=t(80869),m=t(43439),b=t(99906);function y(){let e=[{icon:(0,r.jsx)(h.Z,{style:{fontSize:"24px"}}),title:"I want to configure my owncast instance",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/configuration/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(j.Z,{style:{fontSize:"24px"}}),title:"Help configuring my broadcasting software",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(p.Z,{style:{fontSize:"24px"}}),title:"I want to embed my stream into another site",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/embed/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(f.Z,{style:{fontSize:"24px"}}),title:"I want to customize my website",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(g.Z,{style:{fontSize:"24px"}}),title:"I want to tweak my video output",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/encoding/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})},{icon:(0,r.jsx)(w.Z,{style:{fontSize:"24px"}}),title:"I want to use an external storage provider",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/storage/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(u.Z,{})," Learn more"]})})}],n=[{icon:(0,r.jsx)(Z.Z,{style:{fontSize:"24px"}}),title:"I found a bug",content:(0,r.jsxs)("div",{children:["If you found a bug, then please",(0,r.jsxs)("a",{href:"https://github.com/owncast/owncast/issues/new/choose",target:"_blank",rel:"noopener noreferrer",children:[" ","let us know"]})]})},{icon:(0,r.jsx)(m.Z,{style:{fontSize:"24px"}}),title:"I have a general question",content:(0,r.jsxs)("div",{children:["Most general questions are answered in our",(0,r.jsxs)("a",{href:"https://owncast.online/docs/faq/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[" ","FAQ"]})," ","or exist in our"," ",(0,r.jsx)("a",{href:"https://github.com/owncast/owncast/discussions",target:"_blank",rel:"noopener noreferrer",children:"discussions"})]})},{icon:(0,r.jsx)(b.Z,{style:{fontSize:"24px"}}),title:"I want to build add-ons for Owncast",content:(0,r.jsxs)("div",{children:["You can build your own bots, overlays, tools and add-ons with our",(0,r.jsx)("a",{href:"https://owncast.online/thirdparty?source=admin",target:"_blank",rel:"noopener noreferrer",children:"\xa0developer APIs.\xa0"})]})}];return(0,r.jsxs)("div",{className:"help-page",children:[(0,r.jsx)(x.Z,{style:{textAlign:"center"},children:"How can we help you?"}),(0,r.jsxs)(s.Z,{gutter:[16,16],justify:"space-around",align:"middle",children:[(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"500"}),(0,r.jsx)(x.Z,{level:2,children:"Troubleshooting"}),(0,r.jsx)(l.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs/troubleshooting/?source=admin",icon:(0,r.jsx)(u.Z,{}),type:"primary",children:"Fix your problems"})]}),(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"404"}),(0,r.jsx)(x.Z,{level:2,children:"Documentation"}),(0,r.jsx)(l.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs?source=admin",icon:(0,r.jsx)(u.Z,{}),type:"primary",children:"Read the Docs"})]})]}),(0,r.jsx)(a.Z,{}),(0,r.jsx)(x.Z,{level:2,children:"Common tasks"}),(0,r.jsx)(s.Z,{gutter:[16,16],children:e.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(d.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))}),(0,r.jsx)(a.Z,{}),(0,r.jsx)(x.Z,{level:2,children:"Other"}),(0,r.jsx)(s.Z,{gutter:[16,16],children:n.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(d.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))})]})}t(67294)}},function(e){e.O(0,[575,5101,1082,1700,7489,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]);

View File

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{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 f}});var r=n(85893);n(67294);var l=n(84485),i=n(20550),a=n(52206),s=n(53731),o=n(58091);let{Title:u}=l.Z;function c(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 d(e){return(0,r.jsx)(s.Z,{children:e})}let f=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)(a.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,o.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:d}],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),l=n(67294),i=n(19849),a=n(64777);function s(){let[e,t]=(0,l.useState)([]),n=async()=>{try{let e=await (0,a.rQ)(a.sG);t(e)}catch(n){console.log("==== error",n)}};return(0,l.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()}]);

View File

@ -0,0 +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()}]);

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399,1496],{23279:function(n,t,i){var e=i(13218),r=i(7771),u=i(14841),o=Math.max,a=Math.min;n.exports=function(n,t,i){var c,f,s,d,h,v,l=0,m=!1,p=!1,_=!0;if("function"!=typeof n)throw TypeError("Expected a function");function T(t){var i=c,e=f;return c=f=void 0,l=t,d=n.apply(e,i)}function w(n){var i=n-v,e=n-l;return void 0===v||i>=t||i<0||p&&e>=s}function x(){var n,i,e,u=r();if(w(u))return g(u);h=setTimeout(x,(n=u-v,i=u-l,e=t-n,p?a(e,s-i):e))}function g(n){return(h=void 0,_&&c)?T(n):(c=f=void 0,d)}function E(){var n,i=r(),e=w(i);if(c=arguments,f=this,v=i,e){if(void 0===h)return l=n=v,h=setTimeout(x,t),m?T(n):d;if(p)return clearTimeout(h),h=setTimeout(x,t),T(v)}return void 0===h&&(h=setTimeout(x,t)),d}return t=u(t)||0,e(i)&&(m=!!i.leading,s=(p="maxWait"in i)?o(u(i.maxWait)||0,t):s,_="trailing"in i?!!i.trailing:_),E.cancel=function(){void 0!==h&&clearTimeout(h),l=0,c=v=f=h=void 0},E.flush=function(){return void 0===h?d:g(r())},E}},7771:function(n,t,i){var e=i(55639);n.exports=function(){return e.Date.now()}},88054:function(n,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return i(81484)}])},81484:function(n,t,i){"use strict";i.r(t),i.d(t,{default:function(){return a}});var e=i(85893),r=i(4480),u=i(94977),o=i(77466);function a(){let n=(0,r.sJ)(o.db),t=(0,r.sJ)(o.pH);if(!n)return null;let{id:i,displayName:a}=n;return(0,e.jsxs)("div",{children:[(0,e.jsx)(o.me,{}),(0,e.jsx)(u.ChatContainer,{messages:t,usernameToHighlight:a,chatUserId:i,isModerator:!1,showInput:!1,height:"100vh"})]})}}},function(n){n.O(0,[1272,8700,6395,3729,7076,7466,4977,9774,2888,179],function(){return n(n.s=88054)}),_N_E=n.O()}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,1496],{30672:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return n(34986)}])},37527:function(e,t,n){"use strict";n.d(t,{h:function(){return U},Z:function(){return M}});var a=n(85893),r=n(97183),l=n(94199),s=n(20550),i=n(94184),o=n.n(i),c=n(66516),d=n(38504),h=n(71577),u=n(26713),x=n(86548),_=n(94149),m=n(38545),j=n(87547),p=n(39398),g=n(4480),b=n(67294),f=n(49218),Z=n(5152),C=n.n(Z),w=n(77466),v=n(79252),N=n.n(v);let k=C()(()=>n.e(4761).then(n.bind(n,14761)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[14761]}}),I=C()(()=>Promise.all([n.e(8909),n.e(8119),n.e(9096)]).then(n.bind(n,59096)).then(e=>e.NameChangeModal),{loadableGenerated:{webpack:()=>[59096]}}),H=C()(()=>Promise.all([n.e(4485),n.e(575),n.e(2335)]).then(n.bind(n,44208)).then(e=>e.AuthModal),{loadableGenerated:{webpack:()=>[44208]}}),y=e=>{let{username:t}=e,[n,r]=(0,b.useState)(!1),[l,s]=(0,b.useState)(!1),[i,o]=(0,g.FV)(w.ZA),Z=(0,g.sJ)(w.Q),C=()=>{o(!i)},v=()=>{r(!0)};(0,f.y1)("c",C,{enableOnContentEditable:!1},[i]);let y=(0,g.sJ)(w.db);if(!y)return null;let{displayName:A}=y,E=(0,a.jsxs)(c.Z,{children:[(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(x.Z,{}),onClick:()=>v(),children:"Change name"},"0"),(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(_.Z,{}),onClick:()=>s(!0),children:"Authenticate"},"1"),Z.chatAvailable&&(0,a.jsx)(c.Z.Item,{icon:(0,a.jsx)(m.Z,{}),onClick:()=>C(),children:i?"Hide Chat":"Show Chat"},"3")]});return(0,a.jsxs)("div",{id:"user-menu",className:"".concat(N().root),children:[(0,a.jsx)(d.Z,{overlay:E,trigger:["click"],children:(0,a.jsx)(h.Z,{type:"primary",icon:(0,a.jsx)(j.Z,{style:{marginRight:".5rem"}}),children:(0,a.jsxs)(u.Z,{children:[t||A,(0,a.jsx)(p.Z,{})]})})}),(0,a.jsx)(k,{title:"Change Chat Display Name",open:n,handleCancel:()=>r(!1),children:(0,a.jsx)(I,{})}),(0,a.jsx)(k,{title:"Authenticate",open:l,handleCancel:()=>s(!1),children:(0,a.jsx)(H,{})})]})};var A=n(50738),E=n(31764),J=n.n(E);let{Header:D}=r.Z,U=e=>{let{name:t="Your stream title",chatAvailable:n,chatDisabled:r}=e;return(0,a.jsxs)(D,{className:o()(["".concat(J().header)],"global-header"),children:[(0,a.jsxs)("div",{className:"".concat(J().logo),children:[(0,a.jsx)("div",{id:"header-logo",className:J().logoImage,children:(0,a.jsx)(A.C,{variant:"contrast"})}),(0,a.jsx)("h1",{className:J().title,id:"global-header-text",children:t})]}),n&&!r&&(0,a.jsx)(y,{}),!n&&!r&&(0,a.jsx)(l.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,a.jsx)(s.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})};var M=U},34986:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var a=n(85893),r=n(4480),l=n(94977),s=n(77466),i=n(37527);function o(){let e=(0,r.sJ)(s.db),t=(0,r.sJ)(s.pH),n=(0,r.sJ)(s.g1),{name:o,chatDisabled:c}=n;if(!e)return null;let{id:d,displayName:h,isModerator:u}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)(s.me,{}),(0,a.jsx)(i.Z,{name:o,chatAvailable:!0,chatDisabled:c}),(0,a.jsx)(l.ChatContainer,{messages:t,usernameToHighlight:h,chatUserId:d,isModerator:u,showInput:!0,height:"80vh"})]})}},79252:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},31764:function(e){e.exports={header:"Header_header__U4Ro1",logoImage:"Header_logoImage__beIL2",logo:"Header_logo__HLZ6Z",title:"Header_title__FIts2"}}},function(e){e.O(0,[1272,8700,3903,6395,3729,4388,7466,4977,9774,2888,179],function(){return e(e.s=30672)}),_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

View File

@ -1 +0,0 @@
.appearance_colorPicker__UvGLE{width:100%;height:50px}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.appearance_colorPicker__9g3hl{width:100%;height:50px}

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

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