Commit 8721719c authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat(vite): add vite config to decouple it from CI_ENVIRONMENT

parent 6e4acc64
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ class Autoload extends AutoloadConfig
        'ViewComponents' => APPPATH . 'Libraries/ViewComponents/',
        'ViewThemes' => APPPATH . 'Libraries/ViewThemes/',
        'MediaClipper' => APPPATH . 'Libraries/MediaClipper/',
        'Vite' => APPPATH . 'Libraries/Vite/',
        'Themes' => ROOTPATH . 'themes',
    ];

+0 −10
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ use App\Libraries\Breadcrumb;
use App\Libraries\Negotiate;
use App\Libraries\Router;
use App\Libraries\View;
use App\Libraries\Vite;
use CodeIgniter\Config\BaseService;
use CodeIgniter\HTTP\Request;
use CodeIgniter\HTTP\RequestInterface;
@@ -92,13 +91,4 @@ class Services extends BaseService

        return new Breadcrumb();
    }

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

        return new Vite();
    }
}
+2 −10
Original line number Diff line number Diff line
@@ -34,16 +34,8 @@ class Image extends BaseMedia
        helper('media');

        foreach ($this->sizes as $name => $size) {
            if (array_key_exists('extension', $size)) {
                $extension = $size['extension'];
            } else {
                $extension = $this->file_extension;
            }
            if (array_key_exists('mimetype', $size)) {
                $mimetype = $size['mimetype'];
            } else {
                $mimetype = $this->file_mimetype;
            }
            $extension = array_key_exists('extension', $size) ? $size['extension'] : $this->file_extension;
            $mimetype = array_key_exists('mimetype', $size) ? $size['mimetype'] : $this->file_mimetype;
            $this->{$name . '_path'} = $this->file_directory . '/' . $this->file_name . '_' . $name . '.' . $extension;
            $this->{$name . '_url'} = media_base_url($this->{$name . '_path'});
            $this->{$name . '_mimetype'} = $mimetype;
+0 −2
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@ return [
    'list_of_episodes_season' =>
        'Season {seasonNumber} episodes ({episodeCount})',
    'no_episode' => 'No episode found!',
    'no_episode_hint' =>
        'Navigate the podcast episodes with the navigation bar above.',
    'follow' => 'Follow',
    'followTitle' => 'Follow {actorDisplayName} on the fediverse!',
    'followers' => '{numberOfFollowers, plural,
+0 −2
Original line number Diff line number Diff line
@@ -15,8 +15,6 @@ return [
    'list_of_episodes_season' =>
        'Épisodes de la saison {seasonNumber} ({episodeCount})',
    'no_episode' => 'Aucun épisode trouvé !',
    'no_episode_hint' =>
        'Naviguez au sein des épisodes du podcast episodes grâce à la barre de navigation ci-dessus.',
    'follow' => 'Suivre',
    'followTitle' => 'Suivez {actorDisplayName} sur le fédiverse !',
    'followers' => '{numberOfFollowers, plural,
Loading