Skip to content

Commit 287cee5

Browse files
authored
Minor fixes (#88)
* other: added prettier and prettified code * fix: get proton logic * feat: added function to check for app updates
1 parent f7b9720 commit 287cee5

45 files changed

Lines changed: 1579 additions & 22589 deletions

Some content is hidden

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

.eslintcache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"/home/flavio/Dev/Electron/heroic/src/index.tsx":"1","/home/flavio/Dev/Electron/heroic/src/App.tsx":"2","/home/flavio/Dev/Electron/heroic/src/state/GlobalState.tsx":"3","/home/flavio/Dev/Electron/heroic/src/helper.ts":"4","/home/flavio/Dev/Electron/heroic/src/state/ContextProvider.tsx":"5","/home/flavio/Dev/Electron/heroic/src/components/Library.tsx":"6","/home/flavio/Dev/Electron/heroic/src/components/Login.tsx":"7","/home/flavio/Dev/Electron/heroic/src/components/NavBar.tsx":"8","/home/flavio/Dev/Electron/heroic/src/components/GamePage/GamePage.tsx":"9","/home/flavio/Dev/Electron/heroic/src/components/UI/Header.tsx":"10","/home/flavio/Dev/Electron/heroic/src/components/UI/Update.tsx":"11","/home/flavio/Dev/Electron/heroic/src/components/Settings/index.tsx":"12","/home/flavio/Dev/Electron/heroic/src/components/UI/GameCard.tsx":"13","/home/flavio/Dev/Electron/heroic/src/components/UI/SearchBar.tsx":"14","/home/flavio/Dev/Electron/heroic/src/components/UI/UserSelector.tsx":"15","/home/flavio/Dev/Electron/heroic/src/components/Settings/GeneralSettings.tsx":"16","/home/flavio/Dev/Electron/heroic/src/components/Settings/OtherSettings.tsx":"17","/home/flavio/Dev/Electron/heroic/src/components/Settings/SyncSaves.tsx":"18","/home/flavio/Dev/Electron/heroic/src/components/Settings/Tools.tsx":"19","/home/flavio/Dev/Electron/heroic/src/components/Settings/WineSettings.tsx":"20","/home/flavio/Dev/Electron/heroic/src/hooks/index.ts":"21","/home/flavio/Dev/Electron/heroic/src/components/UI/InfoBox.tsx":"22","/home/flavio/Dev/Electron/heroic/src/components/UI/ToggleSwitch.tsx":"23","/home/flavio/Dev/Electron/heroic/src/hooks/useToggle.ts":"24"},{"size":300,"mtime":1611235759621,"results":"25","hashOfConfig":"26"},{"size":1289,"mtime":1611235759195,"results":"27","hashOfConfig":"26"},{"size":3389,"mtime":1611235759658,"results":"28","hashOfConfig":"26"},{"size":2911,"mtime":1611235759601,"results":"29","hashOfConfig":"26"},{"size":439,"mtime":1611235759635,"results":"30","hashOfConfig":"26"},{"size":728,"mtime":1611235759325,"results":"31","hashOfConfig":"26"},{"size":3153,"mtime":1611235759348,"results":"32","hashOfConfig":"26"},{"size":698,"mtime":1611235759365,"results":"33","hashOfConfig":"26"},{"size":13030,"mtime":1611235759308,"results":"34","hashOfConfig":"26"},{"size":1603,"mtime":1611235759545,"results":"35","hashOfConfig":"26"},{"size":206,"mtime":1611235759571,"results":"36","hashOfConfig":"26"},{"size":6112,"mtime":1611235595874,"results":"37","hashOfConfig":"26"},{"size":2150,"mtime":1611235759535,"results":"38","hashOfConfig":"26"},{"size":922,"mtime":1611235759561,"results":"39","hashOfConfig":"26"},{"size":993,"mtime":1611235759585,"results":"40","hashOfConfig":"26"},{"size":4711,"mtime":1611235759408,"results":"41","hashOfConfig":"26"},{"size":1753,"mtime":1611235759461,"results":"42","hashOfConfig":"26"},{"size":4887,"mtime":1611235759495,"results":"43","hashOfConfig":"26"},{"size":863,"mtime":1611235759505,"results":"44","hashOfConfig":"26"},{"size":2433,"mtime":1611235759521,"results":"45","hashOfConfig":"26"},{"size":40,"mtime":1611235759605,"results":"46","hashOfConfig":"26"},{"size":523,"mtime":1611235759551,"results":"47","hashOfConfig":"26"},{"size":425,"mtime":1611235759568,"results":"48","hashOfConfig":"26"},{"size":277,"mtime":1611235759608,"results":"49","hashOfConfig":"26"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},"1gdni5",{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/flavio/Dev/Electron/heroic/src/index.tsx",[],["99","100"],"/home/flavio/Dev/Electron/heroic/src/App.tsx",[],"/home/flavio/Dev/Electron/heroic/src/state/GlobalState.tsx",[],"/home/flavio/Dev/Electron/heroic/src/helper.ts",[],"/home/flavio/Dev/Electron/heroic/src/state/ContextProvider.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Library.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Login.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/NavBar.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/GamePage/GamePage.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/Header.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/Update.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/index.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/GameCard.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/SearchBar.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/UserSelector.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/GeneralSettings.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/OtherSettings.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/SyncSaves.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/Tools.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/Settings/WineSettings.tsx",[],"/home/flavio/Dev/Electron/heroic/src/hooks/index.ts",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/InfoBox.tsx",[],"/home/flavio/Dev/Electron/heroic/src/components/UI/ToggleSwitch.tsx",[],"/home/flavio/Dev/Electron/heroic/src/hooks/useToggle.ts",[],{"ruleId":"101","replacedBy":"102"},{"ruleId":"103","replacedBy":"104"},"no-native-reassign",["105"],"no-negated-in-lhs",["106"],"no-global-assign","no-unsafe-negation"]
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Draft Release
1+
name: Draft Release
22

3-
on:
4-
push:
5-
tags:
6-
- "v*"
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
77

8-
# Allows you to run this workflow manually from the Actions tab
9-
workflow_dispatch:
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
1010

11-
jobs:
12-
draft-releases:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/[email protected]
17-
- run: sudo apt-get install --no-install-recommends -y bsdtar libopenjp2-tools rpm
18-
- run: npm install
11+
jobs:
12+
draft-releases:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/[email protected]
17+
- run: sudo apt-get install --no-install-recommends -y bsdtar libopenjp2-tools rpm
18+
- run: npm install
1919
- run: GH_TOKEN="${{ secrets.WORKFLOW_TOKEN }}" npm run ci-build
20-
- uses: "marvinpinto/action-automatic-releases@latest"
21-
with:
22-
repo_token: "${{ secrets.WORKFLOW_TOKEN }}"
23-
automatic_release_tag: "latest"
24-
prerelease: false
25-
draft: true
20+
- uses: 'marvinpinto/action-automatic-releases@latest'
21+
with:
22+
repo_token: '${{ secrets.WORKFLOW_TOKEN }}'
23+
automatic_release_tag: 'latest'
24+
prerelease: false
25+
draft: true
2626
files: ./dist/heroic*

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
build
4+
public/index.html

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true
6+
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"${workspaceFolder}/**",
1515
"!**/node_modules/**"
1616
],
17-
"args" : ["."],
17+
"args": ["."],
1818
"outputCapture": "std"
1919
}
2020
]

0 commit comments

Comments
 (0)