Bundle embedded web app

This commit is contained in:
Owncast
2025-10-13 23:35:30 +00:00
parent 383b80851b
commit 6ee4f74920
80 changed files with 65 additions and 64 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
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 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{10203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(57679)}])},64773:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(97685),i=n(67294);function s(){var e=i.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},23061:function(e,t,n){"use strict";var r=n(67294),i=n(64773),s=n(98947);t.Z=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)({}),n=(0,i.Z)();return(0,r.useEffect)(function(){var r=s.ZP.subscribe(function(r){t.current=r,e&&n()});return function(){return s.ZP.unsubscribe(r)}},[]),t.current}},57679:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(85893),i=n(67294),s=n(23657),o=n(27043),a=n(12642),c=n(11992),u=n(74040),l=n(25889);let{Title:f,Paragraph:d}=s.default;function h(){let[e,t]=(0,i.useState)([]),[n,s]=(0,i.useState)(0),[l,h]=(0,i.useState)(0),E=async()=>{try{let e="".concat(c.op,"?offset=").concat(50*l,"&limit=").concat(50),{results:n,total:r}=await (0,c.rQ)(e,{auth:!0});s(r),(0,u.Qr)(n)?t([]):t(n)}catch(e){console.log("==== error",e)}};(0,i.useEffect)(()=>{E()},[l]);let p=[{title:"Action",dataIndex:"type",key:"type",width:50,render:(e,t)=>{let n,i;switch(t.type){case"FEDIVERSE_ENGAGEMENT_REPOST":n="/img/repost.svg",i="Share";break;case"FEDIVERSE_ENGAGEMENT_LIKE":n="/img/like.svg",i="Like";break;case"FEDIVERSE_ENGAGEMENT_FOLLOW":n="/img/follow.svg",i="Follow";break;default:n=""}return(0,r.jsxs)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,r.jsx)("img",{src:n,width:"70%",alt:i,title:i}),(0,r.jsx)("div",{style:{fontSize:"0.7rem"},children:i})]})}},{title:"From",dataIndex:"actorIRI",key:"from",render:(e,t)=>(0,r.jsx)("a",{href:t.actorIRI,children:t.actorIRI})},{title:"When",dataIndex:"timestamp",key:"timestamp",render:(e,t)=>{let n=new Date(t.timestamp);return(0,a.WU)(n,"P pp")}}];return(0,r.jsxs)("div",{children:[(0,r.jsx)(f,{level:3,children:"Fediverse Actions"}),(0,r.jsx)(d,{children:"Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you."}),(0,r.jsx)(o.Z,{dataSource:e,columns:p,size:"small",rowKey:e=>e.iri,pagination:{pageSize:50,hideOnSinglePage:!0,showSizeChanger:!1,total:n},onChange:e=>{h(e.current)}})]})}h.getLayout=function(e){return(0,r.jsx)(l.l,{page:e})}}},function(e){e.O(0,[83,1287,8920,7786,443,9904,3657,2502,3093,7528,9532,449,7043,4065,2642,5889,2888,9774,179],function(){return e(e.s=10203)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{23426:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return e(8451)}])},8451:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return s}});var r=e(85893),u=e(67294),a=e(54495),l=e(11992),o=e(25889);function s(){let[n,t]=(0,u.useState)([]),e=async()=>{try{let n=await (0,l.rQ)(l.sG);t(n)}catch(n){console.log("==== error",n)}};return(0,u.useEffect)(()=>{let n=null;return setInterval(e,5e3),e(),n=setInterval(e,5e3),()=>{clearInterval(n)}},[]),(0,r.jsx)(a.o,{logs:n,initialPageSize:20})}s.getLayout=function(n){return(0,r.jsx)(o.l,{page:n})}}},function(n){n.O(0,[83,1287,8920,7786,443,9904,3657,2502,3093,7528,9532,449,7043,7039,4065,2642,3731,5889,3064,4468,2888,9774,179],function(){return n(n.s=23426)}),_N_E=n.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{23426:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return e(8451)}])},8451:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return s}});var r=e(85893),u=e(67294),a=e(54495),l=e(11992),o=e(25889);function s(){let[n,t]=(0,u.useState)([]),e=async()=>{try{let n=await (0,l.rQ)(l.sG);t(n)}catch(n){console.log("==== error",n)}};return(0,u.useEffect)(()=>{let n=null;return setInterval(e,5e3),e(),n=setInterval(e,5e3),()=>{clearInterval(n)}},[]),(0,r.jsx)(a.o,{logs:n,initialPageSize:20})}s.getLayout=function(n){return(0,r.jsx)(o.l,{page:n})}}},function(n){n.O(0,[83,1287,8920,7786,443,9904,3657,2502,3093,7039,7528,9532,449,7043,4065,2642,3731,1882,5889,4468,2888,9774,179],function(){return n(n.s=23426)}),_N_E=n.O()}]);
@@ -0,0 +1 @@
(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(26802)}])},26802:function(n,t,e){"use strict";e.r(t);var r=e(85893),c=e(67294),o=e(65891),a=e(23657),u=e(27043),s=e(11992),i=e(25889);let{Title:f}=a.default,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})},d=()=>{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(n){console.log("==== error",n)}};return((0,c.useEffect)(()=>{e()},[]),n)?(0,r.jsxs)("div",{className:"upgrade-page",children:[(0,r.jsx)(f,{level:2,children:(0,r.jsx)("a",{href:n.html_url,children:n.name})}),(0,r.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,r.jsx)(o.UG,{children:n.body}),(0,r.jsx)("h3",{children:"Downloads"}),(0,r.jsx)(l,{...n.assets})]}):null};d.getLayout=function(n){return(0,r.jsx)(i.l,{page:n})},t.default=d},11992:function(n,t,e){"use strict";e.d(t,{$i:function(){return P},$l:function(){return $},Bu:function(){return g},E8:function(){return D},Ff:function(){return T},GC:function(){return k},GR:function(){return Y},HP:function(){return C},IO:function(){return I},Kp:function(){return m},Kt:function(){return J},M_:function(){return S},N$:function(){return Q},NE:function(){return i},NM:function(){return p},Q_:function(){return f},Qc:function(){return A},RB:function(){return b},UJ:function(){return W},WB:function(){return u},WE:function(){return N},WQ:function(){return j},Wr:function(){return G},XA:function(){return M},Y9:function(){return K},a_:function(){return w},ao:function(){return d},bl:function(){return l},e_:function(){return z},hn:function(){return x},iG:function(){return O},iV:function(){return h},jr:function(){return y},kb:function(){return U},kg:function(){return F},ms:function(){return B},nx:function(){return E},op:function(){return X},qk:function(){return _},rQ:function(){return L},sG:function(){return v},um:function(){return R}});var r=e(34155);let c=e(71312),o=r.env.NEXT_PUBLIC_ADMIN_USERNAME,a=r.env.NEXT_PUBLIC_ADMIN_STREAMKEY,u="/",s="".concat(u,"api/admin/"),i=15e3,f="".concat(s,"status"),l="".concat(s,"serverconfig"),d="".concat(s,"config"),h="".concat(s,"viewersOverTime"),w="".concat(s,"viewers"),m="".concat(s,"chat/clients"),_="".concat(s,"chat/users/disabled"),p="".concat(s,"chat/users/setenabled"),g="".concat(s,"chat/users/ipbans"),b="".concat(s,"chat/users/ipbans/remove"),y="".concat(s,"chat/users/setmoderator"),k="".concat(s,"chat/users/moderators"),E="".concat(s,"hardwarestats"),v="".concat(s,"logs"),j="".concat(s,"logs/warnings"),N="".concat(s,"chat/messages"),x="/api/admin/chat/messagevisibility",A="".concat(s,"emoji/upload"),T="".concat(s,"emoji/delete"),B="".concat(s,"accesstokens"),G="".concat(s,"accesstokens/delete"),I="".concat(s,"accesstokens/create"),M="".concat(s,"webhooks"),S="".concat(s,"webhooks/delete"),O="".concat(s,"webhooks/create"),P="".concat(u,"api/socialplatforms"),z="".concat(s,"federation/send"),C="".concat(s,"followers"),D="".concat(s,"followers/pending"),K="".concat(s,"followers/blocked"),U="".concat(s,"followers/approve"),X="".concat(s,"federation/actions"),Q="".concat(s,"metrics/video"),R="".concat(s,"config/streamkeys"),W="".concat(s,"yp/reset");async function L(n,t){let{data:e,method:r="GET",auth:c=!0}=t||{},u={method:r};if(e&&(u.body=JSON.stringify(e)),c&&o&&a){let n=btoa("".concat(o,":").concat(a));u.headers={Authorization:"Basic ".concat(n)},u.mode="cors",u.credentials="include"}let s=await fetch(n,u),i=await s.json();if(!s.ok)throw Error(i.message||"An error has occurred: ".concat(s.status));return i}async function $(n,t){return L(n,{method:"GET",auth:!1,...t})}async function F(n){try{let t=await fetch(n,{referrerPolicy:"no-referrer",referrer:""});if(!t.ok){let n="An error has occured: ".concat(t.status);throw Error(n)}return await t.json()}catch(n){console.log(n)}return{}}async function J(){return F("https://api.github.com/repos/owncast/owncast/releases/latest")}async function Y(n){let t=(await J()).tag_name;return("v"===t.substr(0,1)&&(t=t.substr(1)),c(t,n))?t:null}}},function(n){n.O(0,[83,1287,8920,7786,443,9904,3657,2502,3093,7528,9532,449,7043,8322,5889,2888,9774,179],function(){return n(n.s=70918)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return n(26802)}])},26802:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(65891),s=n(23657),d=n(27043),u=n(11992),i=n(25889);let{Title:c}=s.default,o=e=>{let t=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsx)("a",{href:t.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})},_=()=>{let[e,t]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=async()=>{try{let e=await (0,u.Kt)();t(e)}catch(e){console.log("==== error",e)}};return((0,r.useEffect)(()=>{n()},[]),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.UG,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(i.l,{page:e})},t.default=_}},function(e){e.O(0,[83,1287,8920,7786,443,9904,3657,2502,3093,7528,9532,449,7043,8322,5889,2888,9774,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long