Minor - remove unused files (Sonata code)

pull/3451/head
Julio Montoya 4 years ago
parent c22b6ae18e
commit c3e552225b
  1. 15
      assets/vue/views/user/courses/CourseCard.vue
  2. 10
      assets/vue/views/user/courses/List.vue
  3. 2
      package.json
  4. 1
      public/index.php
  5. 6
      public/main/inc/lib/api.lib.php
  6. 59
      src/CoreBundle/Admin/AccessUrlAdmin.php
  7. 46
      src/CoreBundle/Admin/AccessUrlRelCourseAdmin.php
  8. 40
      src/CoreBundle/Admin/BranchAdmin.php
  9. 42
      src/CoreBundle/Admin/CareerAdmin.php
  10. 43
      src/CoreBundle/Admin/PromotionAdmin.php
  11. 73
      src/CoreBundle/Admin/ResourceFileAdmin.php
  12. 64
      src/CoreBundle/Admin/ResourceLinkAdmin.php
  13. 63
      src/CoreBundle/Admin/ResourceNodeAdmin.php
  14. 57
      src/CoreBundle/Admin/ResourceRightAdmin.php
  15. 41
      src/CoreBundle/Admin/ResourceTypeAdmin.php
  16. 106
      src/CoreBundle/Admin/SessionAdmin.php
  17. 50
      src/CoreBundle/Admin/SessionCategoryAdmin.php
  18. 45
      src/CoreBundle/Admin/SessionRelCourseAdmin.php
  19. 56
      src/CoreBundle/Admin/SessionRelUserAdmin.php
  20. 50
      src/CoreBundle/Admin/SettingsCurrentAdmin.php
  21. 53
      src/CoreBundle/Admin/ToolAdmin.php
  22. 50
      src/CoreBundle/Admin/ToolResourceRightAdmin.php
  23. 81
      src/CoreBundle/Admin/UserGroupAdmin.php
  24. 49
      src/CoreBundle/Admin/UsergroupRelUser.php
  25. 112
      src/CoreBundle/Block/BreadcrumbBlockService.php
  26. 65
      src/CoreBundle/Block/CourseBlockService.php
  27. 67
      src/CoreBundle/Block/SkillBlockService.php
  28. 157
      yarn.lock

@ -1,6 +1,12 @@
<template>
<v-container grid-list-xl fluid>
<v-layout row wrap>
<v-container
grid-list-xl
fluid
>
<v-layout
row
wrap
>
<v-row dense>
<v-col
v-for="card in courses"
@ -13,11 +19,10 @@
class="ma-3"
tile
>
<v-img src="/img/icons/48/blackboard.png"></v-img>
<v-img src="/img/icons/48/blackboard.png" />
</v-avatar>
<div>
<v-card-title v-text="card.course.title">
</v-card-title>
<v-card-title v-text="card.course.title" />
</div>
</div>

@ -1,7 +1,7 @@
<template>
<div class="course-list">
{{ status }}
<CourseCard :courses="courses"></CourseCard>
<CourseCard :courses="courses" />
</div>
</template>
@ -14,14 +14,14 @@ import axios from "axios";
export default {
name: 'CourseList',
servicePrefix: 'Course',
mixins: [ListMixin],
components: {
CourseCard
},
mixins: [ListMixin],
data() {
return {
status: null,
courses:null
courses: []
};
},
created: function () {
@ -31,15 +31,13 @@ export default {
load: function() {
this.status = 'Loading';
let user = this.$store.getters['security/getUser'];
axios.get(ENTRYPOINT + 'users/'+ user.id +'/courses.json').then(response => {
this.status = '';
this.courses = response.data;
}).catch(function(error) {
this.status = error;
console.log(error);
});
}
}
};
</script>

@ -92,7 +92,7 @@
"babel-eslint": "^10.1.0",
"babel-preset-react": "^6.24.1",
"bootstrap": "^4.5.0",
"copy-webpack-plugin": "^5.0",
"copy-webpack-plugin": "^6.0",
"deepmerge": "^4.2.2",
"eslint": "^6.8.0",
"eslint-loader": "^4.0.2",

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
use Chamilo\Kernel;

@ -2133,9 +2133,9 @@ function api_get_cidreq_params($courseCode, $sessionId = 0, $groupId = 0)
$sessionId = !empty($sessionId) ? (int) $sessionId : 0;
$groupId = !empty($groupId) ? (int) $groupId : 0;
$url = 'cidReq='.$courseCode;
$url .= '&id_session='.$sessionId;
$url .= '&gidReq='.$groupId;
$url = 'cid='.$courseCode;
$url .= '&sid='.$sessionId;
$url .= '&gid='.$groupId;
return $url;
}

