-
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 #108 from ConductionNL/development
Development
- Loading branch information
Showing
60 changed files
with
2,922 additions
and
1,682 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 |
---|---|---|
@@ -1,60 +1,62 @@ | ||
<?php | ||
|
||
return [ | ||
'resources' => [ | ||
'resources' => [ | ||
// Conform https://vng-realisatie.github.io/gemma-zaken/standaard/zaken/redoc-1.5.1 | ||
'zaken' => ['url' => 'api/zrc/zaken'], | ||
'resultaten' => ['url' => 'api/zrc/resultaten'], | ||
'rollen' => ['url' => 'api/zrc/rollen'], | ||
'statussen' => ['url' => 'api/zrc/statussen'], | ||
'zaakinformatieobjecten' => ['url' => 'api/zrc/zaakinformatieobjecten'], | ||
'zaakobjecten' => ['url' => 'api/zrc/zaakobjecten'], | ||
'zaakbesluiten' => ['url' => 'api/zrc/zaken/{zaak_uuid}/besluiten'], | ||
'zaakeigenschappen' => ['url' => 'api/zrc/zaken/{zaak_uuid}/eigenschappen'], | ||
'zaakaudittrail' => ['url' => 'api/zrc/zaken/{zaak_uuid}/audit_trail'], | ||
'zaken' => ['url' => 'api/zrc/zaken'], | ||
'resultaten' => ['url' => 'api/zrc/resultaten'], | ||
'rollen' => ['url' => 'api/zrc/rollen'], | ||
'statussen' => ['url' => 'api/zrc/statussen'], | ||
'zaakinformatieobjecten' => ['url' => 'api/zrc/zaakinformatieobjecten'], | ||
'zaakobjecten' => ['url' => 'api/zrc/zaakobjecten'], | ||
'zaakbesluiten' => ['url' => 'api/zrc/zaken/{zaak_uuid}/besluiten'], | ||
'zaakeigenschappen' => ['url' => 'api/zrc/zaken/{zaak_uuid}/eigenschappen'], | ||
'zaakaudittrail' => ['url' => 'api/zrc/zaken/{zaak_uuid}/audit_trail'], | ||
// Conform https://vng-realisatie.github.io/gemma-zaken/standaard/catalogi/redoc-1.3.1 | ||
'zaakTypen' => ['url' => 'api/ztc'], | ||
'zaakTypen' => ['url' => 'api/ztc'], | ||
// Conform https://vng-realisatie.github.io/gemma-zaken/standaard/documenten/redoc-1.5.0 | ||
'documenten' => ['url' => 'api/drc'], | ||
'documenten' => ['url' => 'api/drc'], | ||
// Conform https://vng-realisatie.github.io/gemma-zaken/standaard/besluiten/redoc-1.0.2 | ||
'besluiten' => ['url' => 'api/brc'], | ||
'besluiten' => ['url' => 'api/brc'], | ||
// Conform ??? | ||
'zaakTypen' => ['url' => 'api/ztc/zaaktypen'], | ||
// Conform ??? | ||
'taken' => ['url' => 'api/taken'], | ||
'klanten' => ['url' => 'api/klanten'], | ||
'berichten' => ['url' => 'api/berichten'], | ||
'zaakTypen' => ['url' => 'api/ztc/zaaktypen'], | ||
// Conform ??? | ||
'taken' => ['url' => 'api/taken'], | ||
'klanten' => ['url' => 'api/klanten'], | ||
'berichten' => ['url' => 'api/berichten'], | ||
'contactmomenten' => ['url' => 'api/contactmomenten'], | ||
'medewerkers' => ['url' => 'api/medewerkers'], | ||
], | ||
|
||
], | ||
'routes' => [ | ||
// Audit trail routes | ||
['name' => 'zaken#getAuditTrail', 'url' => '/api/zaken/{id}/audit_trail', 'verb' => 'GET'], | ||
['name' => 'klanten#getAuditTrail', 'url' => '/api/klanten/{id}/audit_trail', 'verb' => 'GET'], | ||
['name' => 'berichten#getAuditTrail', 'url' => '/api/berichten/{id}/audit_trail', 'verb' => 'GET'], | ||
['name' => 'taken#getAuditTrail', 'url' => '/api/taken/{id}/audit_trail', 'verb' => 'GET'], | ||
|
||
// Overige klant routes | ||
['name' => 'klanten#getContactmomenten', 'url' => '/api/klanten/{id}/contactmomenten', 'verb' => 'GET'], | ||
['name' => 'klanten#getTaken', 'url' => '/api/klanten/{id}/taken', 'verb' => 'GET'], | ||
['name' => 'klanten#getBerichten', 'url' => '/api/klanten/{id}/berichten', 'verb' => 'GET'], | ||
['name' => 'klanten#getZaken', 'url' => '/api/klanten/{id}/zaken', 'verb' => 'GET'], | ||
['name' => 'klanten#getZaken', 'url' => '/api/klanten/{id}/zaken', 'verb' => 'GET'], | ||
|
||
// Page routes | ||
['name' => 'dashboard#page', 'url' => '/', 'verb' => 'GET'], | ||
['name' => 'configuration#index', 'url' => '/api/configuration', 'verb' => 'GET'], | ||
['name' => 'configuration#create', 'url' => '/api/configuration', 'verb' => 'POST'], | ||
['name' => 'zaken#page', 'url' => '/zaken', 'verb' => 'GET'], | ||
['name' => 'rollen#page', 'url' => '/rollen', 'verb' => 'GET'], | ||
['name' => 'statussen#page', 'url' => '/statussen', 'verb' => 'GET'], | ||
['name' => 'zaakinformatieobjecten#page', 'url' => '/zaakinformatieobjecten', 'verb' => 'GET'], | ||
['name' => 'zaakinformatieobjecten#page', 'url' => '/zaakinformatieobjecten', 'verb' => 'GET'], | ||
['name' => 'zaakTypen#page','url' => '/zaak_typen', 'verb' => 'GET'], | ||
['name' => 'taken#page','url' => '/taken', 'verb' => 'GET'], | ||
['name' => 'klanten#page','url' => '/klanten', 'verb' => 'GET'], | ||
['name' => 'berichten#index','url' => '/berichten', 'verb' => 'GET'], | ||
// user Settings | ||
['name' => 'settings#index','url' => '/settings', 'verb' => 'GET'], | ||
['name' => 'settings#create', 'url' => '/settings', 'verb' => 'POST'], | ||
// User | ||
['name' => 'users#me', 'url' => '/me', 'verb' => 'GET'], | ||
] | ||
]; |
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,9 +1,11 @@ | ||
/* import icons css file */ | ||
@import "../src/services/icons/icons.css"; | ||
|
||
.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"); | ||
} | ||
|
||
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"); | ||
} |
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,76 @@ | ||
<?php | ||
|
||
namespace OCA\ZaakAfhandelApp\Controller; | ||
|
||
use OCP\IAppConfig; | ||
use OCP\AppFramework\Controller; | ||
use OCP\AppFramework\Http\TemplateResponse; | ||
use OCP\AppFramework\Http\JSONResponse; | ||
use OCP\IRequest; | ||
use OCP\IUserSession; | ||
|
||
/** | ||
* Class SettingsController | ||
* | ||
* Controller for handling settings-related operations in the OpenCatalogi app. | ||
*/ | ||
class UsersController extends Controller | ||
{ | ||
|
||
/** | ||
* SettingsController constructor. | ||
* | ||
* @param string $appName The name of the app | ||
* @param IAppConfig $config The app configuration | ||
* @param IRequest $request The request object | ||
*/ | ||
public function __construct( | ||
$appName, | ||
IRequest $request, | ||
private readonly IAppConfig $config, | ||
private readonly IUserSession $userSession, | ||
) { | ||
parent::__construct($appName, $request); | ||
} | ||
|
||
/** | ||
* Gets info about the currently active/logged-in user. | ||
* | ||
* @NoAdminRequired | ||
* @NoCSRFRequired | ||
* | ||
* @return JSONResponse Info about the current user. | ||
*/ | ||
public function me(): JSONResponse | ||
{ | ||
// Get the current user | ||
$currentUser = $this->userSession->getUser(); | ||
|
||
try { | ||
$data = [ | ||
'user' => [ | ||
'id' => $currentUser->getUID(), | ||
'displayName' => $currentUser->getDisplayName(), | ||
'email' => $currentUser->getEMailAddress(), | ||
'systemEmail' => $currentUser->getSystemEMailAddress(), | ||
'primaryEmail' => $currentUser->getPrimaryEMailAddress(), | ||
'lastLogin' => $currentUser->getLastLogin(), | ||
'quota' => $currentUser->getQuota(), | ||
'home' => $currentUser->getHome(), | ||
'backendClassName' => $currentUser->getBackendClassName(), | ||
'avatarImage' => $currentUser->getAvatarImage(64), | ||
'cloudId' => $currentUser->getCloudId(), | ||
'isEnabled' => $currentUser->isEnabled(), | ||
'canChangeDisplayName' => $currentUser->canChangeDisplayName(), | ||
'canChangePassword' => $currentUser->canChangePassword(), | ||
'canChangeAvatar' => $currentUser->canChangeAvatar(), | ||
'managerUids' => $currentUser->getManagerUids(), | ||
], | ||
'medewerker' => 'placeholder-todo' | ||
]; | ||
return new JSONResponse($data); | ||
} catch (\Exception $e) { | ||
return new JSONResponse(['error' => $e->getMessage()], 500); | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ export const mockMedewerkerData = (): TMedewerker[] => [ | |
tussenvoegsel: 'de', | ||
achternaam: 'Doe', | ||
email: '[email protected]', | ||
telefoonnummer: '0612345678', | ||
}, | ||
] | ||
|
||
|
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ export type TMedewerker = { | |
tussenvoegsel: string; | ||
achternaam: string; | ||
email: string; | ||
telefoonnummer: string; | ||
} |
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
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ export type TZaak = { | |
selectielijstklasse: string; | ||
hoofdzaak: string; | ||
klant: string; | ||
berichten: string[]; | ||
} |
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.