-
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 #46 from ConductionNL/feature/PC388-68-and-69/Dash…
…board-widgets feature/PC388-68-and-69/Dashboard-widgets
- Loading branch information
Showing
22 changed files
with
572 additions
and
21 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
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 OrganisatiesWidget implements IWidget | ||
{ | ||
|
||
public function __construct( | ||
private IL10N $l10n, | ||
private IURLGenerator $url | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getId(): string | ||
{ | ||
return 'zaakAfhandelApp_organisaties_widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTitle(): string | ||
{ | ||
return $this->l10n->t('Organisaties zoeken'); | ||
} | ||
|
||
/** | ||
* @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 . '-organisatiesWidget'); | ||
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 PersonenWidget implements IWidget | ||
{ | ||
|
||
public function __construct( | ||
private IL10N $l10n, | ||
private IURLGenerator $url | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getId(): string | ||
{ | ||
return 'zaakAfhandelApp_personen_widget'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getTitle(): string | ||
{ | ||
return $this->l10n->t('Personen zoeken'); | ||
} | ||
|
||
/** | ||
* @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 . '-personenWidget'); | ||
Util::addStyle(Application::APP_ID, 'dashboardWidgets'); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<template> | ||
<!-- Placeholder div --> | ||
<div> | ||
|
||
</div> | ||
<div /> | ||
</template> | ||
|
||
<script> | ||
|
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
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,10 @@ | ||
import Vue from 'vue' | ||
import OrganisatiesWidget from './views/widgets/OrganisatiesWidget.vue' | ||
|
||
OCA.Dashboard.register('zaakAfhandelApp_organisaties_widget', async (el, { widget }) => { | ||
Vue.mixin({ methods: { t, n } }) | ||
const View = Vue.extend(OrganisatiesWidget) | ||
new View({ | ||
propsData: { title: widget.title }, | ||
}).$mount(el) | ||
}) |
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,10 @@ | ||
import Vue from 'vue' | ||
import PersonenWidget from './views/widgets/PersonenWidget.vue' | ||
|
||
OCA.Dashboard.register('zaakAfhandelApp_personen_widget', async (el, { widget }) => { | ||
Vue.mixin({ methods: { t, n } }) | ||
const View = Vue.extend(PersonenWidget) | ||
new View({ | ||
propsData: { title: widget.title }, | ||
}).$mount(el) | ||
}) |
Oops, something went wrong.