Skip to content

Linux version #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
9b9da4c
fix namespace
vinaghost Nov 30, 2021
efc3ab5
init TBSReact
vinaghost Nov 30, 2021
8b60023
add account part
vinaghost Nov 30, 2021
421929e
update template
vinaghost Dec 1, 2021
d350534
add api fetch to front-end
vinaghost Dec 2, 2021
dab2e4a
add UI & api for account & accesses part
vinaghost Dec 2, 2021
2f2c5e5
make account editor look nicer (but still awful)
vinaghost Dec 3, 2021
49e9e86
add UI & api for driver things (login/logout/..)
vinaghost Dec 3, 2021
65b5d83
update chromedriver v95 -> v96
vinaghost Dec 3, 2021
390aace
update login all & logout all
vinaghost Dec 3, 2021
5709963
remove abundance folder&file
vinaghost Dec 3, 2021
aaa5175
add publish profiles
vinaghost Dec 3, 2021
12fb2a4
fix case-sensitive folder in git
vinaghost Dec 3, 2021
344f5f1
Deleted TBSReact
Erol444 Dec 3, 2021
1342c8b
fix default value on add account modal
vinaghost Dec 4, 2021
8117c59
add publish profiles
vinaghost Dec 4, 2021
7b1ce96
update readme
vinaghost Dec 4, 2021
b8affcf
fix missing check on update login status
vinaghost Dec 4, 2021
f86947e
fix html error on Account modal
vinaghost Dec 4, 2021
2e7f5cc
update api add account
vinaghost Dec 4, 2021
499f9da
add Info view
vinaghost Dec 5, 2021
ca32ec0
add VIetnamese donate link
vinaghost Dec 5, 2021
32eab10
add logger controller and other things
vinaghost Dec 9, 2021
b37173c
add logger in frontend
vinaghost Dec 9, 2021
a002e2b
show log in frontend
vinaghost Dec 10, 2021
13b5f1f
fix frontend doesnt add https
vinaghost Dec 10, 2021
3c5be78
fix null obj exception when delete account
vinaghost Dec 10, 2021
eb56cbc
complete UI for debug screen
vinaghost Dec 12, 2021
9ef54da
add route
vinaghost Dec 12, 2021
82b9489
add eslint & prettier
vinaghost Dec 13, 2021
2e7ba68
Ci (#70)
vinaghost Dec 21, 2021
782b1bd
Ci (#72)
vinaghost Dec 23, 2021
45336ab
add UI & API for general tab
vinaghost Jan 12, 2022
f3ec420
change command run on commit
vinaghost Jan 16, 2022
b8c2c52
add update chrome setting for FE
vinaghost Jan 16, 2022
ab3a8ee
add notify
vinaghost Jan 16, 2022
b39971a
change color tab
vinaghost Jan 16, 2022
3912021
add redux
vinaghost Jan 17, 2022
a7452d8
add info current account to top right screen corner
vinaghost Jan 18, 2022
380381c
remove state pass through props
vinaghost Jan 18, 2022
5697be5
add village tab
vinaghost Jan 28, 2022
f99889b
add json server for testing without backend
vinaghost Feb 7, 2022
fdbdf1a
fix api request on frontend
vinaghost Feb 7, 2022
854d8c2
fix api request
vinaghost Feb 8, 2022
444cbcf
add bone for village tab
vinaghost Feb 8, 2022
93ba006
add wireframe village tab
vinaghost Feb 8, 2022
001a605
add wireframe new villages tab
vinaghost Feb 8, 2022
276a40e
Fix ci
vinaghost Feb 8, 2022
bf301f2
Merge branch 'develop' into linux_version
vinaghost Feb 8, 2022
023411f
updatae chromedriver v97
vinaghost Feb 8, 2022
6fa575c
Merge branch 'develop' into linux_version
vinaghost Feb 12, 2022
0f66aa9
add wireframe for farming & overview tab
vinaghost Feb 12, 2022
c73d635
update info & icon
vinaghost Feb 12, 2022
22b059e
update chrome v97 to v98 for tbsreact
vinaghost Feb 13, 2022
b5093b8
Merge branch 'develop' into linux_version
vinaghost Feb 13, 2022
a5fb1a7
[TBSReact] add setting models and controllers to backend
vinaghost Feb 13, 2022
2a3b844
Merge branch 'linux_version' of https://github.com/Erol444/TravianBot…
vinaghost Feb 13, 2022
7285742
[TBSReact] Change API Url
vinaghost Feb 14, 2022
53aed18
[TBSReact] Move InfoView to its folder
vinaghost Feb 14, 2022
4bd45b9
[TBSReact] Add more setting UI
vinaghost Feb 14, 2022
d5fed4f
[TBSReact] Add react-hook-form to setting views
vinaghost Feb 15, 2022
5257915
[TBSReact] add yup validation to setting views
vinaghost Feb 15, 2022
e9dca27
[TBSReact] Connect Backend & Frontend Settings Views
vinaghost Feb 17, 2022
98615ff
[TBSReact] Add more UI to Villages/Build
vinaghost Feb 19, 2022
6fb65eb
[TBSReact] Add API get list for Village/Build Views
vinaghost Feb 19, 2022
ecb5c4b
[TBSReact] Add draggable table for queue building
vinaghost Feb 20, 2022
eb3b8c4
[TBSReact] Add more route API for updating QueueBuilding
vinaghost Feb 20, 2022
9fad0d7
[TBSReact] Connect Backend & Frontend Villages/Build Views
vinaghost Feb 23, 2022
6470370
[TBSReact] Add token authenticated
vinaghost Feb 23, 2022
e4066ee
[TBSReact] Improve UX for token input
vinaghost Feb 24, 2022
36bf1bb
[TBSReact] Fix url API
vinaghost Feb 24, 2022
f21713a
[TBSReact] Fix API request on Debug views
vinaghost Feb 24, 2022
0025174
[TBSReact] Fix SignalR connection
vinaghost Feb 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.cs]

# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = none
114 changes: 88 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,119 @@
name: BuildFlow

name: build
on:
pull_request:
branches-ignore: [master]
types: [opened, reopened, synchronize]
workflow_dispatch:

types: [opened, reopened, synchronize, labeled]
jobs:
build:
build-react-linux:
runs-on: ubuntu-latest
if: ${{ contains( github.event.pull_request.labels.*.name, 'TbsReact') }}
steps:
- name: "Checkout repo"
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.x"
- name: Build TbsCore
run: dotnet build TbsCore/TbsCore.csproj --configuration Release
- name: Publish TbsReact
run: dotnet publish TbsReact/TbsReact.csproj /p:PublishProfile=TbsReact/Properties/PublishProfiles/Linux.pubxml
- name: Rename folder
run: mv TbsReact/bin/Debug/net5.0/linux-x64/publish/ TbsReact/bin/Debug/net5.0/linux-x64/TbsReact-build/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: TbsReact-Linux-Build
path: TbsReact/bin/Debug/net5.0/linux-x64/TbsReact-build/
if-no-files-found: error

build-react-mac:
runs-on: ubuntu-latest
if: ${{ contains( github.event.pull_request.labels.*.name, 'TbsReact') }}
steps:
- name: "Checkout repo"
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.x"
- name: Build TbsCore
run: dotnet build TbsCore/TbsCore.csproj --configuration Release
- name: Publish TbsReact
run: dotnet publish TbsReact/TbsReact.csproj /p:PublishProfile=TbsReact/Properties/PublishProfiles/Mac.pubxml
- name: Rename folder
run: mv TbsReact/bin/Debug/net5.0/osx-x64/publish/ TbsReact/bin/Debug/net5.0/osx-x64/TbsReact-build/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: TbsReact-Mac-Build
path: TbsReact/bin/Debug/net5.0/osx-x64/TbsReact-build/
if-no-files-found: error

build-react-window:
runs-on: ubuntu-latest
if: ${{ contains( github.event.pull_request.labels.*.name, 'TbsReact') }}
steps:
- name: "Checkout repo"
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.x"
- name: Build TbsCore
run: dotnet build TbsCore/TbsCore.csproj --configuration Release
- name: Publish TbsReact
run: dotnet publish TbsReact/TbsReact.csproj /p:PublishProfile=TbsReact/Properties/PublishProfiles/Windows.pubxml
- name: Rename folder
run: mv TbsReact/bin/Debug/net5.0/win-x64/publish/ TbsReact/bin/Debug/net5.0/win-x64/TbsReact-build/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: TbsReact-Windows-Build
path: TbsReact/bin/Debug/net5.0/win-x64/TbsReact-build/
if-no-files-found: error
build-winform:
runs-on: windows-latest
if: ${{ contains( github.event.pull_request.labels.*.name, 'TbsWinform') }}
steps:
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1

uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/[email protected]

- name: 'Checkout repo'
- name: "Checkout repo"
uses: actions/checkout@v2

- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE

- name: Get cache
uses: actions/cache@v2
with:
path: |
packages
TbsCore/obj/project.assets.json
TbsCore/TbsCore.csproj.nuget.g.targets
TbsCore/TbsCore.csproj.nuget.g.props.
packages
TbsCore/obj/project.assets.json
TbsCore/TbsCore.csproj.nuget.g.targets
TbsCore/TbsCore.csproj.nuget.g.props.
key: ${{ runner.os }}-nuget-${{ hashFiles('TbsCore/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-

${{ runner.os }}-nuget-
- name: Restore Packages
run: |
nuget restore TbsCore/TbsCore.csproj -PackagesDirectory packages
nuget restore TravBotSharp/TbsWinForms.csproj -PackagesDirectory packages

- name: Build Bot
run: |
msbuild.exe TravBotSharp.sln /t:TbsWinForms /nologo /nr:false /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release" /m /p:BuildProjectReferences=true /p:BUILD_NUMBER=30.4.1975.0

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: TBS-Build
name: TbsWinform-Build
path: TravBotSharp\bin\Release
if-no-files-found: error

message:
runs-on: ubuntu-latest
needs:
[build-react-linux, build-react-mac, build-react-window, build-winform]
if: ${{ always() && (contains(needs.*.result, 'success') || (contains(needs.*.result, 'failure'))) }}
steps:
- name: Comment on PR when success
uses: actions/[email protected]
if: |
Expand All @@ -58,8 +122,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: "Congratulation this commit was built successfully. Check detail [here](https://github.com/Erol444/TravianBotSharp/actions/runs/${{ github.run_id }}?check_suite_focus=true)" });

github.issues.createComment({ issue_number, owner, repo, body: "[Tbs Autobuild] Congratulation this commit was built successfully. Check detail [here](https://github.com/Erol444/TravianBotSharp/actions/runs/${{ github.run_id }}?check_suite_focus=true)" });
- name: Comment on PR when fail
uses: actions/[email protected]
if: |
Expand All @@ -68,5 +131,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: "There is error while building this commit. Check detail [here](https://github.com/Erol444/TravianBotSharp/actions/runs/${{ github.run_id }}?check_suite_focus=true)" });

github.issues.createComment({ issue_number, owner, repo, body: "[Tbs Autobuild] There is error while building this commit. Check detail [here](https://github.com/Erol444/TravianBotSharp/actions/runs/${{ github.run_id }}?check_suite_focus=true)" });
Loading