diff --git a/.coderabbit.yml b/.coderabbit.yml new file mode 100644 index 0000000..cfe5ff5 --- /dev/null +++ b/.coderabbit.yml @@ -0,0 +1,2 @@ +reviews: + path_filters: ["**/*","*.*"] \ No newline at end of file diff --git a/.theme-check.yml b/.theme-check.yml new file mode 100644 index 0000000..c7fbaef --- /dev/null +++ b/.theme-check.yml @@ -0,0 +1,3 @@ +# Explicitly enable all checks (by default, all are enabled) +checks: + all: true \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..e1518fb --- /dev/null +++ b/assets/style.css @@ -0,0 +1,8 @@ +/* CSS with deliberate issues */ +body { + font-family: Arial sans-serif /* Missing comma between fonts and no semicolon */ + color: #333 +} +.invalid-selector { + --unknown: 123 /* Invalid property/value syntax */ +} diff --git a/assets/theme.js b/assets/theme.js new file mode 100644 index 0000000..cde71ee --- /dev/null +++ b/assets/theme.js @@ -0,0 +1,6 @@ +// JavaScript with syntax errors +function initTheme() { + console.log("Initializing theme... // Missing closing quote and parenthesis +} + +initTheme(); diff --git a/config/settings_schema.json b/config/settings_schema.json new file mode 100644 index 0000000..680f921 --- /dev/null +++ b/config/settings_schema.json @@ -0,0 +1,13 @@ +[ + { + "name": "General", + "settings": [ + { + "type": "text", + "id": "title", + "label": "Store Title", + "default": "My Shopify Store", + } // Trailing comma causes invalid JSON + ] + } +] diff --git a/layout/theme.liquid b/layout/theme.liquid new file mode 100644 index 0000000..2deb9e1 --- /dev/null +++ b/layout/theme.liquid @@ -0,0 +1,14 @@ + + + + + {{ page_title {# Missing closing curly brace and invalid Liquid tag #} + {{ 'style.css' | asset_url | stylesheet_tag }} + + + {% include 'header' %} {# Assume this is meant to call a section/snippet but syntax might be off #} + {{ content_for_layout } + {% include 'footer' %} + {{ 'theme.js' | asset_url | script_tag }} + + diff --git a/locales/en.default.json b/locales/en.default.json new file mode 100644 index 0000000..49aa028 --- /dev/null +++ b/locales/en.default.json @@ -0,0 +1,5 @@ +{ + "general": { + "welcome": "Welcome to our store!", // Trailing comma causes invalid JSON + } +} diff --git a/sections/footer.liquid b/sections/footer.liquid new file mode 100644 index 0000000..a6ae0cd --- /dev/null +++ b/sections/footer.liquid @@ -0,0 +1,4 @@ + diff --git a/sections/header.liquid b/sections/header.liquid new file mode 100644 index 0000000..4b6b69b --- /dev/null +++ b/sections/header.liquid @@ -0,0 +1,9 @@ +
+

{{ settings.title }

{# Missing closing double curly brace on settings.title #} + +
diff --git a/snippets/product-card.liquid b/snippets/product-card.liquid new file mode 100644 index 0000000..350d551 --- /dev/null +++ b/snippets/product-card.liquid @@ -0,0 +1,4 @@ +
+

{{ product.title

{# Missing closing curly brace for product.title #} +

Price: {{ product.price | money }}

diff --git a/templates/index.liquid b/templates/index.liquid new file mode 100644 index 0000000..a27c7b2 --- /dev/null +++ b/templates/index.liquid @@ -0,0 +1,8 @@ +{% section 'header' %} +
+

Featured Products

+ {% for product in collections.frontpage.products %} + {% include 'product-card' {# Missing closing %} tag #} + {% endfor %} +
+{% section 'footer' {# Using "section" instead of include for footer, and missing closing %} #} diff --git a/templates/product.liquid b/templates/product.liquid new file mode 100644 index 0000000..067432a --- /dev/null +++ b/templates/product.liquid @@ -0,0 +1,8 @@ +{% section 'header' %} +
+
+

{{ product.title }}

+
{{ product.description {# Missing closing curly brace #} +
+
+{% section 'footer' %}