Bundle embedded web app

This commit is contained in:
gabek
2023-01-10 09:04:12 +00:00
parent 85dc3bf21e
commit f14996db5c
926 changed files with 1013 additions and 716 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6559],{10887:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/emojis",function(){return t(14518)}])},14518:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return h}});var o=t(85893),r=t(48689),i=t(6880),s=t(26713),c=t(71577),a=t(48213),u=t(77916),l=t(67294),d=t(73615),m=t(64777),f=t(60956),j=t(41983),p=t(90745);const{Title:g,Paragraph:y}=i.Z;var h=()=>{const[e,n]=(0,l.useState)([]),[t,i]=(0,l.useState)(!1),[h,w]=(0,l.useState)(null),[k,x]=(0,l.useState)(null);let Z=null;const E=()=>{w(null),clearTimeout(Z),Z=null};async function v(){i(!0);try{const e=await(0,m.rQ)("/api/emoji");n(e)}catch(e){console.error("error fetching emojis",e)}i(!1)}(0,l.useEffect)((()=>{v()}),[]);const _=[{title:"",key:"delete",render:(e,n)=>(0,o.jsx)(s.Z,{size:"middle",children:(0,o.jsx)(c.Z,{onClick:()=>async function(e){const n="/".concat(e.split("/").slice(3).join("/"));console.log(n),i(!0),w((0,j.kg)(j.Jk,"Deleting emoji..."));try{const e=await(0,m.rQ)(m.Ff,{method:"POST",data:{name:n}});if(e instanceof Error)throw e;w((0,j.kg)(j.zv,"Emoji deleted")),Z=setTimeout(E,p.sI)}catch(t){w((0,j.kg)(j.Un,"".concat(t))),i(!1),Z=setTimeout(E,p.sI)}v()}(n.url),icon:(0,o.jsx)(r.Z,{})})})},{title:"Name",key:"name",dataIndex:"name"},{title:"Emoji",key:"url",render:(e,n)=>(0,o.jsx)("img",{src:n.url,alt:n.name,style:{maxWidth:"2vw"}})}];return(0,o.jsxs)("div",{children:[(0,o.jsx)(g,{children:"Emojis"}),(0,o.jsx)(y,{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,o.jsx)(a.Z,{rowKey:e=>e.url,dataSource:e,columns:_,pagination:!1}),(0,o.jsx)("br",{}),(0,o.jsx)(u.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:f.dr.join(","),beforeUpload:x,customRequest:async function(){i(!0);try{w((0,j.kg)(j.Jk,"Converting emoji..."));const e=await new Promise(((e,n)=>{if(!f.dr.includes(k.type)){return n("File type is not supported: ".concat(k.type))}(0,f.y3)(k,(n=>e({name:k.name,url:n})))}));w((0,j.kg)(j.Jk,"Uploading emoji..."));const n=await(0,m.rQ)(m.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(n instanceof Error)throw n;w((0,j.kg)(j.zv,"Emoji uploaded successfully!")),v()}catch(e){w((0,j.kg)(j.Un,"".concat(e)))}Z=setTimeout(E,p.sI),i(!1)},disabled:t,children:(0,o.jsx)(c.Z,{type:"primary",disabled:t,children:"Upload new emoji"})}),(0,o.jsx)(d.Z,{status:h})]})}},60956:function(e,n,t){"use strict";t.d(n,{Z7:function(){return o},dr:function(){return r},kR:function(){return s},y3:function(){return i}});const o=2097152,r=["image/png","image/jpeg","image/gif"];function i(e,n){const t=new FileReader;t.addEventListener("load",(()=>n(t.result))),t.readAsDataURL(e)}function s(e){const n=Math.floor(Math.log(e)/Math.log(1024)),t=1*Number((e/Math.pow(1024,n)).toFixed(2));return"".concat(t," ").concat(["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n])}},41983:function(e,n,t){"use strict";t.d(n,{Jk:function(){return l},Un:function(){return a},dG:function(){return m},kg:function(){return j},zv:function(){return d}});var o=t(85893),r=t(89739),i=t(21640),s=t(50888),c=t(28058);const a="error",u="invalid",l="proessing",d="success",m="warning",f={[d]:{type:d,icon:(0,o.jsx)(r.Z,{style:{color:"green"}}),message:"Success!"},[a]:{type:a,icon:(0,o.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[u]:{type:u,icon:(0,o.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[l]:{type:l,icon:(0,o.jsx)(s.Z,{}),message:""},[m]:{type:m,icon:(0,o.jsx)(c.Z,{style:{color:"#fc0"}}),message:""}};function j(e,n){return e&&f[e]?n?{type:e,icon:f[e].icon,message:n}:f[e]:null}}},function(e){e.O(0,[5596,481,173,1407,4083,6880,3174,1577,6386,3013,3698,2459,8213,9915,7910,7916,2571,745,9774,2888,179],(function(){return n=10887,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
//# sourceMappingURL=emojis-2a5cdd9e4ca6dff2.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
(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 w}});var o=n(85893),r=n(48689),i=n(6880),s=n(26713),a=n(71577),c=n(48213),u=n(77916),l=n(67294),d=n(73615),m=n(64777),f=n(60956),j=n(41983),p=n(90745);let{Title:g,Paragraph:y}=i.Z,h=()=>{let[e,t]=(0,l.useState)([]),[n,i]=(0,l.useState)(!1),[h,w]=(0,l.useState)(null),[k,x]=(0,l.useState)(null),Z=null,E=()=>{w(null),clearTimeout(Z),Z=null};async function _(){i(!0);try{let e=await (0,m.rQ)("/api/emoji");t(e)}catch(n){console.error("error fetching emojis",n)}i(!1)}async function v(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),i(!0),w((0,j.kg)(j.Jk,"Deleting emoji..."));try{let n=await (0,m.rQ)(m.Ff,{method:"POST",data:{name:t}});if(n instanceof Error)throw n;w((0,j.kg)(j.zv,"Emoji deleted")),Z=setTimeout(E,p.sI)}catch(o){w((0,j.kg)(j.Un,"".concat(o))),i(!1),Z=setTimeout(E,p.sI)}_()}async function T(){i(!0);try{w((0,j.kg)(j.Jk,"Converting emoji..."));let e=await new Promise((e,t)=>{if(!f.dr.includes(k.type)){let n="File type is not supported: ".concat(k.type);return t(n)}(0,f.y3)(k,t=>e({name:k.name,url:t}))});w((0,j.kg)(j.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;w((0,j.kg)(j.zv,"Emoji uploaded successfully!")),_()}catch(n){w((0,j.kg)(j.Un,"".concat(n)))}Z=setTimeout(E,p.sI),i(!1)}return(0,l.useEffect)(()=>{_()},[]),(0,o.jsxs)("div",{children:[(0,o.jsx)(g,{children:"Emojis"}),(0,o.jsx)(y,{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,o.jsx)(c.Z,{rowKey:e=>e.url,dataSource:e,columns:[{title:"",key:"delete",render:(e,t)=>(0,o.jsx)(s.Z,{size:"middle",children:(0,o.jsx)(a.Z,{onClick:()=>v(t.url),icon:(0,o.jsx)(r.Z,{})})})},{title:"Name",key:"name",dataIndex:"name"},{title:"Emoji",key:"url",render:(e,t)=>(0,o.jsx)("img",{src:t.url,alt:t.name,style:{maxWidth:"2vw"}})}],pagination:!1}),(0,o.jsx)("br",{}),(0,o.jsx)(u.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:f.dr.join(","),beforeUpload:x,customRequest:T,disabled:n,children:(0,o.jsx)(a.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,o.jsx)(d.Z,{status:h})]})};var w=h},60956:function(e,t,n){"use strict";n.d(t,{Z7:function(){return o},dr:function(){return r},kR:function(){return s},y3:function(){return i}});let o=2097152,r=["image/png","image/jpeg","image/gif"];function i(e,t){let n=new FileReader;n.addEventListener("load",()=>t(n.result)),n.readAsDataURL(e)}function s(e){let t=Math.floor(Math.log(e)/Math.log(1024)),n=1*Number((e/Math.pow(1024,t)).toFixed(2));return"".concat(n," ").concat(["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t])}},41983:function(e,t,n){"use strict";n.d(t,{Jk:function(){return l},Un:function(){return c},dG:function(){return m},kg:function(){return j},zv:function(){return d}});var o=n(85893),r=n(89739),i=n(21640),s=n(50888),a=n(28058);let c="error",u="invalid",l="proessing",d="success",m="warning",f={[d]:{type:d,icon:(0,o.jsx)(r.Z,{style:{color:"green"}}),message:"Success!"},[c]:{type:c,icon:(0,o.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[u]:{type:u,icon:(0,o.jsx)(i.Z,{style:{color:"red"}}),message:"An error occurred."},[l]:{type:l,icon:(0,o.jsx)(s.Z,{}),message:""},[m]:{type:m,icon:(0,o.jsx)(a.Z,{style:{color:"#fc0"}}),message:""}};function j(e,t){return e&&f[e]?t?{type:e,icon:f[e].icon,message:t}:f[e]:null}}},function(e){e.O(0,[5596,481,173,1407,4083,6880,3174,1577,6386,3013,3698,2459,8213,9915,7910,7916,2571,745,9774,2888,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);
//# sourceMappingURL=emojis-6954e7542187683a.js.map
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
@@ -1,2 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1591],{42011:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-chat",function(){return n(91616)}])},91616:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return f}});var a=n(85893),t=n(6880),i=n(67294),l=n(79139),d=n(46551),r=n(6979),u=n(48186),o=n(41983),c=n(90745),g=n(99519);function f(){const{Title:e}=t.Z,[s,n]=(0,i.useState)(null),[f,m]=(0,i.useState)(null),[h,b]=(0,i.useState)(null),U=(0,i.useContext)(g.aC),{serverConfig:v,setFieldInConfigState:N}=U||{},{chatDisabled:p,chatJoinMessagesEnabled:E,forbiddenUsernames:x,instanceDetails:j,suggestedUsernames:k,chatEstablishedUserMode:M}=v,{welcomeMessage:S}=j,_=e=>{let{fieldName:a,value:t}=e;n({...s,[a]:t})};function C(){m(null)}function w(){(0,c.Si)({apiPath:c.CJ,data:{value:s.forbiddenUsernames},onSuccess:()=>{N({fieldName:"forbiddenUsernames",value:s.forbiddenUsernames}),m((0,o.kg)(o.zv)),setTimeout(C,c.sI)},onError:e=>{m((0,o.kg)(o.Un,e)),setTimeout(C,c.sI)}})}function D(){b(null)}function I(){(0,c.Si)({apiPath:c.cf,data:{value:s.suggestedUsernames},onSuccess:()=>{N({fieldName:"suggestedUsernames",value:s.suggestedUsernames}),b((0,o.kg)(o.zv)),setTimeout(D,c.sI)},onError:e=>{m((0,o.kg)(o.Un,e)),setTimeout(D,c.sI)}})}return(0,i.useEffect)((()=>{n({chatDisabled:p,chatJoinMessagesEnabled:E,forbiddenUsernames:x,suggestedUsernames:k,welcomeMessage:S,chatEstablishedUserMode:M})}),[v]),s?(0,a.jsxs)("div",{className:"config-server-details-form",children:[(0,a.jsx)(e,{children:"Chat Settings"}),(0,a.jsxs)("div",{className:"form-module config-server-details-container",children:[(0,a.jsx)(r.Z,{fieldName:"chatDisabled",...c.yj,checked:!s.chatDisabled,reversed:!0,onChange:function(e){_({fieldName:"chatDisabled",value:!e})}}),(0,a.jsx)(r.Z,{fieldName:"chatJoinMessagesEnabled",...c.kB,checked:s.chatJoinMessagesEnabled,onChange:function(e){_({fieldName:"chatJoinMessagesEnabled",value:e})}}),(0,a.jsx)(r.Z,{fieldName:"establishedUserMode",...c.dj,checked:s.chatEstablishedUserMode,onChange:function(e){_({fieldName:"chatEstablishedUserMode",value:e})}}),(0,a.jsx)(d.$7,{fieldName:"welcomeMessage",...c.IX,type:l.Sk,value:s.welcomeMessage,initialValue:S,onChange:_}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(u.Y,{title:c.Dg.label,placeholder:c.Dg.placeholder,description:c.Dg.tip,values:s.forbiddenUsernames,handleDeleteIndex:function(e){s.forbiddenUsernames.splice(e,1),w()},handleCreateString:function(e){s.forbiddenUsernames.push(e),_({fieldName:"forbiddenUsernames",value:s.forbiddenUsernames}),w()},submitStatus:f}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(u.Y,{title:c.AN.label,placeholder:c.AN.placeholder,description:c.AN.tip,values:s.suggestedUsernames,handleDeleteIndex:function(e){s.suggestedUsernames.splice(e,1),I()},handleCreateString:function(e){s.suggestedUsernames.push(e),_({fieldName:"suggestedUsernames",value:s.suggestedUsernames}),I()},submitStatus:h,continuousStatusMessage:(T=s.suggestedUsernames.length,0===T?(0,o.kg)("success",c.AN.no_entries):T>0&&T<10?(0,o.kg)("warning",c.AN.min_not_reached):null)})]})]}):null;var T}}},function(e){e.O(0,[5596,481,173,1407,4083,6880,1577,9915,4690,745,2524,9774,2888,179],(function(){return s=42011,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
//# sourceMappingURL=config-chat-1507a325ed7a081b.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1591],{42011:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/config-chat",function(){return n(91616)}])},91616:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return g}});var a=n(85893),t=n(6880),i=n(67294),l=n(79139),d=n(46551),u=n(6979),r=n(48186),o=n(41983),c=n(90745),f=n(99519);function g(){var e;let{Title:s}=t.Z,[n,g]=(0,i.useState)(null),[m,h]=(0,i.useState)(null),[b,N]=(0,i.useState)(null),U=(0,i.useContext)(f.aC),{serverConfig:v,setFieldInConfigState:p}=U||{},{chatDisabled:x,chatJoinMessagesEnabled:j,forbiddenUsernames:k,instanceDetails:_,suggestedUsernames:S,chatEstablishedUserMode:E}=v,{welcomeMessage:C}=_,w=e=>{let{fieldName:s,value:a}=e;g({...n,[s]:a})};function M(){h(null)}function D(){(0,c.Si)({apiPath:c.CJ,data:{value:n.forbiddenUsernames},onSuccess:()=>{p({fieldName:"forbiddenUsernames",value:n.forbiddenUsernames}),h((0,o.kg)(o.zv)),setTimeout(M,c.sI)},onError:e=>{h((0,o.kg)(o.Un,e)),setTimeout(M,c.sI)}})}function I(){N(null)}function T(){(0,c.Si)({apiPath:c.cf,data:{value:n.suggestedUsernames},onSuccess:()=>{p({fieldName:"suggestedUsernames",value:n.suggestedUsernames}),N((0,o.kg)(o.zv)),setTimeout(I,c.sI)},onError:e=>{h((0,o.kg)(o.Un,e)),setTimeout(I,c.sI)}})}return((0,i.useEffect)(()=>{g({chatDisabled:x,chatJoinMessagesEnabled:j,forbiddenUsernames:k,suggestedUsernames:S,welcomeMessage:C,chatEstablishedUserMode:E})},[v]),n)?(0,a.jsxs)("div",{className:"config-server-details-form",children:[(0,a.jsx)(s,{children:"Chat Settings"}),(0,a.jsxs)("div",{className:"form-module config-server-details-container",children:[(0,a.jsx)(u.Z,{fieldName:"chatDisabled",...c.yj,checked:!n.chatDisabled,reversed:!0,onChange:function(e){w({fieldName:"chatDisabled",value:!e})}}),(0,a.jsx)(u.Z,{fieldName:"chatJoinMessagesEnabled",...c.kB,checked:n.chatJoinMessagesEnabled,onChange:function(e){w({fieldName:"chatJoinMessagesEnabled",value:e})}}),(0,a.jsx)(u.Z,{fieldName:"establishedUserMode",...c.dj,checked:n.chatEstablishedUserMode,onChange:function(e){w({fieldName:"chatEstablishedUserMode",value:e})}}),(0,a.jsx)(d.$7,{fieldName:"welcomeMessage",...c.IX,type:l.Sk,value:n.welcomeMessage,initialValue:C,onChange:w}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(r.Y,{title:c.Dg.label,placeholder:c.Dg.placeholder,description:c.Dg.tip,values:n.forbiddenUsernames,handleDeleteIndex:function(e){n.forbiddenUsernames.splice(e,1),D()},handleCreateString:function(e){n.forbiddenUsernames.push(e),w({fieldName:"forbiddenUsernames",value:n.forbiddenUsernames}),D()},submitStatus:m}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(r.Y,{title:c.AN.label,placeholder:c.AN.placeholder,description:c.AN.tip,values:n.suggestedUsernames,handleDeleteIndex:function(e){n.suggestedUsernames.splice(e,1),T()},handleCreateString:function(e){n.suggestedUsernames.push(e),w({fieldName:"suggestedUsernames",value:n.suggestedUsernames}),T()},submitStatus:b,continuousStatusMessage:0===(e=n.suggestedUsernames.length)?(0,o.kg)("success",c.AN.no_entries):e>0&&e<10?(0,o.kg)("warning",c.AN.min_not_reached):null})]})]}):null}}},function(e){e.O(0,[5596,481,173,1407,4083,6880,1577,9915,4690,745,2524,9774,2888,179],function(){return e(e.s=42011)}),_N_E=e.O()}]);
//# sourceMappingURL=config-chat-60e13e6ef692a286.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
(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),h=t(11700),x=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);t(67294);function y(){const e=[{icon:(0,r.jsx)(x.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)(h.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)(h.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)(h.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)(h.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)(h.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)))})]})}}},function(e){e.O(0,[5596,481,1407,4083,3174,1577,715,575,3859,6155,9927,6908,9774,2888,179],(function(){return n=54779,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
//# sourceMappingURL=help-013a7a3366538042.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
(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,[5596,481,1407,4083,3174,1577,715,575,3859,6155,9927,6908,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]);
//# sourceMappingURL=help-a2a3c6d445608413.js.map
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
@@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return e(97644)}])},97644:function(n,t,e){"use strict";e.r(t);var r=e(85893),c=e(67294),o=e(21364),a=e(6880),u=e(48213),s=e(64777);let{Title:i}=a.Z,l=n=>{let t=Object.values(n);return(0,r.jsx)(u.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(n,t)=>(0,r.jsx)("a",{href:t.browser_download_url,children:n})},{title:"Size",dataIndex:"size",key:"size",render:n=>"".concat((n/1024/1024).toFixed(2)," MB")}],rowKey:n=>n.id,size:"large",pagination:!1})},f=()=>{let[n,t]=(0,c.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),e=async()=>{try{let n=await (0,s.Kt)();t(n)}catch(e){console.log("==== error",e)}};return((0,c.useEffect)(()=>{e()},[]),n)?(0,r.jsxs)("div",{className:"upgrade-page",children:[(0,r.jsx)(i,{level:2,children:(0,r.jsx)("a",{href:n.html_url,children:n.name})}),(0,r.jsx)(i,{level:5,children:new Date(n.created_at).toDateString()}),(0,r.jsx)(o.D,{children:n.body}),(0,r.jsx)("h3",{children:"Downloads"}),(0,r.jsx)(l,{...n.assets})]}):null};t.default=f},64777:function(n,t,e){"use strict";e.d(t,{$i:function(){return G},$l:function(){return $},Bu:function(){return _},E8:function(){return z},Ff:function(){return I},GC:function(){return y},GR:function(){return Y},HP:function(){return P},IO:function(){return B},Kp:function(){return w},Kt:function(){return J},M_:function(){return S},N$:function(){return Q},NE:function(){return s},NM:function(){return p},Q_:function(){return i},Qc:function(){return x},RB:function(){return g},UJ:function(){return U},WB:function(){return a},WE:function(){return N},WQ:function(){return v},Wr:function(){return T},XA:function(){return M},Y9:function(){return C},a_:function(){return h},ao:function(){return f},bl:function(){return l},e_:function(){return O},hn:function(){return j},iG:function(){return D},iV:function(){return d},jr:function(){return b},kb:function(){return K},kg:function(){return F},ms:function(){return A},nx:function(){return k},op:function(){return X},qk:function(){return m},rQ:function(){return W},sG:function(){return E},um:function(){return R}});var r=e(34155);let c=r.env.NEXT_PUBLIC_ADMIN_USERNAME,o=r.env.NEXT_PUBLIC_ADMIN_STREAMKEY,a="/",u="".concat(a,"api/admin/"),s=15e3,i="".concat(u,"status"),l="".concat(u,"serverconfig"),f="".concat(u,"config"),d="".concat(u,"viewersOverTime"),h="".concat(u,"viewers"),w="".concat(u,"chat/clients"),m="".concat(u,"chat/users/disabled"),p="".concat(u,"chat/users/setenabled"),_="".concat(u,"chat/users/ipbans"),g="".concat(u,"chat/users/ipbans/remove"),b="".concat(u,"chat/users/setmoderator"),y="".concat(u,"chat/users/moderators"),k="".concat(u,"hardwarestats"),E="".concat(u,"logs"),v="".concat(u,"logs/warnings"),N="".concat(u,"chat/messages"),j="/api/admin/chat/messagevisibility",x="".concat(u,"emoji/upload"),I="".concat(u,"emoji/delete"),A="".concat(u,"accesstokens"),T="".concat(u,"accesstokens/delete"),B="".concat(u,"accesstokens/create"),M="".concat(u,"webhooks"),S="".concat(u,"webhooks/delete"),D="".concat(u,"webhooks/create"),G="".concat(a,"api/socialplatforms"),O="".concat(u,"federation/send"),P="".concat(u,"followers"),z="".concat(u,"followers/pending"),C="".concat(u,"followers/blocked"),K="".concat(u,"followers/approve"),X="".concat(u,"federation/actions"),Q="".concat(u,"metrics/video"),R="".concat(u,"config/streamkeys"),U="".concat(u,"yp/reset");async function W(n,t){let{data:e,method:r="GET",auth:a=!0}=t||{},u={method:r};if(e&&(u.body=JSON.stringify(e)),a&&c&&o){let s=btoa("".concat(c,":").concat(o));u.headers={Authorization:"Basic ".concat(s)},u.mode="cors",u.credentials="include"}try{let i=await fetch(n,u),l=await i.json();if(!i.ok){let f=l.message||"An error has occurred: ".concat(i.status);throw Error(f)}return l}catch(d){return console.error(d),d}}async function $(n,t){let e={method:"GET",auth:!1,...t};return W(n,e)}async function F(n){try{let t=await fetch(n,{referrerPolicy:"no-referrer",referrer:""});if(!t.ok){let e="An error has occured: ".concat(t.status);throw Error(e)}let r=await t.json();return r}catch(c){console.log(c)}return{}}async function J(){return F("https://api.github.com/repos/owncast/owncast/releases/latest")}let L=/^\d+(\.\d+){0,2}$/;async function Y(n){let t=await J(),e=t.tag_name;return("v"===e.substr(0,1)&&(e=e.substr(1)),!function(n,t){if(!n||!t||0===n.length||0===t.length)return!1;if(n===t)return!0;if(L.test(n)&&L.test(t)){let e=n.split(".");for(;e.length<3;)e.push("0");let r=t.split(".");for(;r.length<3;)r.push("0");for(let c=0;c<3;c++){let o=parseInt(e[c],10),a=parseInt(r[c],10);if(o!==a)return o>a}return!0}return n>=t}(n,e))?e:null}}},function(n){n.O(0,[5596,481,173,1407,4083,6880,3174,1577,6386,3013,3698,2459,8213,211,9774,2888,179],function(){return n(n.s=70918)}),_N_E=n.O()}]);
//# sourceMappingURL=upgrade-e351344de220901a.js.map
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