From 93cc9f6454f71d4a734741bc794887d4cfc14872 Mon Sep 17 00:00:00 2001 From: ColdForeign Date: Fri, 2 Aug 2024 20:51:24 +0300 Subject: [PATCH] Fix linter errors --- .../Client/Pages/Crop/CropPage.razor | 4 - .../Examples/CropPolygonImage_ScriptCode.html | 48 +++---- .../Examples/CropRoundImage_ScriptCode.html | 36 ++--- .../InstallScriptManualCode.html | 4 +- .../InstallServicesManualCode.html | 6 +- src/Cropper.Blazor/Client/wwwroot/index.html | 132 +++++++++--------- 6 files changed, 113 insertions(+), 117 deletions(-) diff --git a/src/Cropper.Blazor/Client/Pages/Crop/CropPage.razor b/src/Cropper.Blazor/Client/Pages/Crop/CropPage.razor index 0789e190..c6f21c16 100644 --- a/src/Cropper.Blazor/Client/Pages/Crop/CropPage.razor +++ b/src/Cropper.Blazor/Client/Pages/Crop/CropPage.razor @@ -25,10 +25,6 @@ "polygon image" })" /> - - - - diff --git a/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropPolygonImage_ScriptCode.html b/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropPolygonImage_ScriptCode.html index 0a4adb5d..145beeef 100644 --- a/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropPolygonImage_ScriptCode.html +++ b/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropPolygonImage_ScriptCode.html @@ -1,34 +1,34 @@ 
-
-
+	
+
 <script>
-    window.getPolygonImage = (sourceCanvas, path) => {
-        const canvas = document.createElement('canvas');
-        const context = canvas.getContext('2d');
-        const width = sourceCanvas.width,
-            height = sourceCanvas.height;
+	window.getPolygonImage = (sourceCanvas, path) => {
+		const canvas = document.createElement('canvas');
+		const context = canvas.getContext('2d');
+		const width = sourceCanvas.width,
+			height = sourceCanvas.height;
 
-        canvas.width = width;
-        canvas.height = height;
-        context.imageSmoothingEnabled = true;
+		canvas.width = width;
+		canvas.height = height;
+		context.imageSmoothingEnabled = true;
 
-        context.beginPath();
-        context.moveTo(path[0] * width / 100, path[1] * height / 100);
-        context.fillStyle = "rgba(255, 255, 255, 0)";
+		context.beginPath();
+		context.moveTo(path[0] * width / 100, path[1] * height / 100);
+		context.fillStyle = "rgba(255, 255, 255, 0)";
 
-        for (let i = 2; i < path.length; i += 2) {
-            context.lineTo(path[i] * width / 100, path[i + 1] * height / 100);
-        }
+		for (let i = 2; i < path.length; i += 2) {
+			context.lineTo(path[i] * width / 100, path[i + 1] * height / 100);
+		}
 
-        context.closePath();
-        context.clip();
-        context.fill();
-        context.globalCompositeOperation = 'lighter';
-        context.drawImage(sourceCanvas, 0, 0, width, height);
+		context.closePath();
+		context.clip();
+		context.fill();
+		context.globalCompositeOperation = 'lighter';
+		context.drawImage(sourceCanvas, 0, 0, width, height);
 
-        return canvas.toDataURL("image/png", 1);
-    }
+		return canvas.toDataURL("image/png", 1);
+	}
 </script >
 
-
+
diff --git a/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropRoundImage_ScriptCode.html b/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropRoundImage_ScriptCode.html index 2295c6db..8d4e74cc 100644 --- a/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropRoundImage_ScriptCode.html +++ b/src/Cropper.Blazor/Client/Pages/Crop/Examples/CropRoundImage_ScriptCode.html @@ -1,26 +1,26 @@ 
-
-
+	
+
 <script>
-    window.getEllipseImage = (sourceCanvas) => {
-        const createdCanvas = document.createElement('canvas');
-        const contextCanvas = createdCanvas.getContext('2d');
-        const widthCanvas = sourceCanvas.width,
-            heightCanvas = sourceCanvas.height;
+	window.getEllipseImage = (sourceCanvas) => {
+		const createdCanvas = document.createElement('canvas');
+		const contextCanvas = createdCanvas.getContext('2d');
+		const widthCanvas = sourceCanvas.width,
+			heightCanvas = sourceCanvas.height;
 
-        createdCanvas.width = widthCanvas;
-        createdCanvas.height = heightCanvas;
-        contextCanvas.imageSmoothingEnabled = true;
+		createdCanvas.width = widthCanvas;
+		createdCanvas.height = heightCanvas;
+		contextCanvas.imageSmoothingEnabled = true;
 
-        contextCanvas.drawImage(sourceCanvas, 0, 0, widthCanvas, heightCanvas);
-        contextCanvas.globalCompositeOperation = 'destination-in';
-        contextCanvas.beginPath();
-        contextCanvas.ellipse(widthCanvas / 2, heightCanvas / 2, widthCanvas / 2, heightCanvas / 2, 0 * Math.PI, 0, 180 * Math.PI, true);
-        contextCanvas.fill();
+		contextCanvas.drawImage(sourceCanvas, 0, 0, widthCanvas, heightCanvas);
+		contextCanvas.globalCompositeOperation = 'destination-in';
+		contextCanvas.beginPath();
+		contextCanvas.ellipse(widthCanvas / 2, heightCanvas / 2, widthCanvas / 2, heightCanvas / 2, 0 * Math.PI, 0, 180 * Math.PI, true);
+		contextCanvas.fill();
 
-        return createdCanvas.toDataURL("image/png", 1);
-    }
+		return createdCanvas.toDataURL("image/png", 1);
+	}
 </script >
 
-
+
diff --git a/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallScriptManualCode.html b/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallScriptManualCode.html index 672d27f5..049089b9 100644 --- a/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallScriptManualCode.html +++ b/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallScriptManualCode.html @@ -1,7 +1,7 @@ 
-
+
 <script src="_content/Cropper.Blazor/cropper.min.js"></script>
 
-
+
diff --git a/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallServicesManualCode.html b/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallServicesManualCode.html index fb46525c..6514b805 100644 --- a/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallServicesManualCode.html +++ b/src/Cropper.Blazor/Client/Pages/ManualMarkdown/InstallServicesManualCode.html @@ -1,10 +1,10 @@ 
-
-
+	
+
 using Cropper.Blazor.Extensions;
 
 builder.Services.AddCropper();
 
 
-
+
diff --git a/src/Cropper.Blazor/Client/wwwroot/index.html b/src/Cropper.Blazor/Client/wwwroot/index.html index a879167d..2cf83604 100644 --- a/src/Cropper.Blazor/Client/wwwroot/index.html +++ b/src/Cropper.Blazor/Client/wwwroot/index.html @@ -2,76 +2,76 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + -
-
-
-
- - -
-
-
-
-
+
+
+
+
+ + +
+
+
+
+
-
- An unhandled error has occurred. - Reload - 🗙 -
- - - - - - - - - +
+ An unhandled error has occurred. + Reload + 🗙 +
+ + + + + + + + +