Skip to content

Commit 2987e21

Browse files
committed
首次提交
1 parent a31498f commit 2987e21

243 files changed

Lines changed: 54835 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Matches multiple files with brace expansion notation
12+
# Set default charset
13+
[*.{js,py}]
14+
charset = utf-8
15+
16+
# Tab indentation (no size specified)
17+
[Makefile]
18+
indent_style = tab
19+
20+
# Indentation override for all JS under lib directory
21+
[*.{js,ts}]
22+
indent_style = space
23+
indent_size = 2
24+
25+
# Matches the exact files either package.json or .travis.yml
26+
[{package.json,.travis.yml}]
27+
indent_style = space
28+
indent_size = 2

.eslintrc.js

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: ['plugin:vue/essential', '@vue/airbnb', '@vue/typescript'],
7+
rules: {
8+
// js 和 ts 不需要检查 import 的文件后缀
9+
'import/extensions': [
10+
'error',
11+
'always',
12+
{
13+
js: 'never',
14+
ts: 'never',
15+
},
16+
],
17+
'no-restricted-syntax': [
18+
'error',
19+
'WithStatement',
20+
'BinaryExpression[operator=\'in\']',
21+
],
22+
// 可以 debugger
23+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
24+
// 不要分号
25+
semi: [2, 'never'],
26+
// 全部单引号
27+
quotes: [2, 'single'],
28+
// 对象缩写
29+
'object-shorthand': 0,
30+
// 可以使用 console
31+
'no-console': 0,
32+
// 允许使用匿名函数
33+
'func-names': 0,
34+
// 允许属性的 key 值加引号
35+
'quote-props': 0,
36+
// 允许对函数的参数赋值
37+
'no-param-reassign': 0,
38+
// 函数的参数可以不使用
39+
'no-unused-vars': 0,
40+
// 不用强制 export default
41+
'import/prefer-default-export': 0,
42+
// 不禁止箭头函数直接return对象
43+
'arrow-body-style': 0,
44+
// 允许空行
45+
'no-trailing-spaces': ['error', { skipBlankLines: true }],
46+
// 允许short circuit evaluations
47+
'no-unused-expressions': [
48+
'error',
49+
{ allowShortCircuit: true, allowTernary: true },
50+
],
51+
// 最长字符
52+
'max-len': ['error', { code: 1500 }],
53+
'vue/no-parsing-error': [
54+
2,
55+
{
56+
'invalid-first-character-of-tag-name': false,
57+
},
58+
],
59+
// no-plusplus
60+
'no-plusplus': 0,
61+
'class-methods-use-this': 0,
62+
'no-irregular-whitespace': 0,
63+
'consistent-return': 0,
64+
'import/no-extraneous-dependencies': 0,
65+
'global-require': 0,
66+
'no-continue': 0,
67+
'linebreak-style': 0,
68+
},
69+
parserOptions: {
70+
parser: '@typescript-eslint/parser',
71+
},
72+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Bug Report
3+
about: 事情不像预期的那样工作吗?
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
你好!感谢你正在考虑为 Gridea 提交一个 bug。请花一点点时间尽量详细地回答以下基础问题。
12+
13+
如果你不确定这是一个 Gridea 的 bug,请加入我们的用户群去讨论。
14+
15+
谢谢!
16+
-->
17+
18+
<!--
19+
请确认你已经做了下面这些事情,若 bug 还是显而易见的,尽可详细地描述你的问题。
20+
21+
- 我已经安装了最新版的 Gridea
22+
- 我已经搜索了已有的 Issues列表
23+
- 我已经阅读了 Gridea 的 FAQ:https://gridea.dev/docs/faq.html
24+
- 我已经查看了上手教程(视频或文字):https://gridea.dev/docs
25+
-->
26+
27+
## 我的环境
28+
29+
| 名称 ||
30+
| ------- | ---- |
31+
| 操作系统 | |
32+
| 软件版本 | |
33+
| 主题名称 | |
34+
35+
---
36+
37+
## 期望行为
38+
39+
<!--
40+
你期望会发生什么?
41+
-->
42+
43+
## 当前行为
44+
45+
<!--
46+
描述 bug 细节,确认出现此问题的复现步骤,例如点击了哪里,发生了什么情况?
47+
48+
你可以粘贴截图或附件。
49+
-->
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Feature Request
3+
about: 想让我们为 Gridea 增加什么功能吗?
4+
title: 'feat: '
5+
labels: 'Feature Request'
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
你好!感谢你愿意考虑希望 Gridea 增加某个新功能。请花一点点时间尽量详细地回答以下基础问题。
12+
13+
谢谢!
14+
-->
15+
16+
## 概述
17+
18+
<!--
19+
对这个新功能的一段描述
20+
-->
21+
22+
## 动机
23+
24+
<!--
25+
为什么你希望在 Gridea 中使用这个功能?
26+
-->
27+
28+
## 详细解释
29+
30+
<!--
31+
详细描述这个新功能。
32+
33+
如果这是一个小功能,你可以忽略这部分。
34+
-->
35+

.github/ISSUE_TEMPLATE/question.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Question
3+
about: 对 Gridea 有任何问题吗?
4+
title: ''
5+
labels: 'question'
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
如果你有任何问题也可以通过此渠道来向我们反馈。不过,通常我们建议你可以加入我们的群组获得更及时的解答。
12+
13+
谢谢!
14+
-->

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw*
22+
23+
#Electron-builder output
24+
/dist_electron
25+
26+
# Deploy API (contains sensitive configs)
27+
/deploy-api
28+
29+
# Error logs
30+
*.err
31+
32+
# OS generated files
33+
.DS_Store
34+
Thumbs.db
35+
36+
# IDE files
37+
.idea/
38+
.vscode/settings.json
39+
*.swp
40+
*.swo
41+
42+
# Logs
43+
logs/
44+
*.log
45+
46+
# Runtime data
47+
pids/
48+
*.pid
49+
*.seed
50+
51+
# Coverage directory used by tools like istanbul
52+
coverage/
53+
54+
# Dependency directories
55+
node_modules/
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variables file
70+
.env
71+
72+
# Build outputs
73+
dist/
74+
build/
75+
76+
# Temporary files
77+
*.tmp
78+
*.temp

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org

0 commit comments

Comments
 (0)