From 029c7a669696e298091577e4944283e6cc560d8c Mon Sep 17 00:00:00 2001 From: lyf <2514544224@qq.com> Date: Fri, 26 Jun 2026 04:25:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=A8=A1=E6=9D=BF=E4=B8=8E=20superpowers=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .env.example | 3 + ...26-06-25-sgs-sdk-data-switch-viewmodels.md | 870 ++++++++++++++++++ 2 files changed, 873 insertions(+) create mode 100644 .env.example create mode 100644 docs/superpowers/plans/2026-06-25-sgs-sdk-data-switch-viewmodels.md 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 `