use new rules link

This commit is contained in:
Gabe Yuan
2023-09-04 17:04:28 +08:00
parent 966c78fb16
commit 0ac06f8e3d
3 changed files with 11 additions and 4 deletions

View File

@@ -183,10 +183,14 @@ export const GLOBLA_RULE = {
export const DEFAULT_SUBRULES_LIST = [
{
url: process.env.REACT_APP_RULESURL,
selected: false,
},
{
url: process.env.REACT_APP_RULESURL_ON,
selected: true,
},
{
url: process.env.REACT_APP_RULESURL2,
url: process.env.REACT_APP_RULESURL_OFF,
selected: false,
},
];

View File

@@ -177,7 +177,9 @@ const RULES = [
},
];
export const BUILTIN_RULES = RULES.map((item) => ({
export const BUILTIN_RULES = RULES.sort((a, b) =>
a.pattern.localeCompare(b.pattern)
).map((item) => ({
...DEFAULT_RULE,
...item,
transOpen: "true",