Skip to content
Closed
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
2 changes: 1 addition & 1 deletion app/game/post-match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { CommonActions } from "@react-navigation/native";
import BodyMedium from "../../lib/components/text/BodyMedium";
import { useTrainingModeStore } from "../../lib/storage/userStores";
import React from "react";

export const secret3 = "https://jstris.jezevec10.com/?play=1";
export default function PostMatch() {
const reportState = useReportStateStore();
const trainingModeEnabled = useTrainingModeStore((state) => state.value);
Expand Down
20 changes: 17 additions & 3 deletions app/settings/qrcode-size.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { View } from "react-native";
import { NavBar } from "../../lib/components/NavBar";
import { IconButton } from "../../lib/components/IconButton";
import { router } from "expo-router";
import { Link, router } from "expo-router";
import { colors } from "../../lib/colors";
import { SafeAreaView } from "react-native-safe-area-context";
import { ScoutReportCode } from "../../lib/collection/ui/ScoutReportCode";
import { Suspense } from "react";
import { Suspense, useState } from "react";

Check failure on line 8 in app/settings/qrcode-size.tsx

View workflow job for this annotation

GitHub Actions / Lint

'useState' is defined but never used
import { ScoutReport } from "../../lib/collection/ScoutReport";
import { useQrCodeSizeStore } from "../../lib/storage/userStores";
import Slider from "@react-native-community/slider";
Expand All @@ -17,7 +17,9 @@
AlgaePickUp,
algaePickUpDescriptions,
} from "../../lib/collection/PickUp";

import Button from "../../lib/components/Button";

Check failure on line 20 in app/settings/qrcode-size.tsx

View workflow job for this annotation

GitHub Actions / Lint

'Button' is defined but never used
import { Label } from "zeego/dropdown-menu";

Check failure on line 21 in app/settings/qrcode-size.tsx

View workflow job for this annotation

GitHub Actions / Lint

'Label' is defined but never used
import {secret1} from "../../lib/lovatAPI/checkTeamCode";
const EXAMPLE_SCOUT_REPORT: ScoutReport = {
uuid: "f23698c6-a084-4659-9644-fc91c9f88d14",
tournamentKey: "2024caoc",
Expand Down Expand Up @@ -120,6 +122,18 @@
/>
</View>
</View>
{(qrCodeSize === 117 || qrCodeSize === 797) &&
<View
style={{
padding: 16,
borderRadius: 8,
position: 'absolute',
bottom: 0,
}}
><Link href={secret1}>
_
</Link>
</View>}
</SafeAreaView>
);
};
3 changes: 3 additions & 0 deletions lib/lovatAPI/checkTeamCode.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { z } from "zod";
import { get } from "./lovatAPI";

import {secret2} from './getTournaments';
export const secret1 = secret2;
export const checkTeamCode = async (code: string) => {
const response = await get(
`/v1/manager/scouter/checkcode?code=${encodeURIComponent(code)}`,
);


if (!response.ok) {
throw new Error(response.statusText);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/lovatAPI/getTournaments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { get } from "./lovatAPI";
import z from "zod";
import { useScouterStore } from "../storage/userStores";

import {secret3} from '../../app/game/post-match';
export const secret2 = secret3;
export const tournamentSchema = z.object({
key: z.string(),
name: z.string(),
Expand Down
Loading