Repository navigation
Translate "WeakRef and FinalizationRegistry" #491
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,29 +4,29 @@ | |
| <head> | ||
| <meta charset="utf-8"> | ||
| <link rel="stylesheet" href="index.css"> | ||
| <title>Photo Library Collage</title> | ||
| <title>Colagem da Biblioteca de Fotos</title> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mesmo caso: textos traduzidos, mas |
||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
| <div class="app"> | ||
| <header class="header"> | ||
| <h1 class="header-text"> | ||
| Photo Library Collage | ||
| Colagem da Biblioteca de Fotos | ||
| </h1> | ||
| </header> | ||
| <div class="container"> | ||
| <div class="item item--scrollable"> | ||
| <!--Thumbnails--> | ||
| <!--Miniaturas--> | ||
| <div class="thumbnails-container"></div> | ||
| </div> | ||
| <div class="item"> | ||
| <div> | ||
| <div class=actions> | ||
| <select class="select"></select> | ||
| <button class="btn btn--primary btn-create-collage"> Create collage </button> | ||
| <button class="btn btn--secondary btn-start-over"> Start over </button> | ||
| <button class="btn btn--success btn-download" onClick={downloadCollage}> Download </button> | ||
| <button class="btn btn--primary btn-create-collage"> Criar colagem </button> | ||
| <button class="btn btn--secondary btn-start-over"> Recomeçar </button> | ||
| <button class="btn btn--success btn-download" onClick={downloadCollage}> Baixar </button> | ||
| </div> | ||
| <div class="previewContainer"> | ||
| <div class="spinnerContainer spinnerContainer--hidden"> | ||
|
|
@@ -36,7 +36,7 @@ <h1 class="header-text"> | |
| <canvas class="canvas"></canvas> | ||
| </div> | ||
| <div class="loggerContainer"> | ||
| <p class="logger-title">Logger:</p> | ||
| <p class="logger-title">Log:</p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -218,13 +218,13 @@ export const CONSOLE_ERROR = [ | |
|
|
||
| // Layouts. | ||
| export const LAYOUT_4_COLUMNS = { | ||
| name: "Layout 4 columns", | ||
| name: "Layout de 4 colunas", | ||
| columns: 4, | ||
| itemWidth: 240, | ||
| itemHeight: 240, | ||
| }; | ||
| export const LAYOUT_8_COLUMNS = { | ||
| name: "Layout 8 columns", | ||
| name: "Layout de 8 colunas", | ||
| columns: 8, | ||
| itemWidth: 240, | ||
| itemHeight: 240, | ||
|
|
@@ -236,7 +236,7 @@ export const createImageFile = async (src) => | |
| const img = new Image(); | ||
| img.src = src; | ||
| img.onload = () => resolve(img); | ||
| img.onerror = () => reject(new Error("Failed to construct image.")); | ||
| img.onerror = () => reject(new Error("Falha ao criar a imagem.")); | ||
| }); | ||
|
|
||
| export const loadImage = async (url) => { | ||
|
|
@@ -259,13 +259,13 @@ export const weakRefCache = (fetchImg) => { | |
| if (cachedImg && !cachedImg.deref()) { | ||
| imgCache.delete(imgName); | ||
| console.log( | ||
| `%cCLEANED_IMAGE: Url: ${imgName}, Size: ${size}, Type: ${type}`, | ||
| `%cCLEANED_IMAGE: URL: ${imgName}, Tamanho: ${size}, Tipo: ${type}`, | ||
| CONSOLE_ERROR, | ||
| ); | ||
|
|
||
| const logEl = document.createElement("div"); | ||
| logEl.classList.add("logger-item", "logger--error"); | ||
| logEl.innerHTML = `CLEANED_IMAGE: Url: ${imgName}, Size: ${size}, Type: ${type}`; | ||
| logEl.innerHTML = `CLEANED_IMAGE: URL: ${imgName}, Tamanho: ${size}, Tipo: ${type}`; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Log traduzido ( |
||
| loggerContainerEl.appendChild(logEl); | ||
| loggerContainerEl.scrollTop = loggerContainerEl.scrollHeight; | ||
| } | ||
|
|
@@ -276,13 +276,13 @@ export const weakRefCache = (fetchImg) => { | |
|
|
||
| if (cachedImg?.deref() !== undefined) { | ||
| console.log( | ||
| `%cCACHED_IMAGE: Url: ${imgName}, Size: ${cachedImg.size}, Type: ${cachedImg.type}`, | ||
| `%cCACHED_IMAGE: URL: ${imgName}, Tamanho: ${cachedImg.size}, Tipo: ${cachedImg.type}`, | ||
| CONSOLE_SUCCESS, | ||
| ); | ||
|
|
||
| const logEl = document.createElement("div"); | ||
| logEl.classList.add("logger-item", "logger--success"); | ||
| logEl.innerHTML = `CACHED_IMAGE: Url: ${imgName}, Size: ${cachedImg.size}, Type: ${cachedImg.type}`; | ||
| logEl.innerHTML = `CACHED_IMAGE: URL: ${imgName}, Tamanho: ${cachedImg.size}, Tipo: ${cachedImg.type}`; | ||
| loggerContainerEl.appendChild(logEl); | ||
| loggerContainerEl.scrollTop = loggerContainerEl.scrollHeight; | ||
|
|
||
|
|
@@ -291,13 +291,13 @@ export const weakRefCache = (fetchImg) => { | |
|
|
||
| const newImg = await fetchImg(imgName); | ||
| console.log( | ||
| `%cFETCHED_IMAGE: Url: ${imgName}, Size: ${newImg.size}, Type: ${newImg.type}`, | ||
| `%cFETCHED_IMAGE: URL: ${imgName}, Tamanho: ${newImg.size}, Tipo: ${newImg.type}`, | ||
| CONSOLE_PRIMARY, | ||
| ); | ||
|
|
||
| const logEl = document.createElement("div"); | ||
| logEl.classList.add("logger-item", "logger--primary"); | ||
| logEl.innerHTML = `FETCHED_IMAGE: Url: ${imgName}, Size: ${newImg.size}, Type: ${newImg.type}`; | ||
| logEl.innerHTML = `FETCHED_IMAGE: URL: ${imgName}, Tamanho: ${newImg.size}, Tipo: ${newImg.type}`; | ||
| loggerContainerEl.appendChild(logEl); | ||
| loggerContainerEl.scrollTop = loggerContainerEl.scrollHeight; | ||
|
|
||
|
|
||
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.
Conteúdo agora está em português, mas
<html lang="en">(linha 2) não foi alterado. Leitores de tela/hifenização vão tratar o texto como inglês. Sugestão:<html lang="pt-BR">.