Bundle embedded web app
This commit is contained in:
@@ -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 m}});var a=n(85893),l=n(67294),r=n(4480),i=n(38939),o=n(71577),s=n(18119),u=n(69677),d=n(91951),h=n(77466);let{Option:c}=i.Z,p=e=>{let{color:t}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(t,")"),width:"100%",height:"100%"}})},m=()=>{let e=(0,r.sJ)(h.db),t=(0,r.sJ)(h.Gt),[n,m]=(0,l.useState)(null==e?void 0:e.displayName);if(!e)return null;let{displayName:C,displayColor:g}=e,x=()=>n!==C&&""!==n&&(null==t?void 0:t.isConnected()),y=()=>{if(!x())return;let e={type:d.C.NAME_CHANGE,newName:n};t.send(e)},v=e=>{let n={type:d.C.COLOR_CHANGE,newColor:Number(e)};t.send(n)},f=[...Array(8)].map((e,t)=>t),j=(0,a.jsx)(o.Z,{type:"primary",onClick:y,disabled:!x(),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:y,style:{paddingTop:"8px"},children:(0,a.jsx)(u.Z.Search,{enterButton:j,id:"name-change-field",value:n,onChange:e=>m(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:C})}),(0,a.jsx)(s.Z.Item,{label:"Your Color",style:{paddingTop:"8px",zIndex:1e3,marginBottom:0},children:(0,a.jsx)(i.Z,{style:{width:120},onChange:v,defaultValue:g.toString(),children:f.map(e=>(0,a.jsx)(c,{title:e,children:(0,a.jsx)(p,{color:e})},e.toString()))})}),'You can also authenticate an IndieAuth or Fediverse account via the "Authenticate" menu.']})}}}]);
|
||||
1
static/web/_next/static/chunks/9096.5f00ce63bc222d7d.js
Normal file
1
static/web/_next/static/chunks/9096.5f00ce63bc222d7d.js
Normal file
@@ -0,0 +1 @@
|
||||
"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 m}});var a=n(85893),l=n(67294),r=n(4480),i=n(38939),o=n(71577),s=n(18119),u=n(69677),d=n(91951),h=n(77466);let{Option:c}=i.Z,p=e=>{let{color:t}=e;return(0,a.jsx)("div",{style:{textAlign:"center",backgroundColor:"var(--theme-color-users-".concat(t,")"),width:"100%",height:"100%"}})},m=()=>{let e=(0,r.sJ)(h.db),t=(0,r.sJ)(h.Gt),[n,m]=(0,l.useState)(null==e?void 0:e.displayName);if(!e)return null;let{displayName:C,displayColor:g}=e,x=()=>n!==C&&""!==n&&(null==t?void 0:t.isConnected()),y=()=>{if(!x())return;let e={type:d.C.NAME_CHANGE,newName:n};t.send(e)},v=e=>{let n={type:d.C.COLOR_CHANGE,newColor:Number(e)};t.send(n)},b=[...Array(8)].map((e,t)=>t),f=(0,a.jsx)(o.Z,{type:"primary",id:"name-change-submit",onClick:y,disabled:!x(),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:y,style:{paddingTop:"8px"},children:(0,a.jsx)(u.Z.Search,{enterButton:f,id:"name-change-field",value:n,onChange:e=>m(e.target.value),placeholder:"Your chat display name",maxLength:30,showCount:!0,defaultValue:C})}),(0,a.jsx)(s.Z.Item,{label:"Your Color",style:{paddingTop:"8px",zIndex:1e3,marginBottom:0},children:(0,a.jsx)(i.Z,{style:{width:120},onChange:v,defaultValue:g.toString(),children:b.map(e=>(0,a.jsx)(c,{title:e,children:(0,a.jsx)(p,{color:e})},e.toString()))})}),'You can also authenticate an IndieAuth or Fediverse account via the "Authenticate" menu.']})}}}]);
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user