const{createApp}=Vue const{createVuetify,useGoTo,useDisplay}=Vuetify var data={alert:{show:false,color:'success',text:'',timeout:0,},theme:{dark:false,},nav:{showDrawer:false,showTOC:true,tocPanel:0,tab:'account',post:{discussionId:5589,currentPage:1,targetPage:1,total:30,anchor:0,goToOptions:{container:null,duration:0,easing:'easeInOutCubic',offset:-100,},worker:null,task:[],active:[],apiLock:[],originLike:new Map([]),},related:{block:1,}},search:{width:80,text:null,loading:false,},tags:[{id:3,url:'/t/2b05770f6a045c7763772a264105',name:'Bandwagon',color:'#FF8F00',icon:'mdi-server-plus',},],posts:[{id:64720,num:0,uid:12465,content:'去年 10 月份开了一个搬瓦工服务器,塔设了一个梯子就没管,一直搁置(正常使用)\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E从年末开始就登录不上账号,邮箱重置没反应,甚至开了一个工单询问为啥收不到密码重置邮件。\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E客服也是一问三不知,最后干脆懒得回答我...\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E今天我再试着登录一下邮箱还是不行,我直接想着重新注册一下,居然注册成功了...\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E服务器还能正常使用和连接,可我账号突然消失了...\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E有遇到类似事情吗?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:22:41',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64721,num:1,uid:2351,content:'灵异事件',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:27:36',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64722,num:2,uid:1148,content:'塔设。楼主使用的是五笔输入法。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:32:52',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64723,num:3,uid:12465,content:'\u003Cbr\u003E\u003Cbr\u003E的确灵异,注册以后的账号又发了一个工单询问一下,这真的太逆天了,难不成账号数据库未知原因损坏了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:34:33',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64724,num:4,uid:4239,content:'去年买了一台,才刚开机装好梯子,ip 就被封了。。。至今没解放,我也不愿意多花几美金去换 ip 。。。纯浪费了 49.9 美元。。。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:43:53',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[21,],mentionUsers:[],likeUsers:[],},{id:64725,num:5,uid:794,content:'有没有可能,你记忆中的邮箱并不是当时注册的邮箱?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:59:34',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64726,num:6,uid:12466,content:'前两天好像回滚了,梯子的配置被回滚到先前了,不知道啥情况',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:09:18',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64727,num:7,uid:12465,content:'\u003Cbr\u003E\u003Cbr\u003E一度怀疑是更改了邮箱,问题账号都用了七八年了,把名下所有邮箱试了一遍找回密码都没反应。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:15:01',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64728,num:8,uid:794,content:'尝试工单问下那台 vps 的账号邮箱是什么,如果不给,可以问下邮箱打码中间几位',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:18:39',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64729,num:9,uid:4100,content:'在所有常用邮箱的收件搜一遍关键词',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:21:12',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64730,num:10,uid:2856,content:'刚买的可以退货啊? ip 被封要关机才会被释放,服务一直运行着就一直被封',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:21:18',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[11,],mentionUsers:[],likeUsers:[],},{id:64731,num:11,uid:4239,content:'#10 没有,我直接关机到现在,前段时间开机看一下还是被封的',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:28:18',updatedAt:'2025-03-21 12:07:05',mentionNum:10,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64732,num:12,uid:12465,content:'\u003Cbr\u003E\u003Cbr\u003E单纯梯子直接用机场就行,有很多质量不错一年几十块钱的,不担心被封。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:33:38',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64733,num:13,uid:12465,content:'\u003Cbr\u003E\u003Cbr\u003E我的账号在数据库突然没了,我重新注册了一个账号,找回密码秒到邮箱。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:34:44',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64734,num:14,uid:2569,content:'用 cf 反代一下',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:37:59',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64735,num:15,uid:12467,content:'我也是搬瓦工, 用了 2 年 ,封了一次 ip , 剩下的都是封的端口 ,你大家那时候协议用的复杂点,域名代理的不容易让封',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:40:52',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64736,num:16,uid:808,content:'你的 VPS 呢,在新账号下面吗?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 11:52:13',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64737,num:17,uid:393,content:'工单没回应可以再发, 未处理的工单是影响到客服业绩的.',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 12:03:04',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64738,num:18,uid:12465,content:'\u003Cbr\u003E\u003Cbr\u003E消失了,账号直接没了,服务器还在。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 12:41:18',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:64739,num:19,uid:4174,content:'要是同一个邮箱就把以前的邮件找出来甩客服脸上呀,不过大概率是你失忆了 \u003Cimg src\u003D\"https://i.imgur.com/L62ZP7V.png\"\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 13:37:54',updatedAt:'2025-03-21 12:07:05',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[1148,{uid:1148,url:'/u/6839735a6a045c76616e5e6f20026221',avatar:'/a/6839735a6a045c76616e5e6f20026221',username:'Damn🤖',}],[12467,{uid:12467,url:'/u/1d11035e6a045d75646c516f023c6731',avatar:'/a/1d11035e6a045d75646c516f023c6731',username:'zdoubley22223🤖',}],[4239,{uid:4239,url:'/u/1d00060c6a045c7362695f6f272a3e03',avatar:'/a/1d00060c6a045c7362695f6f272a3e03',username:'mikaelson🤖',}],[794,{uid:794,url:'/u/12387b2f6a045c776763526f15282721',avatar:'/a/12387b2f6a045c776763526f15282721',username:'Blanke🤖',}],[4174,{uid:4174,url:'/u/0201575a6a045c73616d526f003e3032',avatar:'/a/0201575a6a045c73616d526f003e3032',username:'htfcuddles🤖',}],[808,{uid:808,url:'/u/3e2307276a045c77686a5e6f22313a20',avatar:'/a/3e2307276a045c77686a5e6f22313a20',username:'dna1982🤖',}],[12466,{uid:12466,url:'/u/160b7a156a045d75646c506f231e6777',avatar:'/a/160b7a156a045d75646c506f231e6777',username:'namgking🤖',}],[2351,{uid:2351,url:'/u/143c07346a045c75636f576f13582a71',avatar:'/a/143c07346a045c75636f576f13582a71',username:'QAZXCDSWE🤖',}],[12465,{uid:12465,url:'/u/101c643f6a045d75646c536f035e190b',avatar:'/a/101c643f6a045d75646c536f035e190b',username:'lizhengbo🤖',}],[393,{uid:393,url:'/u/087d4b596a045c776363556f44080b3e',avatar:'/a/087d4b596a045c776363556f44080b3e',username:'Avafly🤖',}],[2569,{uid:2569,url:'/u/081a061e6a045c75656c5f6f4e07251e',avatar:'/a/081a061e6a045c75656c5f6f4e07251e',username:'wengang285🤖',}],[2856,{uid:2856,url:'/u/133c4a396a045c75686f506f4322112e',avatar:'/a/133c4a396a045c75686f506f4322112e',username:'Vindroid🤖',}],[365,{uid:365,url:'/u/6d3168266a045c77636c536f245b0406',avatar:'/a/6d3168266a045c77636c536f245b0406',username:'cuicuiv5🤖',}],[4100,{uid:4100,url:'/u/0a7b48346a045c73616a566f142e147f',avatar:'/a/0a7b48346a045c73616a566f142e147f',username:'Retas🤖',}],]),related:[{title:'瓦工 SG CN2 46刀,市场价去到多少?听说线路很好。',url:'/d/2f01760c6a045c77606a567a475f656a06241e24',},{title:'求推荐个三网优化的鸡 要买',url:'/d/3d275f096a045c77606a567540516b6a227b1130',},{title:'请教各位,Bwg 跟Dmit 哪个能打一点?',url:'/d/1c1a06596a045c77606a5675405e656a002b6330',},{title:'请问付了一年前斯巴达的服务工单还能正常用吗,和搬瓦工 Plan 比该留哪一个',url:'/d/372a0a356a045c77606a56744551666a28162401',},{title:'瓦工的v6将来会做优化吗?',url:'/d/3f2c581f6a045c77606a5674465a656a3d253964',},{title:'测试一下刚刚收到的临期瓦工The DC9 Plan VPS 曾经的梦中情机',url:'/d/6d3f7f256a045c77606a56774f51636a1d772516',},{title:'你们对瓦工的megabox满意吗',url:'/d/6f207b016a045c77606a56774f5f646a240c2234',},{title:'去年的瓦工DC9 ,有人要么?$35.42 USD( 已出)',url:'/d/0e0f68246a045c77606a56774f5c616a262f0662',},{title:'搬瓦工 dc9 不到一个月,2025-04-15到期,放生了,改过邮 20出',url:'/d/382f74076a045c77606a56774f5a616a1b70061d',},{title:'我这个bwg的powerbox还能卖多少?',url:'/d/030660086a045c77606a5677405d616a5f700125',},{title:'biggerbox升级megabox pro记录贴',url:'/d/1e1874086a045c77606a5677405b646a3d373725',},{title:'瓦工日本还会重新推出吗',url:'/d/0d11035d6a045c77606a567742506b6a3f223d6b',},{title:'150折价出瓦工BIGGERBOX',url:'/d/2c0660276a045c77606a5677435f666a152f0210',},{title:'MINIBOX也是CN2GIA了吗?',url:'/d/193068356a045c77606a5677435c656a29101015',},{title:'[出] 搬瓦工DC99机房POWERBOX-30-1536',url:'/d/020f7c2e6a045c77606a5677435c666a08053a22',},{title:'(出)原邮瓦工biggerbox未付订单,已承诺线路保障,也可升级到最新DC1机房',url:'/d/323e64156a045c77606a5677435b606a5e2d611c',},{title:'搬瓦工Box系列补货,可升级Pro更高级套餐,最后末班车速速上车,赶快升级MegaBox',url:'/d/032a5f226a045c77606a567743586b6a1c053c39',},{title:'【收到了】溢价收个瓦工minibox',url:'/d/027b75146a045c77606a56774358666a2a251227',},{title:'继续用dc99还是升级dc1好',url:'/d/1c7945236a045c77606a5677455e636a35151034',},{title:'DC99 box可以升级到DC1 box pro了。',url:'/d/0e187b546a045c77606a5677455d656a1d2c3e10',},],} const App={setup(){const goTo=useGoTo() const{mdAndUp}=useDisplay() return{goTo,mdAndUp}},data(){return data;},mounted(){const themeDark=localStorage.getItem("themeDark") if(themeDark!==null){this.theme.dark=JSON.parse(themeDark)} if(this.nav.post.total>(this.nav.post.currentPage-1)*100+20){let moreLen=100 if(this.nav.post.total({id:null,num:(this.nav.post.currentPage-1)*100+v,uid:null,content:null,ipRegion:null,updatedByUid:null,createdAt:null,updatedAt:null,mentionNum:null,mentionedBy:null,mentionUsers:null,likeUsers:null,})) this.posts.push(...morePosts.slice(20))} this.workerStart() const hash=window.location.hash const match=hash.match(/#(\d+)/) if(match){const n=parseInt(match[1],10) if(n>=(this.nav.post.currentPage-1)*100&&n{this.jumpTo(n)})}} this.$nextTick(()=>{this.addHeadingIds() tocbot.init({tocSelector:'.toc',contentSelector:'#post-content-0',headingSelector:'h2, h3, h4',headingsOffset:100,scrollSmoothOffset:-100,scrollSmooth:true,collapseDepth:6,onClick:function(e){setTimeout(()=>{history.replaceState(null,'',window.location.pathname+window.location.search)},0)},}) tocbot.refresh()});},beforeUnmount(){this.workerStop() if(this.quill){this.quill.destroy() this.quill=null}},computed:{dposts(){return this.posts.slice(20);},},created(){},methods:{successAlert(msg){this.alert={show:true,color:'success',text:msg,timeout:1500,}},failureAlert(msg){this.alert={show:true,color:'error',text:msg,timeout:5000,}},flipThemeDark(){this.theme.dark=!this.theme.dark localStorage.setItem("themeDark",JSON.stringify(this.theme.dark))},toSearch(){if(!this.search.text){this.failureAlert('搜索词不能为空') return} let keywords=this.search.text.trim() if(keywords.length<1){this.failureAlert('搜索词不能为空') return} if(keywords.length>100){this.failureAlert('搜索词过长') return} this.doSearch(keywords)},toReg(){window.location.href="/reg"},toLogin(){window.location.href="/login"},toPage(){let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,this.nav.post.targetPage>1?`/${this.nav.post.targetPage}`:'') window.location.href=url},toLoadRelated({done}){if(this.my&&this.my.uid){this.apiLoadRelated({done})}else{done('ok')}},workerStart(){this.nav.post.worker=setInterval(()=>{this.workerLoad()},500);},workerStop(){if(this.nav.post.worker){clearInterval(this.nav.post.worker);this.nav.post.worker=null;}},async jumpTo(num){const page=Math.floor(num/100)+1 const i=num-(page-1)*100 if(page===this.nav.post.currentPage){this.goTo("#post-"+num,this.nav.post.goToOptions) if(!this.posts[i].id){const block=Math.floor(num/20)+1 this.nav.post.apiLock[block]=true await this.apiLoadPosts(block) this.$nextTick(()=>{this.goTo("#post-"+num,this.nav.post.goToOptions)})}}else{let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,page>1?`/${page}`:'') url=url+"#"+num window.location.href=url}},postIntersect(num){return(isIntersecting,entries,observer)=>{if(isIntersecting){this.nav.post.task.push(num) this.nav.post.active.push(num) this.nav.post.active=this.nav.post.active.filter(item=>Math.abs(item-num)<=5) this.nav.post.active.sort((a,b)=>a-b)}else{this.nav.post.active=this.nav.post.active.filter(item=>item!==num)} if(this.nav.post.active[0]){this.nav.post.anchor=this.nav.post.active[0]}else{this.nav.post.anchor=0}}},async apiLoadPosts(block){try{const response=await axios.post('/fapi/v1/post/block/'+block,{discussionId:this.nav.post.discussionId,}) if(response.data.code===0){response.data.data.posts.forEach(post=>{const i=post.num%100 Object.assign(this.posts[i],post)}) response.data.data.users.forEach(user=>{this.usersMap.set(user.uid,user)})}else{this.failureAlert('回帖数据加载失败: '+response.data.msg)}}catch(error){this.failureAlert('回帖数据加载失败: '+error)} this.nav.post.apiLock[block]=false},workerLoad(){while(this.nav.post.task.length){const num=this.nav.post.task.pop() const i=num-(this.nav.post.currentPage-1)*100 if(!this.posts[i].id){const block=Math.floor(num/20)+1 if(!this.nav.post.apiLock[block]){this.nav.post.apiLock[block]=true this.apiLoadPosts(block)}}}},getTimeInfo(t){if(!t){return ""} const now=new Date();const then=new Date(t);const diff=now-then;const minute=60*1000;const hour=minute*60;const day=hour*24;const month=day*30;const year=month*12;if(diffpost.num===num) if(!post){return "#"+num} const uid=post.uid const username=this.usersMap.get(uid)?.username if(!username){return "#"+num} return username},getUsernameByPostId(id){const post=this.posts.find(post=>post.id===id) if(!post){return "#"+this.getPostNumByPostId(id)} const uid=post.uid const username=this.usersMap.get(uid).username if(!username){return "#"+this.getPostNumByPostId(id)} return username},getPostNumByPostId(id){const post=this.posts.find(post=>post.id===id) return post.num},getPostById(id){const post=this.posts.find(post=>post.id===id) return post},getPostByNum(num){const post=this.posts.find(post=>post.num===num) return post},getAvatarByUid(uid){const avatar=this.usersMap.get(uid)?.avatar if(!avatar){return this.getRandomAvatar()} return avatar},getAvatarByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post){return this.getRandomAvatar()} const uid=post.uid return this.getAvatarByUid(uid)},getRandomAvatar(){const num=Math.floor(Math.random()*100) return "https://randomuser.me/api/portraits/men/"+num+".jpg"},getUrlByUid(uid){const url=this.usersMap.get(uid)?.url if(!url){return ""} return url},getTextByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post||!post.content){return '点击跳转到#'+num+'查看'} const parser=new DOMParser() const doc=parser.parseFromString(post.content,'text/html') const text=doc.body.textContent||'' return text.slice(0,100)},addHeadingIds(){const content=document.getElementById('post-content-0') if(!content){this.nav.showTOC=false return} const headings=content.querySelectorAll('h2, h3, h4') headings.forEach((heading,index)=>{if(!heading.id){heading.id=`toc-nav-${index}`}}) if(headings.length==0){this.nav.showTOC=false}},async doSearch(keywords){this.search.loading=true try{const response=await axios.post('/fapi/v1/search',{keywords:keywords,}) if(response.data.code===0){if(response.data.data.hash&&response.data.data.hash.length===32){window.location.href="/s/"+response.data.data.hash}else{this.failureAlert('搜索失败: 搜索服务异常')}}else{this.failureAlert('搜索失败: '+response.data.msg)}}catch(error){this.failureAlert('搜索失败: '+error)} this.search.loading=false},debounce(fn,delay){let timer=null return function(...args){if(timer)clearTimeout(timer) timer=setTimeout(()=>{fn.apply(this,args)},delay);};},},watch:{'nav.post.targetPage':{handler:async function(newV,oldV){this.toPage()},immediate:false},},} const vuetify=createVuetify({defaults:{global:{ripple:true,},},}) const app=createApp(App) app.use(vuetify).mount("#app")