v4.1.9: Начальная производственная версия

- Полный backend на Hono + TypeScript
- SQLite база данных с 38 записями
- 3 пользователя: admin, aknaproff, kasutaja
- Модальное окно reportModal (4 шага)
- Docker конфигурация для Synology ARM
- Все миграции (0001-0017)
- Frontend: vanilla HTML/JS (original.html)
This commit is contained in:
Deploy Bot
2025-12-31 12:00:00 +02:00
parent afea76b053
commit 4898f5ec7f
381 changed files with 9105 additions and 65477 deletions

View File

@@ -1,74 +0,0 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class System extends Model
{
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $guarded = ['id'];
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = false;
public static function getVersion()
{
$row = self::where('key', 'version')
->first();
if (! empty($row)) {
return $row->value;
} else {
}
}
public static function updateSystem($rows)
{
foreach ($rows as $key => $value) {
self::where('key', $key)
->update(['value' => $value]);
}
}
/**
* Returns the date formats
*/
public static function dateFormats()
{
return [
'd.m.Y' => 'dd.mm.yyyy',
'm.d.Y' => 'mm.dd.yyyy',
'd-m-Y' => 'dd-mm-yyyy',
'm-d-Y' => 'mm-dd-yyyy',
'd/m/Y' => 'dd/mm/yyyy',
'm/d/Y' => 'mm/dd/yyyy',
];
}
/**
* Return the value of the given key
*
* @param $key string
* @return mixed
*/
public static function getValue($key)
{
$row = self::where('key', $key)
->first();
if (isset($row->value)) {
return $row->value;
}
return null;
}
}