0

Bundle embedded web app

This commit is contained in:
Owncast 2024-02-25 21:08:58 +00:00
parent 5ce78fbad4
commit 9fc2cb27ef
83 changed files with 103 additions and 101 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

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([[5543,6409],{77126: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:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"}},76409:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(92585))&&a.__esModule?a:{default:a};t.default=n,e.exports=n},92585: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)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var f=u?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(a,l,f):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(67294)),f=a(r(77126)),c=a(r(17298));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var i=function(e,t){return l.createElement(c.default,(0,u.default)((0,u.default)({},e),{},{ref:t,icon:f.default}))};i.displayName="ClockCircleOutlined";var d=l.forwardRef(i);t.default=d}}]);

View File

@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6409,5543],{77126: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:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"}},76409:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(92585))&&a.__esModule?a:{default:a};t.default=n,e.exports=n},92585: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)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var f=u?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(a,l,f):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(67294)),f=a(r(77126)),c=a(r(17298));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var i=function(e,t){return l.createElement(c.default,(0,u.default)((0,u.default)({},e),{},{ref:t,icon:f.default}))};i.displayName="ClockCircleOutlined";var d=l.forwardRef(i);t.default=d}}]);

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6409],{77126: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:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"}},76409:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=r(92585))&&a.__esModule?a:{default:a};t.default=n,e.exports=n},92585: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)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var f=u?Object.getOwnPropertyDescriptor(e,l):null;f&&(f.get||f.set)?Object.defineProperty(a,l,f):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(67294)),f=a(r(77126)),c=a(r(17298));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var i=function(e,t){return l.createElement(c.default,(0,u.default)((0,u.default)({},e),{},{ref:t,icon:f.default}))};i.displayName="ClockCircleOutlined";var d=l.forwardRef(i);t.default=d}}]);

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 +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(70658)}])},70658:function(e,t,n){"use strict";n.r(t);var i=n(85893),o=n(82913),s=n(47271),a=n(90622),l=n(6647),r=n(55050),c=n(27189),u=n(65118),d=n(61878),m=n(67294),h=n(5152),j=n.n(h),f=n(65326),p=n(6925),g=n(26541),y=n(70329),w=n(53068),x=n(695);let{Meta:k}=o.default,b=j()(()=>Promise.resolve().then(n.t.bind(n,93553,23)),{loadableGenerated:{webpack:()=>[93553]},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},26541: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,[7298,6410,8768,5414,6906,7406,4716,2862,5063,7271,811,2839,9162,6356,127,695,2888,9774,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(70658)}])},70658:function(e,t,n){"use strict";n.r(t);var i=n(85893),o=n(82913),s=n(47271),a=n(90622),l=n(6647),r=n(55050),c=n(27189),u=n(65118),d=n(61878),m=n(67294),h=n(5152),j=n.n(h),f=n(65326),p=n(6925),g=n(26541),y=n(70329),w=n(53068),x=n(695);let{Meta:k}=o.default,b=j()(()=>Promise.resolve().then(n.t.bind(n,93553,23)),{loadableGenerated:{webpack:()=>[93553]},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},26541: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,[7298,6410,8768,947,7406,4716,2862,7271,9083,811,2839,9162,6356,127,695,2888,9774,179],function(){return e(e.s=10887)}),_N_E=e.O()}]);

View File

