From c5968ef950c593579fe2641bfcfe4f3cd8607ee8 Mon Sep 17 00:00:00 2001
From: Tupui <23188539+tupui@users.noreply.github.com>
Date: Mon, 26 Aug 2024 20:36:42 +0200
Subject: [PATCH] Linter

---
 dapp/src/components/Commit.astro          |  2 +-
 dapp/src/components/RegisterProject.astro | 14 ++++++++------
 dapp/src/components/SetProject.astro      |  3 +--
 dapp/src/components/project.ts            | 15 +++++++++++++--
 4 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/dapp/src/components/Commit.astro b/dapp/src/components/Commit.astro
index 3deba03..4fd86e6 100644
--- a/dapp/src/components/Commit.astro
+++ b/dapp/src/components/Commit.astro
@@ -44,7 +44,7 @@ import Loading from "./Loading.astro";
 </div>
 
 <script>
-  import {commitHash} from "./project";
+  import { commitHash } from "./project";
 
   const commit_hash = document.getElementById(
     "commit_hash",
diff --git a/dapp/src/components/RegisterProject.astro b/dapp/src/components/RegisterProject.astro
index 54bc843..ce370da 100644
--- a/dapp/src/components/RegisterProject.astro
+++ b/dapp/src/components/RegisterProject.astro
@@ -14,7 +14,6 @@ const SOROBAN_DOMAIN_CONTRACT_ID = import.meta.env.SOROBAN_DOMAIN_CONTRACT_ID;
 >
   <div class="row items-center py-12 px-4 md:px-20 md:w-8/12 md:py-10">
     <div class="space-y-8 md:w-full">
-
       <label class="block mb-2 text-base font-medium text-black">
         Maintainers
         <input
@@ -72,15 +71,13 @@ const SOROBAN_DOMAIN_CONTRACT_ID = import.meta.env.SOROBAN_DOMAIN_CONTRACT_ID;
 </div>
 
 <script>
-  import {registerProject} from "./project";
+  import { registerProject } from "./project";
 
   const maintainers = document.getElementById(
     "maintainers",
   ) as HTMLInputElement;
 
-  const config_url = document.getElementById(
-    "config_url",
-  ) as HTMLInputElement;
+  const config_url = document.getElementById("config_url") as HTMLInputElement;
   const config_hash = document.getElementById(
     "config_hash",
   ) as HTMLInputElement;
@@ -99,7 +96,12 @@ const SOROBAN_DOMAIN_CONTRACT_ID = import.meta.env.SOROBAN_DOMAIN_CONTRACT_ID;
     wrap_loader.style.display = "block";
     wrap_button.style.display = "none";
     try {
-      const register_status = await registerProject(maintainers.value,  config_url.value, config_hash.value, "CDODLZIO3OY5ZBCNYQALDZWLW2NN533WIDZUDNW2NRWJGLTWSABGSMH7");
+      const register_status = await registerProject(
+        maintainers.value,
+        config_url.value,
+        config_hash.value,
+        "CDODLZIO3OY5ZBCNYQALDZWLW2NN533WIDZUDNW2NRWJGLTWSABGSMH7",
+      );
 
       wrap_loader.style.display = "none";
       wrap_button.style.display = "block";
diff --git a/dapp/src/components/SetProject.astro b/dapp/src/components/SetProject.astro
index 0855e22..c69d669 100644
--- a/dapp/src/components/SetProject.astro
+++ b/dapp/src/components/SetProject.astro
@@ -46,9 +46,8 @@ const TANSU_CONTRACT_ID = import.meta.env.TANSU_CONTRACT_ID;
   />
 </div>
 
-
 <script>
-  import {setProjectId} from "./project";
+  import { setProjectId } from "./project";
 
   const wrap_button = document.getElementById(
     "wrap-set-project-button",
diff --git a/dapp/src/components/project.ts b/dapp/src/components/project.ts
index 8062553..9fd88d3 100644
--- a/dapp/src/components/project.ts
+++ b/dapp/src/components/project.ts
@@ -70,7 +70,12 @@ async function commitHash(commit_hash: string): Promise<boolean> {
   }
 }
 
-async function registerProject(maintainers: string, config_url: string, config_hash: string, domain_contract_id: string): Promise<boolean> {
+async function registerProject(
+  maintainers: string,
+  config_url: string,
+  config_hash: string,
+  domain_contract_id: string,
+): Promise<boolean> {
   if (!projectState.project_id) {
     alert("No project defined");
     return false;
@@ -109,4 +114,10 @@ async function registerProject(maintainers: string, config_url: string, config_h
   }
 }
 
-export { commitHash, getProjectHash, loadedProjectId, registerProject, setProjectId };
+export {
+  commitHash,
+  getProjectHash,
+  loadedProjectId,
+  registerProject,
+  setProjectId,
+};