From c8397f7b608973a8d9a64771f05d38b89b948425 Mon Sep 17 00:00:00 2001 From: Mplan Date: Fri, 29 May 2026 23:11:40 +0800 Subject: [PATCH 1/8] feat(branding): add pixel cloud site icon --- index.html | 2 +- public/favicon.svg | 32 ++++++++++++++++++++++++++++- src/components/layout/AppHeader.vue | 27 ++++++++++++++++++++++-- 3 files changed, 57 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e0f591d..0b1cb60 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + OpenCloud diff --git a/public/favicon.svg b/public/favicon.svg index 6893eb1..a45efbc 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1 +1,31 @@ - \ No newline at end of file + + OpenCloud Pixel Favicon + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/layout/AppHeader.vue b/src/components/layout/AppHeader.vue index 4375cf4..0cd7453 100644 --- a/src/components/layout/AppHeader.vue +++ b/src/components/layout/AppHeader.vue @@ -138,8 +138,31 @@ async function handleLogout() {
-
- ☁️ +
+
Live Sky Atlas
-- 2.50.1 (Apple Git-155) From 7afb4e5ac1593f0ec76a0420b710ee13eec31a92 Mon Sep 17 00:00:00 2001 From: Mplan Date: Fri, 29 May 2026 23:12:08 +0800 Subject: [PATCH 2/8] feat(map): refine control layout and zoom bounds --- src/types/amap.d.ts | 1 + src/views/map/MapView.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/types/amap.d.ts b/src/types/amap.d.ts index 6258309..dbc6102 100644 --- a/src/types/amap.d.ts +++ b/src/types/amap.d.ts @@ -26,6 +26,7 @@ declare namespace AMap { pitch?: number rotation?: number zoom?: number + zooms?: [number, number] center?: [number, number] mapStyle?: string features?: string[] diff --git a/src/views/map/MapView.vue b/src/views/map/MapView.vue index d654ca0..5ed6484 100644 --- a/src/views/map/MapView.vue +++ b/src/views/map/MapView.vue @@ -405,6 +405,7 @@ onMounted(async () => { pitch: 0, rotation: 0, zoom: 5, + zooms: [4, 18], center: [104.07, 30.67], mapStyle: 'amap://styles/normal', features: ['bg', 'road', 'building', 'point'], @@ -415,7 +416,7 @@ onMounted(async () => { mapInst.addControl(new AMapLib.Scale()) mapInst.addControl(new AMapLib.ToolBar({ position: 'LT' } as Record)) - mapInst.addControl(new AMapLib.ControlBar({ position: { right: '10px', top: '80px' } } as Record)) + mapInst.addControl(new AMapLib.ControlBar({ position: { right: '50px', bottom: '224px' } } as Record)) mapInst.on('click', () => { previewCloud.value = null; hideHoverCard() }) mapInst.on('zoomstart', hideHeader) mapInst.on('movestart', hideHeader) @@ -442,7 +443,7 @@ onUnmounted(() => {
-
+