From 8fbff43eb26d90175c0bfed5c33849aec4a76e68 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 11 Nov 2024 23:18:53 +0100 Subject: [PATCH] bugfixing --- src/lib/components/CommunitySentiment.svelte | 110 --- src/lib/schemas.js | 9 - src/routes/politicians/+page.svelte | 930 +++++++++++-------- src/routes/price-alert/+page.svelte | 2 - 4 files changed, 533 insertions(+), 518 deletions(-) delete mode 100644 src/lib/components/CommunitySentiment.svelte diff --git a/src/lib/components/CommunitySentiment.svelte b/src/lib/components/CommunitySentiment.svelte deleted file mode 100644 index 7902a187..00000000 --- a/src/lib/components/CommunitySentiment.svelte +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - -
- -
-
- -
- - - The community is {upvote > downvote ? 'bullish' : upvote < downvote ? 'bearish' : 'neutral'} about {$displayCompanyName} this week, with {totalVote} total votes. - -
- -
-
- -
- - -
-
diff --git a/src/lib/schemas.js b/src/lib/schemas.js index c1441010..2a7846c2 100644 --- a/src/lib/schemas.js +++ b/src/lib/schemas.js @@ -9,15 +9,6 @@ export const loginUserSchema = z.object({ export const registerUserSchema = z .object({ - username: z - .string({ required_error: "Username is required" }) - .regex(/^[a-zA-Z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]*$/, { - message: - "Username can only contain letters, numbers, and special characters.", - }) // Updated regex pattern - .min(3, { message: "Username must be at least 2 characters" }) - .max(64, { message: "Username must be less than 64 characters" }) - .trim(), email: z .string({ required_error: "Email is required" }) .email({ message: "Email must be a valid email" }), diff --git a/src/routes/politicians/+page.svelte b/src/routes/politicians/+page.svelte index ab4c8128..7970c3f7 100644 --- a/src/routes/politicians/+page.svelte +++ b/src/routes/politicians/+page.svelte @@ -1,67 +1,58 @@ - - - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ''} US Politician Stock Trade Tracker ยท stocknear - - - - - - - - - - - - - - - - - - - - -
- - - - - - - + + + + {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} US + Politician Stock Trade Tracker ยท stocknear + + + + + + + + + + + + + + + + + +
+ + + {#if isLoaded} - - -
- - + + {/each} + + + + + +
- {:else} + {:else}
- +
-
- - {/if} - + + {/if} - - - -
- - - +
- - {#if $screenWidth >= 640} +{#if $screenWidth >= 640} - + - - - - - - + + + - {:else} +{:else}
- +
- - -
- - - - -
- - -
- -
- - -
-

- Filter List -

- -
- - -
- -
-
-

Political Party

-
    -
  • - -
  • -
  • - -
  • -
-
- -
-
    -
  • - -
  • - -
+
+ + +
+
+
+ +
+

+ Filter List +

+
+ + +
+ +
+
+

+ Political Party +

+
    +
  • + +
  • +
  • + +
  • +
+
+ +
+
    +
  • + +
  • + +
+
+
+ + + +
+
+

+ Transaction Type +

+
    +
  • + +
  • +
+
+ +
+
    +
  • + +
  • + +
+
+
+ + +
+
-
- - - -
-
-

Transaction Type

-
    -
  • - -
  • -
- -
-
    -
  • - -
  • - -
-
-
- - - - - -
- - - -
-
-
- {/if} +{/if} \ No newline at end of file + } + diff --git a/src/routes/price-alert/+page.svelte b/src/routes/price-alert/+page.svelte index d00c97df..fd532a16 100644 --- a/src/routes/price-alert/+page.svelte +++ b/src/routes/price-alert/+page.svelte @@ -10,8 +10,6 @@ import { onMount } from "svelte"; import ArrowLogo from "lucide-svelte/icons/move-up-right"; - let cloudFrontUrl = import.meta.env.VITE_IMAGE_URL; - export let data; const rawData = data?.getMiniPlotsIndex;