Replace CDN React/ReactDOM/Babel with local libs; remove Babel and inline scripts Build Tailwind locally, add safelist; switch to assets/tailwind.css Self-host Font Awesome and Inter (CSS + woff2); remove external font CDNs Implement strict CSP (no unsafe-inline/eval; scripts/styles/fonts from self) Extract inline handlers; move PWA scripts to external files Add local QR code generation (qrcode lib) and remove api.qrserver.com Improve SessionTypeSelector visual selection (highlighted background and ring) Keep PWA working with service worker and offline assets Refs: CSP hardening, offline-first, no external dependencies
22 lines
994 B
TypeScript
22 lines
994 B
TypeScript
import { CommandInstance } from './command';
|
|
import { UsageInstance } from './usage';
|
|
import { YargsInstance } from './yargs';
|
|
import { Arguments, DetailedArguments } from 'yargs-parser';
|
|
export declare function completion(yargs: YargsInstance, usage: UsageInstance, command: CommandInstance): CompletionInstance;
|
|
/** Instance of the completion module. */
|
|
export interface CompletionInstance {
|
|
completionKey: string;
|
|
generateCompletionScript($0: string, cmd: string): string;
|
|
getCompletion(args: string[], done: (completions: string[]) => any): any;
|
|
registerFunction(fn: CompletionFunction): void;
|
|
setParsed(parsed: DetailedArguments): void;
|
|
}
|
|
export declare type CompletionFunction = SyncCompletionFunction | AsyncCompletionFunction;
|
|
interface SyncCompletionFunction {
|
|
(current: string, argv: Arguments): string[] | Promise<string[]>;
|
|
}
|
|
interface AsyncCompletionFunction {
|
|
(current: string, argv: Arguments, done: (completions: string[]) => any): any;
|
|
}
|
|
export {};
|