resources/js/modules/core.js
Function initSidebar
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initSidebar() {
let _self = this,
$sidebar = this.$wrapper.find('.docweaver-sidebar'),
$sidebarPopper = $sidebar.find('.docweaver-sidebar-popper'),
$activeLink = $sidebar.find('li a[href="' + decodeURIComponent(window.location.pathname) + '"]');
Function initBlockquotes
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initBlockquotes() {
// It's nice to just write in Markdown, so this will adjust
// our blockquote style to fill in the icon flag and label
this.$wrapper.find('.docs blockquote p:first-child').each(function () {
let str = $(this).html(),