Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed May 14, 2024
1 parent a853d75 commit 6285042
Show file tree
Hide file tree
Showing 38 changed files with 47 additions and 37 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🧰 MyIP - A Better IP Toolbox

![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/gh_banner.png)
![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/gh_banner.png)

![GitHub Repo stars](https://img.shields.io/github/stars/jason5ng32/MyIP)
![GitHub forks](https://img.shields.io/github/forks/jason5ng32/myip)
Expand All @@ -23,8 +23,8 @@

Notes: You can use my demo for free, and you can also deploy it yourself.

[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)
[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)

## 👀 Main Features

Expand Down
6 changes: 3 additions & 3 deletions README_FR.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🧰 MyIP - Une meilleure boîte à outils IP

![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/gh_banner.png)
![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/gh_banner.png)

![GitHub Repo stars](https://img.shields.io/github/stars/jason5ng32/MyIP)
![GitHub forks](https://img.shields.io/github/forks/jason5ng32/myip)
Expand All @@ -23,8 +23,8 @@

Notes: Vous pouvez utiliser ma démo gratuitement et vous pouvez également la déployer vous-même.

[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)
[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)

## 👀 Principales fonctionnalités

Expand Down
6 changes: 3 additions & 3 deletions README_ZH.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🧰 IP 工具箱

![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/gh_banner.png)
![IPCheck.ing Banner](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/gh_banner.png)

![GitHub Repo stars](https://img.shields.io/github/stars/jason5ng32/MyIP)
![GitHub forks](https://img.shields.io/github/forks/jason5ng32/myip)
Expand All @@ -23,8 +23,8 @@

备注:你可以直接用我已经搭建好的服务,也可以自行搭建。

[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)
[![Deploy with Vercel](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Vercel.svg)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjason5ng32%2FMyIP&project-name=MyIP&repository-name=MyIP)
[![Deploy with Docker](https://raw.githubusercontent.com/jason5ng32/MyIP/main/public/github/Docker.svg)](https://hub.docker.com/r/jason5ng32/myip)

这是我第一次用 Vue.js 练手的项目。我……只是一个普通的产品经理。

Expand Down
2 changes: 1 addition & 1 deletion api/cfradar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { parse } from 'dotenv';
import { refererCheck } from '../lib/referer-check.js';
import { refererCheck } from '../common/referer-check.js';

// 创建一个用于设置 headers 的通用函数
function createFetchOptions() {
Expand Down
2 changes: 1 addition & 1 deletion api/configs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { refererCheck } from '../lib/referer-check.js';
import { refererCheck } from '../common/referer-check.js';

// 验证环境变量是否存在,以进行前端功能的开启和关闭
export default (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion api/dnsresolver.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// api/dnsresolver.js
import { Resolver } from 'dns';
import { promisify } from 'util';
import { refererCheck } from '../lib/referer-check.js';
import { refererCheck } from '../common/referer-check.js';

// 普通 DNS 服务器列表
const dnsServers = {
Expand Down
2 changes: 1 addition & 1 deletion api/invisibilitytest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get } from 'https';
import { refererCheck } from '../lib/referer-check.js';
import { refererCheck } from '../common/referer-check.js';

// 如果长度不等于 28 且不是字母与数字的组合,则返回 false
function isValidUserID(userID) {
Expand Down
4 changes: 2 additions & 2 deletions api/ipapicom.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'http';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

export default (req, res) => {
// 限制只能从指定域名访问
Expand Down
4 changes: 2 additions & 2 deletions api/ipapiis.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'https';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

export default (req, res) => {
// 限制只能从指定域名访问
Expand Down
4 changes: 2 additions & 2 deletions api/ipchecking.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'https';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

export default (req, res) => {

Expand Down
4 changes: 2 additions & 2 deletions api/ipinfo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'https';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

// 国家代码
async function loadCountryCodes() {
Expand Down
4 changes: 2 additions & 2 deletions api/ipsb.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'https';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

export default (req, res) => {

Expand Down
4 changes: 2 additions & 2 deletions api/keycdn.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { get } from 'https';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

export default (req, res) => {
// 限制只能从指定域名访问
Expand Down
2 changes: 1 addition & 1 deletion api/map.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get } from 'https';
import { refererCheck } from '../lib/referer-check.js';
import { refererCheck } from '../common/referer-check.js';

// 验证请求合法性

Expand Down
4 changes: 2 additions & 2 deletions api/whois.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import whoiser from 'whoiser';
import { isValidIP } from '../lib/valid-ip.js';
import { refererCheck } from '../lib/referer-check.js';
import { isValidIP } from '../common/valid-ip.js';
import { refererCheck } from '../common/referer-check.js';

function isValidDomain(domain) {
const domainPattern = /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i;
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions frontend/components/IpInfos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ const createDefaultCard = () => ({
isp: "",
asn: "",
asnlink: "",
mapUrl: '/defaultMap.webp',
mapUrl_dark: '/defaultMap_dark.webp',
mapUrl: '/res/defaultMap.webp',
mapUrl_dark: '/res/defaultMap_dark.webp',
showMap: false,
showASNInfo: false,
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/utils/masked-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function maskedInfo(t) {
fakecard.isp = "Google LLC";
fakecard.asn = "AS15169";
fakecard.asnlink = "https://radar.cloudflare.com/AS15169",
fakecard.mapUrl = '/defaultMap.webp';
fakecard.mapUrl_dark = '/defaultMap_dark.webp';
fakecard.mapUrl = '/res/defaultMap.webp';
fakecard.mapUrl_dark = '/res/defaultMap_dark.webp';
fakecard.showASNInfo = false;
fakecard.isProxy = t('ipInfos.proxyDetect.no');
fakecard.type = t('ipInfos.proxyDetect.type.Business');
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
<meta name="theme-color" content="#f8f9fa">
<meta name="background-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" href="/ios-logo-512.png">
<link rel="apple-touch-icon" href="logos/ios-logo-512.png">
<title>IPCheck.ing - Check My IP Address and Geolocation - Check WebRTC Connection IP - DNS Leak Test - Speed Test - Ping/MTR Test - Jason Ng Open Source </title>
<link rel="icon" href="logo.svg">
<link rel="icon" href="logos/logo.svg">
<link rel="icon" type="image/svg+xml" href="favicon.svg">

<style>
.jn-spinner {
Expand Down
Binary file removed public/defaultMap.webp
Binary file not shown.
Binary file removed public/defaultMap_dark.webp
Binary file not shown.
Binary file modified public/favicon.ico
100644 → 100755
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/logos/favicon.ico
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions public/logos/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ export default defineConfig({
description: 'All in one IP Toolbox',
icons: [
{
src: '/logo-192.webp',
src: '/logos/logo-192.webp',
sizes: '192x192',
type: 'image/webp',
purpose: 'maskable'
},
{
src: '/ios-logo-192.png',
src: '/logos/ios-logo-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/ios-logo-512.png',
src: '/logos/ios-logo-512.png',
sizes: '512x512',
type: 'image/png',
},
Expand Down

0 comments on commit 6285042

Please sign in to comment.