0

Bundle embedded web app

This commit is contained in:
Owncast 2023-07-09 21:12:13 +00:00
parent 2d72935564
commit c3e988f1a1
70 changed files with 88 additions and 88 deletions

4
static/web/404.html vendored

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

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5111],{85111:function(t,e,n){"use strict";n.r(e),n.d(e,{NotifyReminderPopup:function(){return l}});var o=n(85893),r=n(55241),i=n(67294),s=n(5152),p=n.n(s),u=n(40862),c=n.n(u);let a=p()(()=>n.e(753).then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),l=t=>{let{children:e,open:n,notificationClicked:s,notificationClosed:p}=t,[u,l]=(0,i.useState)(n),[d,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(n)},[n]),(0,i.useEffect)(()=>{b(!0)},[]);let f=(0,o.jsx)("div",{className:c().title,children:"Stay updated!"}),m=t=>{t.stopPropagation(),s()},x=(0,o.jsxs)("div",{onClick:m,onKeyDown:m,role:"menuitem",tabIndex:0,children:[(0,o.jsx)("button",{type:"button",className:c().closebutton,onClick:t=>{t.stopPropagation(),l(!1),p()},children:(0,o.jsx)(a,{})}),(0,o.jsxs)("div",{className:c().contentbutton,children:["Click and never miss",(0,o.jsx)("br",{}),"future streams!"]})]});return d&&(0,o.jsx)(r.Z,{placement:"topRight",defaultOpen:u,open:u,destroyTooltipOnHide:!0,title:f,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"14px"},color:c().popupBackgroundColor,children:(0,o.jsx)("div",{children:e})})}},40862:function(t){t.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]);

