diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..8c79588 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +# 腾讯地图 API Key +# 请到 https://lbs.qq.com/index.html 申请 +VITE_TENCENT_MAP_KEY=your_tencent_map_key_here diff --git a/docs/superpowers/plans/2026-06-25-sgs-sdk-data-switch-viewmodels.md b/docs/superpowers/plans/2026-06-25-sgs-sdk-data-switch-viewmodels.md new file mode 100644 index 0000000..84666ef --- /dev/null +++ b/docs/superpowers/plans/2026-06-25-sgs-sdk-data-switch-viewmodels.md @@ -0,0 +1,870 @@ +# SGS SDK Data Switch ViewModel Convergence Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Complete the SGS SDK data-source switch by keeping `static/api/sdk` mode behavior intact while moving remaining page-level mapping into the existing adapter/view-model middle layers. + +**Architecture:** Keep the existing split: providers/adapters map source payloads to domain models, repositories/use cases expose business operations, and `src/view-models/*` maps domain models into presentation props. The implementation does not rewrite the SGS provider, repository, renderer, or pages; it only closes remaining mapping leaks and adds observable mode diagnostics. + +**Tech Stack:** uni-app H5, Vue 3 `