Skip to content

Commit

Permalink
Merge pull request #388 from tsaxking/2024-09-14-SRR-autoPitUpdate
Browse files Browse the repository at this point in the history
update match to closest every minute in pit dashboard
  • Loading branch information
tsaxking authored Sep 14, 2024
2 parents c0702f5 + 9c1c012 commit 320b16a
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 287 deletions.
95 changes: 42 additions & 53 deletions client/views/dashboards/Pit.svelte
Original file line number Diff line number Diff line change
@@ -1,56 +1,54 @@
<script lang="ts">
import TaylorPitStrategy from '../pages/strategy/Strategy.svelte';
import Main from '../components/main/Main.svelte';
import Page from '../components/main/Page.svelte';
import BorderlessPage from '../components/main/BorderlessPage.svelte';
import { type PageGroup } from '../../utilities/general-types';
import { getOpenPage } from '../../utilities/page';
import { FIRSTEvent } from '../../models/FIRST/event';
import PitDashboard from '../pages/strategy/PitDashboard.svelte';
import PitStrategy from '../pages/strategy/PitStrategy.svelte';
import TaylorPitStrategy from '../pages/strategy/Strategy.svelte';
import Main from '../components/main/Main.svelte';
import Page from '../components/main/Page.svelte';
import BorderlessPage from '../components/main/BorderlessPage.svelte';
import { type PageGroup } from '../../utilities/general-types';
import { getOpenPage } from '../../utilities/page';
import { FIRSTEvent } from '../../models/FIRST/event';
import PitDashboard from '../pages/strategy/PitDashboard.svelte';
import Strategy from '../pages/strategy/Strategy.svelte';
const groups: PageGroup[] = [
{
name: 'Pit',
pages: [
{
name: 'pit-dashboard',
icon: 'event',
iconType: 'material'
},
{
name: 'pit-strategy',
icon: 'list',
iconType: 'material'
},
{
name: 'taylor-pit-strategy',
icon: 'list',
iconType: 'material'
}
]
}
];
const groups: PageGroup[] = [
{
name: 'Pit',
pages: [
{
name: 'pit-dashboard',
icon: 'event',
iconType: 'material'
},
{
name: 'strategy',
icon: 'list',
iconType: 'material'
}
]
}
];
let active = getOpenPage() || 'pit-dashboard';
let active = getOpenPage() || 'pit-dashboard';
const domain = 'tatorscout.org';
const domain = 'tatorscout.org';
const navItems: string[] = [
const navItems: string[] = [
// 'app'
];
];
const accountLinks: string[] = [
const accountLinks: string[] = [
// 'account',
// 'contact',
// null
];
];
let currentEvent: FIRSTEvent | null = null;
let currentEvent: FIRSTEvent | null = null;
FIRSTEvent.on('select', e => {
currentEvent = e;
});
FIRSTEvent.on('select', e => {
currentEvent = e;
});
// i think this is what I should do to make it not complain about loading without loading
let loading = false;
</script>

<Main
Expand All @@ -63,19 +61,10 @@
active = e.detail;
}}"
>
<BorderlessPage
{active}
{domain}
title="pit-dashboard">
<BorderlessPage {active} {domain} title="pit-dashboard">
<PitDashboard />
</BorderlessPage>
<Page
{active}
{domain}
title="pit-strategy">
<PitStrategy />
<Page {active} {domain} title="strategy">
<Strategy bind:loading />
</Page>
<!-- <Page {active} {domain} title="taylor-pit-strategy"> -->
<!-- <Strategy bind:loading /> -->
<!-- </Page> -->
</Main>
Loading

0 comments on commit 320b16a

Please sign in to comment.