65 lines
3.6 KiB
PHP
65 lines
3.6 KiB
PHP
<x-filament-panels::page>
|
|
<div class="mx-auto max-w-7xl space-y-4">
|
|
<x-filament.components.page-breadcrumbs
|
|
:breadcrumbs="[
|
|
['label' => 'Supporto', 'url' => null],
|
|
['label' => 'Modifiche', 'url' => null],
|
|
]"
|
|
/>
|
|
|
|
<x-filament::section>
|
|
<div class="flex flex-wrap items-center justify-between gap-3">
|
|
<div>
|
|
<div class="text-lg font-semibold">NetGescon</div>
|
|
<div class="text-sm text-gray-600">Versione: <span class="font-mono">{{ config('netgescon.version', '0.0.0') }}</span></div>
|
|
</div>
|
|
|
|
<div class="text-sm text-gray-600">
|
|
<div>Legenda:</div>
|
|
<div class="flex flex-wrap gap-3">
|
|
<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-success-500"></span>U = utenti finali</span>
|
|
<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-primary-500"></span>P = assistenza / sviluppatori</span>
|
|
<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-warning-500"></span>E = errori non bloccanti</span>
|
|
<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-danger-500"></span>E! = errori bloccanti</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
@php
|
|
$path = base_path('docs/NETGESCON-MODIFICHE.md');
|
|
$raw = file_exists($path) ? file_get_contents($path) : "# Modifiche\n\nFile non trovato: {$path}\n";
|
|
|
|
$gitPath = base_path('docs/NETGESCON-GIT-AUTOCHANGELOG.md');
|
|
$gitRaw = file_exists($gitPath) ? file_get_contents($gitPath) : "# Git Auto Changelog\n\nFile non trovato: {$gitPath}\nEsegui: `bash scripts/ops/netgescon-sync-git-changelog.sh`\n";
|
|
|
|
// Mini-render: sostituisce tag tipo [U], [P], [E], [E!] con un quadratino colorato.
|
|
$replacements = [
|
|
'[E!]' => '<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-danger-500"></span><span class="font-mono">E!</span></span>',
|
|
'[U]' => '<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-success-500"></span><span class="font-mono">U</span></span>',
|
|
'[P]' => '<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-primary-500"></span><span class="font-mono">P</span></span>',
|
|
'[E]' => '<span class="inline-flex items-center gap-2"><span class="inline-block h-3 w-3 rounded-sm bg-warning-500"></span><span class="font-mono">E</span></span>',
|
|
];
|
|
|
|
$rawHtml = \Illuminate\Support\Str::markdown($raw);
|
|
$rawHtml = str_replace(array_keys($replacements), array_values($replacements), $rawHtml);
|
|
|
|
$gitRawHtml = \Illuminate\Support\Str::markdown($gitRaw);
|
|
$gitRawHtml = str_replace(array_keys($replacements), array_values($replacements), $gitRawHtml);
|
|
@endphp
|
|
|
|
<x-filament::section>
|
|
<div class="prose max-w-none">
|
|
{!! $rawHtml !!}
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
<x-filament::section>
|
|
<div class="mb-2 text-sm font-semibold text-gray-700">Changelog Automatico da Git</div>
|
|
<div class="prose max-w-none">
|
|
{!! $gitRawHtml !!}
|
|
</div>
|
|
</x-filament::section>
|
|
</div>
|
|
</x-filament-panels::page>
|