@ -1,59 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
/**
* Class AccessUrlAdmin.
*/
class AccessUrlAdmin extends AbstractAdmin
{
/**
* @param $course
*
* @return mixed|void
*/
public function preUpdate($course)
{
//$course->setUsers($course->getUsers());
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('url', UrlType::class)
->add('description', CKEditorType::class)
->add('active')
->add('limitCourses')
->add('limitActiveCourses')
->add('limitSessions')
->add('limitUsers')
->add('limitTeachers')
->add('limitDiskSpace')
->add('email', EmailType::class)
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('url')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('url')
;
}
}

@ -1,46 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class CourseAdmin.
*/
class AccessUrlRelCourseAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('url')
->end()
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('url')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('url')
;
}
}

@ -1,40 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class BranchAdmin.
*/
class BranchAdmin extends AbstractAdmin
{
// Fields to be shown on create/edit forms
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('id')
;
}
// Fields to be shown on filter forms
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('id')
;
}
// Fields to be shown on lists
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
;
}
}

@ -1,42 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\Career;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class CareerAdmin.
*/
class CareerAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name')
->add('description', CKEditorType::class)
//->add('status', 'choice', ['choices' => Career::getStatusList()])
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('name')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('name')
;
}
}

@ -1,43 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\Promotion;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class PromotionAdmin.
*/
class PromotionAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name')
->add('description', CKEditorType::class)
//->add('status', 'choice', ['choices' => Promotion::getStatusList()])
->add('career')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('name')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('name')
;
}
}

@ -1,73 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\ResourceFile;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Vich\UploaderBundle\Form\Type\VichImageType;
/**
* Class ResourceFileAdmin.
*/
class ResourceFileAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
->add('name')
->add('size')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$router = $this->getRouteGenerator();
$fileOptions = [
'required' => true,
'allow_delete' => false,
'download_uri' => static function (ResourceFile $file) use ($router) {
$resourceNode = $file->getResourceNode();
$params = [
'tool' => $resourceNode->getResourceType()->getTool(),
'type' => $resourceNode->getResourceType(),
'id' => $resourceNode->getId(),
'mode' => 'download',
];
return $router->generate('chamilo_core_resource_view_file', $params);
},
];
$formMapper
->add('file', VichImageType::class, $fileOptions)
->end()
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('id')
->add('name')
->add('mimeType')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('name')
->add('size')
->add('mimeType')
;
}
}

@ -1,64 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\ResourceLink;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelAutocompleteType;
use Sonata\AdminBundle\Form\Type\ModelType;
use Sonata\AdminBundle\Show\ShowMapper;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
/**
* Class ResourceLinkAdmin.
*/
class ResourceLinkAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
->add('resourceNode')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('resourceNode')
->add('visibility', ChoiceType::class, ['choices' => ResourceLink::getVisibilityList()])
->add(
'resourceRight',
ModelAutocompleteType::class,
['property' => 'id', 'btn_add' => 'link_add', 'multiple' => true]
)
//->add('resourceNode', ModelType::class, ['property' => 'id', 'btn_add' => 'link_add'])
->end()
;
}
// /**
// * @param DatagridMapper $listMapper
// */
// protected function configureDatagridFilters(DatagridMapper $datagridMapper)
// {
// $datagridMapper
// ->add('url')
// ;
// }
//
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('resourceNode')
->addIdentifier('visibility')
;
}
}

