-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frc_events): Add FRC Events as an alternative match data source (#…
…60) Co-authored-by: Evan Strat <[email protected]>
- Loading branch information
Showing
24 changed files
with
566 additions
and
13 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,25 @@ | ||
<template> | ||
<VAlert v-if="!settingsStore.isFirstLoad && settingsStore.settings?.useFrcEventsApi" | ||
color="warning" | ||
variant="tonal" | ||
density="comfortable" | ||
:rounded="props.rounded ?? 0" | ||
icon="mdi-alert-outline" | ||
> | ||
<template v-slot:text> | ||
<strong>Using FRC Events API.</strong> This is not recommended unless match data is unavailable on The Blue | ||
Alliance. | ||
</template> | ||
</VAlert> | ||
</template> | ||
<script lang="ts" setup> | ||
import {useSettingsStore} from "@/stores/settings"; | ||
const settingsStore = useSettingsStore(); | ||
settingsStore.getSettings(); | ||
interface IProps { | ||
rounded?: number; | ||
} | ||
const props = defineProps<IProps>(); | ||
</script> |
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
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,19 @@ | ||
<template> | ||
<p v-if="settingsStore.settings?.useFrcEventsApi" | ||
class="text-caption" | ||
> | ||
<VIcon icon="mdi-information" /> <a target="_blank" href="https://frc-events.firstinspires.org/services/API"> | ||
Event Data provided by <em>FIRST</em> | ||
</a> | ||
</p> | ||
<p v-else class="text-caption"> | ||
<VIcon icon="mdi-information" /> <a target="_blank" href="https://thebluealliance.com"> | ||
Powered by The Blue Alliance | ||
</a> | ||
</p> | ||
</template> | ||
<script lang="ts" setup> | ||
import {useSettingsStore} from "@/stores/settings"; | ||
const settingsStore = useSettingsStore(); | ||
</script> |
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
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
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
Oops, something went wrong.