update table component
This commit is contained in:
parent
271867b5ef
commit
71c9e06ac9
@ -20,6 +20,8 @@
|
||||
"marketCap",
|
||||
]);
|
||||
|
||||
export let specificRows = [];
|
||||
|
||||
export let defaultList = [
|
||||
{ name: "Market Cap", rule: "marketCap" },
|
||||
{ name: "Price", rule: "price" },
|
||||
@ -80,7 +82,11 @@
|
||||
rule: "growthGrossProfit",
|
||||
type: "percentSign",
|
||||
},
|
||||
{ name: "Net Income Growth", rule: "growthNetIncome", type: "percentSign" },
|
||||
{
|
||||
name: "Net Income Growth",
|
||||
rule: "growthNetIncome",
|
||||
type: "percentSign",
|
||||
},
|
||||
{ name: "EBITDA Growth", rule: "growthEBITDA", type: "percentSign" },
|
||||
{ name: "EPS Growth", rule: "growthEPS", type: "percentSign" },
|
||||
{ name: "Total Debt", rule: "totalDebt", type: "int" },
|
||||
@ -126,9 +132,10 @@
|
||||
rule: "institutionalOwnership",
|
||||
type: "percent",
|
||||
},
|
||||
{ name: "Sentiment", rule: "sentiment", type: "sentiment" },
|
||||
];
|
||||
|
||||
allRows = [...allRows, ...specificRows];
|
||||
|
||||
const proOnlyItems = new Set(
|
||||
allRows
|
||||
?.filter((item) => !excludedRules?.has(item?.rule)) // Exclude the items based on the rule
|
||||
|
||||
6
src/routes/market-mover/premarket/+page.ts
Normal file
6
src/routes/market-mover/premarket/+page.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// +page.ts
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export function load() {
|
||||
throw redirect(302, '/market-mover/premarket/gainers');
|
||||
}
|
||||
@ -24,6 +24,10 @@
|
||||
{ name: "Sentiment", rule: "sentiment" },
|
||||
];
|
||||
|
||||
const specificRows = [
|
||||
{ name: "Sentiment", rule: "sentiment", type: "sentiment" },
|
||||
];
|
||||
|
||||
const hideLastRow = true;
|
||||
</script>
|
||||
|
||||
@ -103,6 +107,7 @@
|
||||
{excludedRules}
|
||||
{defaultList}
|
||||
{hideLastRow}
|
||||
{specificRows}
|
||||
/>
|
||||
|
||||
<UpgradeToPro
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user