mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Chore: minor changes
This commit is contained in:
parent
78217514b2
commit
c2cc6d72ac
@ -11,7 +11,7 @@ export const PUBLIC_DIR = process.env.PUBLIC_DIR || path.resolve(ROOT_DIR, 'publ
|
||||
|
||||
export const OUTPUT_SURGE_DIR = path.join(PUBLIC_DIR, 'List');
|
||||
export const OUTPUT_CLASH_DIR = path.resolve(PUBLIC_DIR, 'Clash');
|
||||
export const OUTPUT_LEAGCY_CLASH_PREMIUM = path.resolve(PUBLIC_DIR, 'LegacyClashPremium');
|
||||
export const OUTPUT_LEAGCY_CLASH_PREMIUM_DIR = path.resolve(PUBLIC_DIR, 'LegacyClashPremium');
|
||||
export const OUTPUT_SINGBOX_DIR = path.resolve(PUBLIC_DIR, 'sing-box');
|
||||
export const OUTPUT_MODULES_DIR = path.resolve(PUBLIC_DIR, 'Modules');
|
||||
export const OUTPUT_MODULES_RULES_DIR = path.resolve(OUTPUT_MODULES_DIR, 'Rules');
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Span } from '../../trace';
|
||||
import { ClashClassicRuleSet } from '../writing-strategy/clash';
|
||||
import { LegacyClashPremiumRuleSet } from '../writing-strategy/legacy-clash-premium';
|
||||
import { LegacyClashPremiumClassicRuleSet } from '../writing-strategy/legacy-clash-premium';
|
||||
import { SingboxSource } from '../writing-strategy/singbox';
|
||||
import { SurgeRuleSet } from '../writing-strategy/surge';
|
||||
import { FileOutput } from './base';
|
||||
@ -12,7 +12,7 @@ export class RulesetOutput extends FileOutput {
|
||||
this.strategies = [
|
||||
new SurgeRuleSet(type),
|
||||
new ClashClassicRuleSet(type),
|
||||
new LegacyClashPremiumRuleSet(type),
|
||||
new LegacyClashPremiumClassicRuleSet(type),
|
||||
new SingboxSource(type)
|
||||
];
|
||||
}
|
||||
@ -43,7 +43,7 @@ export class ClashOnlyRulesetOutput extends FileOutput {
|
||||
|
||||
this.strategies = [
|
||||
new ClashClassicRuleSet(type),
|
||||
new LegacyClashPremiumRuleSet(type)
|
||||
new LegacyClashPremiumClassicRuleSet(type)
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { noop } from 'foxts/noop';
|
||||
import { OUTPUT_LEAGCY_CLASH_PREMIUM } from '../../constants/dir';
|
||||
import { OUTPUT_LEAGCY_CLASH_PREMIUM_DIR } from '../../constants/dir';
|
||||
import { ClashClassicRuleSet } from './clash';
|
||||
|
||||
export class LegacyClashPremiumRuleSet extends ClashClassicRuleSet {
|
||||
public override readonly name = 'legacy clash premium ruleset';
|
||||
export class LegacyClashPremiumClassicRuleSet extends ClashClassicRuleSet {
|
||||
public override readonly name = 'legacy clash premium classic ruleset';
|
||||
|
||||
readonly fileExtension = 'txt';
|
||||
|
||||
protected result: string[] = ['DOMAIN,this_ruleset_is_made_by_sukkaw.ruleset.skk.moe'];
|
||||
|
||||
constructor(public readonly type: 'ip' | 'non_ip' /* | (string & {}) */, public readonly outputDir = OUTPUT_LEAGCY_CLASH_PREMIUM) {
|
||||
constructor(public readonly type: 'ip' | 'non_ip' /* | (string & {}) */, public readonly outputDir = OUTPUT_LEAGCY_CLASH_PREMIUM_DIR) {
|
||||
super(type, outputDir);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user