Skip to content

Commit

Permalink
add place for metadata for each technique
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Jan 30, 2024
1 parent ce7a9ae commit 72b1be5
Show file tree
Hide file tree
Showing 36 changed files with 2,253 additions and 1,164 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
build/

35 changes: 35 additions & 0 deletions .vitest-preview/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en" class="dark h-full">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vitest Preview Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="h-full bg-slate-200">
<div class="p-10 m-auto">
No previews found.<br />
Please add following lines to your test: <br />
<br />
<div class="bg-slate-400 p-4 w-fit rounded">
<code>
import { debug } from 'vitest-preview';
<br />
<br />
// Inside your tests
<br />
describe('my test', () => {
<br />
&nbsp;&nbsp;render(&#60;MyComponent /&#62;);
<br />
&nbsp;&nbsp;debug(); // 👈 Add this line
<br />
}
</code>
</div>
<br />
Then rerun your tests.
</div>
</body>
</html>
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"test:lint": "eslint --cache .",
"test:unit": "vitest",
"test:ts": "tsc --project tsconfig.json",
"dev:unit": "vitest --ui",
"dev:vitest-preview": "vitest-preview",
"dev:ts": "tsc --project tsconfig.json --watch",
"dev": "run-p dev:*",
"prepare": "husky install"
},
"browserslist": {
Expand All @@ -52,17 +56,21 @@
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/ui": "^1.2.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-watch": "^8.0.0",
"husky": "^9.0.6",
"lint-staged": ">=15.2.0",
"node-sass": "^9.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
"sass": "^1.70.0",
"vite": "^5.0.12",
"vite-bundle-visualizer": "^1.0.0",
"vitest": "^1.2.2"
"vitest": "^1.2.2",
"vitest-preview": "^0.0.1"
},
"lint-staged": {
"*.{ts,tsx,js}": "eslint --cache --fix --max-warnings=0",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Reader/CurrentTechnique.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import css from "./CurrentTechnique.module.scss";
import { Alert } from "react-bootstrap";
import { Technique } from "../../model/Technique";
import { SINGLE_DIRECTION } from "src/exam-tables/audio-files";

export const CurrentTechnique: React.FC<{
className?: string;
Expand All @@ -14,7 +15,7 @@ export const CurrentTechnique: React.FC<{
<div className={css.techniqueParts}>
<div className={css.techniquePart}>{attack}</div>
<div className={css.techniquePart}>{defence}</div>
<div className={css.techniquePart}>{direction}</div>
{direction !== SINGLE_DIRECTION && <div className={css.techniquePart}>{direction}</div>}
</div>
</Alert>
);
Expand Down
2 changes: 1 addition & 1 deletion src/exam-tables/aikido-dojo-darmstadt/additional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const additional: ExamTable = {
techniques: {
"tachi waza": {
"chudan tsuki": {
"shiho nage": ["omote", "ura"],
"shiho nage": { omote: {}, ura: {} },
},
},
},
Expand Down
26 changes: 13 additions & 13 deletions src/exam-tables/aikido-dojo-darmstadt/dan1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ export const dan1: ExamTable = {
techniques: {
"hanmi handachi waza": {
"gyuako hanmi katate dori": {
"kote gaeshi": [],
sankyo: ["omote", "ura"],
yonkyo: ["omote", "ura"],
"kote gaeshi": { "single-direction": {} },
sankyo: { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
},
"shomen uchi": {
sankyo: ["omote", "ura"],
"soto kaiten nage": ["omote", "ura"],
yonkyo: ["omote", "ura"],
sankyo: { omote: {}, ura: {} },
"soto kaiten nage": { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
},
},
"tachi waza": {
"gyuako hanmi katate dori": {
"ude garami": [],
"ude garami": { "single-direction": {} },
},
"jodan tsuki": {
"kote gaeshi": [],
"kote gaeshi": { "single-direction": {} },
},
"katate ryote dori": {
sankyo: ["omote", "ura"],
yonkyo: ["omote", "ura"],
sankyo: { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
},
"mae ryo kata dori": {
"kokyu nage": [],
"kokyu nage": { "single-direction": {} },
},
"ushiro ryo kata dori": {
"aiki otoshi": [],
yonkyo: ["omote", "ura"],
"aiki otoshi": { "single-direction": {} },
yonkyo: { omote: {}, ura: {} },
},
},
},
Expand Down
90 changes: 45 additions & 45 deletions src/exam-tables/aikido-dojo-darmstadt/kyu1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,91 +4,91 @@ export const kyu1: ExamTable = {
techniques: {
"suwari waza": {
"yokomen uchi": {
"kote gaeshi": [],
"kote gaeshi": { "single-direction": {} },
},
"shomen uchi": {
gokyo: [],
gokyo: { "single-direction": {} },
},
},
"hanmi handachi waza": {
"shomen uchi": {
ikkyo: ["omote", "ura"],
nikyo: ["omote", "ura"],
gokyo: [],
ikkyo: { omote: {}, ura: {} },
nikyo: { omote: {}, ura: {} },
gokyo: { "single-direction": {} },
},
"gyuako hanmi katate dori": {
ikkyo: ["omote", "ura"],
nikyo: ["omote", "ura"],
ikkyo: { omote: {}, ura: {} },
nikyo: { omote: {}, ura: {} },
},
"ushiro ryo kata dori": {
ikkyo: ["omote", "ura"],
nikyo: ["omote", "ura"],
sankyo: ["omote", "ura"],
yonkyo: ["omote", "ura"],
"kokyu nage": [],
ikkyo: { omote: {}, ura: {} },
nikyo: { omote: {}, ura: {} },
sankyo: { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
"kokyu nage": { "single-direction": {} },
},
},
"tachi waza": {
"ushiro eri dori": {
ikkyo: ["omote", "ura"],
"kote gaeshi": [],
"shiho nage": [],
ikkyo: { omote: {}, ura: {} },
"kote gaeshi": { "single-direction": {} },
"shiho nage": { "single-direction": {} },
},
"jodan tsuki": {
ikkyo: ["omote", "ura"],
nikyo: ["omote", "ura"],
sankyo: ["omote", "ura"],
yonkyo: ["omote", "ura"],
"shiho nage": ["omote", "ura"],
"irimi nage": [],
"soto kaiten nage": ["omote", "ura"],
"uchi kaiten nage": ["omote", "ura"],
"koshi nage": [],
ikkyo: { omote: {}, ura: {} },
nikyo: { omote: {}, ura: {} },
sankyo: { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
"shiho nage": { omote: {}, ura: {} },
"irimi nage": { "single-direction": {} },
"soto kaiten nage": { omote: {}, ura: {} },
"uchi kaiten nage": { omote: {}, ura: {} },
"koshi nage": { "single-direction": {} },
},
"chudan tsuki": {
nikyo: ["omote", "ura"],
sankyo: ["omote", "ura"],
yonkyo: ["omote", "ura"],
"kote gaeshi": [],
"soto kaiten nage": ["omote", "ura"],
"uchi kaiten nage": ["omote", "ura"],
"koshi nage": [],
nikyo: { omote: {}, ura: {} },
sankyo: { omote: {}, ura: {} },
yonkyo: { omote: {}, ura: {} },
"kote gaeshi": { "single-direction": {} },
"soto kaiten nage": { omote: {}, ura: {} },
"uchi kaiten nage": { omote: {}, ura: {} },
"koshi nage": { "single-direction": {} },
},
"shomen uchi": {
gokyo: [],
"koshi nage": [],
gokyo: { "single-direction": {} },
"koshi nage": { "single-direction": {} },
},
"muna dori": {
"shiho nage": [],
"shiho nage": { "single-direction": {} },
},
"ushiro ryo hiji dori": {
"shiho nage": ["omote", "ura"],
"shiho nage": { omote: {}, ura: {} },
},
"ushiro katate dori kubi shime": {
ikkyo: ["omote", "ura"],
"kote gaeshi": [],
"shiho nage": [],
ikkyo: { omote: {}, ura: {} },
"kote gaeshi": { "single-direction": {} },
"shiho nage": { "single-direction": {} },
},
"katate ryote dori": {
"juji garami": [],
"juji garami": { "single-direction": {} },
},
"ryote dori": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
"kata dori men uchi": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
"yokomen uchi": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
"kata dori": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
"ushiro ryote dori": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
"ushiro ryo kata dori": {
"koshi nage": [],
"koshi nage": { "single-direction": {} },
},
},
},
Expand Down
Loading

0 comments on commit 72b1be5

Please sign in to comment.