Commit 8cf9c6dc authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat(plugins): add html field type + CodeEditor component + rework html head generation

update php and js packages to latest
parent b869acb3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ class Filters extends BaseConfig
    /**
     * List of filter aliases that are always applied before and after every request.
     *
     * @var array<string, array<string, array<string, string|array<string>>>>>|array<string, list<string>>
     * @var array<string, array<string, array<string, string|array<string>>>>|array<string, list<string>>
     */
    public array $globals = [
        'before' => [
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class Generators extends BaseConfig
     *
     * YOU HAVE BEEN WARNED!
     *
     * @var array<string, string>
     * @var array<string, string|array<string,string>>
     */
    public array $views = [
        'make:cell' => [
+10 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Config;

use App\Libraries\Breadcrumb;
use App\Libraries\HtmlHead;
use App\Libraries\Negotiate;
use App\Libraries\Router;
use CodeIgniter\Config\BaseService;
@@ -66,4 +67,13 @@ class Services extends BaseService

        return new Breadcrumb();
    }

    public static function html_head(bool $getShared = true): HtmlHead
    {
        if ($getShared) {
            return self::getSharedInstance('html_head');
        }

        return new HtmlHead();
    }
}
+1 −2
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ declare(strict_types=1);

namespace Config;

use App\Views\Decorators\SiteHead;
use CodeIgniter\Config\View as BaseView;
use CodeIgniter\View\ViewDecoratorInterface;
use ViewComponents\Decorator;
@@ -54,5 +53,5 @@ class View extends BaseView
     *
     * @var list<class-string<ViewDecoratorInterface>>
     */
    public array $decorators = [Decorator::class, SiteHead::class];
    public array $decorators = [Decorator::class];
}
+3 −3
Original line number Diff line number Diff line
@@ -31,9 +31,9 @@ class ActorController extends FediverseActorController
        }

        helper(['form', 'components', 'svg']);
        $data = [
        // @phpstan-ignore-next-line
            'metatags' => get_follow_metatags($this->actor),
        set_follow_metatags($this->actor);
        $data = [
            'actor' => $this->actor,
        ];

Loading