Skip to content

Commit 70319ee

Browse files
committed
lint
Signed-off-by: Vladimir Mandic <[email protected]>
1 parent d2c24b1 commit 70319ee

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

cli/localize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const { GoogleGenerativeAI } = require('@google/generative-ai');
88
const api_key = process.env.GOOGLE_AI_API_KEY;
99
const model = 'gemini-2.5-flash';
1010
const prompt = `
11+
// eslint-disable-next-line max-len
1112
Translate attached JSON from English to {language} using following rules: fields id, label and reload should be preserved from original, field localized should be a translated version of field label and field hint should be translated in-place. if field is less than 3 characters, do not translate it and keep it as is. Every JSON entry should have id, label, localized, reload and hint fields. Output should be pure JSON without any additional text. To better match translation, context of the text is related to Stable Diffusion and topic of Generative AI.`;
1213
const languages = {
1314
hr: 'Croatian',

javascript/black-teal.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,4 +315,4 @@ textarea[rows="1"] { height: 33px !important; width: 99% !important; padding: 8p
315315
--button-transition: none;
316316
--size-9: 64px;
317317
--size-14: 64px;
318-
}
318+
}

javascript/extraNetworks.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,12 @@ function extraNetworksFilterVersion(event) {
299299
if (!cardContainer) return;
300300
if (cardContainer.dataset.activeVersion === version) {
301301
cardContainer.dataset.activeVersion = '';
302-
cardContainer.querySelectorAll('.card').forEach(card => card.style.display = '');
302+
cardContainer.querySelectorAll('.card').forEach((card) => card.style.display = '');
303303
} else {
304304
cardContainer.dataset.activeVersion = version;
305-
cardContainer.querySelectorAll('.card').forEach(card => {
306-
if (card.dataset.version === version) {
307-
card.style.display = '';
308-
} else {
309-
card.style.display = 'none';
310-
}
305+
cardContainer.querySelectorAll('.card').forEach((card) => {
306+
if (card.dataset.version === version) card.style.display = '';
307+
else card.style.display = 'none';
311308
});
312309
}
313310
}

0 commit comments

Comments
 (0)