fix: ShadowRocket 策略组改用 policy-regex-filter 收节点

ShadowRocket 没有 Surge 的 use= 订阅引用语法,首版 conf 里
「订阅名 + use=true」在真机上解析失败,All Nodes 组只显示一个
无效的 Proxy Group 残留成员。改为原生的 policy-regex-filter
从 App 内全部节点筛选(收纳全部节点 = .*),订阅命名约束随之
取消,删除 SHADOWROCKET_SUB_NAME 常量并同步前端提示与文档。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-25 13:52:27 +08:00
parent bf7f2df67e
commit e5a3c70773
6 changed files with 14 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { nextTick, onMounted, ref, watch } from 'vue';
import { NButton, NPopover, NSpace, NSwitch, useDialog, useMessage } from 'naive-ui';
import { SHADOWROCKET_SUB_NAME, type TokenDto } from '@proxy-station/shared';
import type { TokenDto } from '@proxy-station/shared';
import { useSubscriptionsStore } from '../stores/subscriptions';
import { useNodesStore } from '../stores/nodes';
import { copyText } from '../utils/clipboard';
@@ -120,11 +120,7 @@ watch(manualCopyText, async (v) => {
<button class="info" aria-label="导入说明">?</button>
</template>
<p class="pop-title">分两步导入</p>
<p class="pop-body">
App 订阅里添加节点链接并把订阅命名为
<code class="mono pop-code">{{ SHADOWROCKET_SUB_NAME }}</code>
配置文件按这个名字引用节点名字必须完全一致
</p>
<p class="pop-body"> App 订阅里添加节点链接订阅名称随意</p>
<p class="pop-body"> 配置里添加规则链接并启用</p>
</NPopover>
</span>