Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ build/
cxx/
images/
s/
.git/
.git/
client/node_modules
5 changes: 0 additions & 5 deletions .github/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ Write-Host "Building debug release"
$BUILD_DEBUG = "go build -gcflags=`"-N -l`" -ldflags=`"-X 'main.Version=$LatestTag-debug' -X 'main.IsDebug=yes'`" -o build/G14Manager.debug.exe .\cmd\manager"
Invoke-Expression $BUILD_DEBUG

Write-Host "Building configurator"

$BUILD_CLIENT = "go build -ldflags=`"-X main.Version=$LatestTag'`" -o build/G14Manager.config.exe .\cmd\client"
Invoke-Expression $BUILD_CLIENT

Write-Host "Building DLLs"

$BUILD_MATRIX_RELEASE_DLL = "MSBuild.exe .\cxx\MatrixController.sln /property:Configuration=Release /property:Platform=x64"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Generate protobuf
run: make proto_windows
shell: powershell
run: .\scripts\proto.ps1
- name: test packages
run: go test .\...
- name: Build MatrixControl DLL (Debug)
Expand All @@ -40,7 +41,8 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Generate protobuf
run: make proto_windows
shell: powershell
run: .\scripts\proto.ps1
- name: Build Artifacts
shell: powershell
run: .\.github\build.ps1
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate protobuf
run: make proto_windows
shell: powershell
run: .\scripts\proto.ps1
- name: Test G14Manager
run: go test ./...
- name: Build Main G14Manager Binary
run: go build -o build\G14Manager.exe .\cmd\manager
- name: Build Main G14Manager Configurator
run: go build -o build\G14Manager.config.exe .\cmd\client
- name: Build MatrixControl DLL (Release)
run: MSBuild.exe .\cxx\MatrixController.sln /property:Configuration=Release /property:Platform=x64
- name: Build MatrixControl DLL (Debug)
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ rnd/
.vscode
box/blob.go
s/
client/node_modules
rpc/protocol/*.pb.go
client/src/rpc/protocol/*.js
client/src/rpc/protocol/*.d.ts

*.rsuser
*.suo
Expand Down
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions client/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
24 changes: 24 additions & 0 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended",
"@vue/prettier",
"@vue/prettier/@typescript-eslint",
],
parserOptions: {
ecmaVersion: 2020,
},
ignorePatterns: [
"src/rpc/protocol/*.js",
"src/rpc/protocol/*.d.ts"
],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
},
};
23 changes: 23 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 24 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# client

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
3 changes: 3 additions & 0 deletions client/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
};
Loading