- Implemented buildUserAgent() method in AllegroApiClient, AllegroOAuthClient, and AllegroTrackingService to include User-Agent header in all HTTP requests to Allegro API. - Updated .env.example to include APP_VERSION and ALLEGRO_USER_AGENT_URL for configuration. - Created public /info page to provide application details required by Allegro, including app name, version, description, and contact information. - Added minimalist layout for public pages to ensure a professional appearance. - Ensured all changes comply with Allegro's API requirements for User-Agent header.
99 lines
2.3 KiB
PHP
99 lines
2.3 KiB
PHP
<style>
|
|
.info-header {
|
|
margin-bottom: 32px;
|
|
padding-bottom: 24px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
}
|
|
.info-header h1 {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #1a202c;
|
|
margin-bottom: 4px;
|
|
}
|
|
.info-header .version {
|
|
font-size: 14px;
|
|
color: #718096;
|
|
font-weight: 400;
|
|
}
|
|
.info-section {
|
|
margin-bottom: 28px;
|
|
}
|
|
.info-section h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #2d3748;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
.info-section p {
|
|
font-size: 15px;
|
|
color: #4a5568;
|
|
margin-bottom: 8px;
|
|
}
|
|
.info-section ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.info-section ul li {
|
|
font-size: 15px;
|
|
color: #4a5568;
|
|
padding: 4px 0 4px 20px;
|
|
position: relative;
|
|
}
|
|
.info-section ul li::before {
|
|
content: "\2022";
|
|
color: #4299e1;
|
|
font-weight: 700;
|
|
position: absolute;
|
|
left: 4px;
|
|
}
|
|
.info-footer {
|
|
margin-top: 40px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e2e8f0;
|
|
font-size: 13px;
|
|
color: #a0aec0;
|
|
}
|
|
</style>
|
|
|
|
<div class="info-header">
|
|
<h1><?= $e($appName) ?> <span class="version">v<?= $e($appVersion) ?></span></h1>
|
|
</div>
|
|
|
|
<div class="info-section">
|
|
<h2>O aplikacji</h2>
|
|
<p>
|
|
<?= $e($appName) ?> to wewnętrzna aplikacja firmy Project PRO do zarządzania
|
|
zamówieniami z wielu kanałów sprzedaży. Umożliwia centralne przetwarzanie zamówień,
|
|
generowanie etykiet przewozowych, śledzenie przesyłek oraz automatyzację
|
|
procesów sprzedażowych.
|
|
</p>
|
|
<p>
|
|
Aplikacja jest przeznaczona wyłącznie do użytku wewnętrznego firmy Project PRO
|
|
i nie jest udostępniana publicznie.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="info-section">
|
|
<h2>Integracja z Allegro REST API</h2>
|
|
<p>Aplikacja korzysta z Allegro REST API w następującym zakresie:</p>
|
|
<ul>
|
|
<li>Import zamówień (checkout forms)</li>
|
|
<li>Zarządzanie przesyłkami (shipment management)</li>
|
|
<li>Synchronizacja statusów realizacji zamówień</li>
|
|
<li>Przekazywanie numerów przesyłek (waybill)</li>
|
|
<li>Śledzenie statusów dostawy</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="info-section">
|
|
<h2>Operator</h2>
|
|
<p>Project PRO</p>
|
|
<p>E-mail: kontakt@projectpro.pl</p>
|
|
</div>
|
|
|
|
<div class="info-footer">
|
|
<?= $e($appName) ?> v<?= $e($appVersion) ?> · © <?= date('Y') ?> Project PRO
|
|
</div>
|