Skip to content

Commit 66604d2

Browse files
committed
chore: initial commit
1 parent d4af80b commit 66604d2

File tree

145 files changed

+24988
-0
lines changed

Some content is hidden

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

145 files changed

+24988
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false
16+
17+
[COMMIT_EDITMSG]
18+
max_line_length = 0

.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/dist/**
2+
**/node_modules/**
3+
**/.cache/**
4+
**/.temp/**
5+
public
6+
public
7+
vite.config.ts
8+
shims.d.ts
9+
coverage
10+
pnpm-lock.yml

.eslintrc.yml

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
root: true
2+
3+
env:
4+
node: true
5+
es6: true
6+
7+
extends:
8+
- plugin:vue/vue3-recommended
9+
- plugin:prettier/recommended
10+
11+
overrides:
12+
- files:
13+
- '*.vue'
14+
15+
extends:
16+
- plugin:@typescript-eslint/eslint-recommended
17+
- plugin:@typescript-eslint/recommended
18+
- plugin:prettier/recommended
19+
- '@vue/typescript/recommended'
20+
- '@vue/prettier'
21+
- '@vue/prettier/@typescript-eslint'
22+
23+
plugins:
24+
- '@typescript-eslint'
25+
26+
parser: vue-eslint-parser
27+
28+
parserOptions:
29+
extraFileExtensions:
30+
- .vue
31+
parser: '@typescript-eslint/parser'
32+
33+
rules:
34+
'@typescript-eslint/explicit-function-return-type':
35+
- warn
36+
- allowTypedFunctionExpressions: true
37+
38+
'@typescript-eslint/naming-convention':
39+
- warn
40+
- selector: default
41+
format:
42+
- camelCase
43+
leadingUnderscore: allow
44+
trailingUnderscore: allow
45+
46+
- selector:
47+
- variable
48+
format:
49+
- camelCase
50+
- UPPER_CASE
51+
leadingUnderscore: allow
52+
trailingUnderscore: allow
53+
54+
- selector:
55+
- property
56+
format:
57+
- camelCase
58+
- PascalCase
59+
leadingUnderscore: allow
60+
trailingUnderscore: allow
61+
62+
- selector: typeLike
63+
format:
64+
- PascalCase
65+
66+
'@typescript-eslint/no-explicit-any':
67+
- warn
68+
- ignoreRestArgs: true
69+
70+
- files:
71+
- '*.ts'
72+
73+
extends:
74+
- plugin:@typescript-eslint/eslint-recommended
75+
- plugin:@typescript-eslint/recommended
76+
- plugin:@typescript-eslint/recommended-requiring-type-checking
77+
- plugin:prettier/recommended
78+
79+
plugins:
80+
- '@typescript-eslint'
81+
82+
parser: vue-eslint-parser
83+
84+
parserOptions:
85+
parser: '@typescript-eslint/parser'
86+
project:
87+
- './tsconfig.json'
88+
- './tsconfig.eslint.json'
89+
90+
rules:
91+
'@typescript-eslint/explicit-function-return-type':
92+
- warn
93+
- allowTypedFunctionExpressions: true
94+
95+
'@typescript-eslint/naming-convention':
96+
- warn
97+
- selector: default
98+
format:
99+
- camelCase
100+
leadingUnderscore: allow
101+
trailingUnderscore: allow
102+
103+
- selector:
104+
- variable
105+
format:
106+
- camelCase
107+
- PascalCase
108+
- UPPER_CASE
109+
leadingUnderscore: allow
110+
trailingUnderscore: allow
111+
112+
- selector:
113+
- parameter
114+
format:
115+
- camelCase
116+
- PascalCase
117+
leadingUnderscore: allow
118+
trailingUnderscore: allow
119+
120+
- selector:
121+
- property
122+
format:
123+
- camelCase
124+
- PascalCase
125+
- UPPER_CASE
126+
leadingUnderscore: allow
127+
trailingUnderscore: allow
128+
129+
- selector: typeLike
130+
format:
131+
- PascalCase
132+
133+
'@typescript-eslint/no-explicit-any':
134+
- warn
135+
- ignoreRestArgs: true
136+
137+
'@typescript-eslint/no-unsafe-member-access':
138+
- warn
139+
140+
'@typescript-eslint/no-unsafe-assignment':
141+
- off
142+
143+
'@typescript-eslint/no-unsafe-return':
144+
- off
145+
146+
'@typescript-eslint/no-unsafe-call':
147+
- off
148+
149+
'no-void':
150+
- off
151+
152+
- files:
153+
- '*.d.ts'
154+
rules:
155+
no-underscore-dangle:
156+
- off
157+
158+
- files:
159+
- '**/__tests__/**/*.spec.{j,t}s?(x)'
160+
161+
env:
162+
jest: true
163+
164+
rules:
165+
'@typescript-eslint/no-explicit-any':
166+
- off
167+
'@typescript-eslint/no-unsafe-call':
168+
- off
169+
'@typescript-eslint/no-unsafe-assignment':
170+
- off
171+
'@typescript-eslint/no-unsafe-member-access':
172+
- off

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text eol=lf
2+
*.txt text eol=crlf
3+
4+
*.png binary
5+
*.jpg binary
6+
*.jpeg binary
7+
*.ico binary
8+
*.tff binary
9+
*.woff binary
10+
*.woff2 binary
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[Bug report]'
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
<!-- Please fill in relevant information as much as possible. That would be helpful to locate the problem and save us each other's time -->
10+
11+
<!-- If some fields are irrelevant or you are not sure, remove it or mark it as "not related" / not sure" -->
12+
13+
<!-- If you don't follow the template and not providing valid information, we'll close your issue without further reply -->
14+
15+
## Bug report
16+
17+
### Description
18+
19+
<!-- A clear and concise description of what the bug is. -->
20+
21+
### Steps to reproduce
22+
23+
<!-- Steps to reproduce the behavior -->
24+
25+
- Reproduction link / repo:
26+
27+
### Expected behavior
28+
29+
<!-- A clear and concise description of what you expected to happen. -->
30+
31+
### Screenshots
32+
33+
<!-- If applicable, add screenshots to help explain your problem. -->
34+
35+
### Environment info
36+
37+
- Browser:
38+
- Output of `vuepress info`:
39+
40+
```bash
41+
# Paste output of `vuepress info` here
42+
```

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Question & Discussion
4+
url: https://github.com/Umajs/docs/discussions
5+
about: Please ask and answer questions here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: '[Feature request]'
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## Feature request
10+
11+
### Description
12+
13+
<!-- Is your feature request related to a problem? Please describe. This should be a clear and concise description of what the problem is. -->
14+
15+
### Proposed Solution
16+
17+
<!-- Describe the solution you'd like. This should be a clear and concise description of what you want to happen -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!-- Click "Preview" for a more readable version -->
2+
3+
#### Instructions
4+
5+
Please read and follow the instructions before creating and submitting a pull request:
6+
7+
- Create an issue explaining the feature. It could save you some effort in case we don't consider it should be included in Genshin Map.
8+
- If you're fixing a bug, try to commit the failing test/s and the code fixing it in different commits.
9+
- Ensure you're following our contributing guide.
10+
11+
**⚠️👆 Delete the instructions before submitting the pull request 👆⚠️**
12+
13+
#### 🤔 This is a
14+
15+
- [ ] New feature
16+
- [ ] Bug fix
17+
- [ ] Site / documentation update
18+
- [ ] Demo update
19+
- [ ] Component style update
20+
- [ ] TypeScript definition update
21+
- [ ] Bundle size optimization
22+
- [ ] Performance optimization
23+
- [ ] Enhancement feature
24+
- [ ] Internationalization
25+
- [ ] Refactoring
26+
- [ ] Code style optimization
27+
- [ ] Test Case
28+
- [ ] Branch merge
29+
- [ ] Other (about what?)
30+
31+
#### 🔗 Related issue link
32+
33+
<!--
34+
1. Describe the source of requirement, like related issue link.
35+
-->
36+
37+
#### 💡 Background and solution
38+
39+
<!--
40+
1. Describe the problem and the scenario.
41+
2. GIF or snapshot should be provided if includes UI/interactive modification.
42+
3. How to fix the problem, and list final API implementation and usage sample if that is a new feature.
43+
-->
44+
45+
#### ☑️ Self Check before Merge
46+
47+
⚠️ Please check all items below before review. ⚠️
48+
49+
- [ ] Doc is updated/provided or not needed
50+
- [ ] Demo is updated/provided or not needed
51+
- [ ] TypeScript definition is updated/provided or not needed
52+
- [ ] Changelog is provided or not needed
53+
54+
Describe your pull request here.

0 commit comments

Comments
 (0)