create-ax-trusted-plugin 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,7 +34,7 @@ npm run dev
34
34
  | `--title` | 面板标题 | 由 id 推导 |
35
35
  | `--anchor` | 浮层锚点 | `top-right` |
36
36
 
37
- 锚点可选:`top-left/top-right/top-center/bottom-left/bottom-right/left-center/right-center/center`。
37
+ 锚点可选:`top-left/top-right/top-center/bottom-left/bottom-right/bottom-center/left-center/right-center/center`。
38
38
 
39
39
  ## 生成内容
40
40
  `template/` 经占位替换(`__ID__`/`__TITLE__`/`__ANCHOR__`)后落地:`src/{index.ts,Panel.vue,state.ts}`、
package/bin/index.mjs CHANGED
@@ -15,7 +15,7 @@ const TEMPLATE = resolve(here, '..', 'template');
15
15
 
16
16
  const ANCHORS = [
17
17
  'top-left', 'top-right', 'top-center',
18
- 'bottom-left', 'bottom-right',
18
+ 'bottom-left', 'bottom-right', 'bottom-center',
19
19
  'left-center', 'right-center', 'center',
20
20
  ];
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ax-trusted-plugin",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "可信(internal)插件脚手架:一条命令生成一个基于 @ax-npm/host-trusted-sdk-v4 的可信插件骨架(ESM 直出 activate + 自带 Vue,dev 裸 vite 原生 sourcemap)。用法:npm create ax-trusted-plugin <id>。生成器本身无机密,公网可装;生成出的工程仍走私有源拉 @ax-npm/* 依赖。",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@ import { state } from './state';
12
12
 
13
13
  <div class="tele">
14
14
  <div class="tele-h">遥测</div>
15
- <div v-if="state.telemetry" class="tele-b">
15
+ <div v-if="state.tele" class="tele-b">
16
16
  lon {{ state.tele.pos_lon ?? '—' }} ·
17
17
  lat {{ state.tele.pos_lat ?? '—' }} ·
18
18
  alt {{ state.tele.pos_alt ?? '—' }}
File without changes