Skip to content
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
876 changes: 876 additions & 0 deletions dist/assets/index-CgzK9Wqc.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/index-Pa8Yw8xE.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/favicon.ico
Binary file not shown.
22 changes: 22 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en" theme="dark">

<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CopperScout</title>
<!-- Fonts to support Material Design -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap" />
<script type="module" crossorigin src="/assets/index-CgzK9Wqc.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Pa8Yw8xE.css">
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="app"></div>
</body>

</html>
Expand Down
2 changes: 2 additions & 0 deletions src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { useEventStore } from '@/stores/event-store';
<RouterLink to="/event" class="nav-link nav-link-mobile">Event Analysis</RouterLink>
<RouterLink to="/team" class="nav-link nav-link-mobile">Team Analysis</RouterLink>
<RouterLink to="/match" class="nav-link nav-link-mobile">Match Preview</RouterLink>
<RouterLink to="/headscout" class="nav-link nav-link-mobile">Headscout Review</RouterLink>
</template>
</HamburgerMenu>

Expand All @@ -39,6 +40,7 @@ import { useEventStore } from '@/stores/event-store';
<RouterLink to="/event" class="nav-link">Event Analysis</RouterLink>
<RouterLink to="/team" class="nav-link">Team Analysis</RouterLink>
<RouterLink to="/match" class="nav-link">Match Preview</RouterLink>
<RouterLink to="/headscout" class="nav-link">Headscout Review</RouterLink>

<div class="nav-dark-mode nav-right" @click="toggleUserDarkMode">
<md-icon slot="icon" v-if="isDarkMode">dark_mode</md-icon>
Expand Down
113 changes: 113 additions & 0 deletions src/lib/2025/head-scouting-form.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
// @ts-nocheck

import { getTeamInputElement } from "@/lib/data-submission";

export async function getHeadScoutSchema() {
const teamInputElement = await getTeamInputElement();

return [
{
key: "prematch",
name: "Pre-match",
components: [
{
key: "scout_name",
label: "Scout Name",
type: "text",
options: {},
defaultValue: "",
value: "",
preserveAfterSubmit: true,
incrementAfterSubmit: false,
required: true,
error: false
},
{
key: "scout_team",
label: "Scout Team",
type: "dropdown",
options: {
choices: [
{ key: "invalid", text: "" },
{ key: "401", text: "401 - Copperhead Robotics" },
{ key: "1629", text: "1629 - Garrett Coalition (GaCo)" },
{ key: "5804", text: "5804 - TORCH" }
]
},
defaultValue: 0,
value: 0,
preserveAfterSubmit: true,
incrementAfterSubmit: false,
required: true,
error: false
},
{
key: "match_number",
label: "Match Number",
type: "number",
options: {},
defaultValue: null,
value: null,
preserveAfterSubmit: false,
incrementAfterSubmit: true,
required: true,
error: false
},
]
},
{
key: "auto",
name: "Autonomous",
components: [
{
key: "autocomments",
label: "Auto Comments",
type: "textarea",
options: {},
defaultValue: "",
value: "",
preserveAfterSubmit: false,
incrementAfterSubmit: false,
required: false,
error: false
},
]
},
{
key: "teleop",
name: "Teleop/Endgame",
components: [
{
key: "telecomments",
label: "Tele Comments",
type: "textarea",
options: {},
defaultValue: "",
value: "",
preserveAfterSubmit: false,
incrementAfterSubmit: false,
required: false,
error: false
},
]
},
{
key: "postmatch",
name: "Post Match",
components: [
{
key: "postcomments",
label: "Comments",
type: "textarea",
options: {},
defaultValue: "",
value: "",
preserveAfterSubmit: false,
incrementAfterSubmit: false,
required: false,
error: false
},
]
}
];
}
1 change: 1 addition & 0 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

// Database tables
export const matchScoutTable = "MatchData";
export const headScoutTable = "HeadScoutData"
export const pitScoutTable = "PitData";
export const eventInfoTable = "Event";
export const teamInfoTable = "Team";
Expand Down
4 changes: 2 additions & 2 deletions src/lib/supabase-client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { createClient } from '@supabase/supabase-js'

export const projectId = "hsmkwrrptltywjqljrpf"
export const supabase = createClient("https://" + projectId + ".supabase.co", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhzbWt3cnJwdGx0eXdqcWxqcnBmIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcyOTcyODQ5MiwiZXhwIjoyMDQ1MzA0NDkyfQ.qgVkNvWkDXiaiS9GDzG-1fFYkf3KnheVpIJr4B3XfFk");
export const projectId = "oltmplswnrxlhmordqki"
export const supabase = createClient("https://" + projectId + ".supabase.co", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9sdG1wbHN3bnJ4bGhtb3JkcWtpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk5NDg1ODAsImV4cCI6MjA3NTUyNDU4MH0.K78JxtZvx2QUS2B8YimMjYzA5f5olHag-3QVoM6-Or0");
6 changes: 6 additions & 0 deletions src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PitScoutView from "@/views/PitScoutView.vue";
import TeamAnalysisView from "@/views/TeamAnalysisView.vue";
import EventAnalysisView from "@/views/EventAnalysisView.vue";
import MatchPreviewView from "@/views/MatchPreviewView.vue";
import HeadscoutReviewView from "@/views/HeadscoutReviewView.vue";

const router = createRouter({
history: createWebHistory(),
Expand Down Expand Up @@ -37,6 +38,11 @@ const router = createRouter({
path: "/match",
name: "Match Preview",
component: MatchPreviewView,
},
{
path: "/headscout",
name: "Headscout Review",
component: HeadscoutReviewView,
}
],
});
Expand Down
Loading