mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
docs: qrcode url
This commit is contained in:
@@ -2,24 +2,24 @@
|
|||||||
|
|
||||||
a subscription for gkd
|
a subscription for gkd
|
||||||
|
|
||||||
## gitmirror
|
## githubusercontent
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary> gkd </summary>
|
<summary> gkd </summary>
|
||||||
|
|
||||||
- [gdk](https://raw.githubusercontent.com/gkd-kit/subscription/main/dist/gkd.json)
|
- [gdk](https://raw.githubusercontent.com/gkd-kit/subscription/main/dist/gkd.json)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 大陆 CDN
|
## npmmirror
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary> gkd </summary>
|
<summary> gkd </summary>
|
||||||
|
|
||||||
- [gkd](https://registry.npmmirror.com/@gkd-kit/subscription/latest/files)
|
- [gkd](https://registry.npmmirror.com/@gkd-kit/subscription/latest/files)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export const writeConfig = async (fp: string, config: SubscriptionConfig) => {
|
|||||||
}
|
}
|
||||||
newConfig.version++;
|
newConfig.version++;
|
||||||
|
|
||||||
// check duplicated key
|
// check duplicated group key
|
||||||
newConfig.apps?.forEach((app) => {
|
newConfig.apps?.forEach((app) => {
|
||||||
const keys = new Set<number>();
|
const keys = new Set<number>();
|
||||||
app.groups?.forEach((g) => {
|
app.groups?.forEach((g) => {
|
||||||
@@ -46,6 +46,7 @@ export const writeConfig = async (fp: string, config: SubscriptionConfig) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// check slector syntax
|
||||||
newConfig.apps?.forEach((app) => {
|
newConfig.apps?.forEach((app) => {
|
||||||
app.groups?.forEach((g) => {
|
app.groups?.forEach((g) => {
|
||||||
if (!g.rules) return;
|
if (!g.rules) return;
|
||||||
@@ -64,7 +65,7 @@ export const writeConfig = async (fp: string, config: SubscriptionConfig) => {
|
|||||||
parseSelector(selector);
|
parseSelector(selector);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error({
|
console.error({
|
||||||
message: `invalid selector`,
|
message: `invalid selector syntax`,
|
||||||
appId: app.id,
|
appId: app.id,
|
||||||
groupKey: g.key,
|
groupKey: g.key,
|
||||||
selector,
|
selector,
|
||||||
|
|||||||
Reference in New Issue
Block a user