@ -1,63 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelAutocompleteType;
use Sonata\AdminBundle\Form\Type\ModelType;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class ResourceNodeAdmin.
*/
class ResourceNodeAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
->add('slug')
->add('path')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('slug')
->add('resourceType', ModelType::class, ['property' => 'name', 'btn_add' => false])
->add('creator', ModelAutocompleteType::class, ['property' => 'username'])
->add('resourceFile', ModelType::class, ['property' => 'name', 'btn_add' => 'link_add'])
->add(
'resourceLinks',
ModelAutocompleteType::class,
['property' => 'id', 'multiple' => true]
)
->end()
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('resourceType')
->add('creator')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('slug')
->add('resourceType')
->add('resourceFile')
->add('creator')
;
}
}

@ -1,57 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelType;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class ResourceRightAdmin.
*/
class ResourceRightAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
->add('role')
->add('mask')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('role')
->add('mask')
->add('resourceLink', ModelType::class, ['property' => 'id', 'btn_add' => 'link_add'])
->end()
;
}
// /**
// * @param DatagridMapper $listMapper
// */
// protected function configureDatagridFilters(DatagridMapper $datagridMapper)
// {
// $datagridMapper
// ->add('url')
// ;
// }
//
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('role')
->addIdentifier('mask')
;
}
}

@ -1,41 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class ResourceTypeAdmin.
*/
class ResourceTypeAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('tool')
->add('name')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('tool')
->add('name')
->end()
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name')
->add('tool')
;
}
}

@ -1,106 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\Session;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class SessionAdmin.
*/
class SessionAdmin extends AbstractAdmin
{
/**
* Very important in order to save the related entities!
*
* @param Session $session
*
* @return mixed|void
*/
public function preUpdate($session)
{
$session->setCourses($session->getCourses());
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name') //if no type is specified, SonataAdminBundle tries to guess it
->add('generalCoach')
->add('category')
->add('displayStartDate', 'sonata_type_datetime_picker')
->add(
'visibility',
'choice',
['choices' => Session::getStatusList()]
)
->add(
'courses',
'sonata_type_collection',
[
'cascade_validation' => true,
],
[
'edit' => 'inline',
'inline' => 'table',
//'sortable' => 'position',
//'link_parameters' => array('context' => $context),
'admin_code' => 'sonata.admin.session_rel_course',
]
)
/*->add('users', 'sonata_type_collection', array(
'cascade_validation' => true,
), array(
'allow_delete' => true,
'by_reference' => false,
//'edit' => 'inline',
//'sortable' => 'position',
//'link_parameters' => array('context' => $context),
//'admin_code' => 'sonata.admin.session_rel_user'
)
)*/
;
}
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id', 'text', ['label' => 'Session'])
->add('name')
->add('display_start_date', 'sonata_type_date_picker')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('name')
->add(
'visibility',
null,
[],
'choice',
['choices' => Session::getStatusList()]
)
//->add('display_start_date', 'sonata_type_date_picker')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name')
->add('generalCoach')
->add('visibility', 'choice', [
'choices' => Session::getStatusList(),
])
;
}
}

@ -1,50 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
/**
* Class CourseRequestAdmin.
*/
class SessionCategoryAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name')
->add('url', UrlType::class)
->add('dateStart', 'sonata_type_datetime_picker')
->add('dateEnd', 'sonata_type_datetime_picker')
;
}
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
->add('name')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('name')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name')
;
}
}

@ -1,45 +0,0 @@
<?php
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class SessionRelCourseAdmin.
*/
class SessionRelCourseAdmin extends AbstractAdmin
{
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id')
;
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('course')
//->add('session')
->end()
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('id')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
;
}
}

@ -1,56 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class SessionAdmin.
*/
class SessionRelUserAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('session') //if no type is specified, SonataAdminBundle tries to guess it
->add('user')
->add('relation_type', 'text')
;
/*->add('student', 'sonata_type_model', array(),
array(
'admin_code' => 'application.subscriber.admin.student'
))*/
}
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('session')
->add('user')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('session')
->add('user')
//->add('display_start_date', 'sonata_type_date_picker')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('session')
->addIdentifier('user')
;
}
}

