Jamey Greenwood 50941d278f refactor: extract cart_drawer to shared ShopComponents module
Move the cart drawer component from ThemeLive.PreviewPages to the
shared ShopComponents module. The component now supports:
- mode attribute (:live for real stores, :preview for theme editor)
- subtotal attribute (default nil shows "£0.00")
- cart_items attribute (default empty list)

In preview mode, "View basket" navigates via LiveView JS commands.
In live mode, it links directly to /cart.

Preview pages now explicitly pass demo values:
  <.cart_drawer cart_items={...} subtotal="£72.00" mode={:preview} />

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 14:11:23 +00:00
2025-12-30 12:26:46 +00:00
2026-01-01 16:37:55 +00:00
2026-01-01 16:37:55 +00:00
2026-01-01 16:37:55 +00:00
2026-01-01 16:20:31 +00:00

SimpleshopTheme

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

Description
No description provided
Readme AGPL-3.0 52 MiB
Languages
Elixir 86.5%
CSS 11.2%
HTML 1.1%
JavaScript 1.1%
Dockerfile 0.1%