-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use system page properties (#52)
* feat(item): use item page properties * feat(item-list): add filtering logic * feat(category): use category page properties * feat(shop): use shop page properties * feat(search): use search page properties * fix(shop): fix shop route * fix(search): remove unneeded items schema * fix: add `square_online_id` Co-authored-by: Andrew Yee <[email protected]> * fix(item-list): use `square_online_id` with `category_ids` * fix(search): fix search term reference --------- Co-authored-by: Andrew Yee <[email protected]>
- Loading branch information
1 parent
bca089a
commit b72d603
Showing
8 changed files
with
118 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"route": "shop/:name/:id", | ||
"template": "templates/store/category", | ||
"props": { | ||
"category": { | ||
"filters": { | ||
"id": "request_data(path.id)", | ||
"square_online_id": true | ||
} | ||
}, | ||
"categories": { | ||
"filters": [] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"route": "product/:name/:id", | ||
"template": "templates/store/item", | ||
"props": { | ||
"item": { | ||
"filters": { | ||
"id": "request_data(path.id)", | ||
"square_online_id": true | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"route": "s/search", | ||
"template": "templates/store/search", | ||
"props": { | ||
"search_term": "request_data(query.q)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"route": "s/shop", | ||
"template": "templates/store/shop", | ||
"props": { | ||
"categories": { | ||
"filters": [] | ||
}, | ||
"category_hierarchy": { | ||
"filters": [] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters