@gkd-kit/docs 0.0.1707311575305 → 0.0.1707495320786

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.
Files changed (57) hide show
  1. package/.vitepress/dist/404.html +4 -4
  2. package/.vitepress/dist/api/index.html +7 -7
  3. package/.vitepress/dist/api/interfaces/RawApp.html +7 -7
  4. package/.vitepress/dist/api/interfaces/RawAppGroup.html +8 -8
  5. package/.vitepress/dist/api/interfaces/RawAppRule.html +8 -8
  6. package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +8 -8
  7. package/.vitepress/dist/api/interfaces/RawCategory.html +7 -7
  8. package/.vitepress/dist/api/interfaces/RawCommonProps.html +7 -7
  9. package/.vitepress/dist/api/interfaces/RawGlobalApp.html +8 -8
  10. package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +8 -8
  11. package/.vitepress/dist/api/interfaces/RawGlobalRule.html +7 -7
  12. package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +7 -7
  13. package/.vitepress/dist/api/interfaces/RawGroupProps.html +8 -8
  14. package/.vitepress/dist/api/interfaces/RawRuleProps.html +7 -7
  15. package/.vitepress/dist/api/interfaces/RawSubscription.html +7 -7
  16. package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
  17. package/.vitepress/dist/api/type-aliases/Integer.html +7 -7
  18. package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.SHWJVcBG.js → api_interfaces_RawAppGroup.md.sRqOsQ6V.js} +1 -1
  19. package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.SHWJVcBG.lean.js → api_interfaces_RawAppGroup.md.sRqOsQ6V.lean.js} +1 -1
  20. package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.kYKCOA_r.js → api_interfaces_RawAppRule.md.M3juJ14y.js} +1 -1
  21. package/.vitepress/dist/assets/api_interfaces_RawAppRule.md.M3juJ14y.lean.js +1 -0
  22. package/.vitepress/dist/assets/api_interfaces_RawAppRuleProps.md.8KeTIIw8.js +1 -0
  23. package/.vitepress/dist/assets/api_interfaces_RawAppRuleProps.md.8KeTIIw8.lean.js +1 -0
  24. package/.vitepress/dist/assets/api_interfaces_RawGlobalApp.md.1a_q0jWK.js +1 -0
  25. package/.vitepress/dist/assets/api_interfaces_RawGlobalApp.md.1a_q0jWK.lean.js +1 -0
  26. package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.kWrK2iA4.js → api_interfaces_RawGlobalGroup.md.gVwHEDU9.js} +1 -1
  27. package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.kWrK2iA4.lean.js → api_interfaces_RawGlobalGroup.md.gVwHEDU9.lean.js} +1 -1
  28. package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.uRczOUfY.js → api_interfaces_RawGroupProps.md.IWuByOby.js} +1 -1
  29. package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.uRczOUfY.lean.js → api_interfaces_RawGroupProps.md.IWuByOby.lean.js} +1 -1
  30. package/.vitepress/dist/assets/{app.DazYiPtw.js → app.KrD1xN5g.js} +1 -1
  31. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.TpidSAVv.js +1 -0
  32. package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.RgXUfnEK.js → VPLocalSearchBox.JS0zNPDf.js} +2 -2
  33. package/.vitepress/dist/assets/chunks/{theme.prJi8Rkb.js → theme.5fj_qUZp.js} +1 -1
  34. package/.vitepress/dist/assets/{faq_index.md.uJMFdSCI.js → faq_index.md.xxciDt8G.js} +1 -1
  35. package/.vitepress/dist/assets/{faq_index.md.uJMFdSCI.lean.js → faq_index.md.xxciDt8G.lean.js} +1 -1
  36. package/.vitepress/dist/assets/{guide_index.md.lL_UC74O.js → guide_index.md.w5l_b2Gw.js} +1 -1
  37. package/.vitepress/dist/assets/{guide_index.md.lL_UC74O.lean.js → guide_index.md.w5l_b2Gw.lean.js} +1 -1
  38. package/.vitepress/dist/assets/{index.md.ysASpwwR.js → index.md.FL54VrV0.js} +1 -1
  39. package/.vitepress/dist/assets/{index.md.ysASpwwR.lean.js → index.md.FL54VrV0.lean.js} +1 -1
  40. package/.vitepress/dist/assets/{scription_index.md.txihUAHs.js → scription_index.md.ZsMYy9I8.js} +1 -1
  41. package/.vitepress/dist/assets/{scription_index.md.txihUAHs.lean.js → scription_index.md.ZsMYy9I8.lean.js} +1 -1
  42. package/.vitepress/dist/assets/{selector_index.md.a_RVIBQi.js → selector_index.md.kmVzU_NK.js} +1 -1
  43. package/.vitepress/dist/assets/{selector_index.md.a_RVIBQi.lean.js → selector_index.md.kmVzU_NK.lean.js} +1 -1
  44. package/.vitepress/dist/assets/style.neYbxcEm.css +1 -1
  45. package/.vitepress/dist/faq/index.html +8 -8
  46. package/.vitepress/dist/guide/index.html +8 -8
  47. package/.vitepress/dist/hashmap.json +1 -1
  48. package/.vitepress/dist/index.html +7 -7
  49. package/.vitepress/dist/scription/index.html +8 -8
  50. package/.vitepress/dist/selector/index.html +8 -8
  51. package/package.json +1 -1
  52. package/.vitepress/dist/assets/api_interfaces_RawAppRule.md.kYKCOA_r.lean.js +0 -1
  53. package/.vitepress/dist/assets/api_interfaces_RawAppRuleProps.md.kUOun-J5.js +0 -1
  54. package/.vitepress/dist/assets/api_interfaces_RawAppRuleProps.md.kUOun-J5.lean.js +0 -1
  55. package/.vitepress/dist/assets/api_interfaces_RawGlobalApp.md.XyhntH0b.js +0 -1
  56. package/.vitepress/dist/assets/api_interfaces_RawGlobalApp.md.XyhntH0b.lean.js +0 -1
  57. package/.vitepress/dist/assets/chunks/@localSearchIndexroot.3CEFalsb.js +0 -1
@@ -2,4 +2,4 @@ import{_ as e,c as a,o,V as r}from"./chunks/framework.CR5kvWbS.js";const f=JSON.
2
2
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 当 activity 刷新时, 唤醒规则</span></span>
3
3
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 刷新 activity 并不代表 activityId 变化</span></span>
4
4
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 如 哔哩哔哩视频播放页 底部点击推荐视频 进入另一个 视频播放页, 进入了新 activity 但是 activityId 并没有变化</span></span></code></pre></div><h4 id="example-1" tabindex="-1">Example <a class="header-anchor" href="#example-1" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;app&#39;</span></span>
5
- <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="matchanyapp" tabindex="-1">matchAnyApp? <a class="header-anchor" href="#matchanyapp" aria-label="Permalink to &quot;matchAnyApp?&quot;">​</a></h3><blockquote><p><strong>matchAnyApp</strong>?: <code>boolean</code></p></blockquote><p>true =&gt; 匹配任意应用</p><p>false =&gt; 仅匹配 apps 里面的应用</p><h4 id="default-4" tabindex="-1">Default <a class="header-anchor" href="#default-4" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchanyapp"><code>matchAnyApp</code></a></p><hr><h3 id="matchlauncher" tabindex="-1">matchLauncher? <a class="header-anchor" href="#matchlauncher" aria-label="Permalink to &quot;matchLauncher?&quot;">​</a></h3><blockquote><p><strong>matchLauncher</strong>?: <code>boolean</code></p></blockquote><p>是否匹配桌面, 仅全局规则可用</p><p>如果你切换了桌面, 你需要打开 GKD 的界面触发识别新桌面</p><h4 id="default-5" tabindex="-1">Default <a class="header-anchor" href="#default-5" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchlauncher"><code>matchLauncher</code></a></p><hr><h3 id="matchsystemapp" tabindex="-1">matchSystemApp? <a class="header-anchor" href="#matchsystemapp" aria-label="Permalink to &quot;matchSystemApp?&quot;">​</a></h3><blockquote><p><strong>matchSystemApp</strong>?: <code>boolean</code></p></blockquote><p>是否匹配系统应用, 仅全局规则可用</p><h4 id="default-6" tabindex="-1">Default <a class="header-anchor" href="#default-6" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-19" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-19" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchsystemapp"><code>matchSystemApp</code></a></p><hr><h3 id="apps" tabindex="-1">apps? <a class="header-anchor" href="#apps" aria-label="Permalink to &quot;apps?&quot;">​</a></h3><blockquote><p><strong>apps</strong>?: <a href="./RawGlobalApp.html"><code>RawGlobalApp</code></a>[]</p></blockquote><p>应用配置列表, 配置应用内界面如何匹配或不匹配</p><h4 id="inherited-from-20" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-20" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#apps"><code>apps</code></a></p>`,184),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
5
+ <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><h4 id="inherited-from-12" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-12" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#key"><code>key</code></a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><h4 id="inherited-from-13" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-13" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#name"><code>name</code></a></p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><h4 id="inherited-from-14" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-14" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#desc"><code>desc</code></a></p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-15" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-15" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#enable"><code>enable</code></a></p><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="version" tabindex="-1">Version <a class="header-anchor" href="#version" aria-label="Permalink to &quot;Version&quot;">​</a></h4><p>1.7.0</p><h4 id="inherited-from-16" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-16" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGroupProps.html"><code>RawGroupProps</code></a>.<a href="./RawGroupProps.html#scopekeys"><code>scopeKeys</code></a></p><hr><h3 id="matchanyapp" tabindex="-1">matchAnyApp? <a class="header-anchor" href="#matchanyapp" aria-label="Permalink to &quot;matchAnyApp?&quot;">​</a></h3><blockquote><p><strong>matchAnyApp</strong>?: <code>boolean</code></p></blockquote><p>true =&gt; 匹配任意应用</p><p>false =&gt; 仅匹配 apps 里面的应用</p><h4 id="default-4" tabindex="-1">Default <a class="header-anchor" href="#default-4" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><h4 id="inherited-from-17" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-17" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchanyapp"><code>matchAnyApp</code></a></p><hr><h3 id="matchlauncher" tabindex="-1">matchLauncher? <a class="header-anchor" href="#matchlauncher" aria-label="Permalink to &quot;matchLauncher?&quot;">​</a></h3><blockquote><p><strong>matchLauncher</strong>?: <code>boolean</code></p></blockquote><p>是否匹配桌面, 仅全局规则可用</p><p>如果你切换了桌面, 你需要打开 GKD 的界面触发识别新桌面</p><h4 id="default-5" tabindex="-1">Default <a class="header-anchor" href="#default-5" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-18" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-18" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchlauncher"><code>matchLauncher</code></a></p><hr><h3 id="matchsystemapp" tabindex="-1">matchSystemApp? <a class="header-anchor" href="#matchsystemapp" aria-label="Permalink to &quot;matchSystemApp?&quot;">​</a></h3><blockquote><p><strong>matchSystemApp</strong>?: <code>boolean</code></p></blockquote><p>是否匹配系统应用, 仅全局规则可用</p><h4 id="default-6" tabindex="-1">Default <a class="header-anchor" href="#default-6" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">false</span></span></code></pre></div><h4 id="inherited-from-19" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-19" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#matchsystemapp"><code>matchSystemApp</code></a></p><hr><h3 id="apps" tabindex="-1">apps? <a class="header-anchor" href="#apps" aria-label="Permalink to &quot;apps?&quot;">​</a></h3><blockquote><p><strong>apps</strong>?: <a href="./RawGlobalApp.html"><code>RawGlobalApp</code></a>[]</p></blockquote><p>应用配置列表, 配置应用内界面如何匹配或不匹配</p><h4 id="inherited-from-20" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-20" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawGlobalRuleProps.html"><code>RawGlobalRuleProps</code></a>.<a href="./RawGlobalRuleProps.html#apps"><code>apps</code></a></p>`,186),l=[i];function h(s,d,n,p,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
@@ -1 +1 @@
1
- import{_ as e,c as a,o,V as r}from"./chunks/framework.CR5kvWbS.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r("",184),l=[i];function h(s,d,p,n,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
1
+ import{_ as e,c as a,o,V as r}from"./chunks/framework.CR5kvWbS.js";const f=JSON.parse('{"title":"RawGlobalGroup","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGlobalGroup.md","filePath":"api/interfaces/RawGlobalGroup.md","lastUpdated":null}'),t={name:"api/interfaces/RawGlobalGroup.md"},i=r("",186),l=[i];function h(s,d,n,p,c,u){return o(),a("div",null,l)}const b=e(t,[["render",h]]);export{f as __pageData,b as default};
@@ -2,4 +2,4 @@ import{_ as e,c as a,o,V as t}from"./chunks/framework.CR5kvWbS.js";const f=JSON.
2
2
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 当 activity 刷新时, 唤醒规则</span></span>
3
3
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 刷新 activity 并不代表 activityId 变化</span></span>
4
4
  <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 如 哔哩哔哩视频播放页 底部点击推荐视频 进入另一个 视频播放页, 进入了新 activity 但是 activityId 并没有变化</span></span></code></pre></div><h4 id="example-1" tabindex="-1">Example <a class="header-anchor" href="#example-1" aria-label="Permalink to &quot;Example&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;app&#39;</span></span>
5
- <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p>`,138),s=[i];function n(l,h,d,c,p,m){return o(),a("div",null,s)}const b=e(r,[["render",n]]);export{f as __pageData,b as default};
5
+ <span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// 重新进入 app 时, 唤醒规则</span></span></code></pre></div><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#resetmatch"><code>resetMatch</code></a></p><hr><h3 id="actioncdkey" tabindex="-1">actionCdKey? <a class="header-anchor" href="#actioncdkey" aria-label="Permalink to &quot;actionCdKey?&quot;">​</a></h3><blockquote><p><strong>actionCdKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享 cd</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionCd=3000, 那么当这个 rule 和 本 rule 触发任意一个时, 在 3000毫秒 内两个 rule 都将进入 cd</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#actioncdkey"><code>actionCdKey</code></a></p><hr><h3 id="actionmaximumkey" tabindex="-1">actionMaximumKey? <a class="header-anchor" href="#actionmaximumkey" aria-label="Permalink to &quot;actionMaximumKey?&quot;">​</a></h3><blockquote><p><strong>actionMaximumKey</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>与这个 key 的 rule 共享次数</p><p>比如开屏广告可能需要多个 rule 去匹配, 当一个 rule 触发时, 其它 rule 的触发是无意义的</p><p>如果你对这个 key 的 rule 设置 actionMaximum=1, 那么当这个 rule 和 本 rule 触发任意一个时, 两个 rule 都将进入休眠</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#actionmaximumkey"><code>actionMaximumKey</code></a></p><hr><h3 id="order" tabindex="-1">order? <a class="header-anchor" href="#order" aria-label="Permalink to &quot;order?&quot;">​</a></h3><blockquote><p><strong>order</strong>?: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>规则参与匹配的顺序, 数字越小越先匹配</p><p>如果两个规则 order 相同, 按照 groups 中的数组顺序匹配, app 类型规则顺序优先于 global 类型规则</p><p>属于不同订阅的规则按照订阅列表中顺序匹配, 长按订阅卡片可以拖动排序</p><h4 id="default-2" tabindex="-1">Default <a class="header-anchor" href="#default-2" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span></span></code></pre></div><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#order"><code>order</code></a></p><hr><h3 id="snapshoturls" tabindex="-1">snapshotUrls? <a class="header-anchor" href="#snapshoturls" aria-label="Permalink to &quot;snapshotUrls?&quot;">​</a></h3><blockquote><p><strong>snapshotUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的快照链接, 增强订阅可维护性</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#snapshoturls"><code>snapshotUrls</code></a></p><hr><h3 id="exampleurls" tabindex="-1">exampleUrls? <a class="header-anchor" href="#exampleurls" aria-label="Permalink to &quot;exampleUrls?&quot;">​</a></h3><blockquote><p><strong>exampleUrls</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>当前 规则/规则组 的规则在手机上的运行示例, 支持 jpg/png/webp/gif</p><p>如果规则是多个规则组合起来的, 可以更好看懂规则到底在干啥, 比如 点击关闭按钮-选择关闭原因-确认关闭 这种广告用 gif 看着更清楚在干啥</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;">​</a></h4><p><a href="./RawCommonProps.html"><code>RawCommonProps</code></a>.<a href="./RawCommonProps.html#exampleurls"><code>exampleUrls</code></a></p><hr><h3 id="key" tabindex="-1">key <a class="header-anchor" href="#key" aria-label="Permalink to &quot;key&quot;">​</a></h3><blockquote><p><strong>key</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前规则组在列表中的唯一标识</p><p>也是客户端禁用/启用此规则组的依据</p><p>设置后不可更改, 否则造成客户端启用/禁用错乱</p><p>key 没有顺序大小之分, 可以是任意数字</p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to &quot;name&quot;">​</a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>规则组名称</p><hr><h3 id="desc" tabindex="-1">desc? <a class="header-anchor" href="#desc" aria-label="Permalink to &quot;desc?&quot;">​</a></h3><blockquote><p><strong>desc</strong>?: <code>string</code></p></blockquote><p>规则组描述</p><hr><h3 id="enable" tabindex="-1">enable? <a class="header-anchor" href="#enable" aria-label="Permalink to &quot;enable?&quot;">​</a></h3><blockquote><p><strong>enable</strong>?: <code>boolean</code></p></blockquote><p>控制规则默认情况下是启用还是禁用</p><h4 id="default-3" tabindex="-1">Default <a class="header-anchor" href="#default-3" aria-label="Permalink to &quot;Default&quot;">​</a></h4><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">true</span></span></code></pre></div><hr><h3 id="scopekeys" tabindex="-1">scopeKeys? <a class="header-anchor" href="#scopekeys" aria-label="Permalink to &quot;scopeKeys?&quot;">​</a></h3><blockquote><p><strong>scopeKeys</strong>?: <a href="./../type-aliases/IArray.html"><code>IArray</code></a>&lt;<a href="./../type-aliases/Integer.html"><code>Integer</code></a>&gt;</p></blockquote><p>其它 group 的 key, 允许将目标组的所有 rule 添加到当前组的作用域</p><p>假设 group1{key=1} 有一个 rule1{key=11}, group2{key=2} 有 rule2{key=22}, rule3{key=23}</p><p>如果 group1 的 scopeKeys=[2] 并且 group2 没有被禁用, 那么 rule1 的 preKeys/actionCdKey/actionMaximumKey 可以是 11/22/23</p><p>如果存在相同 key 的 rule, 优先使用本组的 rule, 其次按 scopeKeys 的顺序查找其它组的 rule</p><h4 id="version" tabindex="-1">Version <a class="header-anchor" href="#version" aria-label="Permalink to &quot;Version&quot;">​</a></h4><p>1.7.0</p>`,140),s=[i];function n(l,h,d,c,p,m){return o(),a("div",null,s)}const b=e(r,[["render",n]]);export{f as __pageData,b as default};
@@ -1 +1 @@
1
- import{_ as e,c as a,o,V as t}from"./chunks/framework.CR5kvWbS.js";const f=JSON.parse('{"title":"RawGroupProps","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGroupProps.md","filePath":"api/interfaces/RawGroupProps.md","lastUpdated":null}'),r={name:"api/interfaces/RawGroupProps.md"},i=t("",138),s=[i];function n(l,h,d,c,p,m){return o(),a("div",null,s)}const b=e(r,[["render",n]]);export{f as __pageData,b as default};
1
+ import{_ as e,c as a,o,V as t}from"./chunks/framework.CR5kvWbS.js";const f=JSON.parse('{"title":"RawGroupProps","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawGroupProps.md","filePath":"api/interfaces/RawGroupProps.md","lastUpdated":null}'),r={name:"api/interfaces/RawGroupProps.md"},i=t("",140),s=[i];function n(l,h,d,c,p,m){return o(),a("div",null,s)}const b=e(r,[["render",n]]);export{f as __pageData,b as default};
@@ -1,4 +1,4 @@
1
- import{j as o,a4 as p,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as A,ad as g,Y as v,d as P,u as w,l as y,z as C,ae as R,af as _,ag as b,ah as E}from"./chunks/framework.CR5kvWbS.js";import{R as D}from"./chunks/theme.prJi8Rkb.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(D),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),_(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function j(){const e=O(),a=L();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(T)}function O(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1707311575305/files/.vitepress/dist"+u}return u})(n)),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{j as createApp};
1
+ import{j as o,a4 as p,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as A,ad as g,Y as v,d as P,u as w,l as y,z as C,ae as R,af as _,ag as b,ah as E}from"./chunks/framework.CR5kvWbS.js";import{R as D}from"./chunks/theme.5fj_qUZp.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(D),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),_(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function j(){const e=O(),a=L();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(T)}function O(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1707495320786/files/.vitepress/dist"+u}return u})(n)),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&j().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{j as createApp};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
4
  __vite__mapDeps.viteFileDeps = []