Bundle embedded web app

This commit is contained in:
Owncast
2023-04-24 18:02:42 +00:00
parent 44483a45d3
commit 09d3295b51
75 changed files with 84 additions and 83 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
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1774],{93645:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function i(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(19013),i=n(13882);function u(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(59910),i=n(13882),u=n(93645);function l(e,t,n){(0,i.Z)(2,arguments);var l=(0,r.Z)(e,t)/1e3;return(0,u.u)(null==n?void 0:n.roundingMethod)(l)}},23426:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/logs",function(){return n(97525)}])},86177:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(85893);n(67294);var i=n(85818),u=n(20550),l=n(54398),o=n(53731),a=n(58091);let{Title:c}=i.Z;function s(e,t){let n="black";return"warning"===t.level?n="orange":"error"===t.level&&(n="red"),(0,r.jsx)(u.Z,{color:n,children:e})}function d(e){return(0,r.jsx)(o.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)(c,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:[{title:"Level",dataIndex:"level",key:"level",filters:[{text:"Info",value:"info"},{text:"Warning",value:"warning"},{text:"Error",value:"Error"}],onFilter:(e,t)=>0===t.level.indexOf(e),render:s},{title:"Timestamp",dataIndex:"time",key:"time",render:e=>{let t=new Date(e);return(0,a.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}},97525:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(85893),i=n(67294),u=n(86177),l=n(81453),o=n(34261);function a(){let[e,t]=(0,i.useState)([]),n=async()=>{try{let e=await (0,l.rQ)(l.sG);t(e)}catch(e){console.log("==== error",e)}};return(0,i.useEffect)(()=>{let e=null;return setInterval(n,5e3),n(),e=setInterval(n,5e3),()=>{clearInterval(e)}},[]),(0,r.jsx)(u.o,{logs:e,pageSize:20})}a.getLayout=function(e){return(0,r.jsx)(o.l,{page:e})}}},function(e){e.O(0,[173,5874,2184,2301,4931,5402,5257,1664,8014,5818,9915,4041,3698,3013,4398,7940,3731,4444,4261,9774,2888,179],function(){return e(e.s=23426)}),_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
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955,7533],{30672:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readwrite",function(){return s(73411)}])},14940:function(e,a,s){"use strict";s.d(a,{h:function(){return u}});var i=s(85893),t=s(24093),n=s(94199),l=s(94184),r=s.n(l),o=s(5152),c=s.n(o),d=s(41664),h=s.n(d),_=s(91935),f=s.n(_);let p=c()(()=>Promise.all([s.e(4931),s.e(3013),s.e(9266)]).then(s.bind(s,79266)).then(e=>e.UserDropdown),{loadableGenerated:{webpack:()=>[79266]},ssr:!1}),u=e=>{let{name:a,chatAvailable:s,chatDisabled:l,online:o}=e;return(0,i.jsxs)("header",{className:r()(["".concat(f().header)],"global-header"),children:[o?(0,i.jsx)(h(),{href:"#player",className:f().skipLink,children:"Skip to player"}):(0,i.jsx)(h(),{href:"#offline-message",className:f().skipLink,children:"Skip to offline message"}),(0,i.jsx)(h(),{href:"#skip-to-content",className:f().skipLink,children:"Skip to page content"}),(0,i.jsx)(h(),{href:"#footer",className:f().skipLink,children:"Skip to footer"}),(0,i.jsxs)("div",{className:f().logo,children:[(0,i.jsx)("div",{id:"header-logo",className:f().logoImage,children:(0,i.jsx)(t.C,{src:"/logo",size:"large",shape:"circle",className:f().avatar})}),(0,i.jsx)("h1",{className:f().title,id:"global-header-text",children:a})]}),s&&!l&&(0,i.jsx)(p,{}),!s&&!l&&(0,i.jsx)(n.Z,{overlayClassName:f().toolTip,title:"Chat will be available when the stream is live.",placement:"left",children:(0,i.jsx)("span",{className:f().chatOfflineText,children:"Chat is offline"})})]})};a.Z=u},73411:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return o}});var i=s(85893),t=s(4480),n=s(92093),l=s(44974),r=s(14940);function o(){let e=(0,t.sJ)(l.db),a=(0,t.sJ)(l.pH),s=(0,t.sJ)(l.g1),o=(0,t.sJ)(l.RI),c=(0,t.sJ)(l.Q),d=(0,t.sJ)(l.di),{name:h,chatDisabled:_}=s,{videoAvailable:f}=c,{streamTitle:p,online:u}=o;return(0,i.jsxs)("div",{children:[(0,i.jsx)(l.me,{}),(0,i.jsx)(r.Z,{name:u&&p||h,chatAvailable:!0,chatDisabled:_,online:f}),e&&(0,i.jsx)("div",{id:"chat-container",children:(0,i.jsx)(n.ChatContainer,{messages:a,usernameToHighlight:e.displayName,chatUserId:e.id,isModerator:e.isModerator,showInput:!0,height:"80vh",chatAvailable:d})})]})}},91935:function(e){e.exports={header:"Header_header__U4Ro1",logoImage:"Header_logoImage__beIL2",logo:"Header_logo__HLZ6Z",title:"Header_title__FIts2",skipLink:"Header_skipLink__9Pusb",offlineTag:"Header_offlineTag__0p3lk",avatar:"Header_avatar__bL8Jw",chatOfflineText:"Header_chatOfflineText__yYfMS",toolTip:"Header_toolTip__e3Ht7"}}},function(e){e.O(0,[1272,8700,2184,2301,1664,2332,8131,5663,6959,2093,9774,2888,179],function(){return e(e.s=30672)}),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long