From 282a37bcb0adac2b4f18801ce3448b33bb8ce7bc Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Fri, 24 Nov 2023 23:42:49 +0800 Subject: [PATCH] Update app.js --- res/app.js | 92 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 80 insertions(+), 12 deletions(-) diff --git a/res/app.js b/res/app.js index 58dd2d1e..e4e46846 100644 --- a/res/app.js +++ b/res/app.js @@ -2,19 +2,87 @@ new Vue({ el: '#app', data: { ipDataCards: [ - { id: 'ipapi', ip: '', country_name: '', region: '', city: '',latitude: '', longitude: '', isp: '', asn: '', mapImage: 'map-placeholder.jpg', source: '' }, - { id: 'taobao', ip: '', country_name: '', region: '', city: '', latitude: '', longitude: '', isp: '', asn: '', mapImage: 'map-placeholder.jpg', source: '' }, - // 其他卡片数据... + { + id: 'ipapi', + ip: '', + country_name: '', + region: '', + city: '', + latitude: '', + longitude: '', + isp: '', + asn: '', + source: '' + }, + { + id: 'taobao', + ip: '', + country_name: '', + region: '', + city: '', + latitude: '', + longitude: '', + isp: '', + asn: '', + source: '' } ], connectivityTests: [ - { id: 'netease', name: 'Netease',icon:'globe-americas', url: 'https://s2.music.126.net/style/web2/img/frame/topbar.png?', status: '待检测' }, - { id: 'baidu', name: 'Baidu', icon:'globe-americas',url: 'https://www.baidu.com/img/flexible/logo/pc/peak-result.png?', status: '待检测' }, - { id: 'wechat', name: 'WeChat', icon:'wechat', url: 'https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico?', status: '待检测' }, - { id: 'google', name: 'Google', icon:'google',url: 'https://www.google.com/images/errors/robot.png?', status: '待检测' }, - { id: 'cloudflare', name: 'Cloudflare', icon:'cloud-fill',url: 'https://www.cloudflare.com/favicon.ico?', status: '待检测' }, - { id: 'youtube', name: 'Youtube', icon:'youtube',url: 'https://i.ytimg.com/vi/GYkq9Rgoj8E/hq720.jpg?', status: '待检测' }, - { id: 'github', name: 'Github', icon:'github',url: 'https://raw.githubusercontent.com/jason5ng32/fulian4/master/background.jpg?', status: '待检测' }, - { id: 'chatgpt', name: 'ChatGPT', icon:'chat-quote-fill',url: 'https://chat.openai.com/favicon.ico?', status: '待检测' } + { + id: 'netease', + name: 'Netease', + icon: 'globe-americas', + url: 'https://s2.music.126.net/style/web2/img/frame/topbar.png?', + status: '待检测' + }, + { + id: 'baidu', + name: 'Baidu', + icon: 'globe-americas', + url: 'https://www.baidu.com/img/flexible/logo/pc/peak-result.png?', + status: '待检测' + }, + { + id: 'wechat', + name: 'WeChat', + icon: 'wechat', + url: 'https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico?', + status: '待检测' + }, + { + id: 'google', + name: 'Google', + icon: 'google', + url: 'https://www.google.com/images/errors/robot.png?', + status: '待检测' + }, + { + id: 'cloudflare', + name: 'Cloudflare', + icon: 'cloud-fill', + url: 'https://www.cloudflare.com/favicon.ico?', + status: '待检测' + }, + { + id: 'youtube', + name: 'Youtube', + icon: 'youtube', + url: 'https://i.ytimg.com/vi/GYkq9Rgoj8E/hq720.jpg?', + status: '待检测' + }, + { + id: 'github', + name: 'Github', + icon: 'github', + url: 'https://raw.githubusercontent.com/jason5ng32/fulian4/master/background.jpg?', + status: '待检测' + }, + { + id: 'chatgpt', + name: 'ChatGPT', + icon: 'chat-quote-fill', + url: 'https://chat.openai.com/favicon.ico?', + status: '待检测' + } ], showAlert: false, @@ -135,7 +203,7 @@ new Vue({ }; img.src = `${test.url}${Date.now()}`; - + setTimeout(() => { this.showAlert = false; }, 10000);