-
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8ec97ba
Showing
214 changed files
with
86,653 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SKIP_PREFLIGHT_CHECK=true | ||
ESLINT_NO_DEV_ERRORS=true | ||
DISABLE_ESLINT_PLUGIN=true | ||
SKIP_PREFLIGHT_CHECK=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
/src_old | ||
|
||
# production | ||
/build | ||
/release | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"root": true, | ||
"extends": ["airbnb", "prettier", "plugin:prettier/recommended"], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"alias": { | ||
"map": [ | ||
["^ui$", "./src/ui"], | ||
["app", "./src/app/"], | ||
["common", "./src/common"] | ||
], | ||
"extensions": [".js", ".jsx", ".json", ".svg", ".png", ".jpg"] | ||
} | ||
} | ||
}, | ||
"parser": "babel-eslint", | ||
"plugins": [ | ||
"react", | ||
"prettier", | ||
"compat", | ||
"import", | ||
"jsx-a11y", | ||
"promise", | ||
"react-hooks" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"jsx-a11y/aria-role": "off", | ||
"no-restricted-syntax": "off", | ||
"no-unused-vars": "error", | ||
"no-unused-expressions": "error", | ||
"consistent-return": "off", | ||
"jsx-a11y/no-static-element-interactions": "off", | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"no-underscore-dangle": "off", | ||
"no-console": "off", | ||
"no-continue": "off", | ||
"no-use-before-define": "off", | ||
"no-await-in-loop": "off", | ||
"default-param-last": "off", | ||
"no-promise-executor-return": "off", | ||
"import/no-import-module-exports": "off", | ||
"react/destructuring-assignment": "off", | ||
"promise/param-names": "error", | ||
"promise/always-return": "error", | ||
"promise/catch-or-return": "error", | ||
"promise/no-native": "off", | ||
"react/sort-comp": [ | ||
"error", | ||
{ | ||
"order": [ | ||
"type-annotations", | ||
"static-methods", | ||
"lifecycle", | ||
"everything-else", | ||
"render" | ||
] | ||
} | ||
], | ||
"react/jsx-no-bind": "off", | ||
"react/jsx-filename-extension": "off", | ||
"react/prop-types": "off", | ||
"react/function-component-definition": "off", | ||
"react/forbid-dom-props": [2, { "forbid": ["style"] }], | ||
"import/no-anonymous-default-export": [ | ||
"error", | ||
{ | ||
"allowArray": false, | ||
"allowArrowFunction": false, | ||
"allowAnonymousClass": false, | ||
"allowAnonymousFunction": false, | ||
"allowCallExpression": true, | ||
"allowLiteral": false, | ||
"allowObject": true | ||
} | ||
], | ||
"react/jsx-pascal-case": [2, { "allowAllCaps": false }], | ||
"react/prefer-stateless-function": "off", | ||
"import/no-unresolved": "off", | ||
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }], | ||
"jsx-a11y/anchor-is-valid": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Possible solutions** | ||
Some ideas of how you would solve this issue, if possible | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Operating System:** | ||
- OS: [e.g. Windows] | ||
- Version: [e.g. 10] | ||
- Java Version: [e.g. 8/16] | ||
- Minecraft Version: [e.g. 1.16.5] | ||
- Mod Loader: [e.g. Forge/Fabric] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Purpose | ||
_Describe the problem or feature in addition to a link to the issues when possible._ | ||
|
||
## Approach | ||
_How does this change address the problem?_ | ||
|
||
#### Open Questions and Pre-Merge TODOs | ||
- [ ] Use github checklists. When solved, check the box and explain the answer. | ||
|
||
## Learning | ||
_Describe the research stage_ | ||
|
||
_Links to blog posts, patterns, libraries or addons used to solve this problem_ | ||
|
||
#### Blog Posts | ||
- [A Complete Guide to useEffect](https://overreacted.io/a-complete-guide-to-useeffect/) Learn how to use useeffect. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: GDLauncher CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- releases | ||
- native-refactor | ||
pull_request: | ||
branches: | ||
- master | ||
- releases | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Use Node.js 16.13.1 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '16.13.1' | ||
|
||
|
||
- name: Install Nightly | ||
run: | | ||
rustup toolchain install nightly | ||
- name: Install rust (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
rustup target add x86_64-pc-windows-msvc --toolchain nightly | ||
- name: Install rust (MacOS) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
rustup target add aarch64-apple-darwin --toolchain nightly | ||
- name: Install rust (Linux) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
rustup target add x86_64-unknown-linux-gnu --toolchain nightly | ||
- name: Switch rust to nightly | ||
run: | | ||
rustup default nightly | ||
- name: npm run install | ||
run: | | ||
npm i | ||
- name: npm run lint | ||
run: | | ||
npm run lint | ||
- name: npm run release for windows | ||
if: matrix.os == 'windows-latest' && github.event_name == 'push' | ||
env: | ||
CI: '' | ||
TRAVIS_TAG: '' | ||
APPVEYOR_REPO_TAG_NAME: '' | ||
CIRCLE_TAG: '' | ||
BITRISE_GIT_TAG: '' | ||
GITHUB_ACTIONS: '' | ||
CI_BUILD_TAG: '' | ||
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}" | ||
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}" | ||
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}" | ||
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}" | ||
run: | | ||
npm run release | ||
- name: npm run release for mac and linux | ||
if: matrix.os != 'windows-latest' || github.event_name != 'push' | ||
env: | ||
CI: '' | ||
TRAVIS_TAG: '' | ||
APPVEYOR_REPO_TAG_NAME: '' | ||
CIRCLE_TAG: '' | ||
GITHUB_ACTIONS: '' | ||
BITRISE_GIT_TAG: '' | ||
CI_BUILD_TAG: '' | ||
SENTRY_DSN: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_DSN || '' }}" | ||
SOURCE_MAPS_UPLOAD: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_UPLOAD_SOURCE_MAPS_URL || '' }}" | ||
SENTRY_AUTH: "${{ github.ref == 'refs/heads/releases' && secrets.SENTRY_AUTH || '' }}" | ||
REACT_CF_API_KEY: "${{ secrets.CF_API_KEY }}" | ||
run: | | ||
npm run release | ||
- name: upload release to gh releases | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/releases' | ||
env: | ||
GH_ACCESS_TOKEN_RELEASES: ${{ secrets.GH_ACCESS_TOKEN_RELEASES }} | ||
run: | | ||
npm run upload | ||
- uses: actions/upload-artifact@v1 | ||
if: matrix.os == 'macos-latest' | ||
with: | ||
name: MacOs Release | ||
path: deploy | ||
|
||
- uses: actions/upload-artifact@v1 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
name: Windows Release | ||
path: deploy | ||
|
||
- uses: actions/upload-artifact@v1 | ||
if: matrix.os == 'ubuntu-latest' | ||
with: | ||
name: Linux Release | ||
path: deploy | ||
|
||
- uses: actions/setup-ruby@v1 | ||
- name: Send Webhook Notification | ||
if: matrix.os == 'macos-latest' | ||
env: | ||
JOB_STATUS: ${{ job.status }} | ||
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | ||
run: | | ||
git clone https://github.com/gorilla-devs/github-actions-discord-webhook.git webhook | ||
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
/data | ||
|
||
# production | ||
/build | ||
/release | ||
/deploy | ||
/public/native/*/index.d.ts | ||
|
||
# rust target | ||
/target | ||
/napi/target | ||
/public/napi.node | ||
/napi/napi.node | ||
/napi/node_modules | ||
/napi/index.d.ts | ||
|
||
# IDEs | ||
.idea | ||
*.iml | ||
.eslintcache | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.electron-builder.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
signCertificate.pfx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint --fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"trailingComma": "none", | ||
"endOfLine": "auto", | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"arrow-parens": "off", | ||
"consistent-return": "off", | ||
"comma-dangle": "off", | ||
"no-underscore-dangle": "off", | ||
"generator-star-spacing": "off", | ||
"no-shadow": "off", | ||
"no-console": "off", | ||
"no-use-before-define": "off", | ||
"no-multi-assign": "off", | ||
"arrowParens": "avoid" | ||
} |
Oops, something went wrong.