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:3510,currentPage:1,targetPage:1,total:11,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:35,url:'/t/692854286a045c7465773f0b3202',name:'Naranja',color:'#FFA726',icon:'mdi-server-network',},],posts:[{id:41167,num:0,uid:1477,content:'小鸡基本信息\u003Cp\u003E✅ 年付7.5欧 1c2g5T 欧洲三网直连\u003Cbr\u003E✅ 解锁优秀\u003Cbr\u003E✅ 改邮箱出\u003Cbr\u003E✅ 到期时间:2026年1月2号\u003Cbr\u003E✅ 抗DMCA,可放影视小说漫画等作品\u003C/p\u003E一、晚上21点测速:宽带是100兆\u003Cp\u003E\u003Cimg src\u003D\"https://i.imgur.com/1IpJDXF.png\" alt\u003D\"image\"\u003E\u003C/p\u003E二、融合怪\u003Ccode\u003E--------------------- A Bench Script By spiritlhl ---------------------- 测评频道: https://t.me/vps_reviews VPS融合怪版本:2025.02.12Shell项目地址:https://github.com/spiritLHLS/ecsGo项目地址:https://github.com/oneclickvirt/ecs---------------------基础信息查询--感谢所有开源项目--------------------- CPU 型号 : Intel(R) Xeon(R) Gold 6126 CPU @ 2.60GHz CPU 核心数 : 1 CPU 频率 : 2599.998 MHz CPU 缓存 : L1: 32.00 KB / L2: 1.00 MB / L3: 19.25 MB AES-NI指令集 : ✔ Enabled VM-x/AMD-V支持 : ✔ Enabled 内存 : 338.84 MiB / 1.93 GiB Swap : [ no swap partition or swap file detected ] 硬盘空间 : 5.15 GiB / 9.76 GiB 启动盘路径 : /dev/vda1 系统在线时间 : 70 days, 22 hour 30 min 负载 : 0.17, 0.07, 0.02 系统 : Ubuntu 22.04.1 LTS (x86_64) 架构 : x86_64 (64 Bit) 内核 : 5.15.0-46-generic TCP加速方式 : bbr 虚拟化架构 : KVM NAT类型 : Full Cone IPV4 ASN : AS41608 NextGenWebs, S.L. IPV4 位置 : Zwolle / Overijssel / NL IPV6 ASN : AS41608 NextGenWebs, S.L. IPV6 位置 : Spain IPV6 子网掩码 : 64----------------------CPU测试--通过sysbench测试------------------------- -\u0026gt; CPU 测试中 (Fast Mode, 1-Pass @ 5sec) 1 线程测试(单核)得分: 1002 Scores---------------------内存测试--感谢lemonbench开源----------------------- -\u0026gt; 内存测试 Test (Fast Mode, 1-Pass @ 5sec) 单线程读测试: 20342.57 MB/s 单线程写测试: 15753.85 MB/s------------------磁盘dd读写测试--感谢lemonbench开源-------------------- -\u0026gt; 磁盘IO测试中 (4K Block/1M Block, Direct Mode) 测试操作 写速度 读速度 100MB-4K Block 40.5 MB/s (9894 IOPS, 2.59s) 20.9 MB/s (5101 IOPS, 5.02s) 1GB-1M Block 1.4 GB/s (1378 IOPS, 0.73s) 1.6 GB/s (1519 IOPS, 0.66s)---------------------磁盘fio读写测试--感谢yabs开源----------------------Block Size | 4k (IOPS) | 64k (IOPS) ------ | --- ---- | ---- ---- Read | 173.77 MB/s (43.4k) | 1.74 GB/s (27.2k)Write | 174.23 MB/s (43.5k) | 1.75 GB/s (27.3k)Total | 348.01 MB/s (87.0k) | 3.49 GB/s (54.6k) | | Block Size | 512k (IOPS) | 1m (IOPS) ------ | --- ---- | ---- ---- Read | 2.13 GB/s (4.1k) | 2.18 GB/s (2.1k)Write | 2.24 GB/s (4.3k) | 2.33 GB/s (2.2k)Total | 4.37 GB/s (8.5k) | 4.51 GB/s (4.4k)------------流媒体解锁--基于oneclickvirt/CommonMediaTests开源-----------以下测试的解锁地区是准确的,但是不是完整解锁的判断可能有误,这方面仅作参考使用----------------Netflix-----------------[IPV4]您的出口IP完整解锁Netflix,支持非自制剧的观看NF所识别的IP地域信息:西班牙[IPV6]您的出口IP完整解锁Netflix,支持非自制剧的观看NF所识别的IP地域信息:荷兰----------------Youtube-----------------[IPV4]连接方式: Google Global CacheCDN (ISP Cooperation)ISP运营商: RETNUKR视频缓存节点地域: KBP(KBP1)[IPV6]连接方式: Google Global CacheCDN (ISP Cooperation)ISP运营商: RETNUKR视频缓存节点地域: ODS(ODS1)---------------DisneyPlus---------------[IPV4]当前IPv4出口所在地区即将开通DisneyPlus[IPV6]当前IPv4出口所在地区即将开通DisneyPlus解锁Netflix,Youtube,DisneyPlus上面和下面进行比较,不同之处自行判断----------------流媒体解锁--感谢RegionRestrictionCheck开源-------------- 以下为IPV4网络测试,若无IPV4网络则无输出\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D[ Multination ]\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D Dazn: Yes (Region: NL) Disney+: Yes (Region: ES) Netflix: Yes (Region: ES) YouTube Premium: Yes (Region: US) Amazon Prime Video: Yes (Region: NL) TVBAnywhere+: Yes Spotify Registration: No OneTrust Region: NL [Flevoland] iQyi Oversea Region: INTL Bing Region: NL (Risky) Apple Region: NL YouTube CDN: [RETNUKR] in [Kiev] Netflix Preferred CDN: [RETN] in [Budapest] ChatGPT: Yes Google Gemini: Yes (Region: USA) Claude: Yes Wikipedia Editability: Yes Google Play Store: United States Google Search CAPTCHA Free: Yes Steam Currency: EUR ---Forum--- Reddit: Yes\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D 以下为IPV6网络测试,若无IPV6网络则无输出\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D[ Multination ]\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D Dazn: IPv6 Is Not Currently Supported Disney+: IPv6 Is Not Currently Supported Netflix: Yes (Region: NL) YouTube Premium: No Amazon Prime Video: IPv6 Is Not Currently Supported TVBAnywhere+: IPv6 Is Not Currently Supported Spotify Registration: No OneTrust Region: ES [Unknown] iQyi Oversea Region: IPv6 Is Not Currently Supported Bing Region: ES (Risky) Apple Region: NL YouTube CDN: [RETNUKR] in [Odessa] Netflix Preferred CDN: [RETN] in [Warsaw] ChatGPT: Failed (Network Connection) Google Gemini: No Claude: Yes Wikipedia Editability: Yes Google Play Store: China Google Search CAPTCHA Free: Yes Steam Currency: IPv6 Is Not Currently Supported ---Forum--- Reddit: IPv6 Is Not Currently Supported\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D\u003D---------------TikTok解锁--感谢lmc999的源脚本及fscarmen PR-------------- Tiktok Region: Failed-------------IP质量检测--基于oneclickvirt/securityCheck使用-------------数据仅作参考,不代表100%准确,如果和实际情况不一致请手动查询多个数据库比对以下为各数据库编号,输出结果后将自带数据库来源对应的编号ipinfo数据库 [0] | scamalytics数据库 [1] | virustotal数据库 [2] | abuseipdb数据库 [3] | ip2location数据库 [4]ip-api数据库 [5] | ipwhois数据库 [6] | ipregistry数据库 [7] | ipdata数据库 [8] | db-ip数据库 [9]ipapiis数据库 [A] | ipapicom数据库 [B] | bigdatacloud数据库 [C] | cheervision数据库 [D] | ipqualityscore数据库 [E]IPV4:安全得分:声誉(越高越好): 0 [2] 信任得分(越高越好): 35 [8] VPN得分(越低越好): 45 [8] 代理得分(越低越好): 62 [8]社区投票-无害: 0 [2] 社区投票-恶意: 0 [2] 威胁得分(越低越好): 87 [8] 欺诈得分(越低越好): 0 [1 E] 滥用得分(越低越好): 0 [3] ASN滥用得分(越低越好): 0.0078 (Low) [A] 公司滥用得分(越低越好): 0 (Very Low) [A] 威胁级别: low [9 B] 黑名单记录统计:(有多少黑名单网站有记录):无害记录数: 0 [2] 恶意记录数: 0 [2] 可疑记录数: 0 [2] 无记录数: 94 [2] 安全信息:使用类型: DataCenter/WebHosting/Transit [3] hosting [0 7 A] business [8] hosting - high probability [C] corporate [9]公司类型: hosting [0 7 A] 是否云提供商: Yes [7 D] 是否数据中心: Yes [0 1 A C] No [5 6 8]是否移动设备: Yes [E] No [5 A C]是否代理: No [0 1 4 5 6 7 8 9 A B C D E] 是否VPN: No [0 1 6 7 A C D E] 是否Tor: No [0 1 3 6 7 8 A B C D E] 是否Tor出口: No [1 7 D] 是否网络爬虫: No [9 A B E] 是否匿名: No [1 6 7 8 D] 是否攻击者: No [7 8 D] 是否滥用者: No [7 8 A C D E] 是否威胁: No [7 8 C D] 是否中继: No [0 7 8 C D] 是否Bogon: No [7 8 A C D] 是否机器人: No [E] DNS-黑名单: 313(Total_Check) 0(Clean) 0(Blacklisted) 0(Other) IPV6:安全得分:欺诈得分(越低越好): 0 [1]滥用得分(越低越好): 0 [3] ASN滥用得分(越低越好): 0.0078 (Low) [A] 公司滥用得分(越低越好): 0 (Very Low) [A] 威胁级别: low [B] 安全信息:使用类型: DataCenter/WebHosting/Transit [3] hosting [A]公司类型: hosting [A] 是否云提供商: Yes [D] 是否数据中心: Yes [1 A] 是否移动设备: No [A] 是否代理: No [1 A B D] 是否VPN: No [1 A D] 是否Tor: No [1 3 A B D] 是否Tor出口: No [1 D] 是否网络爬虫: No [A B] 是否匿名: No [1 D] 是否攻击者: No [D] 是否滥用者: No [A D] 是否威胁: No [D]是否中继: No [D] 是否Bogon: No [A D] DNS-黑名单: 313(Total_Check) 0(Clean) 0(Blacklisted) 313(Other) Google搜索可行性:NO-------------邮件端口检测--基于oneclickvirt/portchecker开源-------------Platform SMTP SMTPS POP3 POP3S IMAP IMAPSLocalPort ✔ ✔ ✔ ✔ ✔ ✔ QQ ✔ ✔ ✔ ✘ ✔ ✘ 163 ✔ ✔ ✔ ✘ ✔ ✘ Sohu ✔ ✔ ✔ ✘ ✔ ✘ Yandex ✔ ✔ ✔ ✘ ✔ ✘ Gmail ✔ ✔ ✘ ✘ ✘ ✘ Outlook ✔ ✘ ✔ ✘ ✔ ✘ Office365 ✔ ✘ ✔ ✘ ✔ ✘ Yahoo ✔ ✔ ✘ ✘ ✘ ✘ MailCOM ✔ ✔ ✔ ✘ ✔ ✘ MailRU ✔ ✔ ✘ ✘ ✔ ✘ AOL ✔ ✔ ✘ ✘ ✘ ✘ GMX ✔ ✘ ✔ ✘ ✔ ✘ Sina ✔ ✔ ✔ ✘ ✔ ✘ Apple ✘ ✘ ✘ ✘ ✘ ✘ FastMail ✘ ✔ ✘ ✘ ✘ ✘ ProtonMail✘ ✘ ✘ ✘ ✘ ✘ MXRoute ✔ ✘ ✔ ✘ ✔ ✘ Namecrane ✔ ✔ ✔ ✘ ✔ ✘ XYAMail ✘ ✘ ✘ ✘ ✘ ✘ ZohoMail ✘ ✔ ✘ ✘ ✘ ✘ Inbox_eu ✔ ✔ ✔ ✘ ✘ ✘ Free_fr ✘ ✔ ✔ ✘ ✔ ✘ ----------------三网回程--基于oneclickvirt/backtrace开源----------------北京电信 219.141.140.10 电信163 [普通线路] 北京联通 202.106.195.68 联通4837 [普通线路] 北京移动 221.179.155.161 检测不到回程路由节点的IP地址上海电信 202.96.209.133 电信163 [普通线路] 上海联通 210.22.97.1 联通4837 [普通线路] 上海移动 211.136.112.200 移动CMI [普通线路] 移动CMIN2 [精品线路] 广州电信 58.60.188.222 电信163 [普通线路] 广州联通 210.21.196.6 联通4837 [普通线路] 广州移动 120.196.165.24 移动CMI [普通线路] 成都电信 61.139.2.69 电信163 [普通线路] 成都联通 119.6.6.6 联通4837 [普通线路] 成都移动 211.137.96.205 移动CMIN2 [精品线路] 准确线路自行查看详细路由,本测试结果仅作参考同一目标地址多个线路时,可能检测已越过汇聚层,除了第一个线路外,后续信息可能无效---------------------回程路由--感谢fscarmen开源及PR---------------------依次测试电信/联通/移动经过的地区及线路,核心程序来自nexttrace,请知悉!广州电信 58.60.188.2220.49 ms AS41608 [ES-NEXTGENWEBS] 荷兰 南荷兰 鹿特丹 NextGenWebs, S.L.0.92 ms AS60404 [LITESERVER] 荷兰 北荷兰省 阿姆斯特丹 liteserver.nl1.20 ms AS50673 荷兰 弗莱福兰省 德龙滕 serverius.net1.80 ms AS50673 [NL-SERVERIUS] 荷兰 弗莱福兰省 德龙滕 serverius.net3.56 ms AS174 [COGENT-BONE] 荷兰 北荷兰省 阿姆斯特丹 cogentco.com17.19 ms AS174 [COGENT-BONE] 荷兰 北荷兰省 阿姆斯特丹 cogentco.com202.71 ms AS4134 [CHINANET-BB] 中国 广东 广州 欧洲回国方向 www.chinatelecom.com.cn 电信203.59 ms AS4134 [CHINANET-BB] 中国 广东 广州 www.chinatelecom.com.cn 电信208.24 ms AS4134 中国 广东 深圳 福田区 www.chinatelecom.com.cn 电信广州联通 210.21.196.60.33 ms AS41608 [ES-NEXTGENWEBS] 荷兰 南荷兰 鹿特丹 NextGenWebs, S.L.1.55 ms AS60404 [LITESERVER] 荷兰 北荷兰省 阿姆斯特丹 liteserver.nl0.84 ms AS50673 荷兰 弗莱福兰省 德龙滕 serverius.net2.06 ms AS50673 [NL-SERVERIUS] 荷兰 弗莱福兰省 德龙滕 serverius.net3.63 ms AS174 [COGENT-BONE] 荷兰 北荷兰省 阿姆斯特丹 cogentco.com9.11 ms AS174 [COGENT-BONE] 德国 黑森 美因河畔法兰克福 cogentco.com10.96 ms AS174 [COGENT-BONE] 德国 黑森 美因河畔法兰克福 cogentco.com11.45 ms AS174 [COGENT-BONE] 德国 黑森 美因河畔法兰克福 cogentco.com10.23 ms AS174 [COGENT-149] 德国 黑森 美因河畔法兰克福 cogentco.com186.17 ms AS4837 [CU169-BACKBONE] 中国 广东 广州 chinaunicom.cn 联通161.84 ms AS4837 [CU169-BACKBONE] 中国 广东 广州 X-I chinaunicom.cn 联通166.48 ms AS17816 [APNIC-AP] 中国 广东 深圳 chinaunicom.cn 联通174.40 ms AS17623 [APNIC-AP] 中国 广东 深圳 chinaunicom.cn 联通165.51 ms AS17623 中国 广东 深圳 宝安区 chinaunicom.cn 联通广州移动 120.196.165.240.84 ms AS41608 [ES-NEXTGENWEBS] 荷兰 南荷兰 鹿特丹 NextGenWebs, S.L.1.93 ms AS60404 [LITESERVER] 荷兰 北荷兰省 阿姆斯特丹 liteserver.nl5.36 ms AS174 [COGENT-BONE] 荷兰 北荷兰省 阿姆斯特丹 cogentco.com11.81 ms AS174 [COGENT-BONE] 德国 黑森 美因河畔法兰克福 cogentco.com11.61 ms AS174 [COGENT-BONE] 德国 黑森 美因河畔法兰克福 cogentco.com18.00 ms AS174 [COGENT-149] 德国 黑森 美因河畔法兰克福 cogentco.com17.53 ms AS58453 [CMI-INT] 德国 黑森 美茵河畔法兰克福 cmi.chinamobile.com 移动232.75 ms AS58453 [CMI-INT] 德国 黑森 美因河畔法兰克福 cmi.chinamobile.com 移动220.98 ms AS9808 [CMNET] 中国 广东 广州 chinamobileltd.com 移动219.72 ms AS9808 [CMNET] 中国 广东 广州 I-C chinamobileltd.com 移动215.24 ms AS9808 [CMNET] 中国 广东 广州 chinamobileltd.com 移动216.25 ms AS9808 [CMNET] 中国 广东 广州 chinamobileltd.com 移动222.72 ms AS9808 [CMNET] 中国 广东 广州 chinamobileltd.com 移动219.65 ms AS56040 [APNIC-AP] 中国 广东 深圳 gd.10086.cn 移动--------------------自动更新测速节点列表--本脚本原创--------------------位置 上传速度 下载速度 延迟 丢包率--------------------自动更新测速节点列表--本脚本原创--------------------位置 上传速度 下载速度 延迟 丢包率Speedtest.net 371.97 Mbps 904.77 Mbps 0.39 0.0%法兰克福 391.04 Mbps 912.56 Mbps 12.71 0.0%洛杉矶 452.15 Mbps 664.39 Mbps 157.16 0.0%联通上海5G 463.73 Mbps 768.01 Mbps 187.54 0.0%联通Beijing 309.93 Mbps 164.89 Mbps 135.82 NULL电信浙江 366.65 Mbps 628.32 Mbps 182.68 NULL电信Suzhou5G 398.44 Mbps 723.52 Mbps 197.80 NULL移动Fujian 376.68 Mbps 624.59 Mbps 235.49 NULL移动杭州5G 250.05 Mbps 812.03 Mbps 232.07 0.0%\u003C/code\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 09:40:56',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41168,num:1,uid:4466,content:'\u003Cp\u003Ebdd\u003Cbr\u003E还是北京联通爽\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 09:55:37',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41169,num:2,uid:9695,content:'\u003Cp\u003E电信晚高峰怎么样\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:01:39',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41170,num:3,uid:1676,content:'\u003Cp\u003E好鸡帮顶\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:02:29',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41171,num:4,uid:1477,content:'\u003Cp\u003E 这是普通线路呀,晚高峰表现一般,你要是需要晚高峰牛比的,应该去买9929线路\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:05:08',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41172,num:5,uid:9695,content:'\u003Cp\u003E感谢解答 线路也不需要多牛逼 晚高峰youtub跑 4K和8K 稳不稳\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:15:43',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41173,num:6,uid:1468,content:'\u003Cp\u003E可惜不是5800了\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:17:15',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41174,num:7,uid:1477,content:'\u003Cp\u003E 这我保证不了,我很少用这个鸡,晚上有空我给你截个youtube图。(温馨提示一下:看下这个鸡价格是多少一年,要是4k8k随便看,估计没人会出)\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:20:39',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41175,num:8,uid:1477,content:'\u003Cp\u003E 看做什么用了,你要做业务肯定5800相对较好,看看视频刷网页没什么影响\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:22:28',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41176,num:9,uid:3473,content:'\u003Cp\u003E好🐔帮顶\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:23:22',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:41177,num:10,uid:3408,content:'\u003Cp\u003E好鸡帮顶\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-14 10:29:36',updatedAt:'2025-03-17 14:36:15',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[1477,{uid:1477,url:'/u/3f1a5f026a045c76646d516f415d0616',avatar:'/a/3f1a5f026a045c76646d516f415d0616',username:'tansel🤖',}],[3408,{uid:3408,url:'/u/131d50296a045c74646a5e6f3122200a',avatar:'/a/131d50296a045c74646a5e6f3122200a',username:'xikk🤖',}],[1468,{uid:1468,url:'/u/337e063c6a045c76646c5e6f402a0610',avatar:'/a/337e063c6a045c76646c5e6f402a0610',username:'Ltachtm🤖',}],[4466,{uid:4466,url:'/u/0370071f6a045c73646c506f045d1937',avatar:'/a/0370071f6a045c73646c506f045d1937',username:'zorrin🤖',}],[9695,{uid:9695,url:'/u/2f02465b6a045c7e6663536f03390514',avatar:'/a/2f02465b6a045c7e6663536f03390514',username:'ppoaa001🤖',}],[1676,{uid:1676,url:'/u/0b1353086a045c76666d506f272c6521',avatar:'/a/0b1353086a045c76666d506f272c6521',username:'kirina🤖',}],[3473,{uid:3473,url:'/u/2902705a6a045c74646d556f1a5e1025',avatar:'/a/2902705a6a045c74646d556f1a5e1025',username:'未完待续🤖',}],]),related:[{title:'【交易中】收Naranja 7.5o 5800x',url:'/d/2b2d05556a045c77606a5674405c606a1f2f0661',},{title:'【测评留档】naranja 7.5o',url:'/d/0b7c513b6a045c77606a5674405d6a6a2d743d37',},{title:'收个Naranja 7.5o 5800x',url:'/d/3e257c1f6a045c77606a56714f5f666a3e2a1715',},{title:'200原邮出2个naranja 30欧|2c4g100G/10T',url:'/d/032144076a045c77606a56734f58616a212a196b',},{title:'明盘190收naranja 30o 2c4g',url:'/d/6a1d68246a045c77606a5673465f6b6a5f150a05',},{title:'naranja自己DD win 会删鸡吗?',url:'/d/110244186a045c77606a56724f506b6a023a0702',},{title:'收naranja 2c4g',url:'/d/232005096a045c77606a56724158676a21120439',},{title:'【已出】出一台 Naranja 黑五闪购 30 欧',url:'/d/300e712f6a045c77606a5672445f646a38110531',},],} 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")