Skip to content
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

Cria arquivo de scripts separado #296

Merged
merged 5 commits into from
Feb 4, 2025
Merged

Conversation

george-gca
Copy link
Contributor

@george-gca george-gca commented Feb 1, 2025

Descrição de PR

Cria o arquivo de script que lida com os cards num arquivo próprio:

Antes:

image

Depois:

image

Issue relacionado

Motivações

Não só pro HTML ficar mais bonito, mas com o js não estando inline o jekyll-minifier consegue minificar também esse arquivo js.

Informações adicionais

Eu tive que fazer mais algumas mudanças, como mover todas as strings traduzidas que fazem parte da UI do site (e não dos cards) de _pages/LANG/search.md pra _data/LANG/strings.yml pra poder isso funcionar devidamente.

….liquid

Signed-off-by: George Araújo <george.gcac@gmail.com>
Signed-off-by: George Araújo <george.gcac@gmail.com>
Copy link

netlify bot commented Feb 1, 2025

Deploy Preview for diciotech ready!

Name Link
🔨 Latest commit a82bd4b
🔍 Latest deploy log https://app.netlify.com/sites/diciotech/deploys/679e809c358bae000898e20f
😎 Deploy Preview https://deploy-preview-296--diciotech.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

george-gca and others added 3 commits February 1, 2025 17:13
Signed-off-by: George Araújo <george.gcac@gmail.com>
Signed-off-by: George Araújo <george.gcac@gmail.com>
@george-gca
Copy link
Contributor Author

PS: ignora o sort data files e o prettier nessa PR, preferi não mexer nisso agora e resolver tudo na do prettier.

@george-gca george-gca changed the title Change files Cria arquivo de scripts separado Feb 1, 2025
@levxyca levxyca requested review from Copilot and levxyca February 3, 2025 11:33
@levxyca levxyca added bug Something isn't working help wanted Extra attention is needed labels Feb 3, 2025
@levxyca levxyca added this to the v2 milestone Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 6 out of 12 changed files in this pull request and generated no comments.

Files not reviewed (6)
  • _includes/script.js.liquid: Language not supported
  • _json/en-us/cards.json.liquid: Language not supported
  • _json/pt-br/cards.json.liquid: Language not supported
  • _layouts/base.liquid: Language not supported
  • _scripts/scripts.js.liquid: Language not supported
  • _pages/en-us/search.md: Evaluated as low risk
Copy link
Owner

@levxyca levxyca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boaaa 🚀 e super obrigada por ter atualizado a documentação junto também!

@levxyca levxyca merged commit f823f03 into levxyca:main Feb 4, 2025
8 of 10 checks passed
@george-gca george-gca deleted the change_files branch February 4, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Mover script que tá inline pra arquivo próprio
2 participants