mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-15 15:58:40 +00:00
impl. todos or move to Project.md
This commit is contained in:
parent
972082a3a3
commit
6aa9d99b3c
1
Admin/Install/Admin.install.json
Normal file
1
Admin/Install/Admin.install.json
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
[{"type":"setting","name":"1004700001","content":"1","module":"Organization"},{"type":"setting","name":"1004700002","content":"1","module":"Organization"},{"type":"setting","name":"1004700003","content":"1","module":"Organization"}]
|
||||||
3
Admin/Install/Settings.install.php → Admin/Install/Admin.install.php
Executable file → Normal file
3
Admin/Install/Settings.install.php → Admin/Install/Admin.install.php
Executable file → Normal file
|
|
@ -17,16 +17,19 @@ use Modules\Organization\Models\SettingsEnum;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
'type' => 'setting',
|
||||||
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_UNIT,
|
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_UNIT,
|
||||||
'content' => '1',
|
'content' => '1',
|
||||||
'module' => ApiController::MODULE_NAME,
|
'module' => ApiController::MODULE_NAME,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'type' => 'setting',
|
||||||
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_DEPARTMENT,
|
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_DEPARTMENT,
|
||||||
'content' => '1',
|
'content' => '1',
|
||||||
'module' => ApiController::MODULE_NAME,
|
'module' => ApiController::MODULE_NAME,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
'type' => 'setting',
|
||||||
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_POSITION,
|
'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_POSITION,
|
||||||
'content' => '1',
|
'content' => '1',
|
||||||
'module' => ApiController::MODULE_NAME,
|
'module' => ApiController::MODULE_NAME,
|
||||||
46
Admin/Install/Admin.php
Normal file
46
Admin/Install/Admin.php
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 8.0
|
||||||
|
*
|
||||||
|
* @package Modules\Organization\Admin\Install
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\Organization\Admin\Install;
|
||||||
|
|
||||||
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admin class.
|
||||||
|
*
|
||||||
|
* @package Modules\Organization\Admin\Install
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class Admin
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Install Admin providing
|
||||||
|
*
|
||||||
|
* @param string $path Module path
|
||||||
|
* @param ApplicationAbstract $app Application
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public static function install(string $path, ApplicationAbstract $app) : void
|
||||||
|
{
|
||||||
|
$settings = include __DIR__ . '/Admin.install.php';
|
||||||
|
\file_put_contents(__DIR__ . '/Admin.install.json', \json_encode($settings));
|
||||||
|
|
||||||
|
\Modules\Admin\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Admin.install.json']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -12,14 +12,7 @@ If you have a good idea for improvement feel free to create a new issue with all
|
||||||
|
|
||||||
### Issues
|
### Issues
|
||||||
|
|
||||||
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the code and have the following structure:
|
Feel free to grab any open issue implement it and create a new pull request. Most issues can be found in the `Project.md` file in the `Docs` repository.
|
||||||
|
|
||||||
```php
|
|
||||||
/**
|
|
||||||
* @todo Orange-Management/Orange-Management#ISSUE_NUMBER [d:difficulty]
|
|
||||||
* Description for the issue
|
|
||||||
*/
|
|
||||||
```
|
|
||||||
|
|
||||||
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.
|
The issue information can be used to provide additional information such as priority, difficulty and type. For your first issue try to find a issue marked `[d:first]` or `[d:beginner]`.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user