@ -1,50 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class SettingsCurrentAdmin.
*/
class SettingsCurrentAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('title')
->add('variable')
->add('subkey')
->add('type')
->add('category')
->add('selectedValue')
->add('comment', CKEditorType::class)
->add('accessUrl')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('title')
->add('variable')
->add('category')
->add('accessUrl')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('variable')
->add('selected_value')
->add('category')
;
}
}

@ -1,53 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class ToolAdmin.
*/
class ToolAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name')
/*->add(
'toolResourceRight',
CollectionType::class,
[
//'cascade_validation' => true,
],
[
//'allow_delete' => true,
//'by_reference' => false,
'edit' => 'inline',
'inline' => 'table',
//'btn_add' => true,
//'multiple' => true
//'sortable' => 'position',
//'link_parameters' => array('content' => $users),
'admin_code' => 'sonata.admin.tool_resource_right',
]
)*/
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('name');
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('name');
}
}

@ -1,50 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\ToolResourceRight;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Class ToolResourceRightAdmin.
*/
class ToolResourceRightAdmin extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('tool')
->add(
'role',
'choice',
['choices' => ToolResourceRight::getDefaultRoles()]
)
->add(
'mask',
'choice',
['choices' => ToolResourceRight::getMaskList()]
)
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('role')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('role')
->addIdentifier('mask')
;
}
}

@ -1,81 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Chamilo\CoreBundle\Entity\Course;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class UserGroupAdmin.
*/
class UserGroupAdmin extends AbstractAdmin
{
/**
* Very important in order to save the related entities!
*
* @param Course $userGroup
*
* @return mixed|void
*/
public function preUpdate($userGroup)
{
//$userGroup->setUsers($userGroup->getUsers());
}
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('name')
->add('description', CKEditorType::class)
->add(
'users',
'sonata_type_collection',
[
'cascade_validation' => true,
],
[
// 'allow_delete' => true,
'by_reference' => false,
'edit' => 'inline',
'inline' => 'table',
//'btn_add' => true,
//'multiple' => true
//'sortable' => 'position',
//'link_parameters' => array('content' => $users),
'admin_code' => 'sonata.admin.user_group_rel_user',
]
)
;
}
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('id', 'text', ['label' => 'Usergroup'])
->add('name')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('id')
->add('name')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('id')
->addIdentifier('name')
;
}
}

@ -1,49 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
/**
* Class UsergroupRelUser.
*/
class UsergroupRelUser extends AbstractAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('user')
->add('usergroup')
;
}
protected function configureShowField(ShowMapper $showMapper)
{
$showMapper
->add('user')
->add('usergroup')
;
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('user')
->add('usergroup')
;
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper
->addIdentifier('user')
->addIdentifier('usergroup')
;
}
}

@ -1,112 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Block;
use Chamilo\CoreBundle\Entity\Course;
use Chamilo\CoreBundle\Entity\Session;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\SeoBundle\Block\Breadcrumb\BaseBreadcrumbMenuBlockService;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Class BreadcrumbBlockService.
*/
class BreadcrumbBlockService extends BaseBreadcrumbMenuBlockService
{
protected $extraChildren;
public function getName()
{
return 'chamilo_core.block.breadcrumb';
}
public function configureSettings(OptionsResolver $resolver)
{
parent::configureSettings($resolver);
$resolver->setDefaults([
//'menu_template' => 'SonataSeoBundle:Block:breadcrumb.html.twig',
'menu_template' => '@ChamiloCore/Breadcrumb/breadcrumb_legacy.html.twig',
'include_homepage_link' => false,
'context' => false,
]);
}
/**
* @param string $title
* @param array $params
*/
public function addChild($title, $params = [])
{
$this->extraChildren[] = ['title' => $title, 'params' => $params];
}
protected function getMenu(BlockContextInterface $blockContext)
{
$menu = $this->getRootMenu($blockContext);
$menu->addChild('', ['route' => 'home'])->setExtra('icon', 'fas fa-home');
$sessionId = 0;
// Course/Session block are set here src/ThemeBundle/Resources/views/Layout/breadcrumb.html.twig
if ($blockContext->getBlock()->getSetting('session')) {
/** @var Session $course */
$session = $blockContext->getBlock()->getSetting('session');
if ($session && $session instanceof Session) {
$sessionId = $session->getId();
}
}
// Add course
/** @var Course $course */
if ($course = $blockContext->getBlock()->getSetting('course')) {
$title = $course->getTitle();
$courseId = $course->getId();
$menu->addChild(
$title,
[
'route' => 'chamilo_core_course_home',
'routeParameters' => [
'cid' => $courseId,
'sid' => $sessionId,
],
]
);
}
if (!empty($this->extraChildren)) {
foreach ($this->extraChildren as $item) {
$params = isset($item['params']) ? $item['params'] : [];
$menu->addChild(
$item['title'],
$params
);
}
}
// Load legacy breadcrumbs
$oldBreadCrumb = $blockContext->getBlock()->getSetting('legacy_breadcrumb');
if ($oldBreadCrumb) {
foreach ($oldBreadCrumb as $data) {
if (empty($data['name'])) {
continue;
}
$url = $data['url'];
if ('#' === $url) {
$menu->addChild($data['name']);
} else {
$menu->addChild($data['name'], ['uri' => $url]);
}
}
}
// Set CSS classes for the items
foreach ($menu->getChildren() as $child) {
$child->setAttribute('class', 'breadcrumb-item');
}
return $menu;
}
}

