diff --git a/src/components/ProductFomo.svelte b/src/components/ProductFomo.svelte index 735737d..045d383 100644 --- a/src/components/ProductFomo.svelte +++ b/src/components/ProductFomo.svelte @@ -1,12 +1,11 @@ {#if currentPage} - {#if unratifiedZaps} - - {/if} + {/if} {#if products.length > 1} diff --git a/src/components/ProductPurchases.svelte b/src/components/ProductPurchases.svelte index 810d4b7..b756adb 100644 --- a/src/components/ProductPurchases.svelte +++ b/src/components/ProductPurchases.svelte @@ -13,6 +13,8 @@ export let unratifiedZaps: Map; + export let hidePurchases = false; + let zaps = $ndk.storeSubscribe( [{ '#a': [`31108:${rocket.Event.author.pubkey}:${rocket.Event.dTag}`], kinds: [9735] }], { @@ -95,7 +97,7 @@ //todo: update rocket event with confirmed zaps if we have votepower - + Purchases - import ChevronLeft from 'lucide-svelte/icons/chevron-left'; - import ChevronRight from 'lucide-svelte/icons/chevron-right'; - import Copy from 'lucide-svelte/icons/copy'; - import CreditCard from 'lucide-svelte/icons/credit-card'; - import EllipsisVertical from 'lucide-svelte/icons/ellipsis-vertical'; - import File from 'lucide-svelte/icons/file'; - import ListFilter from 'lucide-svelte/icons/list-filter'; - import Truck from 'lucide-svelte/icons/truck'; - - import { Badge } from '$lib/components/ui/badge/index.js'; - import * as Breadcrumb from '$lib/components/ui/breadcrumb/index.js'; - import { Button } from '$lib/components/ui/button/index.js'; - import * as Card from '$lib/components/ui/card/index.js'; - import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js'; - import * as Pagination from '$lib/components/ui/pagination/index.js'; - import { Progress } from '$lib/components/ui/progress/index.js'; - import { Separator } from '$lib/components/ui/separator/index.js'; - import * as Table from '$lib/components/ui/table/index.js'; - import * as Tabs from '$lib/components/ui/tabs/index.js'; - - -
-
- -
-
-
-
- - - Your Orders - - Introducing Our Dynamic Orders Dashboard for Seamless Management and Insightful - Analysis. - - - - - - - - - This Week - $1329 - - -
+25% from last week
-
- - - -
- - - This Month - $5,329 - - -
+10% from last month
-
- - - -
-
- -
- - Week - Month - Year - -
- - - - - - Filter by - - Fulfilled - Declined - Refunded - - - -
-
- - - - Orders - Recent orders from your store. - - - - - - Customer - - - - Amount - - - - - -
Liam Johnson
- -
- - - - $250.00 -
- - -
Olivia Smith
- -
- - - - $150.00 -
- - -
Noah Williams
- -
- - - - $350.00 -
- - -
Emma Brown
- -
- - - - $450.00 -
- - -
Liam Johnson
- -
- - - - $250.00 -
- - -
Liam Johnson
- -
- - - - $250.00 -
- - -
Olivia Smith
- -
- - - - $150.00 -
- - -
Emma Brown
- -
- - - - $450.00 -
-
-
-
-
-
-
-
-
- - -
- - Order Oe31b70H - - - Date: November 23, 2023 -
-
- - - - - - - Edit - Export - - Trash - - -
-
- -
-
Order Details
-
    -
  • - - Glimmer Lamps x 2 - - $250.00 -
  • -
  • - - Aqua Filters x 1 - - $49.00 -
  • -
- -
    -
  • - Subtotal - $299.00 -
  • -
  • - Shipping - $5.00 -
  • -
  • - Tax - $25.00 -
  • -
  • - Total - $329.00 -
  • -
-
- -
-
-
Shipping Information
-
- Liam Johnson - 1234 Main St. - Anytown, CA 12345 -
-
-
-
Billing Information
-
Same as shipping address
-
-
- -
-
Customer Information
-
-
-
Customer
-
Liam Johnson
-
-
-
Email
-
- liam@acme.com -
-
-
-
Phone
-
- +1 234 567 890 -
-
-
-
- -
-
Payment Information
-
-
-
- - Visa -
-
**** **** **** 4532
-
-
-
-
- -
- Updated -
- - - - - - - - - - -
-
-
-
-
diff --git a/src/components/RocketDashboard.svelte b/src/components/RocketDashboard.svelte index 7bbf4e5..a56ab36 100644 --- a/src/components/RocketDashboard.svelte +++ b/src/components/RocketDashboard.svelte @@ -3,15 +3,14 @@ import Button from '@/components/ui/button/button.svelte'; import * as Card from '@/components/ui/card'; import { Rocket, ZapPurchase } from '@/event_helpers/rockets'; + import { devmode } from '@/stores/session'; import type { NDKEvent } from '@nostr-dev-kit/ndk'; import BitcoinAssociations from './AssociatedBitcoinAddresses.svelte'; import MeritRequests from './MeritRequests.svelte'; import MeritsAndSatflow from './MeritsAndSatflow.svelte'; import ProductFomo from './ProductFomo.svelte'; import ProposedProducts from './ProposedProducts.svelte'; - import Todo from './Todo.svelte'; import UpdateMission from './UpdateMission.svelte'; - import { devmode } from '@/stores/session'; export let rocket: NDKEvent; diff --git a/src/routes/products/+page.svelte b/src/routes/products/+page.svelte index 515b725..33dc0fc 100644 --- a/src/routes/products/+page.svelte +++ b/src/routes/products/+page.svelte @@ -90,7 +90,7 @@
{#each groups as [identifier, products] (identifier)} - + {/each}
{/each} @@ -111,7 +111,7 @@
{#each groups as [identifier, products] (identifier)} - + {/each}
{/each}