with pagination nwo with the proper view selection
This commit is contained in:
@@ -218,7 +218,14 @@ class DatabaseModuleRegistry
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'readme' => $this->readFirstExisting($path, ['README.md', 'readme.md'], 7000),
|
'readme' => $this->readFirstExisting($path, ['README.md', 'readme.md'], 7000),
|
||||||
'changelog' => $this->readFirstExisting($path, ['CHANGELOG.md', 'changelog.md', 'changelog.yaml'], 7000),
|
'changelog' => $this->readFirstExisting($path, [
|
||||||
|
'changelog.yaml',
|
||||||
|
'CHANGELOG.md',
|
||||||
|
'CHANGELOG',
|
||||||
|
'CHANGELOG.txt',
|
||||||
|
'changelog.md',
|
||||||
|
'changelog.txt',
|
||||||
|
], 12000),
|
||||||
'routes' => $this->filesUnder($path, ['Routes/*.php', 'routes/*.php']),
|
'routes' => $this->filesUnder($path, ['Routes/*.php', 'routes/*.php']),
|
||||||
'migrations' => $this->filesUnder($path, ['Database/Migrations/*.php', 'database/migrations/*.php']),
|
'migrations' => $this->filesUnder($path, ['Database/Migrations/*.php', 'database/migrations/*.php']),
|
||||||
'models' => $this->filesUnder($path, ['app/Models/*.php', 'Models/*.php', 'Entities/*.php', 'app/Entities/*.php']),
|
'models' => $this->filesUnder($path, ['app/Models/*.php', 'Models/*.php', 'Entities/*.php', 'app/Entities/*.php']),
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
<tbody class="divide-y divide-zinc-200 dark:divide-zinc-800">
|
<tbody class="divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||||
@forelse ($modules as $module)
|
@forelse ($modules as $module)
|
||||||
<tr class="align-top transition hover:bg-zinc-50 dark:hover:bg-zinc-950/50">
|
<tr class="align-top transition hover:bg-zinc-900/55">
|
||||||
<td class="px-4 py-4">
|
<td class="px-4 py-4">
|
||||||
<input type="checkbox" name="modules[]" value="{{ $module['name'] }}" class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
<input type="checkbox" name="modules[]" value="{{ $module['name'] }}" class="rounded border-zinc-300 text-blue-600 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -211,8 +211,27 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
<div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||||
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Changelog preview</h2>
|
<div class="flex items-start justify-between gap-4">
|
||||||
<pre class="mt-4 max-h-96 overflow-auto whitespace-pre-wrap rounded-xl border border-zinc-200 bg-zinc-50 p-4 text-xs leading-6 text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">{{ $module['changelog'] ?: 'No changelog found.' }}</pre>
|
<div>
|
||||||
|
<h2 class="text-lg font-semibold text-zinc-950 dark:text-zinc-100">Changelog</h2>
|
||||||
|
<p class="mt-1 text-sm text-zinc-500 dark:text-zinc-400">
|
||||||
|
Latest module changes from changelog.yaml, CHANGELOG.md, or CHANGELOG where available.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
@if (! empty($module['changelog']))
|
||||||
|
<span class="rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-xs font-semibold text-emerald-700 dark:text-emerald-300">
|
||||||
|
Available
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if (! empty($module['changelog']))
|
||||||
|
<pre class="mt-4 max-h-96 overflow-auto whitespace-pre-wrap rounded-xl border border-zinc-200 bg-zinc-50 p-4 text-xs leading-6 text-zinc-700 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-300">{{ $module['changelog'] }}</pre>
|
||||||
|
@else
|
||||||
|
<div class="mt-4 rounded-xl border border-dashed border-zinc-300 bg-zinc-50 p-4 text-sm text-zinc-500 dark:border-zinc-800 dark:bg-zinc-950/60 dark:text-zinc-400">
|
||||||
|
No changelog found for this module.
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user