Skip to content

Commit

Permalink
chore(vite): Migrate from webpack to vite
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <[email protected]>
  • Loading branch information
raimund-schluessler committed Dec 10, 2023
1 parent c2d6f98 commit f8b579f
Show file tree
Hide file tree
Showing 18 changed files with 3,383 additions and 4,752 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,6 @@ coverage
.phpunit.result.cache

.php_cs.cache

css/*
!css/tasks-icon.css
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion lib/Dashboard/TasksWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getOrder(): int {
* @inheritDoc
*/
public function getIconClass(): string {
return 'app-icon-tasks';
return 'icon-tasks';
}

/**
Expand All @@ -83,5 +83,7 @@ public function getUrl(): ?string {
*/
public function load(): void {
\OCP\Util::addScript('tasks', 'tasks-dashboard');
\OCP\Util::addStyle('tasks', 'tasks-dashboard');
\OCP\Util::addStyle('tasks', 'tasks-icon');
}
}
3 changes: 2 additions & 1 deletion lib/Listeners/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function handle(Event $event): void {
$pathInfo = $this->request->getPathInfo();
if (strpos($pathInfo, '/call/') === 0 || strpos($pathInfo, '/apps/spreed') === 0) {
Util::addScript('tasks', 'tasks-talk');
Util::addStyle('tasks', 'tasks-talk');
Util::addStyle('tasks', 'tasks-icon');
Util::addStyle('tasks', 'tasks-TaskCreateDialog');
}
}
}
Loading

0 comments on commit f8b579f

Please sign in to comment.