PageSourceSearch

https://www.oboard.fun/_next/static/chunks/3jtabnbrjstnt.js

js oboard.fun collected 2026-10-05 22:53:52 UTC 1,790 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,321443,e=>{"use strict";var t=e.i(515809),a=e.i(477822),s=e.i(123093),i=e.i(155389),o=e.i(211291),r=e.i(507811),n=e.i(214693);let l=async e=>{let t=await e.arrayBuffer(),a=await fetch("/api/chat/file",{method:"POST",body:t});return(await a.json()).url};e.s(["default",0,function(){let e=(0,i.useChatLogic)({storageKey:"messages",apiEndpoint:"/api/chat",enableFileUpload:!0}),c=(0,t.jsx)(s.default,{actions:[(0,s.createFileUploadAction)(()=>{let t=document.createElement("input");t.type="file",t.accept="image/*,*/*",t.onchange=async()=>{if(!t.files?.length||!e.checkUserIdAvalible())return;let a=t.files[0],s=a.type.startsWith("image");e.setIsLoading(!0);try{let t=await l(a),i={id:(0,r.v7)(),userId:e.userId,content:s?`![${a.name}](${t})`:`[${a.name}](${t})`,time:new Date().getTime(),type:s?"image":"file",status:n.MessageStatus.Sending},o=[...e.messages,i];e.updateMessages(o);let c=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:o,userId:e.userId})});if(!c.ok)throw Error("发送失败");let d=await c.json();d.messages&&e.updateMessages(d.messages)}catch(e){console.error("File upload error:",e),o.default.error("文件上传失败")}finally{e.setIsLoading(!1)}},t.click()}),(0,s.createClearAction)(()=>{e.clearMessages()})]});return(0,t.jsx)(a.default,{chatLogic:e,actionDropdown:c,messageListProps:{emptyStateConfig:{title:"欢迎来到聊天室",description:"这里是一个实时聊天空间,您可以与其他用户进行交流,分享图片和文件。开始您的第一条消息吧!"},loadingConfig:{text:"发送中...",position:"center"}},chatInputProps:{placeholder:"输入消息..."}})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.