This commit is contained in:
Dennis Eichhorn 2024-02-28 05:09:11 +00:00
parent c0018d2d77
commit 66a1abbb90
8 changed files with 7 additions and 123 deletions

View File

@ -1,35 +0,0 @@
---
name: Dev Bug Report
about: Create a report to help us improve
title: ''
labels: stat_backlog, type_bug
assignees: ''
---
# Bug Description
A clear and concise description of what the bug is.
# How to Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
## Minimal Code Example
```
// your code ...
```
# Expected Behavior
A clear and concise description of what you expected to happen.
# Screenshots
If applicable, add screenshots to help explain your problem.
# Additional Information
Add any other context about the problem here.

View File

@ -1,18 +0,0 @@
---
name: Dev Feature Request
about: Suggest an idea for this project
title: ''
labels: stat_backlog, type_feature
assignees: ''
---
# What is the feature you request
* A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
* A clear and concise description of what you want to happen.
# Alternatives
A clear and concise description of any alternative solutions or features you've considered.
# Additional Information
Add any other context or screenshots about the feature request here.

View File

@ -1,9 +0,0 @@
[
{
"type": "setting",
"name": "1005700001",
"content": "1",
"pattern": "",
"module": "Labeling"
}
]

View File

@ -1,43 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package Modules\Labeling\Admin\Install
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Labeling\Admin\Install;
use phpOMS\Application\ApplicationAbstract;
/**
* Admin class.
*
* @package Modules\Labeling\Admin\Install
* @license OMS License 2.0
* @link https://jingga.app
* @since 1.0.0
*/
class Admin
{
/**
* Install Admin 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\Admin\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Admin.install.json']);
}
}

View File

@ -76,7 +76,7 @@ final class Installer extends InstallerAbstract
$layoutModels = [];
/** @var \Modules\Labeling\Controller\ApiController $module */
$module = $app->moduleManager->getModuleInstance('Labeling');
$module = $app->moduleManager->get('Labeling');
$tempPath = __DIR__ . '/../../../temp/';

View File

@ -29,6 +29,9 @@ use phpOMS\Views\View;
* @license OMS License 2.0
* @link https://jingga.app
* @since 1.0.0
*
* @todo Create easy front end label editor (drag and drop, images, textareas, database values, ...)
* https://github.com/Karaka-Management/Karaka/issues/204
*/
final class BackendController extends Controller
{
@ -88,7 +91,7 @@ final class BackendController extends Controller
->with('files')
->with('files/types')
->where('l11n/language', $response->header->l11n->language)
->where('l11n/type/title', ['name1', 'name2', 'name3'], 'IN')
->where('l11n/type/title', ['name1', 'name2'], 'IN')
->where('files/types/name', 'item_profile_image')
->limit(50)
->execute();
@ -121,7 +124,7 @@ final class BackendController extends Controller
->with('l11n/type')
->where('id', (int) $request->getData('id'))
->where('l11n/language', $response->header->l11n->language)
->where('l11n/type/title', ['name1', 'name2', 'name3'], 'IN')
->where('l11n/type/title', ['name1', 'name2'], 'IN')
->execute();
$view->data['item'] = $item;

View File

@ -53,7 +53,7 @@ echo $this->data['nav']->render(); ?>
<label>
<i class="filter g-icon">filter_alt</i>
</label>
<td><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
<td class="wf-100"><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
<label for="iItemList-sort-5">
<input type="radio" name="iItemList-sort" id="iItemList-sort-5">
<i class="sort-asc g-icon">expand_less</i>
@ -65,18 +65,6 @@ echo $this->data['nav']->render(); ?>
<label>
<i class="filter g-icon">filter_alt</i>
</label>
<td class="wf-100"><?= $this->getHtml('Name', 'ItemManagement', 'Backend'); ?>
<label for="iItemList-sort-7">
<input type="radio" name="iItemList-sort" id="iItemList-sort-7">
<i class="sort-asc g-icon">expand_less</i>
</label>
<label for="iItemList-sort-8">
<input type="radio" name="iItemList-sort" id="iItemList-sort-8">
<i class="sort-desc g-icon">expand_more</i>
</label>
<label>
<i class="filter g-icon">filter_alt</i>
</label>
<tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
$url = UriFactory::build('{/base}/warehouse/labeling/item?id=' . $value->id);
@ -90,7 +78,6 @@ echo $this->data['nav']->render(); ?>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->content); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->content); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name3')->content); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>

View File

@ -23,7 +23,6 @@
},
"providing": {
"Admin": "*",
"Media": "*",
"Navigation": "*"
},
"load": [