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
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,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
|
||||
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([[7095],{62433:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/messages",function(){return t(57641)}])},57641:function(e,s,t){"use strict";t.r(s),t.d(s,{OUTCOME_TIMEOUT:function(){return N},default:function(){return v}});var a=t(85893),i=t(67294),l=t(6880),n=t(71577),r=t(48213),c=t(89739),d=t(21640),o=t(94184),u=t.n(o),h=t(58091),m=t(64777),p=t(70241),g=t(94199),x=t(99611),w=t(90420);let y=e=>{let{isVisible:s,message:t,setMessage:l}=e;if(!t||(0,p.Qr)(t))return null;let r=null,[o,u]=(0,i.useState)(0),{id:h}=t||{},y=()=>{r=setTimeout(()=>{u(0)},3e3)};(0,i.useEffect)(()=>()=>{clearTimeout(r)});let f=async()=>{clearTimeout(r),u(0);let e=await (0,m.rQ)(m.hn,{auth:!0,method:"POST",data:{visible:!s,idArray:[h]}});e.success&&"changed"===e.message?(l({...t,visible:!s}),u(1)):(l({...t,visible:s}),u(-1)),y()},j=(0,a.jsx)(c.Z,{style:{color:"transparent"}});return o&&(j=o>0?(0,a.jsx)(c.Z,{style:{color:"var(--ant-success)"}}):(0,a.jsx)(d.Z,{style:{color:"var(--ant-warning)"}})),(0,a.jsxs)("div",{className:"toggle-switch ".concat(s?"":"hidden"),children:[(0,a.jsx)("span",{className:"outcome-icon",children:j}),(0,a.jsx)(g.Z,{title:"Click to ".concat(s?"hide":"show"," this message"),placement:"topRight",children:(0,a.jsx)(n.Z,{shape:"circle",size:"small",type:"text",icon:s?(0,a.jsx)(x.Z,{}):(0,a.jsx)(w.Z,{}),onClick:f})})]})};var f=t(19649);let{Title:j}=l.Z,N=3e3;function v(){let[e,s]=(0,i.useState)([]),[t,l]=(0,i.useState)([]),[o,g]=(0,i.useState)(!1),[x,w]=(0,i.useState)(null),[v,b]=(0,i.useState)(""),T=null,C=null,S=async()=>{try{let e=await (0,m.rQ)(m.WE,{auth:!0});(0,p.Qr)(e)?s([]):s(e)}catch(t){console.log("==== error",t)}};(0,i.useEffect)(()=>(S(),C=setInterval(()=>{S()},m.NE),()=>{clearTimeout(T),clearTimeout(C)}),[]);let Z=function(e){let s=e.reduce((e,s)=>{let t=s.user.id;return e.some(e=>e.text===t)||e.push({text:t,value:t}),e},[]);return s.sort((e,s)=>{let t=e.text.toUpperCase(),a=s.text.toUpperCase();return t<a?-1:t>a?1:0})}(e),_=t=>{let a=e.findIndex(e=>e.id===t.id);e.splice(a,1,t),s([...e])},k=()=>{T=setTimeout(()=>{w(null),b("")},N)},E=async i=>{g(!0);let n=await (0,m.rQ)(m.hn,{auth:!0,method:"POST",data:{visible:i,idArray:t}});if(n.success&&"changed"===n.message){w((0,a.jsx)(c.Z,{})),k();let r=[...e];t.map(s=>{let t=r.findIndex(e=>e.id===s),a={...e[t],visible:i};return r.splice(t,1,a),null}),s(r),l([])}else w((0,a.jsx)(d.Z,{})),k();g(!1)},I=()=>{b("show"),E(!0)},O=()=>{b("hide"),E(!1)},M=u()({"bulk-editor":!0,active:t.length});return(0,a.jsxs)("div",{className:"chat-messages",children:[(0,a.jsx)(j,{children:"Chat Messages"}),(0,a.jsx)("p",{children:"Manage the messages from viewers that show up on your stream."}),(0,a.jsxs)("div",{className:M,children:[(0,a.jsx)("span",{className:"label",children:"Check multiple messages to change their visibility to: "}),(0,a.jsx)(n.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"show"===v&&o,icon:"show"===v&&x,disabled:!t.length||v&&"show"!==v,onClick:I,children:"Show"}),(0,a.jsx)(n.Z,{type:"primary",size:"small",shape:"round",className:"button",loading:"hide"===v&&o,icon:"hide"===v&&x,disabled:!t.length||v&&"hide"!==v,onClick:O,children:"Hide"})]}),(0,a.jsx)(r.Z,{size:"small",className:"table-container",pagination:{defaultPageSize:100,showSizeChanger:!0},scroll:{y:540},rowClassName:e=>e.hiddenAt?"hidden":"",dataSource:e,columns:[{title:"Time",dataIndex:"timestamp",key:"timestamp",className:"timestamp-col",defaultSortOrder:"descend",render:e=>{let s=new Date(e);return(0,h.Z)(s,"PP pp")},sorter:(e,s)=>new Date(e.timestamp).getTime()-new Date(s.timestamp).getTime(),width:90},{title:"User",dataIndex:"user",key:"user",className:"name-col",filters:Z,onFilter:(e,s)=>s.user.id===e,sorter:(e,s)=>e.user.displayName.localeCompare(s.user.displayName),sortDirections:["ascend","descend"],ellipsis:!0,render:e=>{let{displayName:s}=e;return(0,a.jsx)(f.Z,{user:e,children:s})},width:110},{title:"Message",dataIndex:"body",key:"body",className:"message-col",width:320,render:e=>(0,a.jsx)("div",{className:"message-contents",dangerouslySetInnerHTML:{__html:e}})},{title:"",dataIndex:"hiddenAt",key:"hiddenAt",className:"toggle-col",filters:[{text:"Visible messages",value:!0},{text:"Hidden messages",value:!1}],onFilter:(e,s)=>s.visible===e,render:(e,s)=>(0,a.jsx)(y,{isVisible:!e,message:s,setMessage:_}),width:30}],rowKey:e=>e.id,rowSelection:{selectedRowKeys:t,onChange:e=>{l(e)}}})]})}}},function(e){e.O(0,[3662,6880,6386,3698,3013,8213,8091,5938,3403,2018,9774,2888,179],function(){return e(e.s=62433)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=messages-c537aff9be87cf72.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
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9522],{55583:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/chat/users",function(){return n(40528)}])},40528:function(e,t,n){"use strict";n.r(t),n.d(t,{FETCH_INTERVAL:function(){return A},default:function(){return N}});var a=n(85893),s=n(67294),r=n(90575),c=n(99519),d=n(64777),l=n(45840),o=n(69677),i=n(48213),u=n(68795),h=n(45938),m=n(19649),g=n(94538),p=n(70241);let y=e=>{let{data:t}=e,n=[{title:"Display Name",key:"username",render:e=>{let{user:t,connectedAt:n,messageCount:s,userAgent:r}=e;return(0,a.jsx)(m.Z,{user:t,connectionInfo:{connectedAt:n,messageCount:s,userAgent:r},children:(0,a.jsx)("span",{className:"display-name",children:t.displayName})})},sorter:(e,t)=>t.user.displayName.localeCompare(e.user.displayName),filterIcon:(0,a.jsx)(u.Z,{}),filterDropdown:e=>{let{setSelectedKeys:t,selectedKeys:n,confirm:s}=e;return(0,a.jsx)("div",{style:{padding:8},children:(0,a.jsx)(o.Z,{placeholder:"Search display names...",value:n[0],onChange:e=>{t(e.target.value?[e.target.value]:[]),s({closeDropdown:!1})}})})},onFilter:(e,t)=>t.user.displayName.includes(e),sortDirections:["descend","ascend"]},{title:"Messages sent",dataIndex:"messageCount",key:"messageCount",className:"number-col",width:"12%",sorter:(e,t)=>e.messageCount-t.messageCount,sortDirections:["descend","ascend"],render:e=>(0,a.jsx)("div",{style:{textAlign:"center"},children:e})},{title:"Connected Time",dataIndex:"connectedAt",key:"connectedAt",defaultSortOrder:"ascend",render:e=>(0,h.Z)(new Date(e)),sorter:(e,t)=>new Date(t.connectedAt).getTime()-new Date(e.connectedAt).getTime(),sortDirections:["descend","ascend"]},{title:"User Agent",dataIndex:"userAgent",key:"userAgent",render:e=>(0,p.AB)(e)},{title:"Location",dataIndex:"geo",key:"geo",render:e=>e?"".concat(e.regionName,", ").concat(e.countryCode):"-"},{title:"",key:"block",className:"actions-col",render:(e,t)=>(0,a.jsx)(g.e,{user:t.user,isEnabled:!t.user.disabledAt})}];return(0,a.jsx)(i.Z,{className:"table-container",pagination:{hideOnSinglePage:!0},columns:n,dataSource:t,size:"small",rowKey:"id"})};var x=n(71577),f=n(58091),w=n(84674);async function j(e){try{await (0,d.rQ)(d.RB,{data:{value:e},method:"POST",auth:!0})}catch(t){console.error(t)}}let k=e=>{let{data:t}=e;return(0,a.jsx)(i.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:[{title:"IP Address",dataIndex:"ipAddress",key:"ipAddress"},{title:"Reason",dataIndex:"notes",key:"notes"},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:e=>(0,f.Z)(new Date(e),"MMM d H:mma"),sorter:(e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime(),sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:(e,t)=>(0,a.jsx)(x.Z,{title:"Remove IP Address Ban",onClick:()=>j(t.ipAddress),icon:(0,a.jsx)(w.Z,{twoToneColor:"#ff4d4f"}),className:"block-user-button"})}],dataSource:t,size:"large",rowKey:"ipAddress"})},A=1e4;function N(){let e=(0,s.useContext)(c.aC),{online:t}=e||{},[n,o]=(0,s.useState)([]),[i,u]=(0,s.useState)([]),[h,m]=(0,s.useState)([]),[g,p]=(0,s.useState)([]),x=async()=>{try{let e=await (0,d.rQ)(d.qk);o(e)}catch(t){console.log("==== error",t)}try{let n=await (0,d.rQ)(d.Kp);m(n)}catch(a){console.log("==== error",a)}try{let s=await (0,d.rQ)(d.GC);p(s)}catch(r){console.error("error fetching moderators",r)}try{let c=await (0,d.rQ)(d.Bu);u(c)}catch(l){console.error("error fetching banned ips",l)}};(0,s.useEffect)(()=>{let e=null;return x(),e=setInterval(x,A),()=>{clearInterval(e)}},[t]);let f=t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{data:h}),(0,a.jsxs)("p",{className:"description",children:["Visit the"," ",(0,a.jsx)("a",{href:"https://owncast.online/docs/viewers/?source=admin",target:"_blank",rel:"noopener noreferrer",children:"documentation"})," ","to configure additional details about your viewers."]})]}):(0,a.jsx)("p",{className:"description",children:"When a stream is active and chat is enabled, connected chat clients will be displayed here."}),w=(0,a.jsxs)("span",{children:["Connected ",t?"(".concat(h.length,")"):"(offline)"]}),j=(0,a.jsxs)("span",{children:["Banned Users (",n.length,")"]}),N=(0,a.jsx)(l.K,{data:n}),b=(0,a.jsxs)("span",{children:["IP Bans (",i.length,")"]}),C=(0,a.jsx)(k,{data:i}),v=(0,a.jsxs)("span",{children:["Moderators (",g.length,")"]}),I=(0,a.jsx)(l.K,{data:g});return(0,a.jsx)(r.Z,{defaultActiveKey:"1",items:[{label:w,key:"1",children:f},{label:j,key:"2",children:N},{label:b,key:"3",children:C},{label:v,key:"4",children:I}]})}}},function(e){e.O(0,[3662,6880,6386,3698,3013,8213,8091,575,5938,3403,2018,9774,2888,179],function(){return e(e.s=55583)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=users-787b640c045a8a93.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
@@ -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 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
|
||||
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-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
@@ -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,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
|
||||
(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,3859,2838,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=help-c5c23d81aaa68442.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
@@ -0,0 +1,2 @@
|
||||
(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)}])},82536:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(85893);n(67294);var l=n(6880),i=n(20550),a=n(48213),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(82536),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,[6880,6386,3698,3013,8213,8091,9863,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=logs-912b612b5c822248.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
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return t(97644)}])},97644:function(e,n,t){"use strict";t.r(n);var a=t(85893),r=t(67294),l=t(21364),s=t(6880),d=t(48213),i=t(64777);let{Title:c}=s.Z,u=e=>{let n=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:n,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,n)=>(0,a.jsx)("a",{href:n.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},o=()=>{let[e,n]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),t=async()=>{try{let e=await (0,i.Kt)();n(e)}catch(t){console.log("==== error",t)}};return((0,r.useEffect)(()=>{t()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(u,{...e.assets})]}):null};n.default=o}},function(e){e.O(0,[6880,6386,3698,3013,8213,4114,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=upgrade-1af9534db7be1f90.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/chunks/pages/admin/upgrade-1af9534db7be1f90.js","mappings":"sFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,iBACA,WACA,OAAeC,EAAQ,MACvB,EACA,kHCDA,GAAM,CAAEC,MAAAA,CAAAA,CAAO,CAAGC,EAAAA,CAAUA,CAEtBC,EAAaC,GAAU,CAC3B,IAAMC,EAAOC,OAAOC,MAAM,CAACH,GAiB3B,MACE,GAAAI,EAAAC,GAAA,EAACC,EAAAA,CAAKA,CAAAA,CACJC,WAAYN,EACZO,QAlBY,CACd,CACEC,MAAO,OACPC,UAAW,OACXC,IAAK,OACLC,OAAQ,CAACC,EAAMC,IAAU,GAAAV,EAAAC,GAAA,EAACU,IAAAA,CAAEC,KAAMF,EAAMG,oBAAoB,UAAGJ,GACjE,EACA,CACEJ,MAAO,OACPC,UAAW,OACXC,IAAK,OACLC,OAAQC,GAAQ,GAAmCK,MAAA,CAAhC,CAACL,EAAO,KAAO,MAAMM,OAAO,CAAC,GAAG,MACrD,EACD,CAMGC,OAAQC,GAAUA,EAAOC,EAAE,CAC3BC,KAAK,QACLC,WAAY,IAGlB,EAEMC,EAAO,IAAM,CACjB,GAAM,CAACC,EAASC,EAAW,CAAGC,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,CACrCC,SAAU,GACVC,KAAM,GACNC,WAAY,IAAI,CAChBC,KAAM,GACNhC,OAAQ,EAAE,GAGNiC,EAAa,SAAY,CAC7B,GAAI,CACF,IAAMC,EAAS,MAAMC,CAAAA,EAAAA,EAAAA,EAAAA,IACrBR,EAAWO,EACb,CAAE,MAAOE,EAAO,CACdC,QAAQC,GAAG,CAAC,aAAcF,EAC5B,CACF,QAMA,CAJAG,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,IAAM,CACdN,GACF,EAAG,EAAE,EAEAP,GAKH,GAAAtB,EAAAoC,IAAA,EAACC,MAAAA,CAAIC,UAAU,yBACb,GAAAtC,EAAAC,GAAA,EAACR,EAAAA,CAAM8C,MAAO,WACZ,GAAAvC,EAAAC,GAAA,EAACU,IAAAA,CAAEC,KAAMU,EAAQG,QAAQ,UAAGH,EAAQI,IAAI,KAE1C,GAAA1B,EAAAC,GAAA,EAACR,EAAAA,CAAM8C,MAAO,WAAI,IAAIC,KAAKlB,EAAQK,UAAU,EAAEc,YAAY,KAC3D,GAAAzC,EAAAC,GAAA,EAACyC,EAAAA,CAAaA,CAAAA,UAAEpB,EAAQM,IAAI,GAC5B,GAAA5B,EAAAC,GAAA,EAAC0C,KAAAA,UAAG,cACJ,GAAA3C,EAAAC,GAAA,EAACN,EAAAA,CAAY,GAAG2B,EAAQ1B,MAAM,MAXzB,IAAI,CAefgD,CAAAA,EAAA,QAAevB","sources":["webpack://_N_E/?3d0f","webpack://_N_E/./pages/admin/upgrade.tsx","webpack://_N_E/<anon>"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/admin/upgrade\",\n function () {\n return require(\"private-next-pages/admin/upgrade.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/admin/upgrade\"])\n });\n }\n ","import React, { useState, useEffect } from 'react';\nimport ReactMarkdown from 'react-markdown';\nimport { Table, Typography } from 'antd';\nimport { getGithubRelease } from '../../utils/apis';\n\nconst { Title } = Typography;\n\nconst AssetTable = assets => {\n const data = Object.values(assets) as object[];\n\n const columns = [\n {\n title: 'Name',\n dataIndex: 'name',\n key: 'name',\n render: (text, entry) => <a href={entry.browser_download_url}>{text}</a>,\n },\n {\n title: 'Size',\n dataIndex: 'size',\n key: 'size',\n render: text => `${(text / 1024 / 1024).toFixed(2)} MB`,\n },\n ];\n\n return (\n <Table\n dataSource={data}\n columns={columns}\n rowKey={record => record.id}\n size=\"large\"\n pagination={false}\n />\n );\n};\n\nconst Logs = () => {\n const [release, setRelease] = useState({\n html_url: '',\n name: '',\n created_at: null,\n body: '',\n assets: [],\n });\n\n const getRelease = async () => {\n try {\n const result = await getGithubRelease();\n setRelease(result);\n } catch (error) {\n console.log('==== error', error);\n }\n };\n\n useEffect(() => {\n getRelease();\n }, []);\n\n if (!release) {\n return null;\n }\n\n return (\n <div className=\"upgrade-page\">\n <Title level={2}>\n <a href={release.html_url}>{release.name}</a>\n </Title>\n <Title level={5}>{new Date(release.created_at).toDateString()}</Title>\n <ReactMarkdown>{release.body}</ReactMarkdown>\n <h3>Downloads</h3>\n <AssetTable {...release.assets} />\n </div>\n );\n};\nexport default Logs;\n"],"names":["window","__NEXT_P","push","__webpack_require__","Title","Typography","AssetTable","assets","data","Object","values","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Table","dataSource","columns","title","dataIndex","key","render","text","entry","a","href","browser_download_url","concat","toFixed","rowKey","record","id","size","pagination","Logs","release","setRelease","useState","html_url","name","created_at","body","getRelease","result","getGithubRelease","error","console","log","useEffect","jsxs","div","className","level","Date","toDateString","ReactMarkdown","h3","__webpack_exports__"],"sourceRoot":""}
|
||||
@@ -1,2 +0,0 @@
|
||||
(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
|
||||
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