This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services; | |
| use \App\Repositories\ModuleContentRepository; | |
| use \App\Repositories\ModuleProgressRepository; | |
| use \App\Repositories\ModuleRepository; | |
| use \App\Services\UserStudentService; | |
| class ModuleProgressService extends Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Pega o último módulo disponível ao usuário baseado em seu progresso | |
| export const nextModule = (api, courseId, courseClassId) => { | |
| return api.get(`/student/module_progress/next_module/${courseId}/${courseClassId}`) | |
| } | |
| // Pega os conteúdos do módulo solicitado caso o usuário tenha acesso. | |
| export const moduleContent = (api, moduleId, courseClassId) => { | |
| return api.get(`/student/course_module_content/${moduleId}/${courseClassId}`) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services; | |
| use \App\Repositories\ModuleContentRepository; | |
| use \App\Repositories\ModuleProgressRepository; | |
| use \App\Repositories\ModuleRepository; | |
| use \App\Services\UserStudentService; | |
| class ModuleProgressService extends Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| [ | |
| { | |
| "id": 1, | |
| "course_class_id": 1, | |
| "course_id": 2, | |
| "created_at": "2020-04-06T16:48:56.000000Z", | |
| "updated_at": "2020-04-06T16:48:56.000000Z" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated | |
| npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
| npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x. | |
| npm WARN deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) | |
| npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 | |
| npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
| npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js | |
| > ws@0.4.32 install /home/instalando/Downloads/lingo-player/node_modules/ws | |
| > (node-gyp rebuild 2> builderror.log) || (exit 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-form ref="form"> | |
| <v-card> | |
| <v-card-title> | |
| <span class="headline">Criar novo Usuário</span> | |
| </v-card-title> | |
| <v-card-text> | |
| <v-container> | |
| <v-col cols="12" v-for="module in modules" :key="module.id"> | |
| <v-select :label="module.name" :items="items" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-form ref="form"> | |
| <v-card> | |
| <v-card-title> | |
| <span class="headline">Editar Conteúdo do Módulo</span> | |
| </v-card-title> | |
| <v-card-text> | |
| <v-container> | |
| <v-row> | |
| <v-col cols="12"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http; | |
| use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
| class Kernel extends HttpKernel | |
| { | |
| /** | |
| * The application's global HTTP middleware stack. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return [ | |
| /* | |
| * A cors profile determines which origins, methods, headers are allowed for | |
| * a given requests. The `DefaultProfile` reads its configuration from this | |
| * config file. | |
| * | |
| * You can easily create your own cors profile. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-form ref="form"> | |
| <v-card> | |
| <v-card-title> | |
| <span class="headline">Editar Nível de acesso</span> | |
| </v-card-title> | |
| <v-card-text> | |
| <v-container>{{ list.map(item => item.name) }}</v-container> | |
| </v-card-text> | |
| <v-divider></v-divider> |