Skip to content

Commit

Permalink
Merge pull request #1172 from nextcloud/chore/vite
Browse files Browse the repository at this point in the history
chore: Move to vite
  • Loading branch information
Pytal authored Jun 12, 2024
2 parents 6c22d03 + 465b825 commit efdb910
Show file tree
Hide file tree
Showing 11 changed files with 3,105 additions and 6,067 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ module.exports = {
},
extends: [
'@nextcloud',
]
],
}
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion lib/Listener/LoadAdditionalScriptsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Util;

/**
* @template-implements IEventListener<LoadAdditionalScriptsEvent>
*/
class LoadAdditionalScriptsListener implements IEventListener {
public function handle(Event $event): void {
\OCP\Util::addScript('guests', 'guests-main');
Util::addScript('guests', 'guests-main');
}
}
2 changes: 2 additions & 0 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

use OCA\Guests\AppWhitelist;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Util;

class Admin implements \OCP\Settings\ISettings {
/** @var AppWhitelist */
Expand All @@ -36,6 +37,7 @@ public function __construct(AppWhitelist $appWhitelist) {
* {@inheritdoc}
*/
public function getForm(): TemplateResponse {
Util::addScript('guests', 'guests-settings');
return new TemplateResponse('guests', 'settings/admin');
}

Expand Down
Loading

0 comments on commit efdb910

Please sign in to comment.