mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-18 05:23:57 +08:00
fix maps
This commit is contained in:
@@ -6,7 +6,7 @@ import { Tools } from "./views/Tools.js"
|
||||
import { Recordings } from "./views/Recordings.js"
|
||||
import { Logs } from "./views/Logs.js"
|
||||
import { Tuning } from "./views/Tuning.js"
|
||||
import { Navigation } from "./views/Navigation.js"
|
||||
import { Navigation } from "./views/Navigation.js?v=nav-destination-2"
|
||||
import { Vehicle } from "./views/Vehicle.js"
|
||||
import { Bluetooth } from "./views/Bluetooth.js"
|
||||
import { SystemTools } from "./views/SystemTools.js"
|
||||
|
||||
+1
-3
@@ -108,9 +108,6 @@ export const NavigationDestinationPanel = {
|
||||
}).slice(0, 10)
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
secondaryLabel,
|
||||
},
|
||||
async mounted() {
|
||||
await this.load()
|
||||
},
|
||||
@@ -123,6 +120,7 @@ export const NavigationDestinationPanel = {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
secondaryLabel,
|
||||
async load() {
|
||||
try {
|
||||
const [nav, favoritePayload] = await Promise.all([
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NavigationDestinationPanel } from "../components/NavigationDestinationPanel.js"
|
||||
import { NavigationDestinationPanel } from "../components/NavigationDestinationPanel.js?v=nav-destination-2"
|
||||
import { MapsPanel } from "../components/MapsPanel.js"
|
||||
import { NavigationKeysPanel } from "../components/NavigationKeysPanel.js"
|
||||
import { SpeedLimitsPanel } from "../components/SpeedLimitsPanel.js"
|
||||
|
||||
@@ -477,10 +477,12 @@ def test_ui_all_remaining_classic_tools_native_no_embed():
|
||||
assert "GalaxyEmbed" not in tuning and "LateralTuningPanel" in tuning
|
||||
assert _read("js/components/MapsPanel.js") and _read("js/components/NavigationKeysPanel.js")
|
||||
destination = _read("js/components/NavigationDestinationPanel.js")
|
||||
assert '"./views/Navigation.js?v=nav-destination-2"' in _read("js/app.js")
|
||||
assert '"../components/NavigationDestinationPanel.js?v=nav-destination-2"' in _read("js/views/Navigation.js")
|
||||
assert "mapboxSuggest" in destination and "mapboxRetrieve" in destination
|
||||
assert "mapboxGeocode" in destination and "mapboxDirections" in destination
|
||||
assert "ref=\"map\"" in destination and "setNavigation(this.destination)" in destination
|
||||
assert "methods: {" in destination and "secondaryLabel," in destination
|
||||
assert destination.count("methods: {") == 1 and "secondaryLabel," in destination
|
||||
assert _read("js/components/LateralTuningPanel.js")
|
||||
|
||||
# Shared API surface added for the second batch of ported pages.
|
||||
|
||||
Reference in New Issue
Block a user