View File

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5111],{85111:function(e,t,o){"use strict";o.r(t),o.d(t,{NotifyReminderPopup:function(){return a}});var n=o(85893),r=o(55241),i=o(67294),s=o(5152),p=o.n(s),u=o(40862),c=o.n(u);let l=p()(()=>Promise.resolve().then(o.t.bind(o,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),a=e=>{let{children:t,open:o,notificationClicked:s,notificationClosed:p}=e,[u,a]=(0,i.useState)(o),[d,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{a(o)},[o]),(0,i.useEffect)(()=>{b(!0)},[]);let m=(0,n.jsx)("div",{className:c().title,children:"Stay updated!"}),f=e=>{e.stopPropagation(),s()},x=(0,n.jsxs)("div",{onClick:f,onKeyDown:f,role:"menuitem",tabIndex:0,children:[(0,n.jsx)("button",{type:"button",className:c().closebutton,onClick:e=>{e.stopPropagation(),a(!1),p()},children:(0,n.jsx)(l,{})}),(0,n.jsxs)("div",{className:c().contentbutton,children:["Click and never miss",(0,n.jsx)("br",{}),"future streams!"]})]});return d&&(0,n.jsx)(r.Z,{placement:"topRight",defaultOpen:u,open:u,destroyTooltipOnHide:!0,title:m,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"14px"},color:c().popupBackgroundColor,children:(0,n.jsx)("div",{children:t})})}},40862:function(e){e.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]);

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{79203:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},40753:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(83482))&&a.__esModule?a:{default:a};t.default=n,e.exports=n},83482:function(e,t,r){var a=r(64836),n=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=a(r(42122)),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if("default"!==f&&Object.prototype.hasOwnProperty.call(e,f)){var l=u?Object.getOwnPropertyDescriptor(e,f):null;l&&(l.get||l.set)?Object.defineProperty(a,f,l):a[f]=e[f]}return a.default=e,r&&r.set(e,a),a}(r(67294)),l=a(r(79203)),o=a(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var i=function(e,t){return f.createElement(o.default,(0,u.default)((0,u.default)({},e),{},{ref:t,icon:l.default}))};i.displayName="CloseOutlined";var d=f.forwardRef(i);t.default=d}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(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(16490)}])},16490:function(e,t,n){"use strict";n.r(t);var i=n(85893),o=n(59652),s=n(85818),a=n(71577),l=n(71230),r=n(15746),c=n(94199),u=n(24093),d=n(28465),m=n(67294),h=n(5152),j=n.n(h),f=n(57520),p=n(81453),g=n(80693),y=n(91332),w=n(24044),x=n(34261);let{Meta:k}=o.default,b=j()(()=>Promise.resolve().then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),{Title:E,Paragraph:_}=s.default,T=()=>{let[e,t]=(0,m.useState)([]),[n,s]=(0,m.useState)(!1),[h,j]=(0,m.useState)(null),[x,T]=(0,m.useState)(null),v=null,B=()=>{j(null),clearTimeout(v),v=null};async function Z(){s(!0);try{let e=await (0,p.rQ)("/api/emoji");t(e)}catch(e){console.error("error fetching emojis",e)}s(!1)}async function N(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),s(!0),j((0,y.kg)(y.Jk,"Deleting emoji..."));try{let e=await (0,p.rQ)(p.Ff,{method:"POST",data:{name:t}});if(e instanceof Error)throw e;j((0,y.kg)(y.zv,"Emoji deleted")),v=setTimeout(B,w.sI)}catch(e){j((0,y.kg)(y.Un,"".concat(e))),s(!1),v=setTimeout(B,w.sI)}Z()}async function P(){s(!0);try{j((0,y.kg)(y.Jk,"Converting emoji..."));let e=await new Promise((e,t)=>{if(!g.dr.includes(x.type)){let e="File type is not supported: ".concat(x.type);return t(e)}(0,g.y3)(x,t=>e({name:x.name,url:t}))});j((0,y.kg)(y.Jk,"Uploading emoji..."));let t=await (0,p.rQ)(p.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(t instanceof Error)throw t;j((0,y.kg)(y.zv,"Emoji uploaded successfully!")),Z()}catch(e){j((0,y.kg)(y.Un,"".concat(e)))}v=setTimeout(B,w.sI),s(!1)}return(0,m.useEffect)(()=>{Z()},[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(E,{children:"Emojis"}),(0,i.jsx)(_,{children:"Here you can upload new custom emojis for usage in the chat. When uploading a new emoji, the filename without extension will be used as emoji name. Additionally, emoji names are case-insensitive. For best results, ensure all emoji have unique names."}),(0,i.jsx)("br",{}),(0,i.jsx)(d.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:g.dr.join(","),beforeUpload:T,customRequest:P,disabled:n,children:(0,i.jsx)(a.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(f.Z,{status:h}),(0,i.jsx)("br",{}),(0,i.jsx)(l.Z,{children:e.map(e=>(0,i.jsx)(r.Z,{style:{padding:"10px"},children:(0,i.jsx)(o.default,{style:{width:120,marginTop:16},actions:[],children:(0,i.jsx)(k,{description:[(0,i.jsxs)("div",{style:{display:"flex",justifyItems:"center",alignItems:"center",flexDirection:"column",gap:"20px"},children:[(0,i.jsx)(c.Z,{title:e.name,children:(0,i.jsx)(u.C,{style:{height:50,width:50},src:e.url})}),(0,i.jsx)(a.Z,{size:"small",type:"ghost",title:"Delete emoji",style:{position:"absolute",right:0,top:0,height:24,width:24,border:"none",color:"gray"},onClick:()=>N(e.url),icon:(0,i.jsx)(b,{})})]})]})})},e.name))}),(0,i.jsx)("br",{})]})};T.getLayout=function(e){return(0,i.jsx)(x.l,{page:e})},t.default=T},80693:function(e,t,n){"use strict";n.d(t,{Z7:function(){return i},dr:function(){return o},kR:function(){return a},y3:function(){return s}});let i=2097152,o=["image/png","image/jpeg","image/gif"];function s(e,t){let n=new FileReader;n.addEventListener("load",()=>t(n.result)),n.readAsDataURL(e)}function a(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])}}},function(e){e.O(0,[2074,173,5874,7311,2414,4931,5402,6524,1664,5348,9915,4526,4537,2118,6356,6766,4261,9774,2888,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);
(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(16490)}])},16490:function(e,t,n){"use strict";n.r(t);var i=n(85893),o=n(59652),s=n(85818),a=n(71577),l=n(71230),r=n(15746),c=n(94199),u=n(24093),d=n(28465),m=n(67294),h=n(5152),j=n.n(h),f=n(57520),p=n(81453),g=n(80693),y=n(91332),w=n(24044),x=n(34261);let{Meta:k}=o.default,b=j()(()=>Promise.resolve().then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),{Title:E,Paragraph:_}=s.default,T=()=>{let[e,t]=(0,m.useState)([]),[n,s]=(0,m.useState)(!1),[h,j]=(0,m.useState)(null),[x,T]=(0,m.useState)(null),v=null,B=()=>{j(null),clearTimeout(v),v=null};async function Z(){s(!0);try{let e=await (0,p.rQ)("/api/emoji");t(e)}catch(e){console.error("error fetching emojis",e)}s(!1)}async function N(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),s(!0),j((0,y.kg)(y.Jk,"Deleting emoji..."));try{let e=await (0,p.rQ)(p.Ff,{method:"POST",data:{name:t}});if(e instanceof Error)throw e;j((0,y.kg)(y.zv,"Emoji deleted")),v=setTimeout(B,w.sI)}catch(e){j((0,y.kg)(y.Un,"".concat(e))),s(!1),v=setTimeout(B,w.sI)}Z()}async function P(){s(!0);try{j((0,y.kg)(y.Jk,"Converting emoji..."));let e=await new Promise((e,t)=>{if(!g.dr.includes(x.type)){let e="File type is not supported: ".concat(x.type);return t(e)}(0,g.y3)(x,t=>e({name:x.name,url:t}))});j((0,y.kg)(y.Jk,"Uploading emoji..."));let t=await (0,p.rQ)(p.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(t instanceof Error)throw t;j((0,y.kg)(y.zv,"Emoji uploaded successfully!")),Z()}catch(e){j((0,y.kg)(y.Un,"".concat(e)))}v=setTimeout(B,w.sI),s(!1)}return(0,m.useEffect)(()=>{Z()},[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(E,{children:"Emojis"}),(0,i.jsx)(_,{children:"Here you can upload new custom emojis for usage in the chat. When uploading a new emoji, the filename without extension will be used as emoji name. Additionally, emoji names are case-insensitive. For best results, ensure all emoji have unique names."}),(0,i.jsx)("br",{}),(0,i.jsx)(d.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:g.dr.join(","),beforeUpload:T,customRequest:P,disabled:n,children:(0,i.jsx)(a.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(f.Z,{status:h}),(0,i.jsx)("br",{}),(0,i.jsx)(l.Z,{children:e.map(e=>(0,i.jsx)(r.Z,{style:{padding:"10px"},children:(0,i.jsx)(o.default,{style:{width:120,marginTop:16},actions:[],children:(0,i.jsx)(k,{description:[(0,i.jsxs)("div",{style:{display:"flex",justifyItems:"center",alignItems:"center",flexDirection:"column",gap:"20px"},children:[(0,i.jsx)(c.Z,{title:e.name,children:(0,i.jsx)(u.C,{style:{height:50,width:50},src:e.url})}),(0,i.jsx)(a.Z,{size:"small",type:"ghost",title:"Delete emoji",style:{position:"absolute",right:0,top:0,height:24,width:24,border:"none",color:"gray"},onClick:()=>N(e.url),icon:(0,i.jsx)(b,{})})]})]})})},e.name))}),(0,i.jsx)("br",{})]})};T.getLayout=function(e){return(0,i.jsx)(x.l,{page:e})},t.default=T},80693:function(e,t,n){"use strict";n.d(t,{Z7:function(){return i},dr:function(){return o},kR:function(){return a},y3:function(){return s}});let i=2097152,o=["image/png","image/jpeg","image/gif"];function s(e,t){let n=new FileReader;n.addEventListener("load",()=>t(n.result)),n.readAsDataURL(e)}function a(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])}}},function(e){e.O(0,[2074,173,5874,7311,2414,4931,5402,6524,1664,5348,9915,4526,3492,6356,6766,4261,9774,2888,179],function(){return e(e.s=10887)}),_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

View File

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{15746:function(e,n,t){"use strict";var s=t(21584);n.Z=s.Z},71230:function(e,n,t){"use strict";var s=t(92820);n.Z=s.Z},88054:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return t(85466)}])},85466:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var s=t(85893),i=t(4480),r=t(4511),a=t(77177),u=t(44974),c=t(21756),o=t(69183);function d(){let e=(0,i.sJ)(u.db),n=(0,i.sJ)(u.pH),t=(0,i.sJ)(u.di);return(0,s.jsx)("div",{children:(0,s.jsxs)(r.SV,{fallbackRender:e=>{let{error:n}=e;return(0,s.jsx)(o.A,{componentName:"ReadWriteChatEmbed",message:n.message})},children:[(0,s.jsx)(u.me,{}),(0,s.jsx)(c.Q,{}),e&&(0,s.jsx)(a.ChatContainer,{messages:n,usernameToHighlight:e.displayName,chatUserId:e.id,isModerator:!1,showInput:!1,height:"100vh",chatAvailable:t})]})})}}},function(e){e.O(0,[7311,2414,5888,2715,2700,2466,9774,2888,179],function(){return e(e.s=88054)}),_N_E=e.O()}]);

View File

@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8399],{88054:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return s(85466)}])},85466:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return h}});var t=s(85893),a=s(4480),i=s(4511),r=s(77177),u=s(44974),d=s(21756),c=s(69183);function h(){let e=(0,a.sJ)(u.db),n=(0,a.sJ)(u.pH),s=(0,a.sJ)(u.di);return(0,t.jsx)("div",{children:(0,t.jsxs)(i.SV,{fallbackRender:e=>{let{error:n}=e;return(0,t.jsx)(c.A,{componentName:"ReadWriteChatEmbed",message:n.message})},children:[(0,t.jsx)(u.me,{}),(0,t.jsx)(d.Q,{}),e&&(0,t.jsx)(r.ChatContainer,{messages:n,usernameToHighlight:e.displayName,chatUserId:e.id,isModerator:!1,showInput:!1,height:"100vh",chatAvailable:s})]})})}}},function(e){e.O(0,[7311,2414,5888,1889,2700,2466,9774,2888,179],function(){return e(e.s=88054)}),_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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
static/web/sw.js vendored

File diff suppressed because one or more lines are too long