Changed Desktop

This commit is contained in:
2025-09-10 11:48:22 +02:00
parent 6804d95a08
commit d099faf68a
4591 changed files with 1612898 additions and 51 deletions

View File

@@ -0,0 +1,16 @@
export declare class OhMyLogoError extends Error {
constructor(message: string);
}
export declare class PaletteError extends OhMyLogoError {
readonly palette: string;
constructor(paletteName: string);
}
export declare class InputError extends OhMyLogoError {
readonly input: string;
constructor(input: string);
}
export declare class FontError extends OhMyLogoError {
readonly font: string;
constructor(fontName: string);
}
//# sourceMappingURL=errors.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,YAAa,SAAQ,aAAa;IAC7C,SAAgB,OAAO,EAAE,MAAM,CAAC;gBAEpB,WAAW,EAAE,MAAM;CAIhC;AAED,qBAAa,UAAW,SAAQ,aAAa;IAC3C,SAAgB,KAAK,EAAE,MAAM,CAAC;gBAElB,KAAK,EAAE,MAAM;CAI1B;AAED,qBAAa,SAAU,SAAQ,aAAa;IAC1C,SAAgB,IAAI,EAAE,MAAM,CAAC;gBAEjB,QAAQ,EAAE,MAAM;CAI7B"}

View File

@@ -0,0 +1,28 @@
export class OhMyLogoError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
}
}
export class PaletteError extends OhMyLogoError {
palette;
constructor(paletteName) {
super(`Unknown palette: ${paletteName}`);
this.palette = paletteName;
}
}
export class InputError extends OhMyLogoError {
input;
constructor(input) {
super(`Invalid input: ${input}`);
this.input = input;
}
}
export class FontError extends OhMyLogoError {
font;
constructor(fontName) {
super(`Font not found: ${fontName}`);
this.font = fontName;
}
}
//# sourceMappingURL=errors.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,aAAa;IAC7B,OAAO,CAAS;IAEhC,YAAY,WAAmB;QAC7B,KAAK,CAAC,oBAAoB,WAAW,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC;IAC7B,CAAC;CACF;AAED,MAAM,OAAO,UAAW,SAAQ,aAAa;IAC3B,KAAK,CAAS;IAE9B,YAAY,KAAa;QACvB,KAAK,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1B,IAAI,CAAS;IAE7B,YAAY,QAAgB;QAC1B,KAAK,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,CAAC;CACF"}

View File

@@ -0,0 +1,7 @@
export interface ColorOptions {
forceColor?: boolean;
noColor?: boolean;
}
export declare function shouldUseColor(options?: ColorOptions): boolean;
export declare function stripAnsiCodes(text: string): string;
//# sourceMappingURL=stdout.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"stdout.d.ts","sourceRoot":"","sources":["../../src/utils/stdout.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CA4BlE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD"}

View File

@@ -0,0 +1,30 @@
export function shouldUseColor(options = {}) {
// Force color takes highest precedence
if (options.forceColor) {
return true;
}
// No color option
if (options.noColor) {
return false;
}
// Check NO_COLOR environment variable
if (process.env.NO_COLOR) {
return false;
}
// Check FORCE_COLOR environment variable
if (process.env.FORCE_COLOR) {
return true;
}
// Check if running in CI with color support
if (process.env.CI && (process.env.COLORTERM || process.env.TERM_PROGRAM)) {
return true;
}
// Default to TTY detection
return process.stdout.isTTY ?? false;
}
export function stripAnsiCodes(text) {
// More comprehensive regex for ANSI escape sequences
const ansiRegex = /\u001b\[[0-9;]*[a-zA-Z]/g;
return text.replace(ansiRegex, '');
}
//# sourceMappingURL=stdout.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"stdout.js","sourceRoot":"","sources":["../../src/utils/stdout.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,cAAc,CAAC,UAAwB,EAAE;IACvD,uCAAuC;IACvC,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sCAAsC;IACtC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yCAAyC;IACzC,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,4CAA4C;IAC5C,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IAED,2BAA2B;IAC3B,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,qDAAqD;IACrD,MAAM,SAAS,GAAG,0BAA0B,CAAC;IAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC"}