Newer
Older
alert / extend.php
@Réz István Réz István on 18 Nov 2021 543 bytes first commit
<?php

/*
 * This file is part of ubuntuhu/alert.
 */

namespace Ubuntuhu\Alert;

use Flarum\Extend;
use Flarum\Api\Event\Serializing;

return [
    (new Extend\Frontend('forum'))
        ->js(__DIR__.'/js/dist/forum.js')
        ->css(__DIR__.'/less/forum.less'),
    (new Extend\Frontend('admin'))
        ->js(__DIR__.'/js/dist/admin.js')
        ->css(__DIR__.'/less/admin.less'),
    new Extend\Locales(__DIR__.'/locale'),
    (new Extend\Settings)
        ->serializeToForum('ubuntuhu-alert.customCode', 'ubuntuhu-alert.customCode'),
];