Fix TypeScript build errors

- Fixed unused variable warnings by prefixing with underscore
- Removed unused imports
- Removed test files from repository
This commit is contained in:
DaX
2025-06-18 23:18:21 +02:00
parent 7f20d342fc
commit f87512725b
6 changed files with 7 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react';
import { useState, useEffect } from 'react';
import { FilamentTable } from './components/FilamentTable';
import { Filament } from './types/filament';
import axios from 'axios';

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { getFilamentColor, getColorStyle, getContrastColor } from '../data/bambuLabColors';
import { getFilamentColor, getColorStyle } from '../data/bambuLabColors';
interface ColorCellProps {
colorName: string;

View File

@@ -72,11 +72,11 @@ function parseConfluenceTable(html: string): Filament[] {
const filaments: Filament[] = [];
// Find all tables and process each one
$('table').each((tableIndex, table) => {
$('table').each((_tableIndex, table) => {
let headers: string[] = [];
// Get headers
$(table).find('tr').first().find('th, td').each((i, cell) => {
$(table).find('tr').first().find('th, td').each((_i, cell) => {
headers.push($(cell).text().trim());
});
@@ -86,7 +86,7 @@ function parseConfluenceTable(html: string): Filament[] {
}
// Process rows
$(table).find('tr').slice(1).each((rowIndex, row) => {
$(table).find('tr').slice(1).each((_rowIndex, row) => {
const cells = $(row).find('td');
if (cells.length >= headers.length) {
const filament: any = {};

View File

@@ -103,7 +103,7 @@ function parseConfluenceTable(html: string): Filament[] {
let headers: string[] = [];
// Get headers
$(table).find('tr').first().find('th, td').each((i, cell) => {
$(table).find('tr').first().find('th, td').each((_i, cell) => {
headers.push($(cell).text().trim());
});
@@ -116,7 +116,7 @@ function parseConfluenceTable(html: string): Filament[] {
}
// Process rows
$(table).find('tr').slice(1).each((rowIndex, row) => {
$(table).find('tr').slice(1).each((_rowIndex, row) => {
const cells = $(row).find('td');
if (cells.length >= headers.length) {
const filament: any = {};