Bundle embedded web app

This commit is contained in:
Owncast 2023-06-15 04:36:12 +00:00
parent 41c7b77f8c
commit 8a7b06d2d4
129 changed files with 86 additions and 86 deletions

2
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

View file

@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2979],{12979:function(e,t,l){l.r(t),l.d(t,{FatalErrorStateModal:function(){return n}});var r=l(85893),a=l(85402);let n=e=>{let{title:t,message:l}=e;return(0,r.jsx)(a.default,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:l})})}}}]);

View file

@ -1 +0,0 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2979],{12979:function(e,t,l){l.r(t),l.d(t,{FatalErrorStateModal:function(){return a}});var r=l(85893),n=l(85402);let a=e=>{let{title:t,message:l}=e;return(0,r.jsx)(n.Z,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,r.jsx)("p",{style:{fontSize:"1.3rem"},children:l})})}}}]);

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([[3427],{63606:function(e,n,o){"use strict";o.d(n,{Z:function(){return s}});var a=o(1413),t=o(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=o(42135),i=function(e,n){return t.createElement(l.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var s=t.forwardRef(i)},7783:function(e,n,o){"use strict";o.r(n),o.d(n,{NameChangeModal:function(){return f}});var a=o(85893),t=o(67294),r=o(4480),l=o(34041),i=o(71577),s=o(79292),c=o(79531),d=o(28997),u=o(44974),h=o(51801),p=o.n(h);let{Option:m}=l.default,g=e=>{let{color:n}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"}})},f=e=>{let{closeModal:n}=e,o=(0,r.sJ)(u.db),h=(0,r.sJ)(u.Gt),[f,C]=(0,t.useState)(null==o?void 0:o.displayName);if(!o)return null;let{displayName:y,displayColor:v}=o,w=()=>f!==y&&""!==f&&(null==h?void 0:h.isConnected()),E=()=>{if(!w())return;let e={type:d.C.NAME_CHANGE,newName:f};h.send(e),n()},M=[...Array(8)].map((e,n)=>n),S=(0,a.jsx)(i.Z,{type:"primary",id:"name-change-submit",onClick:E,disabled:!w(),children:"Change name"});return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages.",(0,a.jsx)(s.default,{onSubmitCapture:E,className:p().form,children:(0,a.jsx)(c.default.Search,{enterButton:S,id:"name-change-field",value:f,onChange:e=>C(e.target.value),placeholder:"Your chat display name","aria-label":"Your chat display name",maxLength:30,showCount:!0,defaultValue:y,className:p().inputGroup})}),(0,a.jsx)(s.default.Item,{label:"Your Color",className:p().colorChange,children:(0,a.jsx)(l.default,{style:{width:120},onChange:e=>{let n={type:d.C.COLOR_CHANGE,newColor:Number(e)};h.send(n)},defaultValue:v.toString(),className:p().colorDropdown,children:M.map(e=>(0,a.jsx)(m,{title:e,children:(0,a.jsx)(g,{color:e,"aria-label":e.toString()})},e.toString()))})}),'You can also authenticate an IndieAuth or Fediverse account via the "Authenticate" menu.']})}},51801:function(e){e.exports={inputGroup:"NameChangeModal_inputGroup__q0Ee2",colorChange:"NameChangeModal_colorChange__WVMTh",colorDropdown:"NameChangeModal_colorDropdown__hzNqB","ant-select-customize-input":"NameChangeModal_ant-select-customize-input__sDPfE"}},64217:function(e,n,o){"use strict";o.d(n,{Z:function(){return l}});var a=o(1413),t="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function r(e,n){return 0===e.indexOf(n)}function l(e){var n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:(0,a.Z)({},o);var l={};return Object.keys(e).forEach(function(o){(n.aria&&("role"===o||r(o,"aria-"))||n.data&&r(o,"data-")||n.attr&&t.includes(o))&&(l[o]=e[o])}),l}}}]);

View file

@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3427],{63606:function(e,n,o){"use strict";o.d(n,{Z:function(){return s}});var a=o(1413),t=o(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=o(42135),i=function(e,n){return t.createElement(l.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:n,icon:r}))};i.displayName="CheckOutlined";var s=t.forwardRef(i)},7783:function(e,n,o){"use strict";o.r(n),o.d(n,{NameChangeModal:function(){return C}});var a=o(85893),t=o(67294),r=o(4480),l=o(34041),i=o(71577),s=o(79292),c=o(79531),d=o(28997),u=o(44974),h=o(51801),p=o.n(h);let{Option:m}=l.Z,g=e=>{let{color:n}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(n,")"),width:"100%",height:"100%"}})},C=e=>{let{closeModal:n}=e,o=(0,r.sJ)(u.db),h=(0,r.sJ)(u.Gt),[C,f]=(0,t.useState)(null==o?void 0:o.displayName);if(!o)return null;let{displayName:y,displayColor:v}=o,w=()=>C!==y&&""!==C&&(null==h?void 0:h.isConnected()),E=()=>{if(!w())return;let e={type:d.C.NAME_CHANGE,newName:C};h.send(e),n()},M=[...Array(8)].map((e,n)=>n),S=(0,a.jsx)(i.Z,{type:"primary",id:"name-change-submit",onClick:E,disabled:!w(),children:"Change name"});return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages.",(0,a.jsx)(s.Z,{onSubmitCapture:E,className:p().form,children:(0,a.jsx)(c.Z.Search,{enterButton:S,id:"name-change-field",value:C,onChange:e=>f(e.target.value),placeholder:"Your chat display name","aria-label":"Your chat display name",maxLength:30,showCount:!0,defaultValue:y,className:p().inputGroup})}),(0,a.jsx)(s.Z.Item,{label:"Your Color",className:p().colorChange,children:(0,a.jsx)(l.Z,{style:{width:120},onChange:e=>{let n={type:d.C.COLOR_CHANGE,newColor:Number(e)};h.send(n)},defaultValue:v.toString(),className:p().colorDropdown,children:M.map(e=>(0,a.jsx)(m,{title:e,children:(0,a.jsx)(g,{color:e,"aria-label":e.toString()})},e.toString()))})}),'You can also authenticate an IndieAuth or Fediverse account via the "Authenticate" menu.']})}},51801:function(e){e.exports={inputGroup:"NameChangeModal_inputGroup__q0Ee2",colorChange:"NameChangeModal_colorChange__WVMTh",colorDropdown:"NameChangeModal_colorDropdown__hzNqB","ant-select-customize-input":"NameChangeModal_ant-select-customize-input__sDPfE"}},64217:function(e,n,o){"use strict";o.d(n,{Z:function(){return l}});var a=o(1413),t="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function r(e,n){return 0===e.indexOf(n)}function l(e){var n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:(0,a.Z)({},o);var l={};return Object.keys(e).forEach(function(o){(n.aria&&("role"===o||r(o,"aria-"))||n.data&&r(o,"data-")||n.attr&&t.includes(o))&&(l[o]=e[o])}),l}}}]);

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

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([[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),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,B=()=>{p(null),clearTimeout(T),T=null};async function v(){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(B,w.sI)}catch(e){p((0,y.kg)(y.Un,"".concat(e))),s(!1),T=setTimeout(B,w.sI)}v()}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!")),v()}catch(e){p((0,y.kg)(y.Un,"".concat(e)))}T=setTimeout(B,w.sI),s(!1)}return(0,m.useEffect)(()=>{v()},[]),(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})},t.default=_},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,5634,4931,5402,5257,1664,5348,9915,4526,4537,2118,6356,6766,4261,9774,2888,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);

View 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),a=n(85818),s=n(71577),l=n(71230),r=n(15746),c=n(94199),u=n(24093),d=n(28465),m=n(67294),h=n(5152),f=n.n(h),p=n(57520),j=n(81453),g=n(80693),y=n(91332),w=n(24044),x=n(34261);let{Meta:k}=o.default,b=f()(()=>Promise.resolve().then(n.t.bind(n,40753,23)),{loadableGenerated:{webpack:()=>[40753]},ssr:!1}),{Title:E,Paragraph:_}=a.default,T=()=>{let[e,t]=(0,m.useState)([]),[n,a]=(0,m.useState)(!1),[h,f]=(0,m.useState)(null),[x,T]=(0,m.useState)(null),B=null,Z=()=>{f(null),clearTimeout(B),B=null};async function v(){a(!0);try{let e=await (0,j.rQ)("/api/emoji");t(e)}catch(e){console.error("error fetching emojis",e)}a(!1)}async function N(e){let t="/".concat(e.split("/").slice(3).join("/"));console.log(t),a(!0),f((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;f((0,y.kg)(y.zv,"Emoji deleted")),B=setTimeout(Z,w.sI)}catch(e){f((0,y.kg)(y.Un,"".concat(e))),a(!1),B=setTimeout(Z,w.sI)}v()}async function P(){a(!0);try{f((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}))});f((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;f((0,y.kg)(y.zv,"Emoji uploaded successfully!")),v()}catch(e){f((0,y.kg)(y.Un,"".concat(e)))}B=setTimeout(Z,w.sI),a(!1)}return(0,m.useEffect)(()=>{v()},[]),(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:P,disabled:n,children:(0,i.jsx)(s.Z,{type:"primary",disabled:n,children:"Upload new emoji"})}),(0,i.jsx)(p.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)(s.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 s},y3:function(){return a}});let i=2097152,o=["image/png","image/jpeg","image/gif"];function a(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])}}},function(e){e.O(0,[2074,173,5874,7311,5634,4931,5402,5257,1664,5348,9915,4526,4537,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

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

View file

@ -1 +0,0 @@
(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;if(!(null==t?void 0:t.length))return null;let i=[{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}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:i,rowKey:e=>e.time,pagination:{pageSize:n||20}})]})}},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,7311,5634,4931,5402,5257,1664,5348,9915,4041,3698,3013,4398,7940,3731,7765,4261,9774,2888,179],function(){return e(e.s=23426)}),_N_E=e.O()}]);

View file

@ -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.default;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;if(!(null==t?void 0:t.length))return null;let i=[{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}];return(0,r.jsxs)("div",{className:"logs-section",children:[(0,r.jsx)(c,{children:"Logs"}),(0,r.jsx)(l.Z,{size:"middle",dataSource:t,columns:i,rowKey:e=>e.time,pagination:{pageSize:n||20}})]})}},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,7311,5634,4931,5402,5257,1664,5348,9915,4041,3698,3013,4398,7940,3731,7765,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

View file

@ -0,0 +1 @@
(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(31358)}])},31358:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(7198),s=n(85818),d=n(54398),u=n(81453),i=n(34261);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.D,{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,[173,5874,7311,5634,4931,5402,5257,1664,5348,9915,4041,3698,3013,4398,5416,4261,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);

View file

@ -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(31358)}])},31358:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(7198),s=n(85818),d=n(54398),i=n(81453),u=n(34261);let{Title:c}=s.Z,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,i.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.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(u.l,{page:e})},t.default=_}},function(e){e.O(0,[173,5874,7311,5634,4931,5402,5257,1664,5348,9915,4041,3698,3013,4398,5416,4261,9774,2888,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

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

Some files were not shown because too many files have changed in this diff Show more