From 2e49494c0d169ddc787307df79a40346af28d2d2 Mon Sep 17 00:00:00 2001 From: Justin Garza Date: Sun, 19 Jan 2025 18:34:47 -0500 Subject: [PATCH] clang! --- src/effects/Apparition.js | 6 ++++-- src/effects/BrokenGlass.js | 6 ++++-- src/effects/Doom.js | 6 ++++-- src/effects/EnergizeA.js | 6 ++++-- src/effects/EnergizeB.js | 6 ++++-- src/effects/Fire.js | 6 ++++-- src/effects/Glide.js | 6 ++++-- src/effects/Glitch.js | 6 ++++-- src/effects/Hexagon.js | 6 ++++-- src/effects/Incinerate.js | 6 ++++-- src/effects/Matrix.js | 6 ++++-- src/effects/PaintBrush.js | 6 ++++-- src/effects/PixelWheel.js | 6 ++++-- src/effects/PixelWipe.js | 6 ++++-- src/effects/Pixelate.js | 6 ++++-- src/effects/Portal.js | 6 ++++-- src/effects/SnapOfDisintegration.js | 6 ++++-- src/effects/TRexAttack.js | 6 ++++-- src/effects/TVEffect.js | 6 ++++-- src/effects/TVGlitch.js | 6 ++++-- src/effects/Wisps.js | 8 +++++--- src/utils.js | 9 +++++---- 22 files changed, 90 insertions(+), 47 deletions(-) diff --git a/src/effects/Apparition.js b/src/effects/Apparition.js index 5e8849e..69eae46 100644 --- a/src/effects/Apparition.js +++ b/src/effects/Apparition.js @@ -81,8 +81,10 @@ export default class Effect { return _('Apparition'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Apparition effect makes the actor disappear by drawing it into a vortex-like void, accompanied by shaking, twirling, and suction animations to create a dramatic vanishing effect."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Apparition effect makes the actor disappear by drawing it into a vortex-like void, accompanied by shaking, twirling, and suction animations to create a dramatic vanishing effect.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/BrokenGlass.js b/src/effects/BrokenGlass.js index 3d917ae..1bf432a 100644 --- a/src/effects/BrokenGlass.js +++ b/src/effects/BrokenGlass.js @@ -138,8 +138,10 @@ export default class Effect { return _('Broken Glass'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Broken Glass effect shatters the window into independent shards, simulating a glass-breaking effect with pieces scaling, rotating, and moving as if blown away from a central epicenter. The shards can appear to break away from the cursor's position if enabled."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Broken Glass effect shatters the window into independent shards, simulating a glass-breaking effect with pieces scaling, rotating, and moving as if blown away from a central epicenter. The shards can appear to break away from the cursor\'s position if enabled.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Doom.js b/src/effects/Doom.js index b6ec83a..900d541 100644 --- a/src/effects/Doom.js +++ b/src/effects/Doom.js @@ -87,8 +87,10 @@ export default class Effect { return _('Doom'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Doom effect melts the window, creating a vertical, pixelated distortion inspired by the classic screen transitions of the original Doom game. The effect stretches and scales the window, giving it a liquefied appearance as it dissolves downward."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Doom effect melts the window, creating a vertical, pixelated distortion inspired by the classic screen transitions of the original Doom game. The effect stretches and scales the window, giving it a liquefied appearance as it dissolves downward.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/EnergizeA.js b/src/effects/EnergizeA.js index a66bed7..ac5dde4 100644 --- a/src/effects/EnergizeA.js +++ b/src/effects/EnergizeA.js @@ -74,8 +74,10 @@ export default class Effect { return _('Energize A'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Energize A effect resembles the classic transporter effect from Star Trek: The Original Series, with a glowing color and scale transformation that creates an appearance of the window being transported or energized."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Energize A effect resembles the classic transporter effect from Star Trek: The Original Series, with a glowing color and scale transformation that creates an appearance of the window being transported or energized.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/EnergizeB.js b/src/effects/EnergizeB.js index 63ce597..7decd22 100644 --- a/src/effects/EnergizeB.js +++ b/src/effects/EnergizeB.js @@ -75,8 +75,10 @@ export default class Effect { return _('Energize B'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Energize B effect mimics the transporter effect from Star Trek: The Next Generation, with a smooth color glow and scale adjustment, creating an appearance of the window being energized or transported in a futuristic style."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Energize B effect mimics the transporter effect from Star Trek: The Next Generation, with a smooth color glow and scale adjustment, creating an appearance of the window being energized or transported in a futuristic style.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Fire.js b/src/effects/Fire.js index d588242..8cce369 100644 --- a/src/effects/Fire.js +++ b/src/effects/Fire.js @@ -96,8 +96,10 @@ export default class Effect { return _('Fire'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Fire effect adds a dynamic fire-like animation to the window, using a vertical noise shader to simulate flames with customizable color gradients and movement speed. This effect pays homage to the classic Compiz fire effect, with a modern implementation through shader techniques."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Fire effect adds a dynamic fire-like animation to the window, using a vertical noise shader to simulate flames with customizable color gradients and movement speed. This effect pays homage to the classic Compiz fire effect, with a modern implementation through shader techniques.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Glide.js b/src/effects/Glide.js index 4564302..5c47a62 100644 --- a/src/effects/Glide.js +++ b/src/effects/Glide.js @@ -78,8 +78,10 @@ export default class Effect { return _('Glide'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Glide effect gently fades the window to transparency while adding a subtle 3D look through scale, squish, tilt, and shift transformations, creating a smooth, immersive transition."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Glide effect gently fades the window to transparency while adding a subtle 3D look through scale, squish, tilt, and shift transformations, creating a smooth, immersive transition.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Glitch.js b/src/effects/Glitch.js index fd817b9..e04fc3e 100644 --- a/src/effects/Glitch.js +++ b/src/effects/Glitch.js @@ -80,8 +80,10 @@ export default class Effect { return _('Glitch'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Glitch effect introduces visual distortions that mimic digital glitches, adding randomized color shifts, scaling, and jitter to create a dynamic, corrupted look for the window."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Glitch effect introduces visual distortions that mimic digital glitches, adding randomized color shifts, scaling, and jitter to create a dynamic, corrupted look for the window.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Hexagon.js b/src/effects/Hexagon.js index fb223a8..e9d87f7 100644 --- a/src/effects/Hexagon.js +++ b/src/effects/Hexagon.js @@ -83,8 +83,10 @@ export default class Effect { return _('Hexagon'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Hexagon effect overlays a glowing hexagonal grid on the window, gradually shrinking each hexagon cell until the window is completely dissolved. The effect includes customizable line color, glow color, scale, and line width, adding a futuristic grid-based dissolution."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Hexagon effect overlays a glowing hexagonal grid on the window, gradually shrinking each hexagon cell until the window is completely dissolved. The effect includes customizable line color, glow color, scale, and line width, adding a futuristic grid-based dissolution.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Incinerate.js b/src/effects/Incinerate.js index ee139b6..c0ef437 100644 --- a/src/effects/Incinerate.js +++ b/src/effects/Incinerate.js @@ -126,8 +126,10 @@ export default class Effect { return _('Incinerate'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Incinerate effect simulates a burning transition where flames consume the window, starting from a random edge or the mouse pointer position. This fiery effect includes customizable color, scale, and turbulence, creating a dramatic dissolve into ashes."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Incinerate effect simulates a burning transition where flames consume the window, starting from a random edge or the mouse pointer position. This fiery effect includes customizable color, scale, and turbulence, creating a dramatic dissolve into ashes.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Matrix.js b/src/effects/Matrix.js index 16b6998..efe764b 100644 --- a/src/effects/Matrix.js +++ b/src/effects/Matrix.js @@ -109,8 +109,10 @@ export default class Effect { return _('Matrix'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Matrix effect overlays a cascading grid of random letters, mimicking the iconic 'Matrix' code with customizable trail and tip colors, randomness, and letter size. The letters flow downward at variable speeds, creating a dynamic, glitchy animation reminiscent of digital rain."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Matrix effect overlays a cascading grid of random letters, mimicking the iconic \'Matrix\' code with customizable trail and tip colors, randomness, and letter size. The letters flow downward at variable speeds, creating a dynamic, glitchy animation reminiscent of digital rain.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/PaintBrush.js b/src/effects/PaintBrush.js index e28315c..8177941 100644 --- a/src/effects/PaintBrush.js +++ b/src/effects/PaintBrush.js @@ -101,8 +101,10 @@ export default class Effect { return _('Paint Brush'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Paint Brush effect overlays the window with thick brush strokes, giving it an artistic, hand-painted appearance. The brush size is customizable, adding a tactile, textured look reminiscent of painted canvas."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Paint Brush effect overlays the window with thick brush strokes, giving it an artistic, hand-painted appearance. The brush size is customizable, adding a tactile, textured look reminiscent of painted canvas.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/PixelWheel.js b/src/effects/PixelWheel.js index 29ca602..3008e34 100644 --- a/src/effects/PixelWheel.js +++ b/src/effects/PixelWheel.js @@ -74,8 +74,10 @@ export default class Effect { return _('Pixel Wheel'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Pixel Wheel effect pixelates the window and gradually obscures it in a wheel-like pattern with customizable pixel size and spoke count, creating a unique radial fade-out transition."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Pixel Wheel effect pixelates the window and gradually obscures it in a wheel-like pattern with customizable pixel size and spoke count, creating a unique radial fade-out transition.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/PixelWipe.js b/src/effects/PixelWipe.js index 8320b6f..91c83e4 100644 --- a/src/effects/PixelWipe.js +++ b/src/effects/PixelWipe.js @@ -100,8 +100,10 @@ export default class Effect { return _('Pixel Wipe'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Pixel Wipe effect pixelates the window and gradually hides pixels in a radial pattern starting from the mouse pointer position, offering a unique transition with a customizable pixel size."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Pixel Wipe effect pixelates the window and gradually hides pixels in a radial pattern starting from the mouse pointer position, offering a unique transition with a customizable pixel size.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Pixelate.js b/src/effects/Pixelate.js index d7803f7..08bf3ef 100644 --- a/src/effects/Pixelate.js +++ b/src/effects/Pixelate.js @@ -74,8 +74,10 @@ export default class Effect { return _('Pixelate'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Pixelate effect transforms the window into a pixelated mosaic, gradually obscuring it by increasing pixel size and randomly hiding pixels until the window fully disappears. This effect offers a playful, retro-inspired transition."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Pixelate effect transforms the window into a pixelated mosaic, gradually obscuring it by increasing pixel size and randomly hiding pixels until the window fully disappears. This effect offers a playful, retro-inspired transition.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Portal.js b/src/effects/Portal.js index 8ac5178..f11e463 100644 --- a/src/effects/Portal.js +++ b/src/effects/Portal.js @@ -82,8 +82,10 @@ export default class Effect { return _('Portal'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Portal effect creates a swirling, colorful portal animation that teleports the window as if through an alternate dimension. With customizable color, rotation speed, and whirling details, it adds a whimsical, otherworldly transition reminiscent of sci-fi portals."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Portal effect creates a swirling, colorful portal animation that teleports the window as if through an alternate dimension. With customizable color, rotation speed, and whirling details, it adds a whimsical, otherworldly transition reminiscent of sci-fi portals.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/SnapOfDisintegration.js b/src/effects/SnapOfDisintegration.js index a404c80..8f6feea 100644 --- a/src/effects/SnapOfDisintegration.js +++ b/src/effects/SnapOfDisintegration.js @@ -110,8 +110,10 @@ export default class Effect { return _('Snap of Disintegration'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Snap of Disintegration effect dissolves the window into a cloud of dust particles, simulating a gradual disintegration. Using a layered dust texture, this effect creates the appearance of the window breaking apart into floating particles with customizable color and scale."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Snap of Disintegration effect dissolves the window into a cloud of dust particles, simulating a gradual disintegration. Using a layered dust texture, this effect creates the appearance of the window breaking apart into floating particles with customizable color and scale.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/TRexAttack.js b/src/effects/TRexAttack.js index 9437e1d..23d6091 100644 --- a/src/effects/TRexAttack.js +++ b/src/effects/TRexAttack.js @@ -109,8 +109,10 @@ export default class Effect { return _('T-Rex Attack'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The T-Rex Attack effect simulates a window being violently torn apart by claw scratches. With customizable claw size, color, and warp intensity, this effect creates a dramatic and ferocious attack animation, as if a T-Rex has ripped through the screen."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The T-Rex Attack effect simulates a window being violently torn apart by claw scratches. With customizable claw size, color, and warp intensity, this effect creates a dramatic and ferocious attack animation, as if a T-Rex has ripped through the screen.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/TVEffect.js b/src/effects/TVEffect.js index 99d3aad..f424265 100644 --- a/src/effects/TVEffect.js +++ b/src/effects/TVEffect.js @@ -73,8 +73,10 @@ export default class Effect { return _('TV Effect'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The TV Effect fades the window out by first making it transparent from the top and bottom edges towards the center, then collapsing the remaining line from the sides to the middle, mimicking an old television shutdown effect with a customizable color."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The TV Effect fades the window out by first making it transparent from the top and bottom edges towards the center, then collapsing the remaining line from the sides to the middle, mimicking an old television shutdown effect with a customizable color.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/TVGlitch.js b/src/effects/TVGlitch.js index 32ecbd6..bef22d1 100644 --- a/src/effects/TVGlitch.js +++ b/src/effects/TVGlitch.js @@ -81,8 +81,10 @@ export default class Effect { return _('TV Glitch'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The TV Glitch effect combines a glitchy distortion with a TV shutdown animation. The effect distorts the window with randomized pixelation, scale, and speed before collapsing into a central line, creating a retro, glitchy TV shutdown experience."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The TV Glitch effect combines a glitchy distortion with a TV shutdown animation. The effect distorts the window with randomized pixelation, scale, and speed before collapsing into a central line, creating a retro, glitchy TV shutdown experience.'; // -------------------------------------------------------------------- API for prefs.js diff --git a/src/effects/Wisps.js b/src/effects/Wisps.js index 62aee62..f1fa45a 100644 --- a/src/effects/Wisps.js +++ b/src/effects/Wisps.js @@ -85,10 +85,12 @@ export default class Effect { return _('Wisps'); } - //this can be used for searching, and helping people find the effect they are looking for - static description = "The Wisps effect carries the window away with a dreamy overlay of animated, fairy-like points that drift across the screen. This ethereal effect uses multiple grids of colorful, randomly moving points, with customizable colors and scale, to create a magical transition."; + // this can be used for searching, and helping people find the effect they are looking + // for + static description = + 'The Wisps effect carries the window away with a dreamy overlay of animated, fairy-like points that drift across the screen. This ethereal effect uses multiple grids of colorful, randomly moving points, with customizable colors and scale, to create a magical transition.'; + - // -------------------------------------------------------------------- API for prefs.js // This is called by the preferences dialog whenever a new effect profile is loaded. It diff --git a/src/utils.js b/src/utils.js index f117d82..9da0f29 100644 --- a/src/utils.js +++ b/src/utils.js @@ -175,9 +175,9 @@ export function parseColor(string) { } -//used for searching -// Simple fuzzy match function -//NOTE: i'll improve the fuzzy function before rolling this out +// used for searching +// Simple fuzzy match function +// NOTE: i'll improve the fuzzy function before rolling this out /* function fuzzyMatch(text, query) { let queryIndex = 0; @@ -186,6 +186,7 @@ function fuzzyMatch(text, query) { queryIndex++; } } - return queryIndex === query.length; // Returns true if all chars in query matched in order + return queryIndex === query.length; // Returns true if all chars in query matched in +order } */ \ No newline at end of file