fix: remove 9 unused variables across multiple files
Fixed unused variables in: - database-file-encryption.ts: removed currentFingerprint (backend) - FileManagerContextMenu.tsx: removed ExternalLink import, hasDirectories - frontend-logger.ts: removed 5 unused shortUrl variables Continued reducing lint errors
This commit is contained in:
@@ -301,7 +301,6 @@ class DatabaseFileEncryption {
|
|||||||
const metadata: EncryptedFileMetadata = JSON.parse(metadataContent);
|
const metadata: EncryptedFileMetadata = JSON.parse(metadataContent);
|
||||||
|
|
||||||
const fileStats = fs.statSync(encryptedPath);
|
const fileStats = fs.statSync(encryptedPath);
|
||||||
const currentFingerprint = "termix-v1-file";
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
version: metadata.version,
|
version: metadata.version,
|
||||||
|
|||||||
@@ -218,7 +218,6 @@ class FrontendLogger {
|
|||||||
context?: LogContext,
|
context?: LogContext,
|
||||||
): void {
|
): void {
|
||||||
const cleanUrl = this.sanitizeUrl(url);
|
const cleanUrl = this.sanitizeUrl(url);
|
||||||
const shortUrl = this.getShortUrl(cleanUrl);
|
|
||||||
const statusIcon = this.getStatusIcon(status);
|
const statusIcon = this.getStatusIcon(status);
|
||||||
const performanceIcon = this.getPerformanceIcon(responseTime);
|
const performanceIcon = this.getPerformanceIcon(responseTime);
|
||||||
|
|
||||||
@@ -244,7 +243,6 @@ class FrontendLogger {
|
|||||||
context?: LogContext,
|
context?: LogContext,
|
||||||
): void {
|
): void {
|
||||||
const cleanUrl = this.sanitizeUrl(url);
|
const cleanUrl = this.sanitizeUrl(url);
|
||||||
const shortUrl = this.getShortUrl(cleanUrl);
|
|
||||||
const statusIcon = this.getStatusIcon(status);
|
const statusIcon = this.getStatusIcon(status);
|
||||||
|
|
||||||
this.error(`← ${statusIcon} ${status} ${errorMessage}`, undefined, {
|
this.error(`← ${statusIcon} ${status} ${errorMessage}`, undefined, {
|
||||||
@@ -265,7 +263,6 @@ class FrontendLogger {
|
|||||||
context?: LogContext,
|
context?: LogContext,
|
||||||
): void {
|
): void {
|
||||||
const cleanUrl = this.sanitizeUrl(url);
|
const cleanUrl = this.sanitizeUrl(url);
|
||||||
const shortUrl = this.getShortUrl(cleanUrl);
|
|
||||||
|
|
||||||
this.error(`🌐 Network Error: ${errorMessage}`, undefined, {
|
this.error(`🌐 Network Error: ${errorMessage}`, undefined, {
|
||||||
...context,
|
...context,
|
||||||
@@ -279,7 +276,6 @@ class FrontendLogger {
|
|||||||
|
|
||||||
authError(method: string, url: string, context?: LogContext): void {
|
authError(method: string, url: string, context?: LogContext): void {
|
||||||
const cleanUrl = this.sanitizeUrl(url);
|
const cleanUrl = this.sanitizeUrl(url);
|
||||||
const shortUrl = this.getShortUrl(cleanUrl);
|
|
||||||
|
|
||||||
this.security(`🔐 Authentication Required`, {
|
this.security(`🔐 Authentication Required`, {
|
||||||
...context,
|
...context,
|
||||||
@@ -298,7 +294,6 @@ class FrontendLogger {
|
|||||||
context?: LogContext,
|
context?: LogContext,
|
||||||
): void {
|
): void {
|
||||||
const cleanUrl = this.sanitizeUrl(url);
|
const cleanUrl = this.sanitizeUrl(url);
|
||||||
const shortUrl = this.getShortUrl(cleanUrl);
|
|
||||||
|
|
||||||
this.retry(`🔄 Retry ${attempt}/${maxAttempts}`, {
|
this.retry(`🔄 Retry ${attempt}/${maxAttempts}`, {
|
||||||
...context,
|
...context,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
RefreshCw,
|
RefreshCw,
|
||||||
Clipboard,
|
Clipboard,
|
||||||
Eye,
|
Eye,
|
||||||
ExternalLink,
|
|
||||||
Terminal,
|
Terminal,
|
||||||
Play,
|
Play,
|
||||||
Star,
|
Star,
|
||||||
@@ -189,7 +188,6 @@ export function FileManagerContextMenu({
|
|||||||
const isSingleFile = files.length === 1;
|
const isSingleFile = files.length === 1;
|
||||||
const isMultipleFiles = files.length > 1;
|
const isMultipleFiles = files.length > 1;
|
||||||
const hasFiles = files.some((f) => f.type === "file");
|
const hasFiles = files.some((f) => f.type === "file");
|
||||||
const hasDirectories = files.some((f) => f.type === "directory");
|
|
||||||
const hasExecutableFiles = files.some(
|
const hasExecutableFiles = files.some(
|
||||||
(f) => f.type === "file" && f.executable,
|
(f) => f.type === "file" && f.executable,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user