Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
module.exports = {
root: true, // 停止向上查找父级目录中的配置文件
env : {
env: {
browser: true,
es2021 : true,
node : true
es2021: true,
node: true,
},
extends: [
'./.eslintrc-auto-import.json', // 引入自动导入插件配置文件
'eslint:recommended', // ESLint 推荐规则
'plugin:vue/vue3-essential', // Vue3 推荐规则
'plugin:@typescript-eslint/recommended', // TypeScript 推荐规则
'plugin:prettier/recommended' // Prettier 推荐规则
'plugin:prettier/recommended', // Prettier 推荐规则
],
parser : 'vue-eslint-parser', // 指定要使用的解析器
parser: 'vue-eslint-parser', // 指定要使用的解析器
parserOptions: {
ecmaVersion: 12, // 支持的 ES 版本,这里是 ECMAScript 2021
sourceType : 'module', // 模块类型,默认为 script,我们设置为 module
parser : '@typescript-eslint/parser' // 使用 TypeScript 解析器
sourceType: 'module', // 模块类型,默认为 script,我们设置为 module
parser: '@typescript-eslint/parser', // 使用 TypeScript 解析器
},
plugins: ['vue', '@typescript-eslint', 'prettier'], // 引用的插件列表
rules : {
'vue/multi-word-component-names' : 'off', // 关闭多词组件名检测
rules: {
'vue/multi-word-component-names': 'off', // 关闭多词组件名检测
'@typescript-eslint/no-var-requires': 'off', // 关闭 require 导入警告
'prettier/prettier' : [
'prettier/prettier': [
'off',
{
printWidth : 120,
tabWidth : 4,
useTabs : false,
semi : true,
singleQuote : true,
quoteProps : "as-needed",
jsxSingleQuote : false,
trailingComma : "all",
bracketSpacing : true,
jsxBracketSameLine : false,
arrowParens : "always",
requirePragma : false,
insertPragma : false,
proseWrap : "preserve",
htmlWhitespaceSensitivity: "css",
endOfLine : "auto"
}
printWidth: 120,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'always',
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
endOfLine: 'auto',
},
],
"comma-dangle" : ["warn", "never"],
eqeqeq : "warn",
"arrow-parens" : 0,
"generator-star-spacing": 0,
'comma-dangle': ['warn', 'never'],
eqeqeq: 'warn',
'arrow-parens': 0,
'generator-star-spacing': 0,

"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',

indent : [1, 4, { SwitchCase: 1 }],
"space-before-function-paren": ["warn", "never"],
"no-constant-condition" : ["warn"],
"no-empty" : ["off"],
"comma-spacing" : ["warn", { after: true }],
"key-spacing" : [
"warn",
indent: [1, 4, { SwitchCase: 1 }],
'space-before-function-paren': ['warn', 'never'],
'no-constant-condition': ['warn'],
'no-empty': ['off'],
'comma-spacing': ['warn', { after: true }],
'key-spacing': [
'warn',
{
singleLine: {},
multiLine : { align: "colon" }
}
]
}
multiLine: { align: 'colon' },
},
],
},
};
32 changes: 16 additions & 16 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# xiaon

