Skip to content

Commit

Permalink
chore: migrate to Vite
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory V <[email protected]>
  • Loading branch information
GVodyanov committed Sep 18, 2024
1 parent a31a386 commit 97b4954
Show file tree
Hide file tree
Showing 29 changed files with 2,468 additions and 3,693 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ composer.phar

build/
js/
/css/
node_modules/
src/fonts
*.clover
Expand Down Expand Up @@ -108,4 +109,3 @@ coverage/

js/public
css/public

7 changes: 0 additions & 7 deletions babel.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions css/calendar.scss

This file was deleted.

8 changes: 0 additions & 8 deletions css/dashboard.css

This file was deleted.

3 changes: 3 additions & 0 deletions lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use OC\App\CompareVersion;
use OCA\Calendar\Service\CalendarInitialStateService;
use OCP\App\IAppManager;
use OCA\Calendar\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\FileDisplayResponse;
use OCP\AppFramework\Http\TemplateResponse;
Expand Down Expand Up @@ -61,6 +62,8 @@ public function __construct(string $appName,
public function index():TemplateResponse {

$this->calendarInitialStateService->run();
\OCP\Util::addScript(Application::APP_ID, Application::APP_ID . '-main');
\OCP\Util::addStyle(Application::APP_ID, Application::APP_ID . '-main');
return new TemplateResponse($this->appName, 'main');
}

Expand Down
Loading

0 comments on commit 97b4954

Please sign in to comment.