mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 04:00:10 +00:00
Downgrade Biome to 2.3.5 to fix false positive noUnusedPrivateClassMembers warnings
This commit is contained in:
parent
c7d00e6ba4
commit
93a60b7969
5 changed files with 46 additions and 53 deletions
|
|
@ -4,8 +4,6 @@ import { Container, Markdown, Spacer } from "@mariozechner/pi-tui";
|
|||
* Component that renders a user message
|
||||
*/
|
||||
export class UserMessageComponent extends Container {
|
||||
private markdown: Markdown;
|
||||
|
||||
constructor(text: string, isFirst: boolean) {
|
||||
super();
|
||||
|
||||
|
|
@ -13,9 +11,6 @@ export class UserMessageComponent extends Container {
|
|||
if (!isFirst) {
|
||||
this.addChild(new Spacer(1));
|
||||
}
|
||||
|
||||
// User messages with dark gray background
|
||||
this.markdown = new Markdown(text, 1, 1, { bgColor: "#343541" });
|
||||
this.addChild(this.markdown);
|
||||
this.addChild(new Markdown(text, 1, 1, { bgColor: "#343541" }));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ export class SelectList implements Component {
|
|||
private items: SelectItem[] = [];
|
||||
private filteredItems: SelectItem[] = [];
|
||||
private selectedIndex: number = 0;
|
||||
private filter: string = "";
|
||||
private maxVisible: number = 5;
|
||||
|
||||
public onSelect?: (item: SelectItem) => void;
|
||||
|
|
@ -24,7 +23,6 @@ export class SelectList implements Component {
|
|||
}
|
||||
|
||||
setFilter(filter: string): void {
|
||||
this.filter = filter;
|
||||
this.filteredItems = this.items.filter((item) => item.value.toLowerCase().startsWith(filter.toLowerCase()));
|
||||
// Reset selection when filter changes
|
||||
this.selectedIndex = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue