From ce04f0e26ad63c3b71da318661a62cf8fedd7824 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 21 Nov 2024 13:09:16 +0100 Subject: [PATCH] add promo code --- src/routes/+page.svelte | 11 +- src/routes/politicians/[slug]/+page.svelte | 28 -- src/routes/pricing/+page.svelte | 58 ++- .../[tickerID]/forecast/analyst/+page.svelte | 380 +++++++++--------- 4 files changed, 237 insertions(+), 240 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8ae9871e..63a4789e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -143,7 +143,6 @@
-
diff --git a/src/routes/politicians/[slug]/+page.svelte b/src/routes/politicians/[slug]/+page.svelte index 23b33475..bd36f30e 100644 --- a/src/routes/politicians/[slug]/+page.svelte +++ b/src/routes/politicians/[slug]/+page.svelte @@ -53,34 +53,6 @@ } return 0; } - - const excludedRules = new Set([ - "sharesNumber", - "changeInSharesNumberPercentage", - "marketValue", - "avgPricePaid", - "weight", - ]); - - const defaultList = [ - { name: "Shares", rule: "sharesNumber" }, - { name: "% Change Shares", rule: "changeInSharesNumberPercentage" }, - { name: "Market Value", rule: "marketValue" }, - { name: "Avg Price", rule: "avgPricePaid" }, - { name: "% Weight", rule: "weight" }, - ]; - - const specificRows = [ - { name: "Shares", rule: "sharesNumber", type: "int" }, - { - name: "% Change Shares", - rule: "changeInSharesNumberPercentage", - type: "percentSign", - }, - { name: "% Weight", rule: "weight", type: "percent" }, - { name: "Avg Price", rule: "avgPricePaid", type: "float" }, - { name: "Market Value", rule: "marketValue", type: "int" }, - ]; diff --git a/src/routes/pricing/+page.svelte b/src/routes/pricing/+page.svelte index ba6a4dfd..d3b7a14a 100644 --- a/src/routes/pricing/+page.svelte +++ b/src/routes/pricing/+page.svelte @@ -109,25 +109,45 @@
- + {#if data?.user?.tier !== "Pro" || data?.user?.freeTrial === true} +
+ + +
+

+ Black Friday Deal + Save 40% with Promo Code: + BLACK +

+
+
+ {/if}
diff --git a/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte b/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte index e6ce3929..84f4f603 100644 --- a/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte @@ -267,6 +267,7 @@
Total Analysts
+
@@ -315,198 +316,203 @@
{#if rawData?.length !== 0} -
-
- - - - - - - - - - - - - - {#each data?.user?.tier === "Pro" ? historyList : historyList?.slice(0, 3) as item, index} - - - - - - - - - - - - - - {/each} - -
AnalystFirmRatingActionPrice TargetDate
-
- {item?.analyst_name} - - -
- {#each Array.from({ length: 5 }) as _, i} - {#if i < Math.floor(item?.analystScore)} - - {:else} - - {/if} - {/each} - - - ({item?.analystScore !== null - ? item?.analystScore - : 0}) - -
-
-
- {item?.analyst?.length > charNumber - ? item?.analyst?.slice(0, charNumber) + "..." - : item?.analyst} - - - {item?.rating_current} - - - {item?.action_company?.replace( - "Initiates Coverage On", - "Initiates", - )} - -
-
- {#if Math?.ceil(item?.adjusted_pt_prior) !== 0} - ${Math?.ceil(item?.adjusted_pt_prior)} - - ${Math?.ceil(item?.adjusted_pt_current)} - {:else if Math?.ceil(item?.adjusted_pt_current) !== 0} - ${Math?.ceil(item?.adjusted_pt_current)} - {/if} -
-
-
-
- {#if latestInfoDate(item?.date)} - - {/if} - {new Date(item?.date).toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - })} -
-
+
+
+

+ Ratings History +

+ +
+ + + + + + + + + + + + + + {#each data?.user?.tier === "Pro" ? historyList : historyList?.slice(0, 3) as item, index} + + + + + + + + + + + + + + {/each} + +
AnalystFirmRatingActionPrice TargetDate
+
+ {item?.analyst_name} + + +
+ {#each Array.from({ length: 5 }) as _, i} + {#if i < Math.floor(item?.analystScore)} + + {:else} + + {/if} + {/each} + + + ({item?.analystScore !== null + ? item?.analystScore + : 0}) + +
+
+
+ {item?.analyst?.length > charNumber + ? item?.analyst?.slice(0, charNumber) + "..." + : item?.analyst} + + + {item?.rating_current} + + + {item?.action_company?.replace( + "Initiates Coverage On", + "Initiates", + )} + +
+
+ {#if Math?.ceil(item?.adjusted_pt_prior) !== 0} + ${Math?.ceil(item?.adjusted_pt_prior)} + + ${Math?.ceil(item?.adjusted_pt_current)} + {:else if Math?.ceil(item?.adjusted_pt_current) !== 0} + ${Math?.ceil(item?.adjusted_pt_current)} + {/if} +
+
+
+
+ {#if latestInfoDate(item?.date)} + + {/if} + {new Date(item?.date).toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} +
+
+
{:else if activeIdx === 1}