Bundle embedded web app
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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
File diff suppressed because one or more lines are too long
1
static/web/_next/static/chunks/pages/admin/logs-d50ad31a98d5d77f.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/admin/logs-d50ad31a98d5d77f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -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()}]);
|
||||
1
static/web/_next/static/chunks/pages/embed/chat/readonly-ce947c17a9afb261.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/embed/chat/readonly-ce947c17a9afb261.js
vendored
Normal 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
1
static/web/_next/static/chunks/pages/embed/chat/readwrite-b0f1dea24afe14dc.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/embed/chat/readwrite-b0f1dea24afe14dc.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/chunks/pages/embed/video-76360e6a2bd7abfc.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/embed/video-76360e6a2bd7abfc.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/chunks/pages/index-9a6606a41cc732e8.js
vendored
Normal file
1
static/web/_next/static/chunks/pages/index-9a6606a41cc732e8.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user