Compare commits
5
Commits
c6411075d9
...
1409d19e3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1409d19e3d | ||
|
|
f9123813fb | ||
|
|
9c3353924b | ||
|
|
d415b42044 | ||
|
|
d94845b1f6 |
@@ -8,14 +8,14 @@ use Illuminate\Support\Facades\Storage;
|
||||
final class DownloadProductController extends Controller {
|
||||
public function index() { return view('admin.download-products.index', ['products'=>DownloadProduct::latest()->get()]); }
|
||||
public function store(Request $request) {
|
||||
$data=$request->validate(['name'=>'required|string|max:150','description'=>'nullable|string|max:3000','version'=>'nullable|string|max:80','platform'=>'nullable|string|max:120','package'=>'required|file|max:1048576','is_published'=>'sometimes|boolean']);
|
||||
$data=$request->validate(['name'=>'required|string|max:150','description'=>'nullable|string|max:12000','version'=>'nullable|string|max:80','platform'=>'nullable|string|max:120','package'=>'required|file|max:1048576','is_published'=>'sometimes|boolean']);
|
||||
$file=$request->file('package');
|
||||
$path=$file->store('download-products','local');
|
||||
DownloadProduct::create(['name'=>$data['name'],'description'=>$data['description']??null,'version'=>$data['version']??null,'platform'=>$data['platform']??null,'file_path'=>$path,'original_filename'=>$file->getClientOriginalName(),'file_size'=>$file->getSize(),'is_published'=>$request->boolean('is_published')]);
|
||||
return back()->with('status','Product added.');
|
||||
}
|
||||
public function update(Request $request, DownloadProduct $product) {
|
||||
$data=$request->validate(['name'=>'required|string|max:150','description'=>'nullable|string|max:3000','version'=>'nullable|string|max:80','platform'=>'nullable|string|max:120','package'=>'nullable|file|max:1048576','is_published'=>'sometimes|boolean']);
|
||||
$data=$request->validate(['name'=>'required|string|max:150','description'=>'nullable|string|max:12000','version'=>'nullable|string|max:80','platform'=>'nullable|string|max:120','package'=>'nullable|file|max:1048576','is_published'=>'sometimes|boolean']);
|
||||
$changes=['name'=>$data['name'],'description'=>$data['description']??null,'version'=>$data['version']??null,'platform'=>$data['platform']??null,'is_published'=>$request->boolean('is_published')];
|
||||
if ($request->hasFile('package')) { $file=$request->file('package'); $path=$file->store('download-products','local'); $old=$product->file_path; $changes+=['file_path'=>$path,'original_filename'=>$file->getClientOriginalName(),'file_size'=>$file->getSize()]; $product->update($changes); if($old) Storage::disk('local')->delete($old); }
|
||||
else $product->update($changes);
|
||||
|
||||
@@ -26,6 +26,14 @@ final class ReleaseController extends Controller
|
||||
return view('downloads.index', compact('latest', 'releases', 'settings', 'products'));
|
||||
}
|
||||
|
||||
public function sonarDeskDetails()
|
||||
{
|
||||
$latest = SonarDeskRelease::published()->where('is_featured', true)->orderByDesc('published_at')->first()
|
||||
?? SonarDeskRelease::published()->where('channel', 'stable')->orderByDesc('published_at')->orderByDesc('id')->firstOrFail();
|
||||
$settings = $this->settings();
|
||||
return view('downloads.sonardesk', compact('latest', 'settings'));
|
||||
}
|
||||
|
||||
public function latest(): BinaryFileResponse
|
||||
{
|
||||
$release = SonarDeskRelease::published()->where('channel', 'stable')->orderByDesc('published_at')->firstOrFail();
|
||||
@@ -38,6 +46,12 @@ final class ReleaseController extends Controller
|
||||
return $this->send($release);
|
||||
}
|
||||
|
||||
public function productDetails(DownloadProduct $product)
|
||||
{
|
||||
abort_unless($product->is_published && $product->file_path, 404);
|
||||
return view('downloads.product', compact('product'));
|
||||
}
|
||||
|
||||
public function productDownload(DownloadProduct $product): BinaryFileResponse
|
||||
{
|
||||
abort_unless($product->is_published && $product->file_path && Storage::disk('local')->exists($product->file_path), 404);
|
||||
|
||||
+5
-1
@@ -22,17 +22,20 @@ host('main')
|
||||
->set('hostname', '217.154.47.197')
|
||||
->set('remote_user', 'mag')
|
||||
->set('branch', 'main')
|
||||
->set('php_version', '8.5')
|
||||
->set('deploy_path', '/var/www/sonardesk/prod');
|
||||
|
||||
host('stage')
|
||||
->set('hostname', '192.168.1.2')
|
||||
->set('remote_user', 'mag')
|
||||
->set('branch', 'stage')
|
||||
->set('php_version', '8.3')
|
||||
->set('deploy_path', '/var/www/sonardesk/stage');
|
||||
|
||||
host('develop')
|
||||
->set('hostname', '10.211.55.100')
|
||||
->set('remote_user', 'mag')
|
||||
->set('php_version', '8.3')
|
||||
->set('branch', 'develop')
|
||||
->set('deploy_path', '/var/www/sonardesk/develop');
|
||||
|
||||
@@ -54,9 +57,10 @@ task('artisan:clear', function (): void {
|
||||
run('cd {{release_path}} && php artisan route:clear');
|
||||
});
|
||||
task('services:restart', function (): void {
|
||||
$phpVersion = currentHost()->get('php_version');
|
||||
run('sudo -n nginx -t');
|
||||
run('sudo -n systemctl reload nginx');
|
||||
run('sudo -n systemctl restart php8.3-fpm');
|
||||
run("sudo -n systemctl restart php{$phpVersion}-fpm");
|
||||
});
|
||||
|
||||
after('deploy:update_code', 'deploy:write_revision_file');
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
@forelse($products as $product)<tr><td><strong>{{ $product->name }}</strong><small>{{ \Illuminate\Support\Str::limit($product->description ?: $product->original_filename, 70) }}</small></td><td><strong>{{ $product->version ?: '—' }}</strong><small>{{ $product->platform ?: 'Unspecified' }} · {{ $product->formatted_size }}</small></td><td>{{ number_format($product->download_count) }}</td><td><span class="status-chip {{ $product->is_published ? 'success' : 'muted' }}">{{ $product->is_published ? 'Published' : 'Draft' }}</span></td><td><div class="distribution-row-actions"><button type="button" class="dist-action" onclick="const panel=document.getElementById('edit-product-{{ $product->id }}');panel.open=true;panel.scrollIntoView({behavior:'smooth',block:'start'});">Edit</button><form method="post" action="{{ route('admin.download-products.publication', $product) }}">@csrf @method('PATCH')<input type="hidden" name="is_published" value="{{ $product->is_published ? '0' : '1' }}"><button type="submit" class="dist-action {{ $product->is_published ? 'dist-unpublish' : 'dist-publish' }}">{{ $product->is_published ? 'Unpublish' : 'Publish' }}</button></form></div></td></tr>
|
||||
@empty<tr><td colspan="5" class="empty-cell">No additional products yet. Add your first installer below.</td></tr>@endforelse
|
||||
</tbody></table></div></section>
|
||||
<details class="distribution-panel" id="new-product" @if($errors->any() && !old('_method')) open @endif><summary><span><strong>Add a new product</strong><small>Upload an installer and choose whether to publish it.</small></span><span class="dist-chevron">+</span></summary><form class="distribution-form" method="post" action="{{ route('admin.download-products.store') }}" enctype="multipart/form-data">@csrf<div class="form-grid"><label>Product name<input name="name" value="{{ old('name') }}" required maxlength="150" placeholder="e.g. SonarDesk CLI"></label><label>Version<input name="version" value="{{ old('version') }}" maxlength="80" placeholder="e.g. 2.1.0"></label><label>Platform<input name="platform" value="{{ old('platform') }}" maxlength="120" placeholder="macOS, Windows, Linux…"></label></div><label>Description<textarea name="description" rows="3" maxlength="3000" placeholder="Describe what this product does">{{ old('description') }}</textarea></label><label class="distribution-file">Installer / package <small>Maximum 1 GB</small><input type="file" name="package" required></label><label class="distribution-check"><input type="checkbox" name="is_published" value="1" @checked(old('is_published'))><span><strong>Publish immediately</strong><small>Make this download available on the public page.</small></span></label><button class="btn btn-primary" type="submit">Add product</button></form></details>
|
||||
@foreach($products as $product)<details class="distribution-panel" id="edit-product-{{ $product->id }}"><summary><span><strong>Edit {{ $product->name }}</strong><small>{{ $product->original_filename }} · {{ $product->formatted_size }}</small></span><span class="dist-chevron">+</span></summary><form class="distribution-form" method="post" action="{{ route('admin.download-products.update',$product) }}" enctype="multipart/form-data">@csrf @method('PUT')<div class="form-grid"><label>Product name<input name="name" value="{{ $product->name }}" required maxlength="150"></label><label>Version<input name="version" value="{{ $product->version }}" maxlength="80"></label><label>Platform<input name="platform" value="{{ $product->platform }}" maxlength="120"></label></div><label>Description<textarea name="description" rows="3" maxlength="3000">{{ $product->description }}</textarea></label><label class="distribution-file">Replace package (optional)<small>Current: {{ $product->original_filename }} · Maximum 1 GB</small><input type="file" name="package"></label><label class="distribution-check"><input type="checkbox" name="is_published" value="1" @checked($product->is_published)><span><strong>Published</strong><small>Untick to save this product as a draft.</small></span></label><button class="btn btn-primary" type="submit">Save changes</button></form><form class="distribution-delete" method="post" action="{{ route('admin.download-products.destroy',$product) }}" onsubmit="return confirm('Permanently delete this product and its installer?')">@csrf @method('DELETE')<button type="submit" class="danger-outline">Delete product</button></form></details>@endforeach
|
||||
<details class="distribution-panel" id="new-product" @if($errors->any() && !old('_method')) open @endif><summary><span><strong>Add a new product</strong><small>Upload an installer and choose whether to publish it.</small></span><span class="dist-chevron">+</span></summary><form class="distribution-form" method="post" action="{{ route('admin.download-products.store') }}" enctype="multipart/form-data">@csrf<div class="form-grid"><label>Product name<input name="name" value="{{ old('name') }}" required maxlength="150" placeholder="e.g. SonarDesk CLI"></label><label>Version<input name="version" value="{{ old('version') }}" maxlength="80" placeholder="e.g. 2.1.0"></label><label>Platform<input name="platform" value="{{ old('platform') }}" maxlength="120" placeholder="macOS, Windows, Linux…"></label></div><label>Description (Markdown supported)<textarea name="description" rows="12" maxlength="12000" placeholder="## Overview Describe the product. ## Features - Feature one - Feature two">{{ old('description') }}</textarea></label><label class="distribution-file">Installer / package <small>Maximum 1 GB</small><input type="file" name="package" required></label><label class="distribution-check"><input type="checkbox" name="is_published" value="1" @checked(old('is_published'))><span><strong>Publish immediately</strong><small>Make this download available on the public page.</small></span></label><button class="btn btn-primary" type="submit">Add product</button></form></details>
|
||||
@foreach($products as $product)<details class="distribution-panel" id="edit-product-{{ $product->id }}"><summary><span><strong>Edit {{ $product->name }}</strong><small>{{ $product->original_filename }} · {{ $product->formatted_size }}</small></span><span class="dist-chevron">+</span></summary><form class="distribution-form" method="post" action="{{ route('admin.download-products.update',$product) }}" enctype="multipart/form-data">@csrf @method('PUT')<div class="form-grid"><label>Product name<input name="name" value="{{ $product->name }}" required maxlength="150"></label><label>Version<input name="version" value="{{ $product->version }}" maxlength="80"></label><label>Platform<input name="platform" value="{{ $product->platform }}" maxlength="120"></label></div><label>Description (Markdown supported)<textarea name="description" rows="12" maxlength="12000">{{ $product->description }}</textarea></label><label class="distribution-file">Replace package (optional)<small>Current: {{ $product->original_filename }} · Maximum 1 GB</small><input type="file" name="package"></label><label class="distribution-check"><input type="checkbox" name="is_published" value="1" @checked($product->is_published)><span><strong>Published</strong><small>Untick to save this product as a draft.</small></span></label><button class="btn btn-primary" type="submit">Save changes</button></form><form class="distribution-delete" method="post" action="{{ route('admin.download-products.destroy',$product) }}" onsubmit="return confirm('Permanently delete this product and its installer?')">@csrf @method('DELETE')<button type="submit" class="danger-outline">Delete product</button></form></details>@endforeach
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
@extends('layouts.app', ['title' => 'Download SonarDesk — Native SonarQube monitoring for macOS', 'description' => 'Download the latest signed SonarDesk release for macOS, review release notes and system requirements.'])
|
||||
@extends('layouts.app', ['title' => 'Downloads — SonarDesk and developer tools', 'description' => 'Browse SonarDesk and other macOS developer utilities. View release details or download installers.'])
|
||||
@section('fullbleed')
|
||||
<main class="download-page"><section class="download-hero"><div class="download-shell"><div class="download-copy"><span class="eyebrow">{{ $settings['eyebrow'] }}</span><h1>{{ $settings['title'] }}</h1><p>{{ $settings['intro'] }}</p>@if($latest)<div class="download-actions"><a class="btn download-primary" href="{{ route('download.latest') }}"><span class="download-icon">↓</span><span><strong>Download SonarDesk {{ $latest->version }}</strong><small>{{ $latest->formatted_size }} · macOS {{ $latest->minimum_macos ?: 'supported versions' }}</small></span></a><a class="btn download-secondary" href="#release-notes">View release notes</a></div><div class="release-verification"><span>✓ Signed distribution</span><span>✓ SHA-256 verified</span><span>✓ Secure licence activation</span></div>@else<div class="no-release"><strong>The next SonarDesk release is being prepared.</strong><span>Check back shortly or contact support.</span></div>@endif</div><div class="product-visual"><div class="mac-window"><div class="mac-titlebar"><i></i><i></i><i></i><span>SonarDesk</span></div><div class="mac-content"><div class="mini-sidebar"><img src="{{ asset('icons/sonardesk-icon-64.png') }}" alt=""><b>SonarDesk</b><span class="active"></span><span></span><span></span><span></span><span></span></div><div class="mini-dashboard"><div class="mini-head"><b>Project health</b><em>All systems monitored</em></div><div class="mini-stats"><i></i><i></i><i></i><i></i></div><div class="mini-chart"><span></span><span></span><span></span><span></span><span></span><span></span></div></div></div></div><div class="visual-badge"><span>Native</span><strong>Built for macOS</strong></div></div></div></section>
|
||||
<section class="download-confidence"><div class="download-shell confidence-grid"><div><span>Native macOS</span><strong>Fast, focused desktop workflow</strong></div><div><span>SonarQube</span><strong>Your server remains the source of truth</strong></div><div><span>Security</span><strong>Tokens protected by macOS Keychain</strong></div><div><span>Updates</span><strong>Professional in-app release delivery</strong></div></div></section>
|
||||
<div class="download-shell download-content">@if($latest)<section id="release-notes" class="release-notes-panel"><div class="release-heading"><div><span class="eyebrow">Latest stable release</span><h2>SonarDesk {{ $latest->version }}</h2><p>Build {{ $latest->build_number }} · Released {{ $latest->published_at?->format('j F Y') }}</p></div><a class="btn btn-primary" href="{{ route('download.release',$latest) }}">Download {{ $latest->version }}</a></div><div class="release-note-copy">{!! nl2br(e($latest->release_notes ?: 'This release contains the latest SonarDesk improvements and maintenance updates.')) !!}</div><details class="checksum-box"><summary>SHA-256 checksum · Verify download</summary><code>{{ $latest->sha256 }}</code></details></section>@endif<aside class="requirements-panel"><span class="eyebrow">Before you install</span><h2>System requirements</h2><p>{{ $settings['requirements'] }}</p><ol><li><span>1</span><div><strong>Download</strong><small>Get the latest signed SonarDesk package.</small></div></li><li><span>2</span><div><strong>Install</strong><small>Open the DMG and move SonarDesk to Applications.</small></div></li><li><span>3</span><div><strong>Activate</strong><small>Enter the licence key delivered after purchase.</small></div></li></ol><a href="{{ route('buy') }}">Need a licence? View pricing →</a></aside></div>
|
||||
@if($products->isNotEmpty())
|
||||
<section class="distribution-catalogue"><div class="download-shell"><div class="section-heading"><span class="eyebrow">Software catalogue</span><h2>More downloads</h2><p>Additional tools and installers available from our team.</p></div><div class="distribution-product-grid">@foreach($products as $product)<article class="distribution-product-card"><div class="distribution-product-top"><span class="distribution-platform">{{ $product->platform ?: 'Software' }}</span><span class="distribution-version">{{ $product->version ? 'v'.$product->version : 'Latest' }}</span></div><div class="distribution-product-icon" aria-hidden="true">↓</div><h3>{{ $product->name }}</h3><p>{{ $product->description ?: 'Download the latest available package.' }}</p><div class="distribution-product-footer"><span>{{ $product->formatted_size }}</span><a class="btn btn-primary" href="{{ route('download.product',$product) }}" aria-label="Download {{ $product->name }}">Download →</a></div></article>@endforeach</div></div></section>
|
||||
<main class="download-page catalogue-page">
|
||||
<section class="catalogue-header"><div class="download-shell"><span class="eyebrow">Software downloads</span><h1>Downloads</h1><p>Find the latest releases of SonarDesk and our developer tools. View details, check requirements or download directly.</p></div></section>
|
||||
<section class="distribution-catalogue"><div class="download-shell"><div class="section-heading"><span class="eyebrow">Available software</span><h2>Product catalogue</h2><p>All downloads in one place.</p></div>
|
||||
<div class="distribution-product-grid">
|
||||
@if($latest)
|
||||
<article class="distribution-product-card"><div class="distribution-product-top"><span class="distribution-platform">macOS</span><span class="distribution-version">v{{ $latest->version }}</span></div><h3><a href="{{ route('download.sonardesk.details') }}">SonarDesk</a></h3><p class="distribution-product-description">{{ \Illuminate\Support\Str::limit(trim(preg_replace('/\s+/', ' ', strip_tags(\Illuminate\Support\Str::markdown($latest->release_notes ?: $settings['intro'], ['html_input'=>'strip','allow_unsafe_links'=>false])))), 175) }}</p><div class="distribution-product-footer"><span>{{ $latest->formatted_size }}</span><div class="distribution-product-links"><a class="product-details-link" href="{{ route('download.sonardesk.details') }}">View details →</a><a class="btn btn-primary" href="{{ route('download.latest') }}">Download ↓</a></div></div></article>
|
||||
@endif
|
||||
<section class="release-history"><div class="download-shell"><div class="section-heading"><span class="eyebrow">Release archive</span><h2>Previous versions</h2><p>Published SonarDesk builds remain available here for customers who need a previous release.</p></div><div class="release-history-list">@forelse($releases as $release)<article><div><strong>SonarDesk {{ $release->version }}</strong><span>Build {{ $release->build_number }} · {{ ucfirst($release->channel) }} · {{ $release->published_at?->format('j M Y') }}</span></div><div><span>{{ $release->formatted_size }}</span><a href="{{ route('download.release',$release) }}">Download</a></div></article>@empty<p>No published releases are available yet.</p>@endforelse</div>{{ $releases->links() }}</div></section>
|
||||
<section class="download-support"><div class="download-shell"><div><span class="eyebrow">Support</span><h2>Installation or activation help?</h2><p>{{ $settings['support_text'] }}</p></div><a class="btn btn-secondary" href="{{ route('support') }}">Contact SonarDesk support</a></div></section></main>
|
||||
@foreach($products as $product)
|
||||
<article class="distribution-product-card"><div class="distribution-product-top"><span class="distribution-platform">{{ $product->platform ?: 'Software' }}</span><span class="distribution-version">{{ $product->version ? 'v'.$product->version : 'Latest' }}</span></div><h3><a href="{{ route('download.product.details', $product) }}">{{ $product->name }}</a></h3><p class="distribution-product-description">{{ \Illuminate\Support\Str::limit(trim(preg_replace('/\s+/', ' ', strip_tags(\Illuminate\Support\Str::markdown($product->description ?: 'Download the latest available package.', ['html_input'=>'strip','allow_unsafe_links'=>false])))), 175) }}</p><div class="distribution-product-footer"><span>{{ $product->formatted_size }}</span><div class="distribution-product-links"><a class="product-details-link" href="{{ route('download.product.details', $product) }}">View details →</a><a class="btn btn-primary" href="{{ route('download.product', $product) }}">Download ↓</a></div></div></article>
|
||||
@endforeach
|
||||
</div>
|
||||
@if(!$latest && $products->isEmpty())<p>No published downloads are available yet.</p>@endif
|
||||
</div></section>
|
||||
@if($releases->isNotEmpty())<section class="release-history"><div class="download-shell"><div class="section-heading"><span class="eyebrow">SonarDesk archive</span><h2>Previous SonarDesk versions</h2><p>Older published installers, grouped separately from current products.</p></div><div class="release-history-list">@foreach($releases as $release)<article><div><strong>SonarDesk {{ $release->version }}</strong><span>Build {{ $release->build_number }} · {{ ucfirst($release->channel) }} · {{ $release->published_at?->format('j M Y') }}</span></div><div><span>{{ $release->formatted_size }}</span><a href="{{ route('download.release', $release) }}">Download</a></div></article>@endforeach</div>{{ $releases->links() }}</div></section>@endif
|
||||
</main>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
@extends('layouts.app', ['title' => $product->name.' — Downloads', 'description' => 'Download '.$product->name.' and read product information and release notes.'])
|
||||
@section('fullbleed')
|
||||
<main class="download-page"><div class="download-shell">
|
||||
<article class="product-detail-panel">
|
||||
<a href="{{ route('release') }}" style="color:#175cd3;text-decoration:none;font-weight:700">← All downloads</a>
|
||||
<div class="distribution-product-top" style="margin-top:26px"><span class="distribution-platform">{{ $product->platform ?: 'Software' }}</span><span class="distribution-version">{{ $product->version ? 'v'.$product->version : 'Latest' }}</span></div>
|
||||
<h1>{{ $product->name }}</h1>
|
||||
<p style="color:#667085">{{ $product->formatted_size }} · {{ $product->platform ?: 'Software' }}</p>
|
||||
<a class="btn btn-primary" href="{{ route('download.product', $product) }}" style="display:inline-flex;margin-top:18px">Download {{ $product->name }} ↓</a>
|
||||
<div class="distribution-product-description">{!! \Illuminate\Support\Str::markdown($product->description ?: 'Download the latest available package.', ['html_input' => 'strip', 'allow_unsafe_links' => false]) !!}</div>
|
||||
<a class="btn btn-primary" href="{{ route('download.product', $product) }}">Download ↓</a>
|
||||
</article></div></main>
|
||||
@endsection
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('layouts.app', ['title' => 'SonarDesk — Details and download', 'description' => 'SonarDesk release notes, system requirements and macOS installer.'])
|
||||
@section('fullbleed')
|
||||
<main class="download-page"><div class="download-shell"><article class="product-detail-panel"><a class="product-details-link" href="{{ route('release') }}">← All downloads</a><div class="distribution-product-top" style="margin-top:26px"><span class="distribution-platform">macOS</span><span class="distribution-version">v{{ $latest->version }}</span></div><h1>SonarDesk</h1><p>{{ $settings['intro'] }}</p><p class="detail-meta">Version {{ $latest->version }} · Build {{ $latest->build_number }} · {{ $latest->formatted_size }} · Released {{ $latest->published_at?->format('j F Y') }}</p><a class="btn btn-primary" href="{{ route('download.latest') }}">Download SonarDesk ↓</a><section class="detail-section"><h2>Release notes</h2><div class="distribution-product-description">{!! \Illuminate\Support\Str::markdown($latest->release_notes ?: 'Latest maintenance and improvements.', ['html_input'=>'strip','allow_unsafe_links'=>false]) !!}</div></section><section class="detail-section"><h2>System requirements</h2><p>{{ $settings['requirements'] }}</p>@if($latest->minimum_macos)<p><strong>Minimum macOS version:</strong> {{ $latest->minimum_macos }}</p>@endif</section><section class="detail-section"><h2>Installation</h2><ol><li>Download the signed installer.</li><li>Open the DMG and move SonarDesk to Applications.</li><li>Launch SonarDesk and activate with your licence.</li></ol></section>@if($latest->sha256)<details class="checksum-box"><summary>SHA-256 checksum</summary><code>{{ $latest->sha256 }}</code></details>@endif</article></div></main>
|
||||
@endsection
|
||||
@@ -258,6 +258,26 @@
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
/* Markdown product descriptions: readable headings, paragraphs and lists. */
|
||||
.download-page .distribution-product-description { color:#475467; font-size:14px; line-height:1.75; margin:0 0 20px; overflow-wrap:anywhere; }
|
||||
.download-page .distribution-product-description > :first-child { margin-top:0; }
|
||||
.download-page .distribution-product-description > :last-child { margin-bottom:0; }
|
||||
.download-page .distribution-product-description h1,
|
||||
.download-page .distribution-product-description h2,
|
||||
.download-page .distribution-product-description h3 { color:#101828; font-weight:750; line-height:1.35; margin:22px 0 8px; letter-spacing:-.015em; }
|
||||
.download-page .distribution-product-description h1 { font-size:20px; }
|
||||
.download-page .distribution-product-description h2 { font-size:17px; }
|
||||
.download-page .distribution-product-description h3 { font-size:15px; }
|
||||
.download-page .distribution-product-description p { margin:0 0 12px; color:inherit; font-size:inherit; line-height:inherit; }
|
||||
.download-page .distribution-product-description ul { list-style:disc outside; margin:0 0 16px; padding-left:22px; }
|
||||
.download-page .distribution-product-description ol { list-style:decimal outside; margin:0 0 16px; padding-left:22px; }
|
||||
.download-page .distribution-product-description li { display:list-item; margin:5px 0; padding:0; }
|
||||
.download-page .distribution-product-description strong { color:#1d2939; font-weight:700; }
|
||||
.download-page .distribution-product-description a { color:#175cd3; text-decoration:underline; }
|
||||
.download-page .distribution-product-description code { background:#f2f4f7; border-radius:4px; padding:2px 4px; }
|
||||
.download-page .distribution-product-description pre { overflow-x:auto; background:#f2f4f7; padding:12px; border-radius:8px; }
|
||||
.download-page .distribution-product-description blockquote { border-left:3px solid #e8bc66; padding-left:12px; margin:12px 0; }
|
||||
|
||||
.download-page .distribution-product-footer {
|
||||
padding-top: 12px;
|
||||
}
|
||||
@@ -273,6 +293,83 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Full-width software catalogue: one readable product per row */
|
||||
.download-page .distribution-catalogue > .download-shell {
|
||||
width: min(100% - 48px, 1500px);
|
||||
max-width: 1500px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
.download-page .distribution-product-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 24px;
|
||||
width: 100%;
|
||||
}
|
||||
.download-page .distribution-product-card {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: clamp(24px, 3vw, 48px);
|
||||
}
|
||||
.download-page .distribution-product-description {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.download-page .distribution-product-description h2,
|
||||
.download-page .distribution-product-description h3,
|
||||
.download-page .distribution-product-description h4 {
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
margin: 1.5em 0 .6em;
|
||||
color: var(--text, #182235);
|
||||
}
|
||||
.download-page .distribution-product-description h2 { font-size: 1.5rem; }
|
||||
.download-page .distribution-product-description h3 { font-size: 1.2rem; }
|
||||
.download-page .distribution-product-description ul,
|
||||
.download-page .distribution-product-description ol { padding-left: 1.5rem; margin: .75em 0 1.25em; }
|
||||
.download-page .distribution-product-description li { margin: .3em 0; }
|
||||
@media (max-width: 640px) {
|
||||
.download-page .distribution-catalogue > .download-shell { width: calc(100% - 28px); }
|
||||
}
|
||||
|
||||
/* Compact product catalogue */
|
||||
.download-page .distribution-catalogue > .download-shell { width:min(100% - 40px,1200px);max-width:1200px;margin-inline:auto; }
|
||||
.download-page .distribution-product-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px;align-items:stretch; }
|
||||
.download-page .distribution-product-card { display:flex;flex-direction:column;width:auto;min-width:0;padding:26px;border-radius:18px; }
|
||||
.download-page .distribution-product-card h3 {font-size:clamp(25px,2vw,30px);font-weight:800;letter-spacing:-.035em;line-height:1.15;margin:20px 0 12px;color:#101828;}
|
||||
.download-page .distribution-product-description {font-size:15px;line-height:1.6;margin:0 0 20px;color:#475467;}
|
||||
.download-page .distribution-product-footer {margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
|
||||
.download-page .distribution-product-links {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
|
||||
.download-page .distribution-product-links .product-details-link {color:#175cd3;font-weight:700;text-decoration:none;}
|
||||
.download-page .distribution-product-links .product-details-link:hover {text-decoration:underline;}
|
||||
.download-page .product-detail-panel {background:white;border:1px solid #e3e8ef;border-radius:18px;padding:clamp(24px,4vw,52px);margin:40px auto 70px;max-width:960px;}
|
||||
.download-page .product-detail-panel h1 {font-size:clamp(32px,4vw,48px);font-weight:800;letter-spacing:-.04em;line-height:1.1;margin:14px 0;}
|
||||
.download-page .product-detail-panel .distribution-product-description {margin-top:30px;font-size:16px;}
|
||||
.download-page .product-detail-panel .distribution-product-description h2 {font-size:24px;margin:30px 0 12px;}
|
||||
.download-page .product-detail-panel .distribution-product-description h3 {font-size:19px;margin:24px 0 10px;}
|
||||
.download-page .product-detail-panel .distribution-product-description ul {list-style:disc;padding-left:25px;}
|
||||
.download-page .product-detail-panel .distribution-product-description ol {list-style:decimal;padding-left:25px;}
|
||||
.download-page .product-detail-panel .distribution-product-description li {margin:6px 0;}
|
||||
@media(max-width:700px){.download-page .distribution-product-grid{grid-template-columns:1fr;}}
|
||||
|
||||
|
||||
/* Compact, unified software catalogue */
|
||||
.download-page.catalogue-page .catalogue-header {padding:64px 0 32px;background:#f5f7fb;}
|
||||
.download-page.catalogue-page .catalogue-header h1 {font-size:clamp(36px,4vw,54px);letter-spacing:-.045em;color:#101828;margin:10px 0;}
|
||||
.download-page.catalogue-page .catalogue-header p {font-size:18px;color:#667085;max-width:720px;}
|
||||
.download-page.catalogue-page .distribution-catalogue {padding-top:28px;}
|
||||
.download-page .distribution-product-card h3 a {color:inherit;text-decoration:none;}
|
||||
.download-page .distribution-product-card h3 a:hover {color:#175cd3;}
|
||||
.download-page.catalogue-page .distribution-product-card {padding:24px;}
|
||||
.download-page.catalogue-page .distribution-product-card h3 {margin:14px 0 10px;font-size:28px;}
|
||||
.download-page.catalogue-page .distribution-product-description {margin-bottom:18px;}
|
||||
.download-page .detail-section {margin-top:36px;border-top:1px solid #eaecf0;padding-top:26px;}
|
||||
.download-page .detail-section h2 {font-size:24px;font-weight:800;margin-bottom:14px;color:#101828;}
|
||||
.download-page .detail-section ol {padding-left:24px;list-style:decimal;}
|
||||
.download-page .detail-section li {margin:8px 0;}
|
||||
.download-page .detail-meta {color:#667085;margin:12px 0 22px;}
|
||||
|
||||
</style>
|
||||
@stack('head')
|
||||
</head>
|
||||
|
||||
@@ -25,7 +25,9 @@ Route::get('/robots.txt', [SeoController::class, 'robots'])->name('robots');
|
||||
Route::get('/', fn () => view('portal.welcome', ['latestRelease' => \App\Models\SonarDeskRelease::published()->where('channel', 'stable')->latest('published_at')->first()]))->name('home');
|
||||
Route::view('/features', 'features')->name('features');
|
||||
Route::get('/release', [ReleaseController::class, 'index'])->name('release');
|
||||
Route::get('/downloads/sonardesk/details', [ReleaseController::class, 'sonarDeskDetails'])->name('download.sonardesk.details');
|
||||
Route::get('/download', [ReleaseController::class, 'latest'])->name('download.latest');
|
||||
Route::get('/downloads/products/{product}/details', [ReleaseController::class, 'productDetails'])->name('download.product.details');
|
||||
Route::get('/downloads/products/{product}', [ReleaseController::class, 'productDownload'])->name('download.product');
|
||||
Route::get('/downloads/{release}', [ReleaseController::class, 'download'])->name('download.release');
|
||||
Route::get('/updates/appcast.xml', [ReleaseController::class, 'appcast'])->name('updates.appcast');
|
||||
|
||||
Reference in New Issue
Block a user