chore: fix linting and build errors
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Failing after 1m31s
Build & Deploy / 🏗️ Build (push) Failing after 3m51s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Failing after 1m31s
Build & Deploy / 🏗️ Build (push) Failing after 3m51s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Analytics interfaces - decoupled contracts
|
||||
*/
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
|
||||
export interface AnalyticsEvent {
|
||||
name: string;
|
||||
|
||||
2
apps/web/src/utils/cache/file-adapter.ts
vendored
2
apps/web/src/utils/cache/file-adapter.ts
vendored
@@ -4,7 +4,7 @@ import * as path from "node:path";
|
||||
import { existsSync } from "node:fs";
|
||||
import * as crypto from "node:crypto";
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
|
||||
export class FileCacheAdapter implements CacheAdapter {
|
||||
private cacheDir: string;
|
||||
|
||||
6
apps/web/src/utils/cache/interfaces.ts
vendored
6
apps/web/src/utils/cache/interfaces.ts
vendored
@@ -3,9 +3,9 @@
|
||||
*/
|
||||
|
||||
export interface CacheAdapter {
|
||||
get<T>(key: string): Promise<T | null>;
|
||||
set<T>(key: string, value: T, ttl?: number): Promise<void>;
|
||||
del(key: string): Promise<void>;
|
||||
get<T>(_key: string): Promise<T | null>;
|
||||
set<T>(_key: string, _value: T, _ttl?: number): Promise<void>;
|
||||
del(_key: string): Promise<void>;
|
||||
clear(): Promise<void>;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ export interface ErrorContext {
|
||||
}
|
||||
|
||||
export interface ErrorTrackingAdapter {
|
||||
captureException(error: any, context?: ErrorContext): void;
|
||||
captureMessage(message: string, context?: ErrorContext): void;
|
||||
setUser(user: ErrorContext['user']): void;
|
||||
setTag(key: string, value: string): void;
|
||||
setExtra(key: string, value: any): void;
|
||||
captureException(_error: any, _context?: ErrorContext): void;
|
||||
captureMessage(_message: string, _context?: ErrorContext): void;
|
||||
setUser(_user: ErrorContext['user']): void;
|
||||
setTag(_key: string, _value: string): void;
|
||||
setExtra(_key: string, _value: any): void;
|
||||
}
|
||||
|
||||
export interface ErrorTrackingConfig {
|
||||
|
||||
@@ -11,11 +11,11 @@ import { getImgproxyUrl } from "./imgproxy";
|
||||
export default function imgproxyLoader({
|
||||
src,
|
||||
width,
|
||||
quality,
|
||||
_quality,
|
||||
}: {
|
||||
src: string;
|
||||
width: number;
|
||||
quality?: number;
|
||||
_quality?: number;
|
||||
}) {
|
||||
// We use the width provided by Next.js for responsive images
|
||||
// Height is set to 0 to maintain aspect ratio
|
||||
|
||||
Reference in New Issue
Block a user