Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion youi/src/lib/debug/chaosmonkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const setupChaosMonkey = ({ addLog, overlay }: { addLog: Function; overla
};

const chaosHistory: ChaosEvent[] = [];
let activeNetwork: Map<string, Response> = new Map();
const activeNetwork: Map<string, Response> = new Map();

// Create container within the provided overlay
const container = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion youi/src/lib/debug/chaosmonkey/domscriptwindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const setupScriptChaos = ({ logChaos, shouldCreateChaos, config }: { logC
const interceptGlobals = () => {
// Keep track of added globals
const addedGlobals = new Set<string>();
let originalValues = new Map<string, any>();
const originalValues = new Map<string, any>();

// Watch for new globals
const globalProxy = new Proxy(window, {
Expand Down
2 changes: 1 addition & 1 deletion youi/src/lib/debug/choreograph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface ChoreographyMove {
export const setupDebugChoreographer = ({ addLog, overlay }: { addLog: Function; overlay: HTMLElement }) => {
const dancers = new Map<HTMLElement, Dancer>();
let isPerforming = false;
let musicContext: AudioContext | null = null;
const musicContext: AudioContext | null = null;
let danceObserver: MutationObserver | null = null;
const danceBook = new Map<string, ChoreographyMove>();

Expand Down
2 changes: 1 addition & 1 deletion youi/src/lib/debug/codesmells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const setupCodeSmellDetector = ({ addLog, overlay }: { addLog: Function;
// Fallback if we still don't have any identifying information
if (elementInfo === `<${tag}>`) {
// Try to get some context from parent elements
let parent = element.parentElement;
const parent = element.parentElement;
let parentInfo = '';
if (parent) {
const parentId = parent.id ? `#${parent.id}` : '';
Expand Down
4 changes: 2 additions & 2 deletions youi/src/lib/debug/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ type ConsoleMethod = keyof Console;

export const createDebugOverlay = () => {
let logs: DebugEntry[] = [];
let expandedEntries = new Set<string>();
const expandedEntries = new Set<string>();
let observer: MutationObserver;
const originalConsole: Record<string, any> = {};
let isMinimized = false;
const isMinimized = false;

const addLog = (entry: DebugEntry) => {
logs.unshift(entry);
Expand Down
4 changes: 2 additions & 2 deletions youi/src/lib/debug/twin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ interface SerializableStateSnapshot {

export const setupDigitalTwin = ({ addLog, overlay }: { addLog: Function; overlay: HTMLElement }) => {
let isActive = false;
let userPatterns: Map<string, number> = new Map();
let predictedStates: Map<string, StateSnapshot> = new Map();
const userPatterns: Map<string, number> = new Map();
const predictedStates: Map<string, StateSnapshot> = new Map();
let currentSimulation: Worker | null = null;

// Create UI within the provided overlay
Expand Down
2 changes: 1 addition & 1 deletion youi/src/lib/debug/xhr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const setupXHRTracking = ({ addLog }: { addLog: (entry: any) => void }) =
const id = crypto.randomUUID();

// Track request details
let requestDetails = {
const requestDetails = {
method: 'GET',
url: '',
startTime: 0,
Expand Down
2 changes: 1 addition & 1 deletion youi/src/lib/mongo/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ToBinary = (uuid: string) => {
throw new Error("Invalid UUID format")
}

let hex = uuid.replace(/[{}-]/g, "")
const hex = uuid.replace(/[{}-]/g, "")
if (hex.length !== 32) {
throw new Error("Invalid UUID format after stripping characters")
}
Expand Down