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