<!-- ![](https://img.shields.io/badge/%E7%8A%B6%E6%80%81-%E7%BB%B4%E6%8A%A4%E4%B8%AD-brightgreen) -->
<!--![](https://img.shields.io/badge/%E7%8A%B6%E6%80%81-%E5%B0%B1%E7%BB%AA-orange)-->
<!--![](https://img.shields.io/badge/%E7%8A%B6%E6%80%81-%E5%AE%8C%E6%88%90-brightgreen)-->
Expand Down Expand Up @@ -100,19 +101,24 @@ npm run build
执行命令后会得到 dist 目录,可以放到自己的 web 服务器指定的路径下,然后访问即可。

或者运行:

```
npm run preview
```

进行生产预览

---

**注意事项:**

如果出现`"cygpath: command not found" when commiting to branch`错误,请添加你的Path环境变量:`C:\Program Files\Git\usr\bin`,更多信息请参考["cygpath: command not found" when commiting to branch #10326](https://github.com/desktop/desktop/issues/10326)

---

又或者出现“Github Desktop提交commit时找不到node_modules\”错误,通过手动将 …/AppData/Roaming/npm/node_modules 复制到 …AppData\Local\GitHubDesktop\app-2.6.0\resources\app\git\ 中来完成这项工作文件夹,之后就可以正常提交了。
更多信息请参考[github desktop 提交commit时找不到node_modules\](https://blog.csdn.net/lh1234566/article/details/120180308)

```
---

Expand All @@ -139,3 +145,4 @@ JavaScript 和 Web 开发人员的最佳选择,具有几乎可支持任何编
## 使用许可

[Apache License 2.0](LICENSE) © Richard Littauer
```
14 changes: 9 additions & 5 deletions doc/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
## 相关问题

请在此处链接相关的 issue。(可选)

## 截图

如果适用,请添加截图以帮助解释您的更改。(可选)

## 检查清单
- [x] 我已阅读贡献指南。
- [x] 我已遵循此项目的编码风格规范。
- [x] 我的代码符合必要的文档要求。
- [x] 我已添加了证明我的更改正常工作的测试。
- [x] 我已更新必要的文档内容。

- [x] 我已阅读贡献指南。
- [x] 我已遵循此项目的编码风格规范。
- [x] 我的代码符合必要的文档要求。
- [x] 我已添加了证明我的更改正常工作的测试。
- [x] 我已更新必要的文档内容。

## 其他信息

在此处添加任何其他上下文或信息,以提供有关这个拉取请求的更多详细信息。
35 changes: 19 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="XIAON机场,XIAON机场加速器,XIAON机场浏览器,13xVPN,小黑牛VPN,小黑牛加速器,佛跳墙VPN,佛跳墙加速器,外网VPN,外网加速器,旋风VPN,旋风加速器,老王VPN,老王加速器,蓝灯VPN,蓝灯加速器,雷霆VPN,雷霆加速器,天行VPN,天行加速器,神灯VPN,神灯加速器,蚂蚁VPN,蚂蚁加速器,坚果VPN,坚果加速器">
<meta name="description" content="XIAON机场">
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://kit.fontawesome.com/b807d5d8c5.js" crossorigin="anonymous"></script>
<title><%- VITE_APP_TITLE %></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="keywords"
content="XIAON机场,XIAON机场加速器,XIAON机场浏览器,13xVPN,小黑牛VPN,小黑牛加速器,佛跳墙VPN,佛跳墙加速器,外网VPN,外网加速器,旋风VPN,旋风加速器,老王VPN,老王加速器,蓝灯VPN,蓝灯加速器,雷霆VPN,雷霆加速器,天行VPN,天行加速器,神灯VPN,神灯加速器,蚂蚁VPN,蚂蚁加速器,坚果VPN,坚果加速器"
/>
<meta name="description" content="XIAON机场" />
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://kit.fontawesome.com/b807d5d8c5.js" crossorigin="anonymous"></script>
<title><%- VITE_APP_TITLE %></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
52 changes: 28 additions & 24 deletions src/assets/scss/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ input,
button,
textarea,
menu {
margin: 0;
padding: 0;
margin: 0;
padding: 0;
}
header,
footer,
Expand All @@ -44,61 +44,61 @@ figure,
figcaption,
menu,
details {
display: block;
display: block;
}
table {
border-collapse: collapse;
border-spacing: 0;
border-collapse: collapse;
border-spacing: 0;
}
caption,
th {
text-align: left;
font-weight: normal;
text-align: left;
font-weight: normal;
}
html,
body,
fieldset,
img,
iframe,
abbr {
border: 0;
border: 0;
}
i,
cite,
em,
var,
address,
dfn {
font-style: normal;
font-style: normal;
}
[hidefocus],
summary {
outline: 0;
outline: 0;
}
li {
list-style: none;
list-style: none;
}
sup,
sub {
font-size: 83%;
font-size: 83%;
}
pre,
code,
kbd,
samp {
font-family: inherit;
font-family: inherit;
}
textarea {
overflow: auto;
resize: none;
overflow: auto;
resize: none;
}
label,
summary {
cursor: default;
cursor: default;
}
a,
button {
cursor: pointer;
cursor: pointer;
}
h1,
h2,
Expand All @@ -109,15 +109,15 @@ h6,
em,
strong,
b {
font-weight: bold;
font-weight: bold;
}
del,
ins,
u,
s,
a,
a:hover {
text-decoration: none;
text-decoration: none;
}
body,
textarea,
Expand All @@ -126,14 +126,18 @@ button,
select,
keygen,
legend {
font: 14px/1.14 arial, "Microsoft Yahei", "WenQuanYi Micro Hei", sans-serif;
color: #666;
outline: 0;
font:
14px/1.14 arial,
'Microsoft Yahei',
'WenQuanYi Micro Hei',
sans-serif;
color: #666;
outline: 0;
}
body {
background: #fff;
background: #fff;
}
a,
a:hover {
color: #666;
color: #666;
}
Loading