rename project from SimpleshopTheme to Berrypod
All modules, configs, paths, and references updated. 836 tests pass, zero warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
CLAUDE.md
10
CLAUDE.md
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
|
||||
## Project Overview
|
||||
|
||||
SimpleShop is a customisable e-commerce storefront for print-on-demand sellers, built with Phoenix 1.8 + LiveView 1.1 on Elixir/Erlang. Uses SQLite with BLOB storage for images. Licensed under AGPL-3.0.
|
||||
Berrypod is a customisable e-commerce storefront for print-on-demand sellers, built with Phoenix 1.8 + LiveView 1.1 on Elixir/Erlang. Uses SQLite with BLOB storage for images. Licensed under AGPL-3.0.
|
||||
|
||||
## Common Commands
|
||||
|
||||
@@ -19,7 +19,7 @@ mix precommit # REQUIRED before committing: compile --warning-as-errors
|
||||
|
||||
## Architecture
|
||||
|
||||
### Core Contexts (lib/simpleshop_theme/)
|
||||
### Core Contexts (lib/berrypod/)
|
||||
|
||||
- **Settings** - Theme configuration persistence as JSON
|
||||
- **Theme** - CSS generation, ETS caching, 8 presets (Gallery, Studio, Boutique, etc.)
|
||||
@@ -27,7 +27,7 @@ mix precommit # REQUIRED before committing: compile --warning-as-errors
|
||||
- **Media/Images** - Image uploads and optimization pipeline (Oban jobs)
|
||||
- **Providers** - Abstraction layer for POD providers (Printify integration)
|
||||
|
||||
### Web Layer (lib/simpleshop_theme_web/)
|
||||
### Web Layer (lib/berrypod_web/)
|
||||
|
||||
- **live/** - LiveViews for shop pages and theme editor
|
||||
- **components/page_templates/** - Shared templates between preview and live shop
|
||||
@@ -78,7 +78,7 @@ Theme switching is instant via CSS custom property injection (no reload).
|
||||
Routes requiring auth go in `:require_authenticated_user` live_session:
|
||||
```elixir
|
||||
live_session :require_authenticated_user,
|
||||
on_mount: [{SimpleshopThemeWeb.UserAuth, :require_authenticated}] do
|
||||
on_mount: [{BerrypodWeb.UserAuth, :require_authenticated}] do
|
||||
live "/admin/theme", ThemeLive.Index
|
||||
end
|
||||
```
|
||||
@@ -86,7 +86,7 @@ end
|
||||
Public routes with optional user go in `:current_user` live_session:
|
||||
```elixir
|
||||
live_session :current_user,
|
||||
on_mount: [{SimpleshopThemeWeb.UserAuth, :mount_current_scope}] do
|
||||
on_mount: [{BerrypodWeb.UserAuth, :mount_current_scope}] do
|
||||
live "/", ShopLive.Home
|
||||
end
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user