Bundle embedded web app

This commit is contained in:
gabek
2022-11-06 23:38:05 +00:00
parent b9f5b1da19
commit a859b1be5f
33 changed files with 32 additions and 32 deletions

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9096],{59096:function(e,n,t){t.r(n),t.d(n,{NameChangeModal:function(){return C}});var a=t(85893),l=t(67294),r=t(4480),o=t(38939),s=t(69677),i=t(71577),d=t(91951),u=t(77466);let{Option:h}=o.Z,c=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=()=>{let e=(0,r.sJ)(u.db),n=(0,r.sJ)(u.Gt),[t,C]=(0,l.useState)(null==e?void 0:e.displayName);if(!e)return null;let{displayName:m,displayColor:g}=e,p=()=>{let e={type:d.C.NAME_CHANGE,newName:t};n.send(e)},f=t!==m&&""!==t&&(null==n?void 0:n.isConnected()),x=e=>{let t={type:d.C.COLOR_CHANGE,newColor:Number(e)};n.send(t)},v=[...Array(8)].map((e,n)=>n);return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,a.jsx)(s.Z,{id:"name-change-field",value:t,onChange:e=>C(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:m}),(0,a.jsx)(i.Z,{id:"name-change-submit",disabled:!f,onClick:p,children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(o.Z,{style:{width:120},onChange:x,defaultValue:g.toString(),getPopupContainer:e=>e.parentElement,children:v.map(e=>(0,a.jsx)(h,{title:e,children:(0,a.jsx)(c,{color:e})},e.toString()))})]})]})}}}]);

View File

@@ -1 +0,0 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9096],{59096:function(e,t,n){n.r(t),n.d(t,{NameChangeModal:function(){return C}});var a=n(85893),l=n(67294),r=n(4480),o=n(38939),s=n(69677),i=n(71577),u=n(91951),d=n(77466);let{Option:h}=o.Z,c=e=>{let{color:t}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(t,")"),width:"100%",height:"100%"}})},C=()=>{let e=(0,r.sJ)(d.db);if(!e)return null;let{displayName:t,displayColor:n}=e,C=(0,r.sJ)(d.Gt),[g,m]=(0,l.useState)(t),p=()=>{let e={type:u.C.NAME_CHANGE,newName:g};C.send(e)},f=g!==t&&""!==g&&(null==C?void 0:C.isConnected()),x=e=>{let t={type:u.C.COLOR_CHANGE,newColor:Number(e)};C.send(t)},j=[...Array(8)].map((e,t)=>t);return(0,a.jsxs)("div",{children:["Your chat display name is what people see when you send chat messages. Other information can go here to mention auth, and stuff.",(0,a.jsx)(s.Z,{id:"name-change-field",value:g,onChange:e=>m(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:t}),(0,a.jsx)(i.Z,{id:"name-change-submit",disabled:!f,onClick:p,children:"Change name"}),(0,a.jsxs)("div",{children:["Your Color",(0,a.jsx)(o.Z,{style:{width:120},onChange:x,defaultValue:n.toString(),getPopupContainer:e=>e.parentElement,children:j.map(e=>(0,a.jsx)(h,{title:e,children:(0,a.jsx)(c,{color:e})},e.toString()))})]})]})}}}]);