(qol): update todo
This commit is contained in:
parent
3225b4e652
commit
fa2b40cbb6
5 changed files with 23 additions and 9 deletions
|
|
@ -64,7 +64,11 @@ function parseTuFileContent(rawFileContent: string): {
|
|||
const rawDomain = userIdString.includes("@")
|
||||
? userIdString.split("@")[1]
|
||||
: null;
|
||||
const domain = rawDomain ? (rawDomain.includes(":") ? rawDomain : rawDomain + ":1984") : null;
|
||||
const domain = rawDomain
|
||||
? rawDomain.includes(":")
|
||||
? rawDomain
|
||||
: rawDomain + ":1984"
|
||||
: null;
|
||||
|
||||
if (!userId || !privateKey) {
|
||||
throw new Error("Invalid file");
|
||||
|
|
@ -138,9 +142,17 @@ export default function Form() {
|
|||
}
|
||||
|
||||
const inputUsername = inputParse.data.username;
|
||||
const actualUsername = inputUsername.includes("@") ? inputUsername.split("@")[0] : inputUsername;
|
||||
const rawDomain = inputUsername.includes("@") ? inputUsername.split("@")[1] : null;
|
||||
const domain = rawDomain ? (rawDomain.includes(":") ? rawDomain : rawDomain + ":1984") : null;
|
||||
const actualUsername = inputUsername.includes("@")
|
||||
? inputUsername.split("@")[0]
|
||||
: inputUsername;
|
||||
const rawDomain = inputUsername.includes("@")
|
||||
? inputUsername.split("@")[1]
|
||||
: null;
|
||||
const domain = rawDomain
|
||||
? rawDomain.includes(":")
|
||||
? rawDomain
|
||||
: rawDomain + ":1984"
|
||||
: null;
|
||||
|
||||
try {
|
||||
const response = await fetch(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Button } from "@tensamin/ui";
|
||||
import { Button, ClearStorageButton } from "@tensamin/ui";
|
||||
|
||||
import options from "@tensamin/shared/settings";
|
||||
import { cn, useIsMobile } from "@tensamin/ui";
|
||||
|
|
@ -69,6 +69,9 @@ export function SettingsSidebar() {
|
|||
))}
|
||||
</div>
|
||||
))}
|
||||
<div className="mt-auto">
|
||||
<ClearStorageButton className="w-full" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
- Make the sidebar use <Activity /> to make it feel less slow on mobile
|
||||
- Add logout button
|
||||
|
|
|
|||
Loading…
Reference in a new issue