@ -1,65 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Block;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\Service\AbstractBlockService;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\CoreBundle\Validator\ErrorElement;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Class CourseBlockService.
*/
class CourseBlockService extends AbstractBlockService
{
/**
* @return string
*/
public function getName()
{
return 'Course block';
}
public function configureSettings(OptionsResolver $resolver)
{
$resolver->setDefaults([
'url' => false,
'title' => 'Course block',
'template' => '@ChamiloCore/Block/course.html.twig',
'ttl' => 0,
]);
}
public function validateBlock(ErrorElement $errorElement, BlockInterface $block)
{
}
public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
{
}
/**
* @return Response
*/
public function execute(BlockContextInterface $blockContext, Response $response = null)
{
// merge settings
$settings = $blockContext->getSettings();
$hotCourses = \CourseManager::return_hot_courses();
return $this->renderResponse(
$blockContext->getTemplate(),
[
'hot_courses' => $hotCourses,
'block' => $blockContext->getBlock(),
'settings' => $settings,
],
$response
);
}
}

@ -1,67 +0,0 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Block;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\BlockBundle\Block\BlockContextInterface;
use Sonata\BlockBundle\Block\Service\AbstractBlockService;
use Sonata\BlockBundle\Model\BlockInterface;
use Sonata\CoreBundle\Validator\ErrorElement;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Class CourseBlockService.
*/
class SkillBlockService extends AbstractBlockService
{
/**
* @return string
*/
public function getName()
{
return 'Skill block';
}
public function configureSettings(OptionsResolver $resolver)
{
$resolver->setDefaults(
[
'template' => '@ChamiloCore/Block/skill.html.twig',
'ttl' => 0,
]
);
}
public function validateBlock(
ErrorElement $errorElement,
BlockInterface $block
) {
}
public function buildEditForm(FormMapper $formMapper, BlockInterface $block)
{
}
/**
* @return Response
*/
public function execute(
BlockContextInterface $blockContext,
Response $response = null
) {
// merge settings
$settings = $blockContext->getSettings();
return $this->renderResponse(
$blockContext->getTemplate(),
[
'block' => $blockContext->getBlock(),
'settings' => $settings,
],
$response
);
}
}

