mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 10:18:41 +00:00
bug fixes and item management improvements
This commit is contained in:
parent
922c738951
commit
833cc7abe6
114
Admin/Install/Media.install.json
Normal file
114
Admin/Install/Media.install.json
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
[
|
||||
{
|
||||
"type": "type",
|
||||
"name": "contract",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Contract",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Vertrag",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "nda",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "NDA",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "NDA",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "receipt",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Receipt",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Quittung",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "invoice",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Invoice",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Rechnung",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "letter",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Letter",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Brief",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "minutes",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Minutes",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Protokoll",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "leasing",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Leasing",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Leasing",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "type",
|
||||
"name": "insurance",
|
||||
"l11n": [
|
||||
{
|
||||
"title": "Insurance",
|
||||
"lang": "en"
|
||||
},
|
||||
{
|
||||
"title": "Versicherung",
|
||||
"lang": "de"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
43
Admin/Install/Media.php
Normal file
43
Admin/Install/Media.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/**
|
||||
* Karaka
|
||||
*
|
||||
* PHP Version 8.1
|
||||
*
|
||||
* @package Modules\Media\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Media\Admin\Install;
|
||||
|
||||
use phpOMS\Application\ApplicationAbstract;
|
||||
|
||||
/**
|
||||
* Media class.
|
||||
*
|
||||
* @package Modules\Media\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Media
|
||||
{
|
||||
/**
|
||||
* Install media providing
|
||||
*
|
||||
* @param ApplicationAbstract $app Application
|
||||
* @param string $path Module path
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function install(ApplicationAbstract $app, string $path) : void
|
||||
{
|
||||
\Modules\Media\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Media.install.json']);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user