@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{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 o}});var r=n(19013),i=n(13882);function o(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 u}});var r=n(59910),i=n(13882),o=n(93645);function u(e,t,n){(0,i.Z)(2,arguments);var u=(0,r.Z)(e,t)/1e3;return(0,o.u)(null==n?void 0:n.roundingMethod)(u)}},10203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(99571)}])},41760:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97685),i=n(67294);function o(){var e=i.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},28609:function(e,t,n){"use strict";var r=n(67294),i=n(41760),o=n(95872);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=o.ZP.subscribe(function(r){t.current=r,e&&n()});return function(){return o.ZP.unsubscribe(r)}},[]),t.current}},49947:function(e,t,n){"use strict";var r=n(82215),i=n(63085),o=r.ZP;o.Header=r.h4,o.Footer=r.$_,o.Content=r.VY,o.Sider=i.Z,o._InternalSiderContext=i.D,t.default=o},99571:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(85893),i=n(67294),o=n(47271),u=n(43796),c=n(58091),a=n(6925),s=n(9507),l=n(695);let{Title:f,Paragraph:d}=o.default;function h(){let[e,t]=(0,i.useState)([]),[n,o]=(0,i.useState)(0),[l,h]=(0,i.useState)(0),E=async()=>{try{let e="".concat(a.op,"?offset=").concat(50*l,"&limit=").concat(50),{results:n,total:r}=await (0,a.rQ)(e,{auth:!0});o(r),(0,s.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,c.Z)(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)(u.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})}},11163:function(e,t,n){e.exports=n(73035)}},function(e){e.O(0,[6410,8768,5414,6906,7406,4716,2862,5063,7271,811,5386,9974,8625,3796,773,695,2888,9774,179],function(){return e(e.s=10203)}),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4976],{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 o}});var r=n(19013),i=n(13882);function o(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 u}});var r=n(59910),i=n(13882),o=n(93645);function u(e,t,n){(0,i.Z)(2,arguments);var u=(0,r.Z)(e,t)/1e3;return(0,o.u)(null==n?void 0:n.roundingMethod)(u)}},10203:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/federation/actions",function(){return n(99571)}])},41760:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97685),i=n(67294);function o(){var e=i.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},28609:function(e,t,n){"use strict";var r=n(67294),i=n(41760),o=n(95872);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=o.ZP.subscribe(function(r){t.current=r,e&&n()});return function(){return o.ZP.unsubscribe(r)}},[]),t.current}},49947:function(e,t,n){"use strict";var r=n(82215),i=n(63085),o=r.ZP;o.Header=r.h4,o.Footer=r.$_,o.Content=r.VY,o.Sider=i.Z,o._InternalSiderContext=i.D,t.default=o},99571:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(85893),i=n(67294),o=n(47271),u=n(43796),c=n(58091),a=n(6925),s=n(9507),l=n(695);let{Title:f,Paragraph:d}=o.default;function h(){let[e,t]=(0,i.useState)([]),[n,o]=(0,i.useState)(0),[l,h]=(0,i.useState)(0),E=async()=>{try{let e="".concat(a.op,"?offset=").concat(50*l,"&limit=").concat(50),{results:n,total:r}=await (0,a.rQ)(e,{auth:!0});o(r),(0,s.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,c.Z)(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)(u.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})}},11163:function(e,t,n){e.exports=n(73035)}},function(e){e.O(0,[6410,8768,947,7406,4716,2862,7271,9083,811,5386,9974,8625,3796,2864,8091,695,2888,9774,179],function(){return e(e.s=10203)}),_N_E=e.O()}]);

View File

