mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Bundle embedded web app
This commit is contained in:
parent
c2a0295a0c
commit
1f64f303ec
4
static/web/404.html
vendored
4
static/web/404.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/404/index.html
vendored
4
static/web/404/index.html
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/web/_next/static/chunks/pages/admin/chat/emojis-4827060bc802f23b.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/admin/chat/emojis-4827060bc802f23b.js
vendored
Normal file
@ -0,0 +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),r=n(71577),a=n(71230),l=n(15746),c=n(94199),u=n(24093),d=n(28465),m=n(67294),h=n(5152),p=n.n(h),f=n(57520),j=n(81453),g=n(80693),y=n(91332),x=n(24044),w=n(60378),k=n(34261);let{Meta:b}=o.Z,Z=p()(()=>Promise.resolve().then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),{Title:E,Paragraph:_}=s.Z,T=()=>{let[e,t]=(0,m.useState)([]),[n,s]=(0,m.useState)(!1),[h,p]=(0,m.useState)(null),[k,T]=(0,m.useState)(null),B=null,v=()=>{p(null),clearTimeout(B),B=null};async function N(){s(!0);try{let e=await (0,j.rQ)(w.ZL);t(e)}catch(e){console.error("error fetching emojis",e)}s(!1)}async function P(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),s(!0),p((0,y.kg)(y.Jk,"Deleting emoji..."));try{let e=await (0,j.rQ)(j.Ff,{method:"POST",data:{name:t}});if(e instanceof Error)throw e;p((0,y.kg)(y.zv,"Emoji deleted")),B=setTimeout(v,x.sI)}catch(e){p((0,y.kg)(y.Un,"".concat(e))),s(!1),B=setTimeout(v,x.sI)}N()}async function U(){s(!0);try{p((0,y.kg)(y.Jk,"Converting emoji..."));let e=await new Promise((e,t)=>{if(!g.dr.includes(k.type)){let e="File type is not supported: ".concat(k.type);return t(e)}(0,g.y3)(k,t=>e({name:k.name,url:t}))});p((0,y.kg)(y.Jk,"Uploading emoji..."));let t=await (0,j.rQ)(j.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(t instanceof Error)throw t;p((0,y.kg)(y.zv,"Emoji uploaded successfully!")),N()}catch(e){p((0,y.kg)(y.Un,"".concat(e)))}B=setTimeout(v,x.sI),s(!1)}return(0,m.useEffect)(()=>{N()},[]),(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 will be used as emoji name."}),(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:U,disabled:n,children:(0,i.jsx)(r.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(f.Z,{status:h}),(0,i.jsx)("br",{}),(0,i.jsx)(a.Z,{children:e.map(e=>(0,i.jsx)(l.Z,{style:{padding:"10px"},children:(0,i.jsx)(o.Z,{style:{width:120,marginTop:16},actions:[],children:(0,i.jsx)(b,{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)(r.Z,{size:"small",type:"ghost",title:"Delete emoji",style:{position:"absolute",right:0,top:0,height:24,width:24,border:"none",color:"gray"},onClick:()=>P(e.url),icon:(0,i.jsx)(Z,{})})]})]})})},e.name))}),(0,i.jsx)("br",{})]})};T.getLayout=function(e){return(0,i.jsx)(k.l,{page:e})},t.default=T},60378:function(e,t,n){"use strict";n.d(t,{ZL:function(){return i},bO:function(){return o}});let i="/api/emoji",o="320px"},80693:function(e,t,n){"use strict";n.d(t,{Z7:function(){return i},dr:function(){return o},kR:function(){return r},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 r(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,9151,2414,4931,5402,5257,1664,8014,5818,9915,4526,9961,2118,6356,6766,4261,9774,2888,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);
|
@ -1 +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(11779)}])},11779:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var i=n(85893),o=n(59652),s=n(85818),a=n(71577),r=n(71230),l=n(15746),c=n(94199),u=n(24093),d=n(28465),m=n(67294),h=n(5152),p=n.n(h),j=n(57520),f=n(81453),g=n(80693),y=n(91332),w=n(24044),x=n(34261);let{Meta:k}=o.Z,b=p()(()=>Promise.resolve().then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),{Title:E,Paragraph:Z}=s.Z,_=()=>{let[e,t]=(0,m.useState)([]),[n,s]=(0,m.useState)(!1),[h,p]=(0,m.useState)(null),[x,_]=(0,m.useState)(null),T=null,v=()=>{p(null),clearTimeout(T),T=null};async function B(){s(!0);try{let e=await (0,f.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),p((0,y.kg)(y.Jk,"Deleting emoji..."));try{let e=await (0,f.rQ)(f.Ff,{method:"POST",data:{name:t}});if(e instanceof Error)throw e;p((0,y.kg)(y.zv,"Emoji deleted")),T=setTimeout(v,w.sI)}catch(e){p((0,y.kg)(y.Un,"".concat(e))),s(!1),T=setTimeout(v,w.sI)}B()}async function P(){s(!0);try{p((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}))});p((0,y.kg)(y.Jk,"Uploading emoji..."));let t=await (0,f.rQ)(f.Qc,{method:"POST",data:{name:e.name,data:e.url}});if(t instanceof Error)throw t;p((0,y.kg)(y.zv,"Emoji uploaded successfully!")),B()}catch(e){p((0,y.kg)(y.Un,"".concat(e)))}T=setTimeout(v,w.sI),s(!1)}return(0,m.useEffect)(()=>{B()},[]),(0,i.jsxs)("div",{children:[(0,i.jsx)(E,{children:"Emojis"}),(0,i.jsx)(Z,{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,i.jsx)("br",{}),(0,i.jsx)(d.Z,{name:"emoji",listType:"picture",className:"emoji-uploader",showUploadList:!1,accept:g.dr.join(","),beforeUpload:_,customRequest:P,disabled:n,children:(0,i.jsx)(a.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(j.Z,{status:h}),(0,i.jsx)("br",{}),(0,i.jsx)(r.Z,{children:e.map(e=>(0,i.jsx)(l.Z,{style:{padding:"10px"},children:(0,i.jsx)(o.Z,{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",{})]})};_.getLayout=function(e){return(0,i.jsx)(x.l,{page:e})};var 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,9151,2414,4931,5402,5257,1664,8014,5818,9915,4526,9961,2118,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
1
static/web/_next/static/chunks/pages/index-f4b29ab4d9f65c12.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/index-f4b29ab4d9f65c12.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/web/_next/static/css/0a6b5af37bb733fa.css
vendored
Normal file
1
static/web/_next/static/css/0a6b5af37bb733fa.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:var(--player-container-height);aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:var(--player-container-height)}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:var(--player-container-height);max-height:var(--player-container-height)}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_embedded__kZJv7{height:100vh;max-height:unset}
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center;align-items:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;margin:5vh auto;padding:2.4em}@media only screen and (max-width:768px){.OfflineBanner_innerContainer__zTm13{font-size:1.2rem;padding:1em;margin:1rem .2rem}}.OfflineBanner_bodyText__nNNy0{line-height:2rem;font-size:1.2rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:2rem;font-size:.8rem;opacity:.7;font-family:var(--theme-text-body-font-family);font-weight:300}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:6px}.OfflineBanner_header__Vu20o{font-family:var(--theme-text-display-font-family);font-weight:600;font-size:1.4rem}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-video-status-bar-foreground);background-color:var(--theme-color-components-video-status-bar-background);font-family:var(--theme-text-display-font-family);font-size:11px;font-weight:400}.Statusbar_onlineMessage__66r5C{letter-spacing:.5px}.Statusbar_viewerCount__S6_dZ{vertical-align:middle}.Statusbar_viewerIcon__yAOw1{display:inline-block;margin-right:.5rem}.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:400px;max-height:400px}}@media only screen and (max-width:481px){.OwncastPlayer_container__YfgRy{height:250px;max-height:250px}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_embedded__kZJv7{height:100vh;max-height:unset}.VideoEmbed_onlineContainer__AkPYx{height:96vh;background-color:var(--theme-color-components-video-status-bar-background)}@media only screen and (max-width:768px){.VideoEmbed_onlineContainer__AkPYx{height:100vh}}
|
File diff suppressed because one or more lines are too long
1
static/web/_next/static/css/79d91b75b235e802.css
vendored
Normal file
1
static/web/_next/static/css/79d91b75b235e802.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
static/web/_next/static/css/8c4927e8749106c9.css
vendored
Normal file
1
static/web/_next/static/css/8c4927e8749106c9.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center;align-items:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;margin:5vh auto;padding:2.4em}@media only screen and (max-width:768px){.OfflineBanner_innerContainer__zTm13{font-size:1.2rem;padding:1em;margin:1rem .2rem}}.OfflineBanner_bodyText__nNNy0{line-height:2rem;font-size:1.2rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:2rem;font-size:.8rem;opacity:.7;font-family:var(--theme-text-body-font-family);font-weight:300}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:6px}.OfflineBanner_header__Vu20o{font-family:var(--theme-text-display-font-family);font-weight:600;font-size:1.4rem}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;justify-content:space-between;height:var(--status-bar-height);width:100%;padding:var(--content-padding);color:var(--theme-color-components-video-status-bar-foreground);background-color:var(--theme-color-components-video-status-bar-background);font-family:var(--theme-text-display-font-family);font-size:11px;font-weight:400}.Statusbar_onlineMessage__66r5C{letter-spacing:.5px}.Statusbar_viewerCount__S6_dZ{vertical-align:middle}.Statusbar_viewerIcon__yAOw1{display:inline-block;margin-right:.5rem}.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:var(--player-container-height);aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:var(--player-container-height)}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:var(--player-container-height);max-height:var(--player-container-height)}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_embedded__kZJv7{height:100vh;max-height:unset}.VideoEmbed_onlineContainer__AkPYx{height:96vh;background-color:var(--theme-color-components-video-status-bar-background)}@media only screen and (max-width:768px){.VideoEmbed_onlineContainer__AkPYx{height:100vh}}
|
@ -1 +0,0 @@
|
||||
.VideoJS_player__GT8FN{width:100%}.VideoPoster_poster__RDkSk{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__DAj_o{background-color:#000}.OwncastPlayer_container__YfgRy{display:grid;width:100%;justify-items:center;height:75vh;aspect-ratio:16/9}@media(max-width:1200px){.OwncastPlayer_container__YfgRy{height:100%;max-height:75vh}}@media only screen and (max-width:768px){.OwncastPlayer_container__YfgRy{height:400px;max-height:400px}}@media only screen and (max-width:481px){.OwncastPlayer_container__YfgRy{height:250px;max-height:250px}}.OwncastPlayer_container__YfgRy .OwncastPlayer_player__R7XKJ,.OwncastPlayer_container__YfgRy .OwncastPlayer_poster__8RqUC{width:100%;grid-column:1;grid-row:1}.OwncastPlayer_embedded__kZJv7{height:100vh;max-height:unset}
|
4
static/web/admin/access-tokens/index.html
vendored
4
static/web/admin/access-tokens/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/actions/index.html
vendored
4
static/web/admin/actions/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/chat/emojis/index.html
vendored
4
static/web/admin/chat/emojis/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/chat/messages/index.html
vendored
4
static/web/admin/chat/messages/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/chat/users/index.html
vendored
4
static/web/admin/chat/users/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/config-chat/index.html
vendored
4
static/web/admin/config-chat/index.html
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
static/web/admin/config-notify/index.html
vendored
4
static/web/admin/config-notify/index.html
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
static/web/admin/config-video/index.html
vendored
4
static/web/admin/config-video/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/config/general/index.html
vendored
4
static/web/admin/config/general/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/config/server/index.html
vendored
4
static/web/admin/config/server/index.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
4
static/web/admin/hardware-info/index.html
vendored
4
static/web/admin/hardware-info/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/help/index.html
vendored
4
static/web/admin/help/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/index.html
vendored
4
static/web/admin/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/logs/index.html
vendored
4
static/web/admin/logs/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/stream-health/index.html
vendored
4
static/web/admin/stream-health/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/upgrade/index.html
vendored
4
static/web/admin/upgrade/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/viewer-info/index.html
vendored
4
static/web/admin/viewer-info/index.html
vendored
File diff suppressed because one or more lines are too long
4
static/web/admin/webhooks/index.html
vendored
4
static/web/admin/webhooks/index.html
vendored
File diff suppressed because one or more lines are too long
6
static/web/embed/chat/readonly/index.html
vendored
6
static/web/embed/chat/readonly/index.html
vendored
File diff suppressed because one or more lines are too long
6
static/web/embed/chat/readwrite/index.html
vendored
6
static/web/embed/chat/readwrite/index.html
vendored
File diff suppressed because one or more lines are too long
6
static/web/embed/video/index.html
vendored
6
static/web/embed/video/index.html
vendored
File diff suppressed because one or more lines are too long
6
static/web/index.html
vendored
6
static/web/index.html
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user