Skip to content

Commit

Permalink
Merge branch 'trade' into feature/SHOPBASE-27
Browse files Browse the repository at this point in the history
  • Loading branch information
ChelseyRiewerTrellis authored Aug 5, 2024
2 parents 3a15fee + fdc7179 commit 3902a14
Show file tree
Hide file tree
Showing 10 changed files with 583 additions and 106 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ name: CI
on: [push]
jobs:
tailwindcss-update:
name: Generate TailwindCSS
name: Generate Tailwind CSS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate TailwindCSS
uses: actions/checkout@v4
- name: Generate Tailwind CSS
uses: ZoeyVid/tailwindcss-update@main
with:
input: assets/app-tailwind.css
output: assets/app.css
params: ""
- name: Commit & Push
run: |
git add --force assets/app.css
git config user.name "GitHub"
git config user.email "[email protected]"
git diff-index --quiet HEAD || git commit -m "ci: tailwindcss-update"
Expand Down
18 changes: 17 additions & 1 deletion assets/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com
*/

/*
Expand Down Expand Up @@ -553,3 +553,19 @@ video {
--tw-contain-paint: ;
--tw-contain-style: ;
}

.twcss-mb-8 {
margin-bottom: 2rem;
}

.twcss-ml-auto {
margin-left: auto;
}

.twcss-block {
display: block;
}

.twcss-capitalize {
text-transform: capitalize;
}
19 changes: 19 additions & 0 deletions assets/cart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
class CartClearButton extends HTMLElement {
constructor() {
super();

this.addEventListener('click', (event) => {
event.preventDefault();
const formData = new FormData();
fetch(window.Shopify.routes.root + 'cart/clear.js', {
method: 'POST',
body: formData,
})
.then((response) => response.json())
.then((data) => window.location.reload());
});
}
}

customElements.define('cart-clear-button', CartClearButton);

class CartRemoveButton extends HTMLElement {
constructor() {
super();
Expand Down
401 changes: 400 additions & 1 deletion config/settings_data.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions config/settings_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,12 @@
"label": "t:settings_schema.cart.settings.show_vendor.label",
"default": false
},
{
"type": "checkbox",
"id": "show_clear_cart",
"label": "t:settings_schema.cart.settings.show_clear_cart.label",
"default": false
},
{
"type": "checkbox",
"id": "show_cart_note",
Expand Down
1 change: 0 additions & 1 deletion layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
}
}
{% endstyle %}


{{ 'base.css' | asset_url | stylesheet_tag }}
{{ 'app.css' | asset_url | stylesheet_tag }}
Expand Down
49 changes: 29 additions & 20 deletions locales/en.default.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin language editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{
"general": {
"password_page": {
Expand All @@ -7,7 +16,7 @@
"login_form_password_placeholder": "Your password",
"login_form_error": "Wrong password!",
"login_form_submit": "Enter",
"admin_link_html": "Are you the store owner? <a href=\"/admin\" class=\"link underlined-link\">Log in here</a>",
"admin_link_html": "Are you the store owner? <a href=\"\/admin\" class=\"link underlined-link\">Log in here<\/a>",
"powered_by_shopify_html": "This shop will be powered by {{ shopify }}"
},
"social": {
Expand Down Expand Up @@ -139,22 +148,22 @@
"multiples_of": "Increments of {{ quantity }}",
"min_of": "Min {{ quantity }}",
"max_of": "Max {{ quantity }}",
"in_cart_html": "<span class=\"quantity-cart\">{{ quantity }}</span> in cart",
"in_cart_html": "<span class=\"quantity-cart\">{{ quantity }}<\/span> in cart",
"note": "View quantity rules"
},
"volume_pricing": {
"title": "Volume Pricing",
"note": "Volume pricing available",
"minimum": "{{ quantity }}+",
"price_at_each": "at {{ price }}/ea",
"price_at_each": "at {{ price }}\/ea",
"price_range": "{{ minimum }} - {{ maximum }}"
},
"pickup_availability": {
"view_store_info": "View store information",
"check_other_stores": "Check availability at other stores",
"pick_up_available": "Pickup available",
"pick_up_available_at_html": "Pickup available at <span class=\"color-foreground\">{{ location_name }}</span>",
"pick_up_unavailable_at_html": "Pickup currently unavailable at <span class=\"color-foreground\">{{ location_name }}</span>",
"pick_up_available_at_html": "Pickup available at <span class=\"color-foreground\">{{ location_name }}<\/span>",
"pick_up_unavailable_at_html": "Pickup currently unavailable at <span class=\"color-foreground\">{{ location_name }}<\/span>",
"unavailable": "Couldn't load pickup availability",
"refresh": "Refresh"
},
Expand All @@ -177,7 +186,7 @@
"taxes_included": "Taxes included.",
"duties_included": "Duties included.",
"duties_and_taxes_included": "Duties and taxes included.",
"shipping_policy_html": "<a href=\"{{ link }}\">Shipping</a> calculated at checkout."
"shipping_policy_html": "<a href=\"{{ link }}\">Shipping<\/a> calculated at checkout."
},
"modal": {
"label": "Media gallery"
Expand Down Expand Up @@ -272,7 +281,6 @@
"announcement": "Announcement",
"announcement_bar": "Announcement bar"
},

"header": {
"announcement": "Announcement",
"menu": "Menu",
Expand All @@ -292,13 +300,14 @@
"empty": "Your cart is empty",
"cart_error": "There was an error while updating your cart. Please try again.",
"cart_quantity_error_html": "You can only add {{ quantity }} of this item to your cart.",
"duties_and_taxes_included_shipping_at_checkout_with_policy_html": "Duties and taxes included. Discounts and <a href=\"{{ link }}\">shipping</a> calculated at checkout.",
"cart_clear": "Clear cart",
"duties_and_taxes_included_shipping_at_checkout_with_policy_html": "Duties and taxes included. Discounts and <a href=\"{{ link }}\">shipping<\/a> calculated at checkout.",
"duties_and_taxes_included_shipping_at_checkout_without_policy": "Duties and taxes included. Discounts and shipping calculated at checkout.",
"taxes_included_shipping_at_checkout_with_policy_html": "Taxes included. Discounts and <a href=\"{{ link }}\">shipping</a> calculated at checkout.",
"taxes_included_shipping_at_checkout_with_policy_html": "Taxes included. Discounts and <a href=\"{{ link }}\">shipping<\/a> calculated at checkout.",
"taxes_included_shipping_at_checkout_without_policy": "Taxes included. Discounts and shipping calculated at checkout.",
"duties_included_taxes_at_checkout_shipping_at_checkout_with_policy_html": "Duties included. Taxes, discounts and <a href=\"{{ link }}\">shipping</a> calculated at checkout.",
"duties_included_taxes_at_checkout_shipping_at_checkout_with_policy_html": "Duties included. Taxes, discounts and <a href=\"{{ link }}\">shipping<\/a> calculated at checkout.",
"duties_included_taxes_at_checkout_shipping_at_checkout_without_policy": "Duties included. Taxes, discounts and shipping calculated at checkout.",
"taxes_at_checkout_shipping_at_checkout_with_policy_html": "Taxes, discounts and <a href=\"{{ link }}\">shipping</a> calculated at checkout.",
"taxes_at_checkout_shipping_at_checkout_with_policy_html": "Taxes, discounts and <a href=\"{{ link }}\">shipping<\/a> calculated at checkout.",
"taxes_at_checkout_shipping_at_checkout_without_policy": "Taxes, discounts and shipping calculated at checkout.",
"headings": {
"product": "Product",
Expand All @@ -310,7 +319,7 @@
"update": "Update",
"login": {
"title": "Have an account?",
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Log in</a> to check out faster."
"paragraph_html": "<a href=\"{{ link }}\" class=\"link underlined-link\">Log in<\/a> to check out faster."
}
},
"footer": {
Expand All @@ -331,7 +340,7 @@
"collection_template": {
"empty": "No products found",
"title": "Collection",
"use_fewer_filters_html": "Use fewer filters or <a class=\"{{ class }}\" href=\"{{ link }}\">remove all</a>"
"use_fewer_filters_html": "Use fewer filters or <a class=\"{{ class }}\" href=\"{{ link }}\">remove all<\/a>"
},
"video": {
"load_video": "Load video: {{ description }}"
Expand All @@ -351,7 +360,7 @@
"quick_order_list": {
"product_total": "Product subtotal",
"view_cart": "View cart",
"each": "{{ money }}/ea",
"each": "{{ money }}\/ea",
"product": "Product",
"variant": "Variant",
"variant_total": "Variant total",
Expand All @@ -375,13 +384,13 @@
}
},
"localization": {
"country_label": "Country/region",
"country_label": "Country\/region",
"language_label": "Language",
"update_language": "Update language",
"update_country": "Update country/region",
"update_country": "Update country\/region",
"search": "Search",
"popular_countries_regions": "Popular countries/regions",
"country_results_count": "{{ count }} countries/regions found"
"popular_countries_regions": "Popular countries\/regions",
"country_results_count": "{{ count }} countries\/regions found"
},
"customer": {
"account": {
Expand Down Expand Up @@ -410,9 +419,9 @@
"address1": "Address 1",
"address2": "Address 2",
"city": "City",
"country": "Country/region",
"country": "Country\/region",
"province": "Province",
"zip": "Postal/ZIP code",
"zip": "Postal\/ZIP code",
"phone": "Phone",
"set_default": "Set as default address",
"add": "Add address",
Expand Down
Loading

0 comments on commit 3902a14

Please sign in to comment.