Skip to content

Commit 8ec97ba

Browse files
committed
clean commit
0 parents  commit 8ec97ba

File tree

214 files changed

+86653
-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.

214 files changed

+86653
-0
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SKIP_PREFLIGHT_CHECK=true
2+
ESLINT_NO_DEV_ERRORS=true
3+
DISABLE_ESLINT_PLUGIN=true
4+
SKIP_PREFLIGHT_CHECK=true

.eslintignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
6+
# testing
7+
/coverage
8+
/src_old
9+
10+
# production
11+
/build
12+
/release
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

.eslintrc.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"root": true,
8+
"extends": ["airbnb", "prettier", "plugin:prettier/recommended"],
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"settings": {
14+
"import/resolver": {
15+
"alias": {
16+
"map": [
17+
["^ui$", "./src/ui"],
18+
["app", "./src/app/"],
19+
["common", "./src/common"]
20+
],
21+
"extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"]
22+
}
23+
}
24+
},
25+
"parser": "babel-eslint",
26+
"plugins": [
27+
"react",
28+
"prettier",
29+
"compat",
30+
"import",
31+
"jsx-a11y",
32+
"promise",
33+
"react-hooks"
34+
],
35+
"rules": {
36+
"prettier/prettier": "error",
37+
"jsx-a11y/aria-role": "off",
38+
"no-restricted-syntax": "off",
39+
"no-unused-vars": "error",
40+
"no-unused-expressions": "error",
41+
"consistent-return": "off",
42+
"jsx-a11y/no-static-element-interactions": "off",
43+
"jsx-a11y/click-events-have-key-events": "off",
44+
"no-underscore-dangle": "off",
45+
"no-console": "off",
46+
"no-continue": "off",
47+
"no-use-before-define": "off",
48+
"no-await-in-loop": "off",
49+
"default-param-last": "off",
50+
"no-promise-executor-return": "off",
51+
"import/no-import-module-exports": "off",
52+
"react/destructuring-assignment": "off",
53+
"promise/param-names": "error",
54+
"promise/always-return": "error",
55+
"promise/catch-or-return": "error",
56+
"promise/no-native": "off",
57+
"react/sort-comp": [
58+
"error",
59+
{
60+
"order": [
61+
"type-annotations",
62+
"static-methods",
63+
"lifecycle",
64+
"everything-else",
65+
"render"
66+
]
67+
}
68+
],
69+
"react/jsx-no-bind": "off",
70+
"react/jsx-filename-extension": "off",
71+
"react/prop-types": "off",
72+
"react/function-component-definition": "off",
73+
"react/forbid-dom-props": [2, { "forbid": ["style"] }],
74+
"import/no-anonymous-default-export": [
75+
"error",
76+
{
77+
"allowArray": false,
78+
"allowArrowFunction": false,
79+
"allowAnonymousClass": false,
80+
"allowAnonymousFunction": false,
81+
"allowCallExpression": true,
82+
"allowLiteral": false,
83+
"allowObject": true
84+
}
85+
],
86+
"react/jsx-pascal-case": [2, { "allowAllCaps": false }],
87+
"react/prefer-stateless-function": "off",
88+
"import/no-unresolved": "off",
89+
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
90+
"jsx-a11y/anchor-is-valid": "off"
91+
}
92+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Possible solutions**
21+
Some ideas of how you would solve this issue, if possible
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Operating System:**
27+
- OS: [e.g. Windows]
28+
- Version: [e.g. 10]
29+
- Java Version: [e.g. 8/16]
30+
- Minecraft Version: [e.g. 1.16.5]
31+
- Mod Loader: [e.g. Forge/Fabric]
32+
33+
**Additional context**
34+
Add any other context about the problem 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+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Purpose
2+
_Describe the problem or feature in addition to a link to the issues when possible._
3+
4+
## Approach
5+
_How does this change address the problem?_
6+
7+
#### Open Questions and Pre-Merge TODOs
8+
- [ ] Use github checklists. When solved, check the box and explain the answer.
9+
10+
## Learning
11+
_Describe the research stage_
12+
13+
_Links to blog posts, patterns, libraries or addons used to solve this problem_
14+
15+
#### Blog Posts
16+
- [A Complete Guide to useEffect](https://overreacted.io/a-complete-guide-to-useeffect/) Learn how to use useeffect.
17+

.github/workflows/nodejs.yml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
name: GDLauncher CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- releases
8+
- native-refactor
9+
pull_request:
10+
branches:
11+
- master
12+
- releases
13+
jobs:
14+
build:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [macos-latest, windows-latest, ubuntu-latest]
20+
21+
steps:
22+
- name: Context
23+
env:
24+
GITHUB_CONTEXT: ${{ toJson(github) }}
25+
run: echo "$GITHUB_CONTEXT"
26+
- uses: actions/checkout@v2
27+
with:
28+
fetch-depth: 1
29+
- name: Use Node.js 16.13.1
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: '16.13.1'
33+
34+
35+
- name: Install Nightly
36+
run: |
37+
rustup toolchain install nightly
38+
39+
- name: Install rust (Windows)
40+
if: matrix.os == 'windows-latest'
41+
run: |
42+
rustup target add x86_64-pc-windows-msvc --toolchain nightly
43+
- name: Install rust (MacOS)
44+
if: matrix.os == 'macos-latest'
45+
run: |
46+
rustup target add aarch64-apple-darwin --toolchain nightly
47+
- name: Install rust (Linux)
48+
if: matrix.os == 'ubuntu-latest'
49+
run: |
50+
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
51+
52+
- name: Switch rust to nightly
53+
run: |
54+
rustup default nightly
55+
56+
- name: npm run install
57+
run: |
58+
npm i
59+
- name: npm run lint
60+
run: |
61+
npm run lint
62+
- name: npm run release for windows
63+
if: matrix.os == 'windows-latest' && github.event_name == 'push'
64+
env:
65+
CI: ''
66+
TRAVIS_TAG: ''
67+
APPVEYOR_REPO_TAG_NAME: ''
68+
CIRCLE_TAG: ''
69+
BITRISE_GIT_TAG: ''
70+
GITHUB_ACTIONS: ''
71+
CI_BUILD_TAG: ''
72+
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}"
73+
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}"
74+
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}"
75+
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}"
76+
run: |
77+
npm run release
78+
- name: npm run release for mac and linux
79+
if: matrix.os != 'windows-latest' || github.event_name != 'push'
80+
env:
81+
CI: ''
82+
TRAVIS_TAG: ''
83+
APPVEYOR_REPO_TAG_NAME: ''
84+
CIRCLE_TAG: ''
85+
GITHUB_ACTIONS: ''
86+
BITRISE_GIT_TAG: ''
87+
CI_BUILD_TAG: ''
88+
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}"
89+
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}"
90+
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}"
91+
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}"
92+
run: |
93+
npm run release
94+
- name: upload release to gh releases
95+
if: github.event_name == 'push' && github.ref == 'refs/heads/releases'
96+
env:
97+
GH_ACCESS_TOKEN_RELEASES: ${{ secrets.GH_ACCESS_TOKEN_RELEASES }}
98+
run: |
99+
npm run upload
100+
- uses: actions/upload-artifact@v1
101+
if: matrix.os == 'macos-latest'
102+
with:
103+
name: MacOs Release
104+
path: deploy
105+
106+
- uses: actions/upload-artifact@v1
107+
if: matrix.os == 'windows-latest'
108+
with:
109+
name: Windows Release
110+
path: deploy
111+
112+
- uses: actions/upload-artifact@v1
113+
if: matrix.os == 'ubuntu-latest'
114+
with:
115+
name: Linux Release
116+
path: deploy
117+
118+
- uses: actions/setup-ruby@v1
119+
- name: Send Webhook Notification
120+
if: matrix.os == 'macos-latest'
121+
env:
122+
JOB_STATUS: ${{ job.status }}
123+
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
124+
run: |
125+
git clone https://github.com/gorilla-devs/github-actions-discord-webhook.git webhook
126+
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
127+
shell: bash

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
/data
12+
13+
# production
14+
/build
15+
/release
16+
/deploy
17+
/public/native/*/index.d.ts
18+
19+
# rust target
20+
/target
21+
/napi/target
22+
/public/napi.node
23+
/napi/napi.node
24+
/napi/node_modules
25+
/napi/index.d.ts
26+
27+
# IDEs
28+
.idea
29+
*.iml
30+
.eslintcache
31+
32+
# misc
33+
.DS_Store
34+
.env.local
35+
.electron-builder.env
36+
.env.development.local
37+
.env.test.local
38+
.env.production.local
39+
.env
40+
41+
npm-debug.log*
42+
yarn-debug.log*
43+
yarn-error.log*
44+
signCertificate.pfx

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint --fix

0 commit comments

Comments
 (0)