Slowniki: nazwa EN (nameEn) w cwiczeniach/sprzecie/strefach treningowych (migracja, CRUD, seed EN sprzetu+stref, projekcje API, swagger, testy)

This commit is contained in:
tisachi
2026-10-17 10:14:35 +02:00
parent 3a593feb82
commit 37107a2789
22 changed files with 222 additions and 33 deletions

View File

@@ -14,6 +14,7 @@ export function equipmentSlugFromName(name: string): string {
export interface EquipmentSeed {
slug: string;
name: string;
nameEn: string;
kind: EquipmentKind;
spec: EquipmentSpec | null;
description: string;
@@ -33,6 +34,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'barbell',
name: 'Sztanga',
nameEn: 'Barbell',
kind: 'BARBELL',
spec: { maxLoadKg: 100 },
description: 'Sztanga z talerzami.',
@@ -40,6 +42,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'dumbbells',
name: 'Hantle',
nameEn: 'Dumbbells',
kind: 'DUMBBELL',
spec: { minKg: 2.5, maxKg: 25 },
description: 'Hantle wolne.',
@@ -47,6 +50,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'bodyweight',
name: 'Masa ciała',
nameEn: 'Bodyweight',
kind: 'BODYWEIGHT',
spec: null,
description: 'Ćwiczenia z masą ciała.',
@@ -54,6 +58,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'cable',
name: 'Wyciąg',
nameEn: 'Cable machine',
kind: 'CABLE',
spec: { minKg: 5, maxKg: 50 },
description: 'Wyciąg linowy.',
@@ -61,6 +66,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'dip-bars',
name: 'Drążek do dipów',
nameEn: 'Dip station',
kind: 'BODYWEIGHT',
spec: null,
description: 'Stojak do dipów.',
@@ -68,6 +74,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'pull-up-bar',
name: 'Drążek do podciągania',
nameEn: 'Pull-up bar',
kind: 'BODYWEIGHT',
spec: null,
description: 'Drążek do podciągania.',
@@ -75,6 +82,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'leg-press',
name: 'Leg press',
nameEn: 'Leg press',
kind: 'MACHINE',
spec: { minKg: 20, maxKg: 120 },
description: 'Maszyna do prostowania nóg.',
@@ -82,6 +90,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'leg-curl',
name: 'Leg curl',
nameEn: 'Leg curl',
kind: 'MACHINE',
spec: { minKg: 10, maxKg: 60 },
description: 'Maszyna do uginania nóg.',
@@ -90,6 +99,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'brama',
name: 'Brama',
nameEn: 'Cable crossover',
kind: 'CABLE',
spec: { minKg: 5, maxKg: 50 },
description: 'Brama siłowa (wyciąg wielostanowiskowy).',
@@ -97,6 +107,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'guma-oporowa',
name: 'Guma oporowa',
nameEn: 'Resistance band',
kind: 'OTHER',
spec: null,
description: 'Guma oporowa do asysty i oporu.',
@@ -104,6 +115,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'laweczka-plaska',
name: 'Ławeczka płaska',
nameEn: 'Flat bench',
kind: 'BENCH',
spec: { maxLoadKg: 300 },
description: 'Ławka płaska ze stojakami.',
@@ -111,6 +123,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'laweczka-skosna',
name: 'Ławeczka skośna',
nameEn: 'Incline bench',
kind: 'BENCH',
spec: { maxLoadKg: 300 },
description: 'Ławka ze skosem dodatnim/ujemnym.',
@@ -118,6 +131,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'suwnica-smitha',
name: 'Suwnica smitha',
nameEn: 'Smith machine',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 120 },
description: 'Suwnica Smitha.',
@@ -125,14 +139,23 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'butterfly',
name: 'Butterfly',
nameEn: 'Butterfly',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 80 },
description: 'Maszyna butterfly (rozpiętki).',
},
{ slug: 'trx', name: 'TRX', kind: 'OTHER', spec: null, description: 'Zawiesia TRX.' },
{
slug: 'trx',
name: 'TRX',
nameEn: 'TRX',
kind: 'OTHER',
spec: null,
description: 'Zawiesia TRX.',
},
{
slug: 'porecze-do-dipow',
name: 'Poręcze do dipów',
nameEn: 'Dip bars',
kind: 'BODYWEIGHT',
spec: null,
description: 'Poręcze do dipów.',
@@ -140,6 +163,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'hammer',
name: 'Hammer',
nameEn: 'Hammer',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 100 },
description: 'Maszyna hammer strength.',
@@ -147,6 +171,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'drazek',
name: 'Drążek',
nameEn: 'Pull-up bar',
kind: 'BODYWEIGHT',
spec: null,
description: 'Drążek do podciągania i zwisów.',
@@ -154,14 +179,23 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'kettlebell',
name: 'Kettlebell',
nameEn: 'Kettlebell',
kind: 'KETTLEBELL',
spec: { minKg: 4, maxKg: 32 },
description: 'Kettlebell.',
},
{ slug: 'kolka', name: 'Kółka', kind: 'OTHER', spec: null, description: 'Kółka gimnastyczne.' },
{
slug: 'kolka',
name: 'Kółka',
nameEn: 'Gymnastic rings',
kind: 'OTHER',
spec: null,
description: 'Kółka gimnastyczne.',
},
{
slug: 'laweczka-rzymska',
name: 'Ławeczka rzymska',
nameEn: 'Roman chair',
kind: 'BENCH',
spec: { maxLoadKg: 150 },
description: 'Ławka rzymska (hyperextension).',
@@ -169,6 +203,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'shoulder-press',
name: 'Shoulder Press',
nameEn: 'Shoulder Press',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 100 },
description: 'Maszyna do wyciskania na barki.',
@@ -176,6 +211,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'sztanga-lamana',
name: 'Sztanga łamana',
nameEn: 'EZ bar',
kind: 'BARBELL',
spec: { maxLoadKg: 100 },
description: 'Sztanga łamana (EZ).',
@@ -183,6 +219,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'triceps-press',
name: 'Triceps Press',
nameEn: 'Triceps Press',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 80 },
description: 'Maszyna na triceps.',
@@ -190,6 +227,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'modlitewnik',
name: 'Modlitewnik',
nameEn: 'Preacher curl bench',
kind: 'BENCH',
spec: { maxLoadKg: 60 },
description: 'Modlitewnik do uginania biceps.',
@@ -197,6 +235,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'pilka-gimnastyczne',
name: 'Piłka gimnastyczne',
nameEn: 'Exercise ball',
kind: 'OTHER',
spec: null,
description: 'Piłka gimnastyczna (fitball).',
@@ -204,6 +243,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'ab-wheel',
name: 'Ab wheel',
nameEn: 'Ab wheel',
kind: 'OTHER',
spec: null,
description: 'Kółko do brzucha.',
@@ -211,6 +251,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'podwyzszenie-schodki',
name: 'Podwyższenie / Schodki',
nameEn: 'Step platform',
kind: 'OTHER',
spec: null,
description: 'Podwyższenie lub schodki do wchodzenia.',
@@ -218,6 +259,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'skrzynia',
name: 'Skrzynia',
nameEn: 'Plyo box',
kind: 'OTHER',
spec: null,
description: 'Skrzynia plyometryczna.',
@@ -225,6 +267,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'leg-extension-leg-curl',
name: 'Leg Extension / Leg Curl',
nameEn: 'Leg Extension / Leg Curl',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 100 },
description: 'Maszyna do prostowania i uginania nóg.',
@@ -232,6 +275,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'drabinka',
name: 'Drabinka',
nameEn: 'Wall bars',
kind: 'OTHER',
spec: null,
description: 'Drabinka gimnastyczna.',
@@ -239,6 +283,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'kierownica-talerz',
name: 'Kierownica/ Talerz',
nameEn: 'Handlebar / Plate',
kind: 'OTHER',
spec: null,
description: 'Kierownica trójkątna lub talerz obciążeniowy.',
@@ -246,6 +291,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'suwnica-na-nogi',
name: 'Suwnica na nogi',
nameEn: 'Leg press sledge',
kind: 'MACHINE',
spec: { minKg: 10, maxKg: 200 },
description: 'Suwnica (prasa) na nogi.',
@@ -253,6 +299,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'glute-kickback-machine',
name: 'Glute Kickback Machine',
nameEn: 'Glute Kickback Machine',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 80 },
description: 'Maszyna na pośladki (kickback).',
@@ -260,6 +307,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'adductor',
name: 'Adductor',
nameEn: 'Adductor',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 80 },
description: 'Maszyna na przywodziciele/odwodziciele.',
@@ -267,6 +315,7 @@ export const EQUIPMENT: EquipmentSeed[] = [
{
slug: 'maszyna-na-lydki',
name: 'Maszyna na łydki',
nameEn: 'Calf machine',
kind: 'MACHINE',
spec: { minKg: 5, maxKg: 120 },
description: 'Maszyna do wspięć na palce.',

View File

@@ -1,6 +1,7 @@
export interface ExerciseSeed {
slug: string;
name: string;
nameEn?: string;
primaryMuscle: string;
secondaryMuscles: string[];
equipment: string[];
@@ -18,7 +19,7 @@ export interface ExerciseSeed {
commonMistakes: string;
}
export const SEED_VERSION = 2;
export const SEED_VERSION = 3;
/**
* Katalog cwiczen (seed version 2) — wygenerowany z docs/database/cwiczenia.csv.