feat(web-console): refine intelligent cockpit sync interface

This commit is contained in:
vee
2026-08-19 08:36:38 +08:00
parent 9b24d5c8c9
commit 772ab685d6
6 changed files with 1420 additions and 115 deletions
+9 -9
View File
@@ -236,19 +236,19 @@ operations:
) as response:
gesture_script = response.read().decode("utf-8")
with self.opener.open(
f"{self.base_url}/console-v2.js?v=sync-layout-11", timeout=3
f"{self.base_url}/console-v2.js?v=sync-layout-26", timeout=3
) as response:
console_script = response.read().decode("utf-8")
with self.opener.open(
f"{self.base_url}/console-v2.css?v=sync-layout-11", timeout=3
f"{self.base_url}/console-v2.css?v=sync-layout-26", timeout=3
) as response:
console_styles = response.read().decode("utf-8")
with self.opener.open(
f"{self.base_url}/self-extension.js?v=sync-layout-11", timeout=3
f"{self.base_url}/self-extension.js?v=sync-layout-26", timeout=3
) as response:
extension_script = response.read().decode("utf-8")
with self.opener.open(
f"{self.base_url}/self-extension.css?v=sync-layout-11", timeout=3
f"{self.base_url}/self-extension.css?v=sync-layout-26", timeout=3
) as response:
extension_styles = response.read().decode("utf-8").replace("\r\n", "\n")
with self.opener.open(
@@ -279,10 +279,10 @@ operations:
self.assertIn('href="/styles.css?v=dual-seat-9"', html)
self.assertIn('src="/gesture-control.js?v=android-pad-8"', html)
self.assertNotIn('class="vehicle-system-hud"', html)
self.assertIn('src="/console-v2.js?v=sync-layout-11"', html)
self.assertIn('href="/console-v2.css?v=sync-layout-11"', html)
self.assertIn('src="/self-extension.js?v=sync-layout-11"', html)
self.assertIn('href="/self-extension.css?v=sync-layout-11"', html)
self.assertIn('src="/console-v2.js?v=sync-layout-26"', html)
self.assertIn('href="/console-v2.css?v=sync-layout-26"', html)
self.assertIn('src="/self-extension.js?v=sync-layout-26"', html)
self.assertIn('href="/self-extension.css?v=sync-layout-26"', html)
self.assertNotIn("self-calibration", html)
self.assertNotIn("self-repair", html)
self.assertNotIn("self-evolution", html)
@@ -484,7 +484,7 @@ operations:
self.assertIn('client_type: "web_console"', app_script)
self.assertIn('canvas.addEventListener("webglcontextlost"', app_script)
self.assertIn('"cognitive-agent:module-change"', app_script)
self.assertIn('const CACHE_VERSION = "cognitive-agent-pad-v163"', service_worker)
self.assertIn('const CACHE_VERSION = "cognitive-agent-pad-v178"', service_worker)
self.assertIn('"/assets/pets/self-extension-cat.png?v=3"', service_worker)
self.assertIn(".then(() => self.skipWaiting())", service_worker)
self.assertNotIn("const cached = await caches.match(request)", service_worker)