Skip to content

Commit

Permalink
add message about broken usaco judge
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingwizard committed May 7, 2024
1 parent b3984c7 commit 8d2607e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/components/JudgeInterface/JudgeInterface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import USACOResults from './USACOResults';
import { ProblemData, StatusData } from '../Workspace/Workspace';
import SubmitButton from './SubmitButton';
import { PlayCircleIcon } from '@heroicons/react/20/solid';
import { useUserContext } from '../../context/UserContext';
import { useEditorContext } from '../../context/EditorContext';

export const judgePrefix =
process.env.NODE_ENV === 'development' && false // note: having this as localhost:5000 will break testing
? 'http://localhost:5000'
process.env.NODE_ENV === 'development' && true // note: having this as localhost:5000 will break testing
? 'http://localhost:8080'
: 'https://vjudge.usaco.guide';

function encode(str: string | null) {
Expand Down Expand Up @@ -100,9 +99,15 @@ export default function JudgeInterface({
<div className="flex-1 overflow-y-auto">
<div className="p-4 pb-0">
<p className="text-gray-400 text-sm mb-4">
Early access. Report issues to Github. Do not spam submit.
{/* Note: You will not be able to submit to a problem in an active contest. */}
{/* ^ is this necessary? */}
{/* Early access. Report issues to Github. Do not spam submit. */}
Note: USACO problem submission{' '}
<a
href="https://github.com/cpinitiative/ide/issues/138"
className="underline"
>
is broken
</a>
. Unfortunately, we don&apos;t know when this will be fixed.
</p>
<>
<p className="text-gray-100 font-bold text-lg">
Expand Down Expand Up @@ -154,7 +159,7 @@ export default function JudgeInterface({
</div>
<SubmitButton
isLoading={(statusData?.statusCode ?? 0) <= -8}
isDisabled={!problem.submittable}
isDisabled={!problem.submittable || true}
onClick={() => handleSubmit()}
/>
</div>
Expand Down

0 comments on commit 8d2607e

Please sign in to comment.