From dcd69e0f5984c7b6c49e031bcdcc5c1b9ec26c8c Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 14 Sep 2024 13:18:17 +0200 Subject: [PATCH] remove paywalls --- src/lib/components/BorrowedShare.svelte | 8 +- src/lib/components/BullBearSay.svelte | 8 +- src/lib/components/CorporateLobbying.svelte | 11 +- src/lib/components/DarkPool.svelte | 7 - src/lib/components/EarningsSurprise.svelte | 7 - src/lib/components/Enterprise.svelte | 7 - src/lib/components/FailToDeliver.svelte | 8 +- src/lib/components/MarketMaker.svelte | 8 +- src/lib/components/NextEarnings.svelte | 8 +- src/lib/components/OptionsData.svelte | 8 +- src/lib/components/OptionsNetFlow.svelte | 8 +- src/lib/components/PriceAnalysis.svelte | 9 +- src/lib/components/RetailVolume.svelte | 8 +- src/lib/components/SentimentAnalysis.svelte | 9 +- src/lib/components/ShareHolders.svelte | 8 +- src/lib/components/ShareStatistics.svelte | 8 +- src/lib/components/Swap.svelte | 9 +- src/lib/components/TARating.svelte | 8 +- src/lib/components/TrendAnalysis.svelte | 9 +- src/lib/components/VaR.svelte | 9 +- src/lib/components/WIIM.svelte | 9 +- src/routes/+layout.svelte | 6 +- src/routes/+page.server.ts | 257 ++-- src/routes/+page.svelte | 1119 +++++++++-------- src/routes/+page.ts | 67 +- src/routes/about/+page.svelte | 67 +- src/routes/about/+page.ts | 60 + src/routes/community/+page.server.ts | 214 ++-- .../community/post/[postId]/+page.server.ts | 214 ++-- .../community/user/[userId]/+page.server.ts | 227 ++-- src/routes/crypto/[tickerID]/+page.server.ts | 213 ++-- src/routes/etf/[tickerID]/+page.server.ts | 214 ++-- src/routes/portfolio/+page.server.ts | 201 ++- src/routes/pricing/+page.server.ts | 216 ++-- src/routes/register/+page.server.ts | 209 +-- src/routes/stock-screener/+page.server.ts | 204 ++- src/routes/stocks/[tickerID]/+page.server.ts | 215 ++-- .../stocks/[tickerID]/stats/+page.server.ts | 201 ++- 38 files changed, 2057 insertions(+), 2021 deletions(-) create mode 100644 src/routes/about/+page.ts diff --git a/src/lib/components/BorrowedShare.svelte b/src/lib/components/BorrowedShare.svelte index 0d9a4ca5..bdb55a28 100644 --- a/src/lib/components/BorrowedShare.svelte +++ b/src/lib/components/BorrowedShare.svelte @@ -247,7 +247,6 @@ function findLowestAndHighestFee(data, lastDateStr) { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0} @@ -336,12 +335,7 @@ function findLowestAndHighestFee(data, lastDateStr) { {/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} + diff --git a/src/lib/components/BullBearSay.svelte b/src/lib/components/BullBearSay.svelte index 78e771da..bd76a274 100644 --- a/src/lib/components/BullBearSay.svelte +++ b/src/lib/components/BullBearSay.svelte @@ -55,7 +55,6 @@ - {#if data?.user?.tier === 'Pro'}
{#each tabs as item, i} @@ -94,12 +93,7 @@ {/if}
- {:else} -
- - Unlock content with Pro Subscription -
- {/if} + diff --git a/src/lib/components/CorporateLobbying.svelte b/src/lib/components/CorporateLobbying.svelte index 29a11e1b..0190d6f7 100644 --- a/src/lib/components/CorporateLobbying.svelte +++ b/src/lib/components/CorporateLobbying.svelte @@ -178,7 +178,6 @@ $: { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0}
@@ -218,14 +217,8 @@ $: {
{/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} - - + + diff --git a/src/lib/components/DarkPool.svelte b/src/lib/components/DarkPool.svelte index 249c4baf..d29a894c 100644 --- a/src/lib/components/DarkPool.svelte +++ b/src/lib/components/DarkPool.svelte @@ -226,7 +226,6 @@ $: { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0} @@ -317,12 +316,6 @@ $: { {/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} diff --git a/src/lib/components/EarningsSurprise.svelte b/src/lib/components/EarningsSurprise.svelte index e9121cb7..49b49ec9 100644 --- a/src/lib/components/EarningsSurprise.svelte +++ b/src/lib/components/EarningsSurprise.svelte @@ -56,7 +56,6 @@ $: { - {#if data?.user?.tier === 'Pro'}
{$displayCompanyName} has released their quartely earnings on {new Date(rawData?.date)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })}:
@@ -67,12 +66,6 @@ $: { EPS of ${rawData?.eps} {rawData?.epsSurprise > 0 ? 'exceeds' : 'misses'} estimates by ${rawData?.epsSurprise?.toFixed(2)}, with {(((rawData?.eps - rawData?.epsPrior) / Math.abs(rawData?.epsPrior)) * 100)?.toFixed(2)}% YoY {((rawData?.eps - rawData?.epsPrior) / Math.abs(rawData?.epsPrior)) < 0 ? 'decline' : 'growth'}.
- {:else} -
- - Unlock content with Pro Subscription -
- {/if} diff --git a/src/lib/components/Enterprise.svelte b/src/lib/components/Enterprise.svelte index 9737c0da..d080da7c 100644 --- a/src/lib/components/Enterprise.svelte +++ b/src/lib/components/Enterprise.svelte @@ -197,7 +197,6 @@ $: { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0}
@@ -261,12 +260,6 @@ $: {
{/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} diff --git a/src/lib/components/FailToDeliver.svelte b/src/lib/components/FailToDeliver.svelte index c437b162..801ab5bc 100644 --- a/src/lib/components/FailToDeliver.svelte +++ b/src/lib/components/FailToDeliver.svelte @@ -255,7 +255,6 @@ function findLowestAndHighestPrice(data, lastDateStr) { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if rawData?.length !== 0} @@ -345,12 +344,7 @@ function findLowestAndHighestPrice(data, lastDateStr) { {/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} + diff --git a/src/lib/components/MarketMaker.svelte b/src/lib/components/MarketMaker.svelte index 36a30a80..ff1a45c0 100644 --- a/src/lib/components/MarketMaker.svelte +++ b/src/lib/components/MarketMaker.svelte @@ -244,7 +244,6 @@ else { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded} {#if historyData?.length !== 0} @@ -391,12 +390,7 @@ else { {/if} - {:else} -
- - Unlock content with Pro Subscription -
- {/if} + diff --git a/src/lib/components/NextEarnings.svelte b/src/lib/components/NextEarnings.svelte index bcb99c18..0b0c9f02 100644 --- a/src/lib/components/NextEarnings.svelte +++ b/src/lib/components/NextEarnings.svelte @@ -54,7 +54,6 @@ $: { - {#if data?.user?.tier === 'Pro'}
{$displayCompanyName} is scheduled to release its earnings on {new Date(rawData?.date ?? null)?.toLocaleString('en-US', { month: 'short', @@ -74,12 +73,7 @@ $: { {revenueRatio}% YoY {revenueRatio > 0 ? 'growth' : revenueRatio < 0 ? 'shrinking' : ''} and earnings per share of {rawData?.epsEst}, making a {epsRatio}% {epsRatio > 0 ? 'increase' : epsRatio < 0 ? 'decrease' : ''} YoY.
- {:else} -
- - Unlock content with Pro Subscription -
- {/if} + diff --git a/src/lib/components/OptionsData.svelte b/src/lib/components/OptionsData.svelte index 544a333d..a7800b24 100644 --- a/src/lib/components/OptionsData.svelte +++ b/src/lib/components/OptionsData.svelte @@ -153,7 +153,6 @@ $: { /> - {#if data?.user?.tier === 'Pro'} {#if isLoaded}