-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from ConductionNL/feature/dashboard-widgets
feature/dashboard-widgets
- Loading branch information
Showing
28 changed files
with
614 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ Create a [feature request](https://github.com/OpenCatalogi/.github/issues/new/ch | |
<licence>agpl</licence> | ||
<author mail="[email protected]" homepage="https://www.conduction.nl/">Conduction</author> | ||
<namespace>ZaakAfhandelApp</namespace> | ||
<category>organisation</category> | ||
<category>organization</category> | ||
<website>https://github.com/ConductionNL/zaakafhandelapp</website> | ||
<bugs>https://github.com/ConductionNL/zaakafhandelapp/issues</bugs> | ||
<repository type="git">https://github.com/ConductionNL/zaakafhandelapp.git</repository> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.icon-zaken-widget { | ||
background-image: url("../img/app-dark.svg"); | ||
filter: var(--background-invert-if-dark); | ||
} | ||
|
||
body.theme--dark .icon-zaken-widget { | ||
background-image: url("../img/app.svg"); | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
|
||
namespace OCA\ZaakAfhandelApp\Dashboard; | ||
|
||
use OCP\Dashboard\IWidget; | ||
use OCP\IL10N; | ||
use OCP\IURLGenerator; | ||
use OCP\Util; | ||
|
||
use OCA\ZaakAfhandelApp\AppInfo\Application; | ||
|
||
class OpenZakenWidget implements IWidget | ||
{ | ||
|
||
public function __construct( | ||
private IL10N $l10n, | ||
private IURLGenerator $url | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getId(): string | ||
{ | ||
return 'zaakAfhandelApp_openzaak_widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTitle(): string | ||
{ | ||
return $this->l10n->t('Open zaken'); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getOrder(): int | ||
{ | ||
return 10; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getIconClass(): string | ||
{ | ||
return 'icon-zaken-widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getUrl(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function load(): void | ||
{ | ||
Util::addScript(Application::APP_ID, Application::APP_ID . '-openZakenWidget'); | ||
Util::addStyle(Application::APP_ID, 'dashboardWidgets'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
|
||
namespace OCA\ZaakAfhandelApp\Dashboard; | ||
|
||
use OCP\Dashboard\IWidget; | ||
use OCP\IL10N; | ||
use OCP\IURLGenerator; | ||
use OCP\Util; | ||
|
||
use OCA\ZaakAfhandelApp\AppInfo\Application; | ||
|
||
class TakenWidget implements IWidget | ||
{ | ||
|
||
public function __construct( | ||
private IL10N $l10n, | ||
private IURLGenerator $url | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getId(): string | ||
{ | ||
return 'zaakAfhandelApp_taak_widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTitle(): string | ||
{ | ||
return $this->l10n->t('Uw taken'); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getOrder(): int | ||
{ | ||
return 10; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getIconClass(): string | ||
{ | ||
return 'icon-zaken-widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getUrl(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function load(): void | ||
{ | ||
Util::addScript(Application::APP_ID, Application::APP_ID . '-takenWidget'); | ||
Util::addStyle(Application::APP_ID, 'dashboardWidgets'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
|
||
namespace OCA\ZaakAfhandelApp\Dashboard; | ||
|
||
use OCP\Dashboard\IWidget; | ||
use OCP\IL10N; | ||
use OCP\IURLGenerator; | ||
use OCP\Util; | ||
|
||
use OCA\ZaakAfhandelApp\AppInfo\Application; | ||
|
||
class ZakenWidget implements IWidget | ||
{ | ||
|
||
public function __construct( | ||
private IL10N $l10n, | ||
private IURLGenerator $url | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getId(): string | ||
{ | ||
return 'zaakAfhandelApp_zaak_widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTitle(): string | ||
{ | ||
return $this->l10n->t('Uw zaken'); | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getOrder(): int | ||
{ | ||
return 10; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getIconClass(): string | ||
{ | ||
return 'icon-zaken-widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getUrl(): ?string | ||
{ | ||
return null; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function load(): void | ||
{ | ||
Util::addScript(Application::APP_ID, Application::APP_ID . '-zakenWidget'); | ||
Util::addStyle(Application::APP_ID, 'dashboardWidgets'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.