diff --git a/interface/app/$libraryId/TopBar/index.tsx b/interface/app/$libraryId/TopBar/index.tsx
index 3e6afd7a3..d84646775 100644
--- a/interface/app/$libraryId/TopBar/index.tsx
+++ b/interface/app/$libraryId/TopBar/index.tsx
@@ -138,7 +138,7 @@ function Tabs() {
else if (e.button === 1) removeTab(index);
}}
className={clsx(
- 'duration-[50ms] group relative flex h-full min-w-40 shrink-0 flex-row items-center justify-center px-8 text-center',
+ 'group relative flex h-full min-w-40 shrink-0 flex-row items-center justify-center px-8 text-center duration-[50ms]',
ctx.tabIndex === index
? 'text-ink'
: 'top-bar-blur border-t border-sidebar-divider bg-sidebar/30 text-ink-faint/60 transition-colors hover:bg-app/50'
@@ -166,7 +166,7 @@ function Tabs() {
diff --git a/interface/app/$libraryId/settings/client/account/Login.tsx b/interface/app/$libraryId/settings/client/account/Login.tsx
index e89837a0e..b64ec4b6c 100644
--- a/interface/app/$libraryId/settings/client/account/Login.tsx
+++ b/interface/app/$libraryId/settings/client/account/Login.tsx
@@ -3,6 +3,7 @@ import { Controller } from 'react-hook-form';
import { signIn } from 'supertokens-web-js/recipe/emailpassword';
import { nonLibraryClient, useZodForm } from '@sd/client';
import { Button, Form, Input, toast, z } from '@sd/ui';
+
import ShowPassword from './ShowPassword';
async function signInClicked(email: string, password: string) {
diff --git a/interface/app/$libraryId/settings/client/account/Register.tsx b/interface/app/$libraryId/settings/client/account/Register.tsx
index 7e42dbd25..6dbc4ef15 100644
--- a/interface/app/$libraryId/settings/client/account/Register.tsx
+++ b/interface/app/$libraryId/settings/client/account/Register.tsx
@@ -1,8 +1,9 @@
import { zodResolver } from '@hookform/resolvers/zod';
-import { Button, Form, Input, toast, z } from '@sd/ui';
import { useState } from 'react';
import { Controller, useForm } from 'react-hook-form';
import { signUp } from 'supertokens-web-js/recipe/emailpassword';
+import { Button, Form, Input, toast, z } from '@sd/ui';
+
import ShowPassword from './ShowPassword';
const RegisterSchema = z
diff --git a/interface/app/$libraryId/settings/client/account/handlers/cookieHandler.ts b/interface/app/$libraryId/settings/client/account/handlers/cookieHandler.ts
index a0ca2abe9..4a7362d8e 100644
--- a/interface/app/$libraryId/settings/client/account/handlers/cookieHandler.ts
+++ b/interface/app/$libraryId/settings/client/account/handlers/cookieHandler.ts
@@ -1,6 +1,6 @@
-import { CookieHandlerInterface } from "supertokens-website/utils/cookieHandler/types";
+import { CookieHandlerInterface } from 'supertokens-website/utils/cookieHandler/types';
-const frontendCookiesKey = "frontendCookies";
+const frontendCookiesKey = 'frontendCookies';
/**
* Tauri handles cookies differently than in browser environments. The SuperTokens
@@ -12,8 +12,8 @@ function getCookiesFromStorage(): string {
const cookiesFromStorage = window.localStorage.getItem(frontendCookiesKey);
if (cookiesFromStorage === null) {
- window.localStorage.setItem(frontendCookiesKey, "[]");
- return "";
+ window.localStorage.setItem(frontendCookiesKey, '[]');
+ return '';
}
/**
@@ -25,20 +25,20 @@ function getCookiesFromStorage(): string {
for (let cookieIndex = 0; cookieIndex < cookieArrayInStorage.length; cookieIndex++) {
const currentCookieString = cookieArrayInStorage[cookieIndex];
- const parts = currentCookieString?.split(";");
- let expirationString: string = "";
+ const parts = currentCookieString?.split(';');
+ let expirationString: string = '';
for (let partIndex = 0; partIndex < parts!.length; partIndex++) {
const currentPart = parts![partIndex];
- if (currentPart!.toLocaleLowerCase().includes("expires=")) {
+ if (currentPart!.toLocaleLowerCase().includes('expires=')) {
expirationString = currentPart!;
break;
}
}
- if (expirationString !== "") {
- const expirationValueString = expirationString.split("=")[1];
+ if (expirationString !== '') {
+ const expirationValueString = expirationString.split('=')[1];
const expirationDate = new Date(expirationValueString!);
const currentTimeInMillis = Date.now();
@@ -57,11 +57,11 @@ function getCookiesFromStorage(): string {
*/
window.localStorage.setItem(frontendCookiesKey, JSON.stringify(cookieArrayToReturn));
- return cookieArrayToReturn.join("; ");
+ return cookieArrayToReturn.join('; ');
}
function setCookieToStorage(cookieString: string) {
- const cookieName = cookieString.split(";")[0]!.split("=")[0];
+ const cookieName = cookieString.split(';')[0]!.split('=')[0];
const cookiesFromStorage = window.localStorage.getItem(frontendCookiesKey);
let cookiesArray: string[] = [];
@@ -105,6 +105,6 @@ export default function getCookieHandler(original: CookieHandlerInterface): Cook
},
setCookie: async function (cookieString: string) {
setCookieToStorage(cookieString);
- },
+ }
};
}
diff --git a/interface/app/$libraryId/settings/client/account/handlers/windowHandler.ts b/interface/app/$libraryId/settings/client/account/handlers/windowHandler.ts
index c5f095733..f4d16996d 100644
--- a/interface/app/$libraryId/settings/client/account/handlers/windowHandler.ts
+++ b/interface/app/$libraryId/settings/client/account/handlers/windowHandler.ts
@@ -1,4 +1,4 @@
-import { WindowHandlerInterface } from "supertokens-website/utils/windowHandler/types";
+import { WindowHandlerInterface } from 'supertokens-website/utils/windowHandler/types';
/**
* This example app uses HashRouter from react-router-dom. The SuperTokens SDK relies on
@@ -13,76 +13,76 @@ export default function getWindowHandler(original: WindowHandlerInterface): Wind
...original.location,
getSearch: function () {
const currentURL = window.location.href;
- const firstQuestionMarkIndex = currentURL.indexOf("?");
+ const firstQuestionMarkIndex = currentURL.indexOf('?');
if (firstQuestionMarkIndex !== -1) {
// Return the query string from the url
let queryString = currentURL.substring(firstQuestionMarkIndex);
// Remove any hash
- if (queryString.includes("#")) {
- queryString = queryString.split("#")[0] ?? "";
+ if (queryString.includes('#')) {
+ queryString = queryString.split('#')[0] ?? '';
}
return queryString;
}
- return "";
+ return '';
},
getHash: function () {
// Location hash always starts with a #, when returning we prepend it
let locationHash = window.location.hash;
- if (locationHash === "") {
- return "#";
+ if (locationHash === '') {
+ return '#';
}
- if (locationHash.startsWith("#")) {
+ if (locationHash.startsWith('#')) {
// Remove the starting pound symbol
locationHash = locationHash.substring(1);
}
- if (!locationHash.includes("#")) {
+ if (!locationHash.includes('#')) {
// The remaining string did not have any "#" character
- return "#";
+ return '#';
}
- const locationSplit = locationHash.split("#");
+ const locationSplit = locationHash.split('#');
if (locationSplit.length < 2) {
// The string contains a "#" but is followed by nothing
- return "#";
+ return '#';
}
- return "#" + locationSplit[1];
+ return '#' + locationSplit[1];
},
getOrigin: function () {
- return "http://localhost:8001";
+ return 'http://localhost:8001';
},
getHostName: function () {
- return "localhost";
+ return 'localhost';
},
getPathName: function () {
let locationHash = window.location.hash;
- if (locationHash === "") {
- return "";
+ if (locationHash === '') {
+ return '';
}
- if (locationHash.startsWith("#")) {
+ if (locationHash.startsWith('#')) {
// Remove the starting pound symbol
locationHash = locationHash.substring(1);
}
- locationHash = locationHash.split("?")[0] ?? "";
+ locationHash = locationHash.split('?')[0] ?? '';
- if (locationHash.includes("#")) {
+ if (locationHash.includes('#')) {
// Remove location hash
- locationHash = locationHash.split("#")[0] ?? "";
+ locationHash = locationHash.split('#')[0] ?? '';
}
return locationHash;
- },
- },
+ }
+ }
};
}
diff --git a/interface/app/$libraryId/settings/node/libraries/ListItem.tsx b/interface/app/$libraryId/settings/node/libraries/ListItem.tsx
index f847355e1..e789c041a 100644
--- a/interface/app/$libraryId/settings/node/libraries/ListItem.tsx
+++ b/interface/app/$libraryId/settings/node/libraries/ListItem.tsx
@@ -88,7 +88,7 @@ export default (props: Props) => {
exit={{ height: 0, opacity: 0 }}
className="relative mt-2 flex origin-top flex-col gap-1 pl-8"
>
-
+
{cloudDevicesList.data?.map(
(
diff --git a/interface/hooks/useDeeplinkEventHandler.ts b/interface/hooks/useDeeplinkEventHandler.ts
index 728241ee0..16813b05c 100644
--- a/interface/hooks/useDeeplinkEventHandler.ts
+++ b/interface/hooks/useDeeplinkEventHandler.ts
@@ -1,6 +1,6 @@
-import { useEffect } from "react";
-import { useNavigate } from "react-router";
-import { DeeplinkEvent } from "~/util/events";
+import { useEffect } from 'react';
+import { useNavigate } from 'react-router';
+import { DeeplinkEvent } from '~/util/events';
export const useDeeplinkEventHandler = () => {
const navigate = useNavigate();
@@ -17,4 +17,4 @@ export const useDeeplinkEventHandler = () => {
document.addEventListener('deeplink', handler);
return () => document.removeEventListener('deeplink', handler);
}, [navigate]);
-}
+};