|
|
|
|
@ -121,6 +121,9 @@ $assert(preg_match('/\.admin-template-body\s*\{(?=[^}]*min-height:\s*100dvh)(?=[
|
|
|
|
|
&& preg_match('/\.admin-template \.app-sidebar-menu\s*\{(?=[^}]*position:\s*fixed)(?=[^}]*inset:\s*0 auto 0 0)(?=[^}]*height:\s*auto)(?=[^}]*overflow-y:\s*auto)[^}]*\}/s', $styles)
|
|
|
|
|
&& preg_match('/\.admin-template-body\.admin-sidebar-open \.admin-sidebar-backdrop\s*\{(?=[^}]*position:\s*fixed)(?=[^}]*inset:\s*0\s*;)(?=[^}]*height:\s*auto)[^}]*\}/s', $styles)
|
|
|
|
|
&& str_contains($styles, '.admin-template-body.admin-sidebar-no-transition .app-sidebar-menu')
|
|
|
|
|
&& preg_match('/\.admin-template-body\.admin-sidebar-navigating \.admin-sidebar-backdrop\s*\{(?=[^}]*background:\s*#7e838e)(?=[^}]*transition:\s*none\s*!important)[^}]*\}/s', $styles)
|
|
|
|
|
&& preg_match('/\.admin-template-body\.admin-sidebar-navigating \.app-sidebar-menu\s*\{(?=[^}]*pointer-events:\s*none)(?=[^}]*transition:\s*none\s*!important)[^}]*\}/s', $styles)
|
|
|
|
|
&& preg_match('/\.admin-template-body\.admin-sidebar-navigating \.topbar-custom,\s*\.admin-template-body\.admin-sidebar-navigating \.content-page\s*\{(?=[^}]*visibility:\s*hidden\s*!important)(?=[^}]*transition:\s*none\s*!important)[^}]*\}/s', $styles)
|
|
|
|
|
&& !str_contains($footer, 'measureViewportHeight')
|
|
|
|
|
&& !str_contains($footer, 'scheduleViewportHeight')
|
|
|
|
|
&& !str_contains($footer, 'window.visualViewport')
|
|
|
|
|
@ -134,13 +137,17 @@ $assert(preg_match('/\.admin-template-body\s*\{(?=[^}]*min-height:\s*100dvh)(?=[
|
|
|
|
|
&& str_contains($footer, 'target.search === current.search')
|
|
|
|
|
&& str_contains($footer, 'target.hash === current.hash')
|
|
|
|
|
&& str_contains($footer, 'event.preventDefault();')
|
|
|
|
|
&& preg_match('/function startSidebarNavigation\(target\).*?classList\.add\(\'admin-sidebar-navigating\'\).*?requestAnimationFrame\(function \(\) \{.*?requestAnimationFrame\(function \(\) \{.*?window\.location\.assign\(target\.href\);/s', $footer)
|
|
|
|
|
&& str_contains($footer, 'if (sidebarNavigationPending)')
|
|
|
|
|
&& str_contains($footer, "document.body.classList.remove('admin-sidebar-navigating');")
|
|
|
|
|
&& preg_match('/window\.addEventListener\(\'pageshow\'.*?event\.persisted.*?resetSidebarNavigation\(\);.*?closeSidebarImmediately\(\);/s', $footer)
|
|
|
|
|
&& !preg_match('/link\.addEventListener\(\'click\'.*?window\.innerWidth <= 991.*?closeSidebar\(\);/s', $footer),
|
|
|
|
|
'Mobile administrator navigation must cover the viewport without stale measurements and keep its overlay during cross-page navigation.');
|
|
|
|
|
'Mobile administrator navigation must cover the viewport, paint an opaque leaving state, and preserve BFCache behavior.');
|
|
|
|
|
|
|
|
|
|
$assetVersion = [];
|
|
|
|
|
$assert(preg_match("/venix_asset_version value='([0-9]+)'/", $assets, $assetVersion) === 1
|
|
|
|
|
&& (int) $assetVersion[1] >= 2026093002
|
|
|
|
|
&& (int) $assetVersion[1] >= 2026093003
|
|
|
|
|
&& str_contains($assets, 'cache key'),
|
|
|
|
|
'This administrator asset release must use cache key 2026093002 or newer.');
|
|
|
|
|
'This administrator asset release must use cache key 2026093003 or newer.');
|
|
|
|
|
|
|
|
|
|
echo 'Administrator operational overview contracts passed.' . PHP_EOL;
|
|
|
|
|
|