Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Feb 28, 2024
1 parent f524e49 commit 421f074
Show file tree
Hide file tree
Showing 18 changed files with 404 additions and 556 deletions.
35 changes: 0 additions & 35 deletions .github/dev_bug_report.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/dev_feature_request.md

This file was deleted.

37 changes: 18 additions & 19 deletions Admin/Install/Navigation.install.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,36 @@
"pid": "/task",
"type": 3,
"subtype": 1,
"name": "List",
"name": "Dashboard",
"uri": "{/base}/task/dashboard?{?}",
"target": "self",
"icon": null,
"order": 1,
"from": "Tasks",
"permission": { "permission": 2, "category": null, "element": null },
"parent": 1001101001,
"children": [
{
"id": 1001102101,
"pid": "/task",
"type": 0,
"subtype": 1,
"name": "Tasks",
"uri": "{/base}/task/view?{?}",
"target": "self",
"icon": null,
"order": 1,
"from": "Tasks",
"permission": { "permission": 2, "category": null, "element": null },
"parent": 1001102001,
"children": []
}
]
"children": []
},
{
"id": 1001103001,
"pid": "/task",
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/base}/task/list?{?}",
"target": "self",
"icon": null,
"order": 5,
"from": "Tasks",
"permission": { "permission": 2, "category": null, "element": null },
"parent": 1001101001,
"children": []
},
{
"id": 1001104001,
"pid": "/task",
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/base}/task/create?{?}",
"target": "self",
Expand All @@ -60,7 +59,7 @@
"children": []
},
{
"id": 1001104001,
"id": 1001105001,
"pid": "/task",
"type": 3,
"subtype": 1,
Expand Down
12 changes: 12 additions & 0 deletions Admin/Install/SearchCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
declare(strict_types=1);

use Modules\Tasks\Controller\SearchController;
use Modules\Tasks\Models\PermissionCategory;
use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb;

Expand All @@ -27,4 +28,15 @@
],
],
],
'^(?!:).+.*?' => [
[
'dest' => '\Modules\Tasks\Controller\SearchController:searchGeneral',
'verb' => RouteVerb::ANY,
'permission' => [
'module' => SearchController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::TASK,
],
],
],
];
4 changes: 2 additions & 2 deletions Admin/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static function createTaskAttributeTypes(ApplicationAbstract $app, array
$taskAttrType = [];

/** @var \Modules\Tasks\Controller\ApiAttributeController $module */
$module = $app->moduleManager->getModuleInstance('Tasks', 'ApiAttribute');
$module = $app->moduleManager->get('Tasks', 'ApiAttribute');

/** @var array $attribute */
foreach ($attributes as $attribute) {
Expand Down Expand Up @@ -142,7 +142,7 @@ private static function createTaskAttributeValues(ApplicationAbstract $app, arra
$taskAttrValue = [];

/** @var \Modules\Tasks\Controller\ApiAttributeController $module */
$module = $app->moduleManager->getModuleInstance('Tasks', 'ApiAttribute');
$module = $app->moduleManager->get('Tasks', 'ApiAttribute');

foreach ($attributes as $attribute) {
$taskAttrValue[$attribute['name']] = [];
Expand Down
11 changes: 11 additions & 0 deletions Admin/Routes/Web/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
],
],
],
'^.*/task/list(\?.*$|$)' => [
[
'dest' => '\Modules\Tasks\Controller\BackendController:viewTaskList',
'verb' => RouteVerb::GET,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::TASK,
],
],
],
'^.*/task/view(\?.*$|$)' => [
[
'dest' => '\Modules\Tasks\Controller\BackendController:viewTaskView',
Expand Down
46 changes: 0 additions & 46 deletions CODE_OF_CONDUCT.md

This file was deleted.

Loading

0 comments on commit 421f074

Please sign in to comment.