Skip to content

Commit

Permalink
new mock configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
instructr13 committed Oct 19, 2024
1 parent 75ee993 commit 9c4c1df
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions apps/frontend/src/app/routes/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@ import { useState } from "react";
import { MockServerConnectionCard } from "../components/mock-server/MockServerConnectionCard";

// Code from apps/frontend/src/app/routes/mock.tsx
type GenerationKindStart = "all-random" | "gen-random" | "column-seq" | "column-seq-reverse" | "column-group-shuffle";
type GenerationKindStart =
| "all-random"
| "gen-random"
| "column-seq"
| "column-seq-reverse"
| "column-group-shuffle"
| "random-area-reverse"
| "block-swap";

const generationKindStarts: GenerationKindStart[] = [
"all-random",
"gen-random",
"column-seq",
"column-seq-reverse",
"column-group-shuffle",
"random-area-reverse",
"block-swap",
] as const;

type GenerationKindGoal =
Expand All @@ -38,7 +47,9 @@ type GenerationKindGoal =
| "column-seq"
| "column-seq-reverse"
| "partial-single-swap"
| "partial-block-swap";
| "partial-block-swap"
| "random-area-reverse"
| "block-swap";

const generationKindGoals: GenerationKindGoal[] = [
"all-random",
Expand All @@ -49,6 +60,8 @@ const generationKindGoals: GenerationKindGoal[] = [
"column-seq-reverse",
"partial-single-swap",
"partial-block-swap",
"random-area-reverse",
"block-swap",
] as const;

export default function Page() {
Expand Down

0 comments on commit 9c4c1df

Please sign in to comment.