Skip to content
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

Feat/change UI #15

Merged
merged 22 commits into from
Aug 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f049b7a
feat(icons): add icons, create ReangeSliders component
Aug 21, 2022
6cb4e17
feat(Connect): isolate connect component, refactor websocket
Aug 26, 2022
c8a454a
feat(edit-sequence): create edit sequence component, change to font-a…
Aug 26, 2022
9f51219
feat(icons): add remaining icons
Aug 26, 2022
51217b7
feat(store): reorganize store into substores
Aug 26, 2022
cc4d7f3
feat(tabs): put all controls into tabs
Aug 26, 2022
3e78d11
feat(styles): slight change of styles
Aug 27, 2022
ca28947
test(store): add serialCommStore and armControlStore
Aug 27, 2022
9fe2b50
test(store): add remaining test for stores
Aug 27, 2022
d2cd0c6
chore(ci): setup workflow for build and testing
Aug 27, 2022
400e023
fix(build): updated typescript
Aug 27, 2022
024a175
feat(armControlStore): add methods to create commands
Aug 27, 2022
606d944
feat(RecordCommands): fix styling of record commands
Aug 27, 2022
603d166
feat(model): make model fullscreen with sidenav controls
Aug 27, 2022
67403c6
feat(sidebar): update sidebar styleing
Aug 27, 2022
334016c
feat(spinbuttons): add spinbuttons to sliders
Aug 27, 2022
8895ef6
feat(Arm.ts): add mesh id to joints data
Aug 28, 2022
05e9257
feat(Arm.ts): tweaked scene lights and shadows
Aug 28, 2022
dd56688
feat(controls): add center camera button, fix center camera method
Aug 28, 2022
24de0d6
feat(loading): add model loading animation
Aug 28, 2022
6c85e79
feat(connect): add connect as a feature instead of a requirement
Aug 28, 2022
c14aa60
feat(deploy): add automatic deploy to firebase hosting
Aug 28, 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
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@ module.exports = {
'eslint:recommended',
'@vue/prettier',
'@vue/typescript'
],

overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "big-robot-arm-ui"
}
}
74 changes: 74 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: NPM vue2/ts workflow
on:
push:
branches: [ $default-branch ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- name: Build project
run: |
npm ci
npm run build
- uses: montudor/action-zip@v1
with:
args: zip -qq -r dist.zip dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
- run: echo "🍏 This job's status is ${{ job.status }}."

test-unit:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- name: Run tests
run: |
npm ci
npm run test:unit
- uses: montudor/action-zip@v1
with:
args: zip -qq -r coverage.zip coverage
- uses: actions/upload-artifact@v3
with:
name: coverage-reports
path: coverage
- run: echo "🍏 This job's status is ${{ job.status }}."

deploy:
runs-on: ubuntu-latest
needs: [build, test-unit]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- run: |
npm ci
npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BIG_ROBOT_ARM_UI }}'
channelId: live
projectId: big-robot-arm-ui
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ pnpm-debug.log*
*.sln
*.sw?

# my files
adafruitconfig.js
# coverage
/coverage
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.{ts,vue}',
'!src/EventBus.ts',
'!src/registerServiceWorker.ts',
'!src/main.ts',
'!src/shared.ts',
'!src/store/store.ts',
'!src/constants/**/*',
'!src/plugins/**/*',
'!src/router/**/*',
'!src/assets/**/*'
]
}
15 changes: 0 additions & 15 deletions jsconfig.json

This file was deleted.

Loading