Bundle embedded web app
This commit is contained in:
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
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,2 +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
|
||||
(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,1577,6880,3174,2459,6386,3013,3698,8213,9915,4102,7916,6300,745,9774,2888,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=emojis-8e31a68c084071ef.js.map
|
||||
+1
-1
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
+2
-2
@@ -1,2 +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
|
||||
(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,1577,6880,9915,4690,745,2524,9774,2888,179],function(){return e(e.s=42011)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=config-chat-7ef4fcf5b970d3e7.js.map
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
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
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,2 +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
|
||||
(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,1577,3174,6754,575,5101,6155,1700,3859,1836,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=help-8bf2d730734fda4c.js.map
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,2 +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
|
||||
(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,1577,6880,3174,2459,6386,3013,3698,8213,211,9774,2888,179],function(){return n(n.s=70918)}),_N_E=n.O()}]);
|
||||
//# sourceMappingURL=upgrade-8c1c187f1da545c3.js.map
|
||||
+1
-1
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
Reference in New Issue
Block a user