Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ e este projeto adere ao [Versionamento Semântico](https://semver.org/lang/pt-BR

- Caminho da page principal ([9f5b8a0](https://github.com/kellen-xavier/ladydebug.github.io/commit/9f5b8a0552465794c211bf5fea064f2015440d14))
- Janelas da doca coladas na navbar, botão fechar, e limpa rodapé duplicado ([38e09eb](https://github.com/kellen-xavier/ladydebug.github.io/commit/38e09eb067e06f43b0502571c1990cada91ab555))

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ Pra trocar o link do Spotify ou adicionar um evento, é só editar os `.yaml`
acima — não precisa mexer nos templates.

Ícones: [Pixelarticons](https://github.com/halfmage/pixelarticons) (MIT).

Fonte: [Pixelify Sans](https://fonts.google.com/specimen/Pixelify+Sans) (OFL,
licença em `assets/font/pixelify-sans/OFL.txt`), self-hosted como WOFF2 —
usada só dentro da doca e das janelas, não no resto do site. Emitida via
`layouts/partials/custom/head-end.html` (não dá pra usar `url()` relativo
direto no `desktop-dock.css`, que é um CSS puro, sem processamento de Hugo).
69 changes: 7 additions & 62 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
--ld-fg: #2b2622;
--ld-muted: #8a7f6d;
--ld-border: #e6dcc6;
--ld-accent: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));

/* Cor de destaque, usada em links, marcadores e nos "Destaques" da home. */
--ld-accent: #d468a5;
}

.dark {
Expand Down Expand Up @@ -49,6 +51,7 @@ body,
/* Destaques (recolhível, sem JS) */
.ld-highlights {
border: 1px solid var(--ld-border);
border-left: 3px solid var(--ld-accent);
border-radius: 0.75rem;
background: var(--ld-bg-soft);
margin: 0 0 2.5rem;
Expand Down Expand Up @@ -105,47 +108,11 @@ body,
text-decoration: underline;
}

/* Alternância Lista / Grade */
.ld-controls {
display: flex;
justify-content: flex-end;
margin: 0 0 1.5rem;
}

.ld-view-toggle {
display: inline-flex;
gap: 0.25rem;
padding: 0.25rem;
border: 1px solid var(--ld-border);
border-radius: 999px;
background: var(--ld-bg-soft);
}

.ld-view-toggle__btn {
border: none;
background: transparent;
padding: 0.35rem 0.9rem;
border-radius: 999px;
font-size: 0.85rem;
cursor: pointer;
color: var(--ld-muted);
transition:
background-color 0.15s ease,
color 0.15s ease;
}

.ld-view-toggle__btn[aria-pressed="true"] {
background: var(--ld-bg);
color: var(--ld-fg);
font-weight: 600;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ld-view-toggle__btn:hover {
color: var(--ld-fg);
/* Lista de posts agrupada por mês */
.ld-post-list {
margin-top: 1rem;
}

/* Lista de posts agrupada por mês */
.ld-group {
margin-bottom: 2.5rem;
}
Expand Down Expand Up @@ -190,28 +157,6 @@ body,
font-size: 0.8rem;
}

/* Modo grade */
.ld-post-list[data-view="grid"] .ld-group__items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.75rem;
list-style: none;
padding-left: 0;
}

.ld-post-list[data-view="grid"] .ld-post {
border: 1px solid var(--ld-border);
border-radius: 0.6rem;
padding: 0.85rem 1rem;
background: var(--ld-bg-soft);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ld-post-list[data-view="grid"] .ld-post:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Navegação "Nesta página" */
.ld-aside__inner {
position: sticky;
Expand Down
9 changes: 8 additions & 1 deletion assets/css/desktop-dock.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
--dock-height: 4rem;
--bevel-light: rgba(255, 255, 255, 0.75);
--bevel-dark: rgba(0, 0, 0, 0.35);
--dock-font: "Pixelify Sans", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

body {
padding-bottom: var(--dock-height);
}

/* Fonte pixelada só nos blocos da doca (rodapé) e nas janelas
Música/Calendário/Rascunhos — não afeta o resto do site. */
.dock,
.dock-window {
font-family: var(--dock-font);
}

.dock {
position: fixed;
left: 0;
Expand Down Expand Up @@ -129,7 +137,6 @@ body {
background: var(--ld-accent);
color: var(--ld-bg);
border-bottom: 2px solid var(--bevel-dark);
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.04em;
Expand Down
93 changes: 93 additions & 0 deletions assets/font/pixelify-sans/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2021 The Pixelify Sans Project Authors (https://github.com/eifetx/Pixelify-Sans)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file added assets/font/pixelify-sans/PixelifySans-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file added assets/image/icons/cat-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/image/icons/hello.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions assets/js/home.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ featured: true

Evitando o uso de *Falsos Positivos* com Cypress. Segue abaixo um exemplo de um código, e um arquivo commands com um simples login na aplicação:

![exemplo-praticas-ruins](/assets/image/2024/exemplo-praticas-ruins.png)
![exemplo-praticas-ruins](exemplo-praticas-ruins.png)

Essa aplicação estava ocorrendo um certo erro ao realizar o login, e foi adicionado o seguinte trecho de código na automação para poder realizar o login com sucesso:

![o que o erro faz?](./assets/image/2024/o_que_o_erro_faz.png)
![o que o erro faz?](o_que_o_erro_faz.png)

Mas o que esse trecho diz? Serve para suprimir os erros que ocorrem na aplicação durante a execução dos testes do Cypress.

Como assim? Ao usar ```cy.on('uncaught:exception')``` e retornar false, está instruindo o Cypress a ignorar qualquer erro que ocorra na sua aplicação. Isso permite que o teste continue mesmo que a página ainda não esteja totalmente carregada, dando tempo para que os elementos sejam renderizados antes que o Cypress tente interagir com eles.

Por que remover ```cy.on('uncaught:exception')``` é importante? Nesse caso, como está sendo manipulado o teste, forçando a “ignorar esse erro retornando que ele seja falso” é adicionado um falso positivo no nosso teste. Segue abaixo:

![alt text](./assets/image/2024/login_com_sucesso.png)
![alt text](login_com_sucesso.png)

## Alternativas e soluções para lidar com o tempo de carregamento e evitar adicionar “falso positivo”

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Para um trabalho de Pós-graduação eu tinha configurado para um projeto de est

`docker rm sonarqube`

![image1.png](content/docs/2025/setembro/20/img/image1.png)
![image1.png](image1.png)

Agora posso executar o comando para subir um novo container:

Expand All @@ -25,7 +25,7 @@ Agora posso executar o comando para subir um novo container:
> Sim, a versão é gratuíta, para aprendizado antes de sair pagando algo que não sabe usar.
>

![image2.png](content/docs/2025/setembro/20/img/image2.png)
![image2.png](image2.png)

### **Opção 2: Substituir o container automaticamente**

Expand Down Expand Up @@ -60,11 +60,11 @@ Aqui a primeira parte de ajustar o docker então precisa se atentar a deixar ele

Pronto! SonarQube rodando localmente.

![image3.png](content/docs/2025/setembro/20/img/image3.png)
![image3.png](image3.png)

Ajuste as configurações de senha e segue para a página:

![image.png](Configurando%20o%20SonarQube%20Localmente/image%203.png)
![image4.png](image4.png)

### **Configuração do SonarQube**

Expand Down Expand Up @@ -110,7 +110,7 @@ sonar.login=SEU_TOKEN_AQUI

## **Problemas encontrados**

![problema encontrado ao rodar o escaneamento 2025-09-20_09-24.png](Configurando%20o%20SonarQube%20Localmente/problema_encontrado_ao_rodar_o_escaneamento_2025-09-20_09-24.png)
![problema encontrado ao rodar o escaneamento](problema-encontrado-ao-rodar-o-escaneamento-2025-09-20-09-24.png)

ERROR: You're not authorized to run analysis. Please contact the project administrator.

Expand All @@ -122,6 +122,6 @@ O SonarScanner está tentando enviar os resultados da análise para o SonarQube,

Agora pronto: quando executar o comando `sonar-scanner` vai executar o escaneamento no projeto e seguida mostrar em tela os resultados.

![TERMINAL_SUCESS_2025-09-20_09-33.png](content/docs/2025/setembro/20/img/TERMINAL_SUCESS_2025-09-20_09-33.png)
![terminal com sucesso](terminal-sucesso-2025-09-20-09-33.png)

![EXECTUADO 2025-09-20_09-32.png](content/docs/2025/setembro/20/img/EXECTUADO_2025-09-20_09-32.png)
![executado](executado-2025-09-20-09-32.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading