Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Nov 24, 2023
1 parent d9b211c commit 282a37b
Showing 1 changed file with 80 additions and 12 deletions.
92 changes: 80 additions & 12 deletions res/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -135,7 +203,7 @@ new Vue({
};

img.src = `${test.url}${Date.now()}`;

setTimeout(() => {
this.showAlert = false;
}, 10000);
Expand Down

0 comments on commit 282a37b

Please sign in to comment.