improved performance of vue modules

This commit is contained in:
Luca Haid
2025-08-04 12:23:33 +02:00
parent 9b4e7e53c8
commit 03258bb1a9
4 changed files with 24 additions and 20 deletions

View File

@@ -15,10 +15,8 @@
</footer>
<!-- end Footer -->
<!--<script type="text/javascript" src="<?=self::getResourcePath()?>assets/js/vendor.min.js"></script>-->
<?php if(defined("ENABLE_VODIA_IDENTITY_SWITCHER") && ENABLE_VODIA_IDENTITY_SWITCHER && $me->is("employee")): ?>
<script type="text/javascript" src="<?=self::getResourcePath()?>assets/js/xinon-vodia-identity.js?<?=$git_merge_ts?>"></script>
<script type="text/javascript" src="<?=self::getResourcePath()?>assets/js/xinon-vodia-identity.js?<?=$git_merge_ts?>" defer></script>
<?php endif; ?>
<script type="text/javascript">

View File

@@ -39,7 +39,7 @@
window.TT_CONFIG.<?=$key?> = <?=is_array($value) ? json_encode($value) : "'$value'"; ?>;
<?php endforeach; endif;?>
</script>
<script type="text/javascript" src="<?=self::getResourcePath()?>js/jquery.min.js"></script>
<script src="<?= self::getResourcePath() ?>plugins/notification/notify.js" defer></script>
<script src="<?= self::getResourcePath() ?>plugins/bookstack/bookstackIntegration.js" defer></script>

View File

@@ -28,10 +28,7 @@ class WarehouseShippingNoteController extends TTCrud {
['key' => 'actions', 'text' => 'Aktionen', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']],];
protected array $defaultOrder = ['key' => 'create', 'order' => 'DESC'];
protected array $additionalJSVariables = ['WAREHOUSE_ADMIN' => true];
protected array $additionalHead = ['<link rel="manifest" href="/assets/pwa/shipping-note-manifest.json">'];
protected array $infoMessages = ['create' => 'Lieferschein wurde erstellt.',
'update' => 'Lieferschein wurde aktualisiert',
'delete' => 'Lieferschein wurde gelöscht',

View File

@@ -4,18 +4,27 @@
*/
// phpinfo(); exit;
define('mfUI',"web");
// set max mem to 4GB
ini_set('memory_limit', '4096M');
//display errors
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('html_errors', 1);
if(file_exists("../config/config.php")) {
require("../config/config.php");
require("../config/config.php");
} else {
die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding.");
die("CANNOT FIND CONFIGFILE!\n\nThis is a serious error. You should not run your mvcfronk application without a configfile. Not proceeding.");
}
if(defined('MFLOCALE_TIME')) {
setlocale(LC_TIME, MFLOCALE_TIME);
setlocale(LC_TIME, MFLOCALE_TIME);
}
if(defined('MFLOCALE_MONETARY')) {
setlocale(LC_MONETARY, MFLOCALE_MONETARY);
setlocale(LC_MONETARY, MFLOCALE_MONETARY);
}
/* disabled because of issues with saving float values to mysql
if(defined('MFLOCALE_NUMERIC')) {
@@ -36,14 +45,14 @@ $app=new mfRouter($request);
if(defined("MFVALUECACHE_DEBUG") && MFVALUECACHE_DEBUG) {
$i = 0;
$cache = mfValuecache::singleton()->getCache();
echo "<pre class='xdebug-var-dump'>\n";
echo "<small>mfValuecache keys total: ".count($cache)."</small>\n";
foreach($cache as $key => $value) {
echo "\t$i => $key (". gettype($value).")\n";
$i++;
}
$i = 0;
$cache = mfValuecache::singleton()->getCache();
echo "<pre class='xdebug-var-dump'>\n";
echo "<small>mfValuecache keys total: ".count($cache)."</small>\n";
foreach($cache as $key => $value) {
echo "\t$i => $key (". gettype($value).")\n";
$i++;
}
echo "</pre>";
echo "</pre>";
}