-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/product categories list #9
base: develop
Are you sure you want to change the base?
Conversation
bydlowski
commented
Oct 19, 2020
- Criação do mockdata;
- Criação do store;
- Mudanças no Header;
- Criação do componente de Menu e enuCategory;
- Mudanças para usar typescript;
PS: se der, dá uma checada geral no que eu foz com typescript. Faz tempo que não usava. |
@@ -9,7 +9,10 @@ | |||
# install dependencies | |||
$ yarn install | |||
|
|||
# serve with hot reload at localhost:3000 | |||
# serve mockdata with hot reload at localhost:3000 | |||
$ yarn mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -0,0 +1,20 @@ | |||
<template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tava pensando que aqui poderíamos usar o componente Navigation-Drawer, no lugar de v-menu , ele se parece mais com o tipo de menu lateral que normalmente é utilizado.
https://next.vuetifyjs.com/en/components/navigation-drawers/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Podemos mudar sim! Eu só segui o que já estava meio que iniciado. Vejam o que acham melhor.
Talvez podemos criar um novo card pra fazer essa alteração pq esse já lida com a estrutura pra pegar as categorias na api, criar subcategorias, etc.
} | ||
|
||
created() { | ||
this.$accessor.app.getCategories() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O Fetch das categorias acho que poderíamos fazer via Server Side Rendering, dai quando o cliente entrasse no site elas seriam buscadas no backend e o cliente não veria o loading...
, depois, por motivos de SEO vamos precisar fazer isso pra lista de produtos também. Da uma olhada nisso pra ver se ajuda entender: https://nuxtjs.org/guides/features/data-fetching/
ps.: SSR pode ser feito em outro PR. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isso, tava no meu plano sim converter pra SSR. Vou criar um card lá pra implementar essa mudança.