This commit is contained in:
MuslemRahimi 2025-04-13 15:13:21 +02:00
parent adabaf1f3f
commit eafe153604
2 changed files with 12 additions and 10 deletions

View File

@ -1,7 +1,7 @@
export const load = async ({ locals, params }) => { export const load = async ({ locals, params }) => {
const { apiKey, apiURL, user } = locals; const { apiKey, apiURL } = locals;
const getData = async () => { const getData = async () => {
const postData = { const postData = {
@ -22,9 +22,6 @@ export const load = async ({ locals, params }) => {
}; };
// Make sure to return a promise // Make sure to return a promise
return { return {
getData: await getData(), getData: await getData(),

View File

@ -49,20 +49,25 @@
let bulkData = [ let bulkData = [
{ {
name: "Price Data", name: "Stock Price",
selected: true, selected: true,
credit: 1, credit: 1,
}, },
{ {
name: "Dividends Data", name: "Dividends",
selected: true, selected: true,
credit: 1, credit: 1,
}, },
{ {
name: "Options Data", name: "Options",
selected: true, selected: true,
credit: 3, credit: 3,
}, },
{
name: "Dark Pool",
selected: true,
credit: 2,
},
]; ];
const tabs = [ const tabs = [
{ {
@ -1600,7 +1605,7 @@
</DropdownMenu.Trigger> </DropdownMenu.Trigger>
<DropdownMenu.Content <DropdownMenu.Content
class="w-auto max-w-80 max-h-[400px] overflow-y-auto scroller relative" class="w-auto min-w-64 max-w-80 max-h-[400px] overflow-y-auto scroller relative"
> >
<DropdownMenu.Label <DropdownMenu.Label
class="text-muted dark:text-gray-400 font-semibold dark:font-normal text-xs" class="text-muted dark:text-gray-400 font-semibold dark:font-normal text-xs"
@ -1620,7 +1625,7 @@
}} }}
class="inline-flex justify-between w-full items-center cursor-pointer" class="inline-flex justify-between w-full items-center cursor-pointer"
> >
<span class="mr-2 text-sm">{item?.name}</span> <span class="mr-1 text-sm">{item?.name}</span>
<span class="mr-2 text-xs inline-block" <span class="mr-2 text-xs inline-block"
>({item?.credit} Credits)</span >({item?.credit} Credits)</span
> >
@ -1652,7 +1657,7 @@
</span> </span>
<button <button
on:click={handleBulkDownload} on:click={handleBulkDownload}
class="w-full flex justify-end dark:sm:hover:text-white text-muted dark:text-gray-300 bg-white dark:bg-default text-start text-sm cursor-pointer" class="whitespace-nowrap w-full flex justify-end dark:sm:hover:text-white text-muted dark:text-gray-300 bg-white dark:bg-default text-start text-sm cursor-pointer"
> >
Bulk Download Bulk Download
</button> </button>