@ -1137,6 +1137,13 @@
"@nodelib/fs.scandir" "2.1.3"
fastq "^1.6.0"
"@npmcli/move-file@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-1.0.1.tgz#de103070dac0f48ce49cf6693c23af59c0f70464"
integrity sha512-Uv6h1sT+0DrblvIrolFtbvM1FgWm+/sy4B3pvLp67Zys+thcukzS5ekn7HsZFGpWP4Q3fYJCljbWQE/XivMRLw==
dependencies:
mkdirp "^1.0.4"
"@oclif/color@^0.x":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@oclif/color/-/color-0.1.2.tgz#28b07e2850d9ce814d0b587ce3403b7ad8f7d987"
@ -3205,9 +3212,9 @@ aws-sign2@~0.7.0:
integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=
aws4@^1.8.0:
version "1.10.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.0.tgz#a17b3a8ea811060e74d47d306122400ad4497ae2"
integrity sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==
version "1.10.1"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428"
integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==
axios@^0.19.2:
version "0.19.2"
@ -4286,6 +4293,29 @@ cacache@^13.0.1:
ssri "^7.0.0"
unique-filename "^1.1.1"
cacache@^15.0.4:
version "15.0.5"
resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.0.5.tgz#69162833da29170d6732334643c60e005f5f17d0"
integrity sha512-lloiL22n7sOjEEXdL8NAjTgv9a1u43xICE9/203qonkZUCj5X1UEWIdf2/Y0d6QcCtMzbKQyhrcDbdvlZTs/+A==
dependencies:
"@npmcli/move-file" "^1.0.1"
chownr "^2.0.0"
fs-minipass "^2.0.0"
glob "^7.1.4"
infer-owner "^1.0.4"
lru-cache "^6.0.0"
minipass "^3.1.1"
minipass-collect "^1.0.2"
minipass-flush "^1.0.5"
minipass-pipeline "^1.2.2"
mkdirp "^1.0.3"
p-map "^4.0.0"
promise-inflight "^1.0.1"
rimraf "^3.0.2"
ssri "^8.0.0"
tar "^6.0.2"
unique-filename "^1.1.1"
cache-base@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
@ -4608,6 +4638,11 @@ chownr@^1.1.1, chownr@^1.1.2:
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==
chownr@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
chrome-trace-event@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4"
@ -5166,7 +5201,7 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=
copy-webpack-plugin@^5.0, copy-webpack-plugin@^5.1.1:
copy-webpack-plugin@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-5.1.1.tgz#5481a03dea1123d88a988c6ff8b78247214f0b88"
integrity sha512-P15M5ZC8dyCjQHWwd4Ia/dm0SgVvZJMYeykVIVYXbGyqO4dWB5oyPHp9i7wjwo5LhtlhKbiBCdS2NvM07Wlybg==
@ -5184,6 +5219,23 @@ copy-webpack-plugin@^5.0, copy-webpack-plugin@^5.1.1:
serialize-javascript "^2.1.2"
webpack-log "^2.0.0"
copy-webpack-plugin@^6.0:
version "6.0.3"
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-6.0.3.tgz#2b3d2bfc6861b96432a65f0149720adbd902040b"
integrity sha512-q5m6Vz4elsuyVEIUXr7wJdIdePWTubsqVbEMvf1WQnHGv0Q+9yPRu7MtYFPt+GBOXRav9lvIINifTQ1vSCs+eA==
dependencies:
cacache "^15.0.4"
fast-glob "^3.2.4"
find-cache-dir "^3.3.1"
glob-parent "^5.1.1"
globby "^11.0.1"
loader-utils "^2.0.0"
normalize-path "^3.0.0"
p-limit "^3.0.1"
schema-utils "^2.7.0"
serialize-javascript "^4.0.0"
webpack-sources "^1.4.3"
core-js-compat@^3.6.2, core-js-compat@^3.6.5:
version "3.6.5"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c"
@ -6067,9 +6119,9 @@ duplexer3@^0.1.4:
integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=
duplexer@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=
version "0.1.2"
resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6"
integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==
duplexify@^3.4.2, duplexify@^3.6.0:
version "3.7.1"
@ -6110,9 +6162,9 @@ ejs@^2.6.1, ejs@^2.7.1:
integrity sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==
electron-to-chromium@^1.3.47, electron-to-chromium@^1.3.523:
version "1.3.530"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.530.tgz#9b1033f5221cece94eeb3ec98db27227177fd196"
integrity sha512-jnKBqvkXyxo6Tr245YyghzSMjmrA+uzQn+rwLjd3n+Y3sad0eWPzAXfa2lDwSikQu0I5reYacZjmQjCRH9VQdg==
version "1.3.531"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.531.tgz#fe432e23c306f7b3579506de9ca63703ef086b9d"
integrity sha512-cRdM9noPSUvZ2TCJByhFL78amPMjNZlGJG27EPuJZK0CwWzBfj3ei7hJh0hNsjvgC0BayRW8Bc06DTCELcMC9Q==
elegant-spinner@^1.0.1:
version "1.0.1"
@ -6768,7 +6820,7 @@ fast-glob@^2.2.6:
merge2 "^1.2.3"
micromatch "^3.1.10"
fast-glob@^3.0.3, fast-glob@^3.1.1:
fast-glob@^3.0.3, fast-glob@^3.1.1, fast-glob@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3"
integrity sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==
@ -7473,7 +7525,7 @@ glob-parent@^3.1.0:
is-glob "^3.1.0"
path-dirname "^1.0.0"
glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@~5.1.0:
glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@^5.1.1, glob-parent@~5.1.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229"
integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==
@ -9595,6 +9647,13 @@ lru-cache@^5.0.0, lru-cache@^5.1.1:
dependencies:
yallist "^3.0.2"
lru-cache@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
dependencies:
yallist "^4.0.0"
m3u8-parser@4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/m3u8-parser/-/m3u8-parser-4.4.0.tgz#adf606c0af6d97f6750095a42006c2ae03dde177"
@ -9932,6 +9991,14 @@ minipass@^3.0.0, minipass@^3.1.1:
dependencies:
yallist "^4.0.0"
minizlib@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.0.tgz#fd52c645301ef09a63a2c209697c294c6ce02cf3"
integrity sha512-EzTZN/fjSvifSX0SlqUERCN39o6T40AMarPbv0MrarSFtIITCBh7bi+dU8nxGFHuqs9jdIAeoYoKuQAAASsPPA==
dependencies:
minipass "^3.0.0"
yallist "^4.0.0"
mississippi@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022"
@ -9963,7 +10030,7 @@ mkdirp@0.5.5, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkd
dependencies:
minimist "^1.2.5"
mkdirp@1.0.4:
mkdirp@1.0.4, mkdirp@^1.0.3, mkdirp@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
@ -10712,6 +10779,13 @@ p-limit@^2.0.0, p-limit@^2.2.0, p-limit@^2.2.1, p-limit@^2.3.0:
dependencies:
p-try "^2.0.0"
p-limit@^3.0.1:
version "3.0.2"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.0.2.tgz#1664e010af3cadc681baafd3e2a437be7b0fb5fe"
integrity sha512-iwqZSOoWIW+Ew4kAGUlN16J4M7OB3ysMLSZtnhmqx7njIHFPlxWBX8xo3lVTyFVq6mI/lL9qt2IsN1sHwaxJkg==
dependencies:
p-try "^2.0.0"
p-locate@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4"
@ -10738,6 +10812,13 @@ p-map@^3.0.0:
dependencies:
aggregate-error "^3.0.0"
p-map@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b"
integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==
dependencies:
aggregate-error "^3.0.0"
p-retry@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-3.0.1.tgz#316b4c8893e2c8dc1cfa891f406c4b422bebf328"
@ -12301,7 +12382,7 @@ rimraf@2.6.3, rimraf@~2.6.2:
dependencies:
glob "^7.1.3"
rimraf@^3.0.0:
rimraf@^3.0.0, rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
@ -12570,13 +12651,6 @@ serialize-javascript@^2.1.2:
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61"
integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==
serialize-javascript@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-3.1.0.tgz#8bf3a9170712664ef2561b44b691eafe399214ea"
integrity sha512-JIJT1DGiWmIKhzRsG91aS6Ze4sFUrYbltlkg2onR5OrnNM02Kl/hnY/T4FN2omvyeBbQmMJv+K4cPOpGzOTFBg==
dependencies:
randombytes "^2.1.0"
serialize-javascript@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa"
@ -12987,6 +13061,13 @@ ssri@^7.0.0, ssri@^7.1.0:
figgy-pudding "^3.5.1"
minipass "^3.1.1"
ssri@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-8.0.0.tgz#79ca74e21f8ceaeddfcb4b90143c458b8d988808"
integrity sha512-aq/pz989nxVYwn16Tsbj1TqFpD5LLrQxHf5zaHuieFV+R0Bbr4y8qUsOA45hXT/N4/9UNXTarBjnjVmjSOVaAA==
dependencies:
minipass "^3.1.1"
stable@^0.1.8:
version "0.1.8"
resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf"
@ -13389,6 +13470,18 @@ tar@^2.0.0:
fstream "^1.0.12"
inherits "2"
tar@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.2.tgz#5df17813468a6264ff14f766886c622b84ae2f39"
integrity sha512-Glo3jkRtPcvpDlAs/0+hozav78yoXKFr+c4wgw62NNMO3oo4AaJdCo21Uu7lcwr55h39W2XD1LMERc64wtbItg==
dependencies:
chownr "^2.0.0"
fs-minipass "^2.0.0"
minipass "^3.0.0"
minizlib "^2.1.0"
mkdirp "^1.0.3"
yallist "^4.0.0"
taskkill@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/taskkill/-/taskkill-3.1.0.tgz#28001339feb23bfae3f447902c4b4abcdd057680"
@ -13426,31 +13519,31 @@ term-size@^2.1.0:
integrity sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==
terser-webpack-plugin@^1.1.0, terser-webpack-plugin@^1.4.3:
version "1.4.4"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.4.tgz#2c63544347324baafa9a56baaddf1634c8abfc2f"
integrity sha512-U4mACBHIegmfoEe5fdongHESNJWqsGU+W0S/9+BmYGVQDw1+c2Ow05TpMhxjPK1sRb7cuYq1BPl1e5YHJMTCqA==
version "1.4.5"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz#a217aefaea330e734ffacb6120ec1fa312d6040b"
integrity sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==
dependencies:
cacache "^12.0.2"
find-cache-dir "^2.1.0"
is-wsl "^1.1.0"
schema-utils "^1.0.0"
serialize-javascript "^3.1.0"
serialize-javascript "^4.0.0"
source-map "^0.6.1"
terser "^4.1.2"
webpack-sources "^1.4.0"
worker-farm "^1.7.0"
terser-webpack-plugin@^2.3.5:
version "2.3.7"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-2.3.7.tgz#4910ff5d1a872168cc7fa6cd3749e2b0d60a8a0b"
integrity sha512-xzYyaHUNhzgaAdBsXxk2Yvo/x1NJdslUaussK3fdpBbvttm1iIwU+c26dj9UxJcwk2c5UWt5F55MUTIA8BE7Dg==
version "2.3.8"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz#894764a19b0743f2f704e7c2a848c5283a696724"
integrity sha512-/fKw3R+hWyHfYx7Bv6oPqmk4HGQcrWLtV3X6ggvPuwPNHSnzvVV51z6OaaCOus4YLjutYGOz3pEpbhe6Up2s1w==
dependencies:
cacache "^13.0.1"
find-cache-dir "^3.3.1"
jest-worker "^25.4.0"
p-limit "^2.3.0"
schema-utils "^2.6.6"
serialize-javascript "^3.1.0"
serialize-javascript "^4.0.0"
source-map "^0.6.1"
terser "^4.6.12"
webpack-sources "^1.4.3"
@ -13507,9 +13600,9 @@ thread-loader@^2.1.3:
neo-async "^2.6.0"
throttle-debounce@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/throttle-debounce/-/throttle-debounce-2.2.1.tgz#fbd933ae6793448816f7d5b3cae259d464c98137"
integrity sha512-i9hAVld1f+woAiyNGqWelpDD5W1tpMroL3NofTz9xzwq6acWBlO2dC8k5EFSZepU6oOINtV5Q3aSPoRg7o4+fA==
version "2.3.0"
resolved "https://registry.yarnpkg.com/throttle-debounce/-/throttle-debounce-2.3.0.tgz#fd31865e66502071e411817e241465b3e9c372e2"
integrity sha512-H7oLPV0P7+jgvrk+6mwwwBDmxTaxnu9HMXmloNLXwnNO0ZxZ31Orah2n8lU1eMPvsaowP2CX+USCgyovXfdOFQ==
through2@^2.0.0, through2@^2.0.2, through2@^2.0.3:
version "2.0.5"

Loading…
Cancel
Save