Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Open source some static pages

Damian Legawiec098371bffde3
diff --git a/storefront/app/views/spree/home/index.html.erb b/storefront/app/views/spree/home/index.html.erb
new file mode 100644
index 0000000000..68a7df71b9
--- /dev/null
+++ b/storefront/app/views/spree/home/index.html.erb
@@ -0,0 +1 @@
+<%= render_page(current_page) %>
diff --git a/storefront/app/views/spree/pages/show.html.erb b/storefront/app/views/spree/pages/show.html.erb
new file mode 100644
index 0000000000..e81219118e
--- /dev/null
+++ b/storefront/app/views/spree/pages/show.html.erb
@@ -0,0 +1 @@
+<%= render_page(@page) %>
diff --git a/storefront/app/views/spree/password/show.html.erb b/storefront/app/views/spree/password/show.html.erb
new file mode 100644
index 0000000000..68a7df71b9
--- /dev/null
+++ b/storefront/app/views/spree/password/show.html.erb
@@ -0,0 +1 @@
+<%= render_page(current_page) %>
diff --git a/storefront/app/views/spree/posts/index.html.erb b/storefront/app/views/spree/posts/index.html.erb
new file mode 100644
index 0000000000..dbdbbd91d2
--- /dev/null
+++ b/storefront/app/views/spree/posts/index.html.erb
@@ -0,0 +1 @@
+<%= render_page(current_page, posts: @posts, query: params[:query], sort: params[:sort]) %>
diff --git a/storefront/app/views/spree/posts/related_products.html.erb b/storefront/app/views/spree/posts/related_products.html.erb
new file mode 100644
index 0000000000..5fe967d8f9
--- /dev/null
+++ b/storefront/app/views/spree/posts/related_products.html.erb
@@ -0,0 +1,7 @@
+<%= turbo_frame_tag "section-#{@section.id}" do %>
+ <%= render_section(
+ @section,
+ { post: @post },
+ lazy_allowed: false
+ ) %>
+<% end %>
diff --git a/storefront/app/views/spree/posts/show.html.erb b/storefront/app/views/spree/posts/show.html.erb
new file mode 100644
index 0000000000..7afef312c3
--- /dev/null
+++ b/storefront/app/views/spree/posts/show.html.erb
@@ -0,0 +1 @@
+<%= render_page(current_page, post: @post) %>
diff --git a/storefront/app/views/spree/search/show.html.erb b/storefront/app/views/spree/search/show.html.erb
new file mode 100644
index 0000000000..806a432269
--- /dev/null
+++ b/storefront/app/views/spree/search/show.html.erb
@@ -0,0 +1,6 @@
+<%= render_page(
+ current_page,
+ products: storefront_products.records,
+ query: query,
+ sort: products_sort
+) %>
diff --git a/storefront/app/views/spree/search/show.turbo_stream.erb b/storefront/app/views/spree/search/show.turbo_stream.erb
new file mode 100644
index 0000000000..bf01298ccd
--- /dev/null
+++ b/storefront/app/views/spree/search/show.turbo_stream.erb
@@ -0,0 +1 @@
+<%= render 'spree/shared/load_more_products' %>
diff --git a/storefront/app/views/spree/taxonomies/show.html.erb b/storefront/app/views/spree/taxonomies/show.html.erb
new file mode 100644
index 0000000000..2236de4828
--- /dev/null
+++ b/storefront/app/views/spree/taxonomies/show.html.erb
@@ -0,0 +1 @@
+<%= render_page(current_page, taxons: @taxons) %>
diff --git a/storefront/app/views/spree/taxons/show.html.erb b/storefront/app/views/spree/taxons/show.html.erb
new file mode 100644
index 0000000000..89510eb7a3
--- /dev/null
+++ b/storefront/app/views/spree/taxons/show.html.erb
@@ -0,0 +1 @@
+<%= render 'spree/shared/product_listing_page' %>
\ No newline at end of file
diff --git a/storefront/app/views/spree/taxons/show.turbo_stream.erb b/storefront/app/views/spree/taxons/show.turbo_stream.erb
new file mode 100644
index 0000000000..bf01298ccd
--- /dev/null
+++ b/storefront/app/views/spree/taxons/show.turbo_stream.erb
@@ -0,0 +1 @@
+<%= render 'spree/shared/load_more_products' %>
diff --git a/storefront/app/views/themes/default/spree/page_sections/show.html.erb b/storefront/app/views/themes/default/spree/page_sections/show.html.erb
new file mode 100644
index 0000000000..71bc89ac4c
--- /dev/null
+++ b/storefront/app/views/themes/default/spree/page_sections/show.html.erb
@@ -0,0 +1,3 @@
+<%= turbo_frame_tag "section-#{@section.id}" do %>
+ <%= render_section(@section, section_variables, lazy_allowed: false) %>
+<% end %>
diff --git a/storefront/app/views/themes/default/spree/policies/show.html.erb b/storefront/app/views/themes/default/spree/policies/show.html.erb
new file mode 100644
index 0000000000..ed6ee8b29f
--- /dev/null
+++ b/storefront/app/views/themes/default/spree/policies/show.html.erb
@@ -0,0 +1,11 @@
+<div class="page-container py-12">
+ <h1 class="text-2xl tracking-tight text-center lg:text-left mb-3 uppercase">
+ <%= params[:id].titleize %>
+ </h1>
+ <p class="mb-8 text-center lg:text-left">
+ Last update: <%= @policy&.updated_at&.strftime('%d/%m/%Y') %>
+ </p>
+ <div class="mb-5">
+ <%= @policy&.to_s %>
+ </div>
+</div>