-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
351 changed files
with
58,587 additions
and
702 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,43 @@ | ||
--- | ||
name: Issue Template | ||
about: Template for creating well-documented issues | ||
--- | ||
|
||
## Description | ||
|
||
[Provide a clear and concise description of the issue.] | ||
|
||
## Steps to Reproduce | ||
|
||
[Outline the steps to reproduce the issue, if applicable.] | ||
|
||
## Expected Behavior | ||
|
||
[Describe what you expected to happen.] | ||
|
||
## Actual Behavior | ||
|
||
[Describe what actually happened.] | ||
|
||
## Screenshots | ||
|
||
[If applicable, add screenshots to help explain the issue.] | ||
|
||
## Additional Information | ||
|
||
[Add any other relevant information about the issue here.] | ||
|
||
## Possible Solution | ||
|
||
[Suggest a possible solution to the issue, if you have one.] | ||
|
||
## Related Issues | ||
|
||
[List any related issues or pull requests here.] | ||
|
||
## Checklist | ||
|
||
- [ ] I have read the project's contributing guidelines. | ||
- [ ] I have searched for similar issues and confirmed that this is not a duplicate. | ||
- [ ] I have provided all the necessary information for the issue. | ||
- [ ] I have assigned the appropriate labels and milestone to the issue. |
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,35 @@ | ||
## Description | ||
|
||
Please provide a brief description of the changes made in this pull request. | ||
|
||
## Motivation | ||
|
||
Explain the motivation behind these changes. Why are they necessary or beneficial? | ||
|
||
## Changes Made | ||
|
||
List the specific changes made in this pull request. Be as detailed as possible. | ||
|
||
## Screenshots (if applicable) | ||
|
||
If your changes include visual updates, please provide screenshots to showcase the before and after. | ||
|
||
## Testing | ||
|
||
Describe the testing process you have followed to ensure that your changes are working as expected. | ||
|
||
## Checklist | ||
|
||
- [ ] I have reviewed the code changes thoroughly. | ||
- [ ] I have tested the changes locally. | ||
- [ ] I have updated the documentation if necessary. | ||
- [ ] I have added appropriate comments to the code. | ||
- [ ] I have followed the project's coding conventions and guidelines. | ||
|
||
## Related Issues | ||
|
||
List any related issues or pull requests that are addressed or referenced by this pull request. | ||
|
||
## Additional Notes | ||
|
||
Add any additional notes or context that may be helpful for reviewers. |
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,30 @@ | ||
name: Deploy to Development Environment | ||
on: | ||
push: | ||
branches: | ||
- deploy | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Retrieve git dependencies | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: pull latest from deploy branch | ||
uses: appleboy/[email protected] | ||
env: | ||
PROJECT: /root/tators-dashboard | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
envs: PROJECT | ||
script: | | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
sh gh-actions/tatorscout/nightly.sh |
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,31 @@ | ||
name: Deploy to Development Environment | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Retrieve git dependencies | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: pull latest from deploy branch | ||
uses: appleboy/[email protected] | ||
env: | ||
PROJECT: /root/tators-dashboard | ||
|
||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.KEY }} | ||
port: ${{ secrets.PORT }} | ||
envs: PROJECT | ||
script: | | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | ||
sh gh-actions/tatorscout/release.sh |
This file was deleted.
Oops, something went wrong.
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
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,11 @@ | ||
import '../../utilities/imports'; | ||
|
||
import Dashboard from '../../views/dashboards/2024.svelte'; | ||
import { FIRSTYear } from '../../models/FIRST/year'; | ||
import '../../models/FIRST/model-builder'; | ||
|
||
new Dashboard({ | ||
target: document.body | ||
}); | ||
|
||
FIRSTYear.select(2023); |
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,11 @@ | ||
import '../../utilities/imports'; | ||
|
||
import Dashboard from '../../views/dashboards/2024.svelte'; | ||
import { FIRSTYear } from '../../models/FIRST/year'; | ||
import '../../models/FIRST/model-builder'; | ||
|
||
new Dashboard({ | ||
target: document.body | ||
}); | ||
|
||
FIRSTYear.select(2024); |
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,7 @@ | ||
import '../../utilities/imports'; | ||
import App from '../../views/pages/account.svelte'; | ||
import '../../models/FIRST/model-builder'; | ||
import { FIRSTYear } from '../../models/FIRST/year'; | ||
FIRSTYear.select(new Date().getFullYear()); | ||
|
||
const myApp = new App({ target: document.body }); |
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
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
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,7 @@ | ||
import '../../utilities/imports'; | ||
import App from '../../views/dashboards/Mentor.svelte'; | ||
import '../../models/FIRST/model-builder'; | ||
import { FIRSTYear } from '../../models/FIRST/year'; | ||
|
||
const myApp = new App({ target: document.body }); | ||
FIRSTYear.select(new Date().getFullYear()); |
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,11 @@ | ||
import '../../utilities/imports'; | ||
|
||
import PitDisplay from '../../views/dashboards/Pit.svelte'; | ||
import { FIRSTYear } from '../../models/FIRST/year'; | ||
import '../../models/FIRST/model-builder'; | ||
|
||
new PitDisplay({ | ||
target: document.body | ||
}); | ||
|
||
FIRSTYear.select(2024); |
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 @@ | ||
import '../utilities/imports'; | ||
import App from '../views/pages/Home.svelte'; | ||
|
||
const myApp = new App({ target: document.body }); |
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 @@ | ||
import '../../utilities/imports'; | ||
import App from '../../views/components/Chart.svelte'; | ||
|
||
const myApp = new App({ target: document.body }); |
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 @@ | ||
import '../../utilities/imports'; | ||
import App from '../../views/components/robot-display/UploadTeamPicture.svelte'; | ||
|
||
const myApp = new App({ target: document.body }); |
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 @@ | ||
import '../../utilities/imports'; | ||
import App from '../../views/components/robot-display/VelocityHistogram.svelte'; | ||
|
||
const myApp = new App({ target: document.body }); |
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,22 @@ | ||
import { FIRSTWhiteboard } from '../../models/FIRST/whiteboard'; | ||
import { globalize } from '../../utilities/global'; | ||
import '../../utilities/imports'; | ||
import App from '../../views/components/whiteboard/Whiteboard.svelte'; | ||
|
||
const wb = new FIRSTWhiteboard({ | ||
id: '1', | ||
name: 'Test', | ||
strategyId: '1', | ||
archived: false, | ||
board: '[]' | ||
}); | ||
|
||
new App({ | ||
target: document.body, | ||
props: { | ||
whiteboard: wb, | ||
year: 2024 | ||
} | ||
}); | ||
|
||
globalize(wb, 'wb'); |
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,30 @@ | ||
import { Cache } from '../cache'; | ||
import { EventEmitter } from '../../../shared/event-emitter'; | ||
import { FIRSTTeam } from './team'; | ||
|
||
type FIRSTAllianceEventData = { | ||
'': ''; | ||
}; | ||
|
||
type Updates = { | ||
select: FIRSTAlliance; | ||
}; | ||
|
||
export type Alliance = [FIRSTTeam, FIRSTTeam, FIRSTTeam, FIRSTTeam | null]; | ||
|
||
export class FIRSTAlliance extends Cache<FIRSTAllianceEventData> { | ||
private static readonly emitter = new EventEmitter<Updates>(); | ||
|
||
public static on = FIRSTAlliance.emitter.on.bind(FIRSTAlliance.emitter); | ||
public static off = FIRSTAlliance.emitter.off.bind(FIRSTAlliance.emitter); | ||
public static emit = FIRSTAlliance.emitter.emit.bind(FIRSTAlliance.emitter); | ||
public static once = FIRSTAlliance.emitter.once.bind(FIRSTAlliance.emitter); | ||
|
||
constructor(public readonly teams: Alliance) { | ||
super(); | ||
} | ||
|
||
hasTeam(team: number) { | ||
return this.teams.some(t => t?.number === team); | ||
} | ||
} |
Oops, something went wrong.