Front: Models: 'Competency' type renamed to 'Skill'
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ export default class API {
|
|||||||
title: "Song",
|
title: "Song",
|
||||||
description: "A song",
|
description: "A song",
|
||||||
requiredLevel: 1,
|
requiredLevel: 1,
|
||||||
mainCompetency: 'lead-head-change',
|
mainSkill: 'lead-head-change',
|
||||||
id: lessonId
|
id: lessonId
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Competency from "./Competency";
|
import Skill from "./Skill";
|
||||||
import Model from "./Model";
|
import Model from "./Model";
|
||||||
|
|
||||||
interface Chapter extends Model {
|
interface Chapter extends Model {
|
||||||
@@ -7,7 +7,7 @@ interface Chapter extends Model {
|
|||||||
songId: number;
|
songId: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'chorus' | 'verse';
|
type: 'chorus' | 'verse';
|
||||||
key_aspect: Competency;
|
key_aspect: Skill;
|
||||||
difficulty: number
|
difficulty: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import Competency from "./Competency";
|
import Skill from "./Skill";
|
||||||
import Model from "./Model";
|
import Model from "./Model";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Lesson is an exercice that the user can try to practice a competency
|
* A Lesson is an exercice that the user can try to practice a skill
|
||||||
*/
|
*/
|
||||||
interface Lesson extends Model {
|
interface Lesson extends Model {
|
||||||
/**
|
/**
|
||||||
@@ -18,9 +18,9 @@ interface Lesson extends Model {
|
|||||||
*/
|
*/
|
||||||
requiredLevel: number;
|
requiredLevel: number;
|
||||||
/**
|
/**
|
||||||
* The main competency learnt in this lesson
|
* The main skill learnt in this lesson
|
||||||
*/
|
*/
|
||||||
mainCompetency: Competency;
|
mainSkill: Skill;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Lesson;
|
export default Lesson;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
type Competency = 'rhythm'
|
type Skill = 'rhythm'
|
||||||
| 'two-hands'
|
| 'two-hands'
|
||||||
| 'combos'
|
| 'combos'
|
||||||
| 'arpeggio'
|
| 'arpeggio'
|
||||||
@@ -12,4 +12,4 @@ type Competency = 'rhythm'
|
|||||||
| 'precision'
|
| 'precision'
|
||||||
|
|
||||||
|
|
||||||
export default Competency;
|
export default Skill;
|
||||||
Reference in New Issue
Block a user