@reldens/skills 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,7 +18,8 @@ class ClassPathGenerator
|
|
|
18
18
|
}
|
|
19
19
|
let classPathsById = {};
|
|
20
20
|
let classPathsByKey = {};
|
|
21
|
-
|
|
21
|
+
let activeClassPathModels = classPathModels.filter(classPathModel => classPathModel.enabled);
|
|
22
|
+
for(let classPathModel of activeClassPathModels){
|
|
22
23
|
let classPathData = {class: sc.get(classPathClasses, classPathModel.key, ClassPath), data: classPathModel};
|
|
23
24
|
classPathModel.classPathLevels = LevelsGenerator.fromLevelsModels(
|
|
24
25
|
classPathModel.skills_levels_set.skills_levels_set_levels
|
|
@@ -27,7 +28,7 @@ class ClassPathGenerator
|
|
|
27
28
|
classPathsById[classPathModel.id] = classPathData;
|
|
28
29
|
classPathsByKey[classPathModel.key] = classPathData;
|
|
29
30
|
}
|
|
30
|
-
return {classPathModels:
|
|
31
|
+
return {classPathModels: activeClassPathModels, classPathsById, classPathsByKey};
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
static extractLabelsByLevels(levelLabelsModel)
|
|
@@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS `skills_class_path` (
|
|
|
17
17
|
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
18
18
|
`label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
|
19
19
|
`levels_set_id` int unsigned NOT NULL,
|
|
20
|
+
`enabled` int unsigned NOT NULL DEFAULT '0',
|
|
20
21
|
PRIMARY KEY (`id`),
|
|
21
22
|
UNIQUE KEY `key` (`key`),
|
|
22
23
|
KEY `levels_set_id` (`levels_set_id`),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reldens/skills",
|
|
3
3
|
"scope": "@reldens",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.0",
|
|
5
5
|
"description": "Reldens - Skills",
|
|
6
6
|
"author": "Damian A. Pastorini",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"url": "https://github.com/damian-pastorini/reldens-skills/issues"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@reldens/modifiers": "^0.
|
|
44
|
-
"@reldens/storage": "^0.
|
|
45
|
-
"@reldens/utils": "^0.
|
|
43
|
+
"@reldens/modifiers": "^0.22.0",
|
|
44
|
+
"@reldens/storage": "^0.20.0",
|
|
45
|
+
"@reldens/utils": "^0.30.0"
|
|
46
46
|
}
|
|
47
47
|
}
|