@ -1 +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(85841)}])},85841:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(12426),s=n(47271),d=n(43796),u=n(6925),i=n(695);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.U,{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,[6410,8768,5414,6906,7406,4716,2862,5063,7271,811,5386,9974,8625,3796,86,695,2888,9774,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
(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(85841)}])},85841:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(12426),s=n(47271),d=n(43796),u=n(6925),i=n(695);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.U,{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,[6410,8768,947,7406,4716,2862,7271,9083,811,5386,9974,8625,3796,86,695,2888,9774,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);

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],{88054:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/chat/readonly",function(){return s(12511)}])},12511: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(37976),u=s(61153),d=s(26111),c=s(30927);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,[4283,5414,6906,5888,6502,3226,1627,2888,9774,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

View File

@ -1 +0,0 @@
.OfflineBanner_outerContainer__2Cwh6{display:flex;justify-content:center;align-items:center}.OfflineBanner_innerContainer__6BMbR{width:clamp(0px,100%,600px);display:flex;flex-direction:column;margin:5vh auto;padding:2.4em}@media only screen and (width <= 768px){.OfflineBanner_innerContainer__6BMbR{font-size:1.2rem;padding:1em;margin:1rem .2rem}}.OfflineBanner_bodyText__8w_fr{line-height:2rem;font-size:1.2rem}.OfflineBanner_separator__X2xF3{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate__K35HM{margin-top:2rem;font-size:.8rem;opacity:.7;font-family:var(--theme-text-body-font-family);font-weight:300}.OfflineBanner_lastLiveDate__K35HM .OfflineBanner_clockIcon__0rWpM{margin-right:6px}.OfflineBanner_header__p5jNi{font-family:var(--theme-text-display-font-family);font-weight:600;font-size:1.4rem}.OfflineBanner_footer__lQUrD{margin-top:15px}.OfflineBanner_actionLink__g64az{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__g64az:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__b24qe{display:flex;align-items:center;justify-content:space-between;height:var(--status-bar-height);width:100%;max-height:4vh;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__FJnEa{letter-spacing:.5px}.Statusbar_viewerCount__pfDDX{vertical-align:middle}.Statusbar_viewerIcon__U_j6P{display:inline-block;margin-right:.5rem}.VideoJS_player__GD36e{width:100%}.VideoPoster_poster__6rnLj{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__8kRcw{background-color:#000}.OwncastPlayer_container__CR5Ry{display:grid;width:100%;justify-items:center;height:var(--player-container-height);aspect-ratio:16/9}@media(width <= 1200px){.OwncastPlayer_container__CR5Ry{height:100%;max-height:var(--player-container-height)}}@media only screen and (width <= 768px){.OwncastPlayer_container__CR5Ry{height:var(--player-container-height);max-height:var(--player-container-height)}}.OwncastPlayer_container__CR5Ry .OwncastPlayer_player__dCDjy,.OwncastPlayer_container__CR5Ry .OwncastPlayer_poster__tbpwE{width:100%;grid-column:1;grid-row:1}.VideoEmbed_onlineContainer__5XevB{height:100vh;background-color:var(--theme-color-components-video-status-bar-background);display:flex;flex-direction:column}.VideoEmbed_onlineContainer__5XevB #player{height:calc(100vh - var(--status-bar-height))}

View File

@ -0,0 +1 @@
.Statusbar_statusbar__b24qe{display:flex;align-items:center;justify-content:space-between;height:var(--status-bar-height);width:100%;max-height:4vh;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__FJnEa{letter-spacing:.5px}.Statusbar_viewerCount__pfDDX{vertical-align:middle}.Statusbar_viewerIcon__U_j6P{display:inline-block;margin-right:.5rem}.VideoJS_player__GD36e{width:100%}.VideoPoster_poster__6rnLj{display:flex;justify-content:center;width:100%;height:100%}.VideoPoster_image__8kRcw{background-color:#000}.OwncastPlayer_container__CR5Ry{display:grid;width:100%;justify-items:center;height:var(--player-container-height);aspect-ratio:16/9}@media(width <= 1200px){.OwncastPlayer_container__CR5Ry{height:100%;max-height:var(--player-container-height)}}@media only screen and (width <= 768px){.OwncastPlayer_container__CR5Ry{height:var(--player-container-height);max-height:var(--player-container-height)}}.OwncastPlayer_container__CR5Ry .OwncastPlayer_player__dCDjy,.OwncastPlayer_container__CR5Ry .OwncastPlayer_poster__tbpwE{width:100%;grid-column:1;grid-row:1}.OfflineEmbed_offlineContainer__fdZ07{position:absolute;width:100%;height:100%;border-radius:8px;background-image:linear-gradient(180deg,rgba(18,22,29,0) 0,rgba(18,22,29,.75)),radial-gradient(circle,rgba(18,22,29,0) 0,rgba(18,22,29,.5) 100%),linear-gradient(180deg,#7a5cf3 0,#2386e2),linear-gradient(#f0f3f8,#f0f3f8);display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:16px;padding:24px}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_content__j10dd{display:flex;flex-flow:column nowrap;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_content__j10dd .OfflineEmbed_message__ZSzJ6{color:#fff;font-family:var(--theme-text-body-font-family);font-style:normal;font-size:16px;font-weight:400;line-height:1.375;letter-spacing:0;text-decoration:none;text-transform:none}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_content__j10dd .OfflineEmbed_heading__KnMu3{color:#fff;font-family:var(--theme-text-display-font-family);font-style:normal;font-size:24px;font-weight:500;line-height:1.125;letter-spacing:-.125px;text-decoration:none;text-transform:none}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_content__j10dd .OfflineEmbed_pageLogo__cl5VS{position:relative;width:10vw;height:10vw;min-height:64px;min-width:64px;max-height:100px;max-width:100px;border-radius:96px;background-color:#fff;border:5px solid #12161d;display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;gap:0;padding:10px;background-size:cover;background-position:50%}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_content__j10dd .OfflineEmbed_pageName__9lEC_{color:#fff;font-family:var(--theme-text-display-font-family);font-style:normal;font-size:20px;font-weight:500;line-height:1.1875;letter-spacing:-.0625px;text-decoration:none;text-transform:none}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_submitButton__UhIpB{margin-top:10px}.OfflineEmbed_offlineContainer__fdZ07 .OfflineEmbed_footer__sL75T{color:#fff;padding:5px}.VideoEmbed_onlineContainer__5XevB{height:100vh;background-color:var(--theme-color-components-video-status-bar-background);display:flex;flex-direction:column}.VideoEmbed_onlineContainer__5XevB #player{height:calc(100vh - var(--status-bar-height))}

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