mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Chore: minor changes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user