- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
863 B
TypeScript
33 lines
863 B
TypeScript
import KeyValue from './KeyValue';
|
|
import { EventEmitter } from 'events';
|
|
import Service from './service';
|
|
export interface BrowserConfig {
|
|
type: string;
|
|
name?: string;
|
|
protocol?: 'tcp' | 'udp';
|
|
subtypes?: string[];
|
|
txt?: KeyValue;
|
|
}
|
|
export type BrowserOnUp = (service: Service) => void;
|
|
export declare class Browser extends EventEmitter {
|
|
private mdns;
|
|
private onresponse;
|
|
private serviceMap;
|
|
private txt;
|
|
private name?;
|
|
private txtQuery;
|
|
private wildcard;
|
|
private _services;
|
|
constructor(mdns: any, opts: BrowserConfig | BrowserOnUp | null, onup?: BrowserOnUp);
|
|
start(): void;
|
|
stop(): void;
|
|
update(): void;
|
|
get services(): Service[];
|
|
private addService;
|
|
private updateService;
|
|
private removeService;
|
|
private goodbyes;
|
|
private buildServicesFor;
|
|
}
|
|
export default Browser;
|