@hed-hog/lms 0.0.306 → 0.0.309
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.
- package/dist/course/course-structure.controller.d.ts +60 -0
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.controller.js +79 -0
- package/dist/course/course-structure.controller.js.map +1 -1
- package/dist/course/course-structure.service.d.ts +61 -1
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +326 -1
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course.controller.d.ts +52 -4
- package/dist/course/course.controller.d.ts.map +1 -1
- package/dist/course/course.service.d.ts +52 -5
- package/dist/course/course.service.d.ts.map +1 -1
- package/dist/course/course.service.js +78 -57
- package/dist/course/course.service.js.map +1 -1
- package/dist/course/dto/create-course-structure-lesson.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course-structure-lesson.dto.js +5 -1
- package/dist/course/dto/create-course-structure-lesson.dto.js.map +1 -1
- package/dist/course/dto/create-course.dto.d.ts +1 -1
- package/dist/course/dto/create-course.dto.d.ts.map +1 -1
- package/dist/course/dto/create-course.dto.js +4 -1
- package/dist/course/dto/create-course.dto.js.map +1 -1
- package/dist/course/dto/move-lesson.dto.d.ts +10 -0
- package/dist/course/dto/move-lesson.dto.d.ts.map +1 -0
- package/dist/course/dto/move-lesson.dto.js +28 -0
- package/dist/course/dto/move-lesson.dto.js.map +1 -0
- package/dist/course/dto/paste-lessons.dto.d.ts +4 -0
- package/dist/course/dto/paste-lessons.dto.d.ts.map +1 -0
- package/dist/course/dto/paste-lessons.dto.js +24 -0
- package/dist/course/dto/paste-lessons.dto.js.map +1 -0
- package/dist/course/dto/reorder-lessons.dto.d.ts +5 -0
- package/dist/course/dto/reorder-lessons.dto.d.ts.map +1 -0
- package/dist/course/dto/reorder-lessons.dto.js +24 -0
- package/dist/course/dto/reorder-lessons.dto.js.map +1 -0
- package/dist/course/dto/reorder-sessions.dto.d.ts +5 -0
- package/dist/course/dto/reorder-sessions.dto.d.ts.map +1 -0
- package/dist/course/dto/reorder-sessions.dto.js +24 -0
- package/dist/course/dto/reorder-sessions.dto.js.map +1 -0
- package/dist/training/training.controller.js +1 -1
- package/dist/training/training.controller.js.map +1 -1
- package/hedhog/data/image_type.yaml +20 -0
- package/hedhog/data/menu.yaml +2 -2
- package/hedhog/data/route.yaml +60 -6
- package/hedhog/frontend/app/_components/class-form-sheet.tsx.ejs +146 -165
- package/hedhog/frontend/app/_components/course-avatar.tsx.ejs +70 -0
- package/hedhog/frontend/app/_components/course-form-sheet.tsx.ejs +372 -22
- package/hedhog/frontend/app/classes/[id]/page.tsx.ejs +437 -77
- package/hedhog/frontend/app/classes/page.tsx.ejs +311 -289
- package/hedhog/frontend/app/courses/[id]/_components/CourseCertificateCard.tsx.ejs +10 -7
- package/hedhog/frontend/app/courses/[id]/_components/CourseClassificationCard.tsx.ejs +23 -32
- package/hedhog/frontend/app/courses/[id]/_components/CourseContentCard.tsx.ejs +3 -9
- package/hedhog/frontend/app/courses/[id]/_components/CourseDangerZoneCard.tsx.ejs +26 -16
- package/hedhog/frontend/app/courses/[id]/_components/CourseFlagsCard.tsx.ejs +19 -5
- package/hedhog/frontend/app/courses/[id]/_components/CourseMainInfoCard.tsx.ejs +10 -14
- package/hedhog/frontend/app/courses/[id]/_components/CourseMediaCard.tsx.ejs +131 -107
- package/hedhog/frontend/app/courses/[id]/_components/CourseRelationsCard.tsx.ejs +10 -7
- package/hedhog/frontend/app/courses/[id]/_components/CourseSectionCard.tsx.ejs +38 -19
- package/hedhog/frontend/app/courses/[id]/_components/CourseSummaryCard.tsx.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/_components/course-edit-types.ts.ejs +1 -1
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +336 -1057
- package/hedhog/frontend/app/courses/[id]/structure/_components/confirm-dialog.tsx.ejs +45 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-dnd.tsx.ejs +362 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-panel.tsx.ejs +111 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree-skeleton.tsx.ejs +64 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-tree.tsx.ejs +134 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-course.tsx.ejs +113 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-lesson.tsx.ejs +314 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-panel.tsx.ejs +62 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/detail-session.tsx.ejs +174 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/drag-handle.tsx.ejs +58 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/drag-overlay.tsx.ejs +52 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-bulk.tsx.ejs +276 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +1216 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +1827 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-session.tsx.ejs +443 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/highlighted-text.tsx.ejs +41 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/mock-data.ts.ejs +184 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/multi-select-bar.tsx.ejs +264 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/search-filter.tsx.ejs +96 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/session-picker-dialog.tsx.ejs +74 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/shortcuts-help.tsx.ejs +136 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/sortable-tree-row.tsx.ejs +80 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/store.ts.ejs +948 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-context-menu.tsx.ejs +525 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-display-settings-popover.tsx.ejs +150 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-helpers.ts.ejs +182 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-course.tsx.ejs +52 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-lesson.tsx.ejs +271 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row-session.tsx.ejs +167 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/tree-row.tsx.ejs +108 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/types.ts.ejs +122 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/use-course-structure-shortcuts.ts.ejs +318 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/use-tree-display-settings.ts.ejs +97 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/adapters/course-structure.adapter.ts.ejs +347 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/course-structure-contract.ts.ejs +195 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/services/course-structure.service.ts.ejs +420 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/types/api-course.types.ts.ejs +254 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-mutations.ts.ejs +987 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-query.ts.ejs +86 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure.ts.ejs +160 -0
- package/hedhog/frontend/app/courses/[id]/structure/page.tsx.ejs +10 -3212
- package/hedhog/frontend/app/courses/page.tsx.ejs +45 -26
- package/hedhog/frontend/app/{training → paths}/page.tsx.ejs +29 -7
- package/hedhog/frontend/messages/en.json +88 -10
- package/hedhog/frontend/messages/pt.json +88 -10
- package/hedhog/table/course.yaml +1 -1
- package/hedhog/table/image_type.yaml +14 -0
- package/package.json +7 -7
- package/src/course/course-structure.controller.ts +63 -0
- package/src/course/course-structure.service.ts +390 -3
- package/src/course/course.service.ts +59 -27
- package/src/course/dto/create-course-structure-lesson.dto.ts +3 -2
- package/src/course/dto/create-course.dto.ts +4 -1
- package/src/course/dto/move-lesson.dto.ts +17 -0
- package/src/course/dto/paste-lessons.dto.ts +9 -0
- package/src/course/dto/reorder-lessons.dto.ts +10 -0
- package/src/course/dto/reorder-sessions.dto.ts +10 -0
- package/src/training/training.controller.ts +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MoveLessonDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class MoveLessonDto {
|
|
15
|
+
}
|
|
16
|
+
exports.MoveLessonDto = MoveLessonDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsInt)(),
|
|
19
|
+
(0, class_validator_1.IsPositive)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], MoveLessonDto.prototype, "toSessionId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
(0, class_validator_1.Min)(0),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], MoveLessonDto.prototype, "toIndex", void 0);
|
|
28
|
+
//# sourceMappingURL=move-lesson.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-lesson.dto.js","sourceRoot":"","sources":["../../../src/course/dto/move-lesson.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AAErE,MAAa,aAAa;CAczB;AAdD,sCAcC;AAVC;IAFC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;kDACO;AASpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;8CACU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-lessons.dto.d.ts","sourceRoot":"","sources":["../../../src/course/dto/paste-lessons.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe;IAK1B,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PasteLessonsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PasteLessonsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.PasteLessonsDto = PasteLessonsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
20
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
21
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], PasteLessonsDto.prototype, "lessonIds", void 0);
|
|
24
|
+
//# sourceMappingURL=paste-lessons.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-lessons.dto.js","sourceRoot":"","sources":["../../../src/course/dto/paste-lessons.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAE3E,MAAa,eAAe;CAM3B;AAND,0CAMC;AADC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-lessons.dto.d.ts","sourceRoot":"","sources":["../../../src/course/dto/reorder-lessons.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,iBAAiB;IAC5B,6EAA6E;IAK7E,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReorderLessonsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ReorderLessonsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ReorderLessonsDto = ReorderLessonsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
20
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
21
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], ReorderLessonsDto.prototype, "lessonIds", void 0);
|
|
24
|
+
//# sourceMappingURL=reorder-lessons.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-lessons.dto.js","sourceRoot":"","sources":["../../../src/course/dto/reorder-lessons.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAE3E,MAAa,iBAAiB;CAO7B;AAPD,8CAOC;AADC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;oDACP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-sessions.dto.d.ts","sourceRoot":"","sources":["../../../src/course/dto/reorder-sessions.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAkB;IAC7B,oEAAoE;IAKpE,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReorderSessionsDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ReorderSessionsDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ReorderSessionsDto = ReorderSessionsDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
20
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
21
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], ReorderSessionsDto.prototype, "sessionIds", void 0);
|
|
24
|
+
//# sourceMappingURL=reorder-sessions.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-sessions.dto.js","sourceRoot":"","sources":["../../../src/course/dto/reorder-sessions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAE3E,MAAa,kBAAkB;CAO9B;AAPD,gDAOC;AADC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sDACN"}
|
|
@@ -98,7 +98,7 @@ __decorate([
|
|
|
98
98
|
], TrainingController.prototype, "remove", null);
|
|
99
99
|
exports.TrainingController = TrainingController = __decorate([
|
|
100
100
|
(0, api_1.Role)(),
|
|
101
|
-
(0, common_1.Controller)('lms/
|
|
101
|
+
(0, common_1.Controller)('lms/paths'),
|
|
102
102
|
__metadata("design:paramtypes", [training_service_1.TrainingService])
|
|
103
103
|
], TrainingController);
|
|
104
104
|
//# sourceMappingURL=training.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"training.controller.js","sourceRoot":"","sources":["../../src/training/training.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,sCAAoC;AACpC,2CAUwB;AACxB,mEAA8D;AAC9D,mEAA8D;AAC9D,yDAAqD;AAI9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAA6B,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAGjE,IAAI,CACa,IAAa,EACT,QAAiB,EACnB,MAAe,EACf,MAAe,EAChB,KAAc,EACf,IAAa;QAE5B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;YAC/B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7B,QAAQ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AAC,CAAA;;;;gDAEhC;6BAhDU,kBAAkB;IAF9B,IAAA,UAAI,GAAE;IACN,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAEwB,kCAAe;GADlD,kBAAkB,CAiD9B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
- slug: course-logo
|
|
2
|
+
name: Course Logo
|
|
3
|
+
applies_to_course: true
|
|
4
|
+
applies_to_exam: false
|
|
5
|
+
applies_to_learning_path: false
|
|
6
|
+
suggested_width: 500
|
|
7
|
+
suggested_height: 500
|
|
8
|
+
allowed_extensions: png,webp
|
|
9
|
+
aspect_ratio: "1:1"
|
|
10
|
+
status: active
|
|
11
|
+
- slug: course-banner
|
|
12
|
+
name: Course Banner
|
|
13
|
+
applies_to_course: true
|
|
14
|
+
applies_to_exam: false
|
|
15
|
+
applies_to_learning_path: false
|
|
16
|
+
suggested_width: 1920
|
|
17
|
+
suggested_height: 540
|
|
18
|
+
allowed_extensions: jpg,png,webp
|
|
19
|
+
aspect_ratio: "16:9"
|
|
20
|
+
status: active
|
package/hedhog/data/menu.yaml
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
- where:
|
|
45
45
|
slug: admin-lms
|
|
46
46
|
|
|
47
|
-
- url: /lms/
|
|
47
|
+
- url: /lms/paths
|
|
48
48
|
menu_id:
|
|
49
49
|
where:
|
|
50
50
|
slug: /lms
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
name:
|
|
53
53
|
en: Training
|
|
54
54
|
pt: Formação
|
|
55
|
-
slug: /lms/
|
|
55
|
+
slug: /lms/paths
|
|
56
56
|
|
|
57
57
|
relations:
|
|
58
58
|
role:
|
package/hedhog/data/route.yaml
CHANGED
|
@@ -160,6 +160,60 @@
|
|
|
160
160
|
- where:
|
|
161
161
|
slug: admin-lms
|
|
162
162
|
|
|
163
|
+
- url: /lms/courses/:id/structure/sessions/reorder
|
|
164
|
+
method: PATCH
|
|
165
|
+
relations:
|
|
166
|
+
role:
|
|
167
|
+
- where:
|
|
168
|
+
slug: admin
|
|
169
|
+
- where:
|
|
170
|
+
slug: admin-lms
|
|
171
|
+
|
|
172
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/lessons/reorder
|
|
173
|
+
method: PATCH
|
|
174
|
+
relations:
|
|
175
|
+
role:
|
|
176
|
+
- where:
|
|
177
|
+
slug: admin
|
|
178
|
+
- where:
|
|
179
|
+
slug: admin-lms
|
|
180
|
+
|
|
181
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/lessons/:lessonId/move
|
|
182
|
+
method: PATCH
|
|
183
|
+
relations:
|
|
184
|
+
role:
|
|
185
|
+
- where:
|
|
186
|
+
slug: admin
|
|
187
|
+
- where:
|
|
188
|
+
slug: admin-lms
|
|
189
|
+
|
|
190
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/duplicate
|
|
191
|
+
method: POST
|
|
192
|
+
relations:
|
|
193
|
+
role:
|
|
194
|
+
- where:
|
|
195
|
+
slug: admin
|
|
196
|
+
- where:
|
|
197
|
+
slug: admin-lms
|
|
198
|
+
|
|
199
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/lessons/paste
|
|
200
|
+
method: POST
|
|
201
|
+
relations:
|
|
202
|
+
role:
|
|
203
|
+
- where:
|
|
204
|
+
slug: admin
|
|
205
|
+
- where:
|
|
206
|
+
slug: admin-lms
|
|
207
|
+
|
|
208
|
+
- url: /lms/courses/:id/structure/sessions/:sessionId/lessons/:lessonId/duplicate
|
|
209
|
+
method: POST
|
|
210
|
+
relations:
|
|
211
|
+
role:
|
|
212
|
+
- where:
|
|
213
|
+
slug: admin
|
|
214
|
+
- where:
|
|
215
|
+
slug: admin-lms
|
|
216
|
+
|
|
163
217
|
- url: /lms/instructors
|
|
164
218
|
method: GET
|
|
165
219
|
relations:
|
|
@@ -565,7 +619,7 @@
|
|
|
565
619
|
- where:
|
|
566
620
|
slug: admin-lms
|
|
567
621
|
|
|
568
|
-
- url: /lms/
|
|
622
|
+
- url: /lms/paths
|
|
569
623
|
method: GET
|
|
570
624
|
relations:
|
|
571
625
|
role:
|
|
@@ -574,7 +628,7 @@
|
|
|
574
628
|
- where:
|
|
575
629
|
slug: admin-lms
|
|
576
630
|
|
|
577
|
-
- url: /lms/
|
|
631
|
+
- url: /lms/paths/stats
|
|
578
632
|
method: GET
|
|
579
633
|
relations:
|
|
580
634
|
role:
|
|
@@ -583,7 +637,7 @@
|
|
|
583
637
|
- where:
|
|
584
638
|
slug: admin-lms
|
|
585
639
|
|
|
586
|
-
- url: /lms/
|
|
640
|
+
- url: /lms/paths/:id
|
|
587
641
|
method: GET
|
|
588
642
|
relations:
|
|
589
643
|
role:
|
|
@@ -592,7 +646,7 @@
|
|
|
592
646
|
- where:
|
|
593
647
|
slug: admin-lms
|
|
594
648
|
|
|
595
|
-
- url: /lms/
|
|
649
|
+
- url: /lms/paths
|
|
596
650
|
method: POST
|
|
597
651
|
relations:
|
|
598
652
|
role:
|
|
@@ -601,7 +655,7 @@
|
|
|
601
655
|
- where:
|
|
602
656
|
slug: admin-lms
|
|
603
657
|
|
|
604
|
-
- url: /lms/
|
|
658
|
+
- url: /lms/paths/:id
|
|
605
659
|
method: PATCH
|
|
606
660
|
relations:
|
|
607
661
|
role:
|
|
@@ -610,7 +664,7 @@
|
|
|
610
664
|
- where:
|
|
611
665
|
slug: admin-lms
|
|
612
666
|
|
|
613
|
-
- url: /lms/
|
|
667
|
+
- url: /lms/paths/:id
|
|
614
668
|
method: DELETE
|
|
615
669
|
relations:
|
|
616
670
|
role:
|