surgioproject / surgio

Generating rules for Surge, Clash, Quantumult like a PRO
https://surgio.js.org
MIT License
1.62k stars 138 forks source link

feat: getClashNodeNames 增加默认节点 #251

Closed GodD6366 closed 10 months ago

GodD6366 commented 10 months ago
- name: Test
  type: select
  proxies: {{ getClashNodeNames(
         nodeList, 
         customFilters.Test, 
         [ ], 
         [ '🚀 Proxy' ]
    ) | json }}

我期望 getClashNodeNames 达到的效果如下:

现有的 prependNodeNames 不管是否查询到,都会追加到最前面,不太符合要求

netlify[bot] commented 10 months ago

Deploy Preview for surgio-documentation ready!

Name Link
Latest commit 5336634bd16e090cc767eeab2fa1cd42b2ddb382
Latest deploy log https://app.netlify.com/sites/surgio-documentation/deploys/65aa3cfc8c457b0008da3a78
Deploy Preview https://deploy-preview-251--surgio-documentation.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (df33a80) 76.67% compared to head (5336634) 76.69%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #251 +/- ## ========================================== + Coverage 76.67% 76.69% +0.02% ========================================== Files 62 62 Lines 2319 2321 +2 Branches 575 576 +1 ========================================== + Hits 1778 1780 +2 Misses 355 355 Partials 186 186 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

geekdada commented 10 months ago

感谢贡献代码,能不能顺便增加一下文档

GodD6366 commented 10 months ago

感谢贡献代码,能不能顺便增加一下文档

done