Skip to content

Commit

Permalink
chore: Build with vite
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Mar 5, 2024
1 parent 478b1e3 commit 58c76be
Show file tree
Hide file tree
Showing 9 changed files with 5,719 additions and 18,067 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ yarn-error.log*
.marginalia

js/
# Generated css
css/files_downloadlimit-*.css
build/
coverage*
vendor/

.php_cs.cache
composer.phar
composer.phar
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

2 changes: 2 additions & 0 deletions lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public function handle(Event $event): void {
'limit' => $shareLimit->getLimit(),
'downloads' => $shareLimit->getDownloads(),
]);

Util::addStyle(Application::APP_ID, Application::APP_ID . '-public');
Util::addScript(Application::APP_ID, Application::APP_ID . '-public');
}
}
1 change: 1 addition & 0 deletions lib/Listener/LoadSidebarListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function handle(Event $event): void {
return;
}

Util::addStyle(Application::APP_ID, Application::APP_ID . '-main');
Util::addScript(Application::APP_ID, Application::APP_ID . '-main');
}
}
Loading

0 comments on commit 58c76be

Please sign in to comment.