@jjlmoya/utils-developer 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/category/i18n/fr.ts +1 -1
- package/src/category/i18n/ru.ts +1 -1
- package/src/category/index.ts +2 -1
- package/src/entries.ts +4 -1
- package/src/index.ts +2 -0
- package/src/layouts/PreviewLayout.astro +1 -0
- package/src/pages/[locale]/[slug].astro +29 -12
- package/src/tests/diacritics_density.test.ts +118 -0
- package/src/tests/inverted_punctuation.test.ts +113 -0
- package/src/tests/locale_completeness.test.ts +2 -3
- package/src/tests/no_en_dash.test.ts +73 -0
- package/src/tests/pagespeed_best_practices.test.ts +198 -0
- package/src/tests/script_density.test.ts +94 -0
- package/src/tests/shared-test-helpers.ts +56 -0
- package/src/tests/tool_exports.test.ts +34 -0
- package/src/tests/tool_validation.test.ts +2 -2
- package/src/tool/aspectRatio/component.astro +3 -1
- package/src/tool/aspectRatio/i18n/de.ts +1 -1
- package/src/tool/aspectRatio/i18n/fr.ts +1 -1
- package/src/tool/aspectRatio/i18n/pl.ts +2 -2
- package/src/tool/aspectRatio/i18n/ru.ts +4 -4
- package/src/tool/aspectRatio/i18n/zh.ts +1 -1
- package/src/tool/aspectRatio/seo.astro +2 -1
- package/src/tool/calculadoraTiempoDatos/i18n/de.ts +1 -1
- package/src/tool/calculadoraTiempoDatos/i18n/pl.ts +1 -1
- package/src/tool/calculadoraTiempoDatos/i18n/ru.ts +5 -5
- package/src/tool/calculadoraTiempoDatos/i18n/sv.ts +5 -5
- package/src/tool/calculadoraTiempoDatos/i18n/zh.ts +1 -1
- package/src/tool/calculadoraTiempoDatos/seo.astro +2 -1
- package/src/tool/colorConverter/component.astro +3 -3
- package/src/tool/colorConverter/i18n/de.ts +1 -1
- package/src/tool/colorConverter/i18n/ru.ts +2 -2
- package/src/tool/colorConverter/seo.astro +2 -1
- package/src/tool/conversorExcelCsvHtml/i18n/es.ts +1 -1
- package/src/tool/conversorExcelCsvHtml/i18n/pl.ts +1 -1
- package/src/tool/conversorExcelCsvHtml/i18n/ru.ts +2 -2
- package/src/tool/conversorExcelCsvHtml/i18n/zh.ts +2 -2
- package/src/tool/conversorExcelCsvHtml/seo.astro +2 -1
- package/src/tool/cronGenerator/i18n/de.ts +4 -4
- package/src/tool/cronGenerator/i18n/en.ts +1 -1
- package/src/tool/cronGenerator/i18n/es.ts +2 -2
- package/src/tool/cronGenerator/i18n/fr.ts +5 -5
- package/src/tool/cronGenerator/i18n/id.ts +1 -1
- package/src/tool/cronGenerator/i18n/nl.ts +1 -1
- package/src/tool/cronGenerator/i18n/pl.ts +8 -8
- package/src/tool/cronGenerator/i18n/pt.ts +1 -1
- package/src/tool/cronGenerator/i18n/ru.ts +9 -9
- package/src/tool/cronGenerator/i18n/sv.ts +1 -1
- package/src/tool/cronGenerator/i18n/zh.ts +3 -3
- package/src/tool/cronGenerator/seo.astro +2 -1
- package/src/tool/cssSpecificityCalculator/i18n/de.ts +1 -1
- package/src/tool/cssSpecificityCalculator/i18n/fr.ts +3 -3
- package/src/tool/cssSpecificityCalculator/i18n/pl.ts +2 -2
- package/src/tool/cssSpecificityCalculator/i18n/ru.ts +2 -2
- package/src/tool/cssSpecificityCalculator/seo.astro +2 -1
- package/src/tool/cssToInlineConverter/i18n/de.ts +6 -6
- package/src/tool/cssToInlineConverter/i18n/es.ts +1 -1
- package/src/tool/cssToInlineConverter/i18n/fr.ts +3 -3
- package/src/tool/cssToInlineConverter/seo.astro +2 -1
- package/src/tool/duplicateCssRemover/i18n/de.ts +7 -7
- package/src/tool/duplicateCssRemover/i18n/fr.ts +1 -1
- package/src/tool/duplicateCssRemover/i18n/id.ts +1 -1
- package/src/tool/duplicateCssRemover/i18n/nl.ts +1 -1
- package/src/tool/duplicateCssRemover/i18n/pl.ts +1 -1
- package/src/tool/duplicateCssRemover/i18n/pt.ts +1 -1
- package/src/tool/duplicateCssRemover/i18n/ru.ts +3 -3
- package/src/tool/duplicateCssRemover/i18n/sv.ts +1 -1
- package/src/tool/duplicateCssRemover/seo.astro +2 -1
- package/src/tool/generadorSecurityTxt/i18n/de.ts +5 -5
- package/src/tool/generadorSecurityTxt/i18n/ru.ts +2 -2
- package/src/tool/generadorSecurityTxt/seo.astro +2 -1
- package/src/tool/hashGenerator/i18n/ru.ts +5 -5
- package/src/tool/hashGenerator/i18n/zh.ts +2 -2
- package/src/tool/hashGenerator/seo.astro +2 -1
- package/src/tool/inspectorCertificadosSsl/i18n/de.ts +6 -6
- package/src/tool/inspectorCertificadosSsl/i18n/ru.ts +5 -5
- package/src/tool/inspectorCertificadosSsl/seo.astro +2 -1
- package/src/tool/jsonFormatter/i18n/de.ts +4 -4
- package/src/tool/jsonFormatter/i18n/en.ts +4 -4
- package/src/tool/jsonFormatter/i18n/es.ts +4 -4
- package/src/tool/jsonFormatter/i18n/fr.ts +4 -4
- package/src/tool/jsonFormatter/i18n/id.ts +4 -4
- package/src/tool/jsonFormatter/i18n/it.ts +4 -4
- package/src/tool/jsonFormatter/i18n/ja.ts +4 -4
- package/src/tool/jsonFormatter/i18n/ko.ts +4 -4
- package/src/tool/jsonFormatter/i18n/nl.ts +4 -4
- package/src/tool/jsonFormatter/i18n/pl.ts +4 -4
- package/src/tool/jsonFormatter/i18n/pt.ts +4 -4
- package/src/tool/jsonFormatter/i18n/ru.ts +5 -5
- package/src/tool/jsonFormatter/i18n/sv.ts +4 -4
- package/src/tool/jsonFormatter/i18n/tr.ts +4 -4
- package/src/tool/jsonFormatter/i18n/zh.ts +5 -5
- package/src/tool/jsonFormatter/seo.astro +2 -1
- package/src/tool/keycode/i18n/de.ts +7 -7
- package/src/tool/keycode/i18n/en.ts +5 -5
- package/src/tool/keycode/i18n/es.ts +5 -5
- package/src/tool/keycode/i18n/fr.ts +7 -7
- package/src/tool/keycode/i18n/id.ts +5 -5
- package/src/tool/keycode/i18n/it.ts +5 -5
- package/src/tool/keycode/i18n/ja.ts +5 -5
- package/src/tool/keycode/i18n/ko.ts +5 -5
- package/src/tool/keycode/i18n/nl.ts +5 -5
- package/src/tool/keycode/i18n/pl.ts +7 -7
- package/src/tool/keycode/i18n/pt.ts +5 -5
- package/src/tool/keycode/i18n/ru.ts +6 -6
- package/src/tool/keycode/i18n/sv.ts +5 -5
- package/src/tool/keycode/i18n/tr.ts +5 -5
- package/src/tool/keycode/i18n/zh.ts +5 -5
- package/src/tool/keycode/seo.astro +2 -1
- package/src/tool/llmCostCalculator/component.astro +1 -2
- package/src/tool/llmCostCalculator/i18n/de.ts +4 -4
- package/src/tool/llmCostCalculator/i18n/en.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/fr.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/id.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/pt.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/ru.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/sv.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/tr.ts +3 -3
- package/src/tool/llmCostCalculator/i18n/zh.ts +3 -3
- package/src/tool/llmCostCalculator/seo.astro +2 -1
- package/src/tool/mobileMockupGenerator/component.astro +4 -5
- package/src/tool/mobileMockupGenerator/i18n/es.ts +1 -1
- package/src/tool/mobileMockupGenerator/seo.astro +2 -1
- package/src/tool/musicalTypography/i18n/de.ts +1 -1
- package/src/tool/musicalTypography/i18n/fr.ts +1 -1
- package/src/tool/musicalTypography/i18n/id.ts +1 -1
- package/src/tool/musicalTypography/i18n/it.ts +1 -1
- package/src/tool/musicalTypography/i18n/ko.ts +1 -1
- package/src/tool/musicalTypography/i18n/ru.ts +3 -3
- package/src/tool/musicalTypography/seo.astro +2 -1
- package/src/tool/placeholderGenerator/component.astro +2 -2
- package/src/tool/placeholderGenerator/i18n/de.ts +4 -4
- package/src/tool/placeholderGenerator/i18n/ru.ts +1 -1
- package/src/tool/placeholderGenerator/seo.astro +2 -1
- package/src/tool/promptLibrary/i18n/de.ts +1 -1
- package/src/tool/promptLibrary/seo.astro +2 -1
- package/src/tool/readabilityCalculator/component.astro +4 -4
- package/src/tool/readabilityCalculator/i18n/de.ts +2 -2
- package/src/tool/readabilityCalculator/seo.astro +2 -1
- package/src/tool/readabilityCalculator/visual-readability-calculator-wcag-apca.css +87 -3
- package/src/tool/serpPixelSimulator/bibliography.astro +7 -0
- package/src/tool/serpPixelSimulator/bibliography.ts +16 -0
- package/src/tool/serpPixelSimulator/component.astro +84 -0
- package/src/tool/serpPixelSimulator/controller.ts +323 -0
- package/src/tool/serpPixelSimulator/entry.ts +30 -0
- package/src/tool/serpPixelSimulator/i18n/de.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/en.ts +213 -0
- package/src/tool/serpPixelSimulator/i18n/es.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/fr.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/id.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/it.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/ja.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/ko.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/nl.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/pl.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/pt.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/ru.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/sv.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/tr.ts +214 -0
- package/src/tool/serpPixelSimulator/i18n/zh.ts +214 -0
- package/src/tool/serpPixelSimulator/index.ts +12 -0
- package/src/tool/serpPixelSimulator/logic.ts +18 -0
- package/src/tool/serpPixelSimulator/seo.astro +12 -0
- package/src/tool/serpPixelSimulator/serp-pixel-simulator.css +335 -0
- package/src/tool/serpPixelSimulator/ui.ts +33 -0
- package/src/tool/svgSanitizer/i18n/de.ts +2 -2
- package/src/tool/svgSanitizer/i18n/id.ts +1 -1
- package/src/tool/svgSanitizer/i18n/pl.ts +1 -1
- package/src/tool/svgSanitizer/i18n/ru.ts +7 -7
- package/src/tool/svgSanitizer/i18n/sv.ts +3 -3
- package/src/tool/svgSanitizer/i18n/tr.ts +3 -3
- package/src/tool/svgSanitizer/i18n/zh.ts +3 -3
- package/src/tool/svgSanitizer/seo.astro +2 -1
- package/src/tool/svgToCss/i18n/de.ts +2 -2
- package/src/tool/svgToCss/i18n/es.ts +1 -1
- package/src/tool/svgToCss/i18n/fr.ts +1 -1
- package/src/tool/svgToCss/i18n/pl.ts +1 -1
- package/src/tool/svgToCss/i18n/ru.ts +2 -2
- package/src/tool/svgToCss/i18n/zh.ts +2 -2
- package/src/tool/svgToCss/seo.astro +2 -1
- package/src/tool/urlCleaner/component.astro +23 -5
- package/src/tool/urlCleaner/i18n/de.ts +3 -3
- package/src/tool/urlCleaner/i18n/es.ts +1 -1
- package/src/tool/urlCleaner/i18n/id.ts +1 -1
- package/src/tool/urlCleaner/i18n/nl.ts +1 -1
- package/src/tool/urlCleaner/seo.astro +2 -1
- package/src/tool/urlCleaner/url-tracking-cleaner.css +92 -2
- package/src/tool/urlEncoderDecoder/i18n/de.ts +5 -5
- package/src/tool/urlEncoderDecoder/i18n/fr.ts +2 -2
- package/src/tool/urlEncoderDecoder/i18n/pl.ts +5 -5
- package/src/tool/urlEncoderDecoder/i18n/ru.ts +8 -8
- package/src/tool/urlEncoderDecoder/i18n/sv.ts +5 -5
- package/src/tool/urlEncoderDecoder/i18n/zh.ts +5 -5
- package/src/tool/urlEncoderDecoder/seo.astro +2 -1
- package/src/tool/utmGenerator/i18n/de.ts +2 -2
- package/src/tool/utmGenerator/i18n/pl.ts +5 -5
- package/src/tool/utmGenerator/i18n/ru.ts +6 -6
- package/src/tool/utmGenerator/seo.astro +2 -1
- package/src/tools.ts +2 -2
|
@@ -14,7 +14,7 @@ const faqData = [
|
|
|
14
14
|
'绝对安全。所有处理均 100% 在您的浏览器中完成(客户端处理)。您的 JSON 数据永远不会被发送到任何服务器,确保您的数据结构完全私密。',
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
question: '
|
|
17
|
+
question: '导致"Invalid JSON"错误的原因是什么?',
|
|
18
18
|
answer:
|
|
19
19
|
'通常是由于对象末尾多余的逗号、键(key)缺少双引号或存在不可见字符引起的。我们的工具会高亮显示错误的具体行号,方便您进行修复。',
|
|
20
20
|
},
|
|
@@ -109,19 +109,19 @@ export const content: ToolLocaleContent<JsonFormatterUI> = {
|
|
|
109
109
|
bibliographyTitle: '参考资料与标准',
|
|
110
110
|
bibliography: [
|
|
111
111
|
{
|
|
112
|
-
name: 'RFC 8259
|
|
112
|
+
name: 'RFC 8259 - The JavaScript Object Notation (JSON) Data Interchange Format (IETF)',
|
|
113
113
|
url: 'https://datatracker.ietf.org/doc/html/rfc8259',
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
name: 'ECMA-404
|
|
116
|
+
name: 'ECMA-404 - The JSON Data Interchange Syntax (Ecma International)',
|
|
117
117
|
url: 'https://www.ecma-international.org/publications-and-standards/standards/ecma-404/',
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
name: 'JSON.org
|
|
120
|
+
name: 'JSON.org - JSON 介绍',
|
|
121
121
|
url: 'https://www.json.org/json-en.html',
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
name: 'MDN Web Docs
|
|
124
|
+
name: 'MDN Web Docs - JSON',
|
|
125
125
|
url: 'https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/JSON',
|
|
126
126
|
},
|
|
127
127
|
],
|
|
@@ -9,6 +9,7 @@ interface Props {
|
|
|
9
9
|
|
|
10
10
|
const { locale = 'es' } = Astro.props;
|
|
11
11
|
const content = await jsonFormatter.i18n[locale]?.();
|
|
12
|
+
if (!content) return null;
|
|
12
13
|
---
|
|
13
14
|
|
|
14
|
-
{content && <SEORenderer content={{ locale, sections: content.seo }} />}
|
|
15
|
+
{content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
|
|
@@ -41,7 +41,7 @@ const howToData = [
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
name: 'Codeausschnitte verwenden',
|
|
44
|
-
text: 'Im Bereich
|
|
44
|
+
text: 'Im Bereich "Schnelle Codeausschnitte" finden Sie JavaScript-Codeblöcke, die Sie direkt in Ihr Projekt einfügen können.',
|
|
45
45
|
},
|
|
46
46
|
];
|
|
47
47
|
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referenzen und Standards',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/de/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
139
|
-
html: '<p>Gibt den Bezeichner der <strong>physischen Position</strong> der Taste auf der Tastatur zurück, unter Verwendung der QWERTY-Nomenklatur. Die Taste
|
|
138
|
+
title: 'event.code: Die physische Taste',
|
|
139
|
+
html: '<p>Gibt den Bezeichner der <strong>physischen Position</strong> der Taste auf der Tastatur zurück, unter Verwendung der QWERTY-Nomenklatur. Die Taste "A" auf einer AZERTY-Tastatur gibt zum Beispiel <code>KeyQ</code> zurück. Ideal für Spielsteuerungen, bei denen die Position zählt, nicht das Zeichen.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Das erzeugte Zeichen',
|
|
144
144
|
html: '<p>Gibt den <strong>Zeichenwert</strong> zurück, der je nach Sprache und aktiven Modifikatoren erzeugt wird. Shift+A ergibt <code>"A"</code>; ohne Shift ergibt sich <code>"a"</code>. Bei Sondertasten werden Namen wie <code>"Enter"</code>, <code>"Escape"</code> oder <code>"ArrowUp"</code> zurückgegeben.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'References and Standards',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: The physical key',
|
|
139
139
|
html: '<p>Returns the identifier of the <strong>physical position</strong> of the key on the keyboard, using QWERTY nomenclature. For example, the "A" key on an AZERTY keyboard returns <code>KeyQ</code>. Ideal for game controls where position matters, not the character.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: The generated character',
|
|
144
144
|
html: '<p>Returns the <strong>character value</strong> generated according to language and active modifiers. Pressing Shift+A returns <code>"A"</code>; without Shift returns <code>"a"</code>. For special keys it returns names like <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referencias y Estándares',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/es/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: La tecla física',
|
|
139
139
|
html: '<p>Devuelve el identificador de la <strong>posición física</strong> de la tecla en el teclado, usando nomenclatura QWERTY. Por ejemplo, la tecla "A" en un teclado AZERTY devuelve <code>KeyQ</code>. Ideal para controles de videojuegos donde importa la posición, no el carácter.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: El carácter generado',
|
|
144
144
|
html: '<p>Devuelve el <strong>valor del carácter</strong> generado según el idioma y modificadores activos. Si pulsas Shift+A devuelve <code>"A"</code>; sin Shift devuelve <code>"a"</code>. Para teclas especiales devuelve nombres como <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -21,7 +21,7 @@ const faqData = [
|
|
|
21
21
|
{
|
|
22
22
|
question: 'Que signifie la propriété location ?',
|
|
23
23
|
answer:
|
|
24
|
-
'La propriété location indique où la touche est physiquement située sur le clavier
|
|
24
|
+
'La propriété location indique où la touche est physiquement située sur le clavier: Standard (position normale), Left (modificateur gauche), Right (modificateur droit) ou Numpad (pavé numérique). Elle est utile pour distinguer la touche CTRL gauche de la droite, par exemple.',
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
question: 'Fonctionne-t-il avec les claviers internationaux et les dispositions non-QWERTY ?',
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Références et standards',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/fr/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'Spécification UI Events (W3C)
|
|
107
|
+
name: 'Spécification UI Events (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - Valeurs de KeyboardEvent.code',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -122,7 +122,7 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
type: 'paragraph',
|
|
125
|
-
html: 'Lorsqu\'un utilisateur appuie sur une touche, le navigateur déclenche trois événements
|
|
125
|
+
html: 'Lorsqu\'un utilisateur appuie sur une touche, le navigateur déclenche trois événements: <code>keydown</code>, <code>keypress</code> et <code>keyup</code>. Chacun expose des propriétés avec des informations sur la touche pressée, mais elles ne sont pas toutes équivalentes ni recommandées.',
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
type: 'title',
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: La touche physique',
|
|
139
139
|
html: '<p>Retourne l\'identifiant de la <strong>position physique</strong> de la touche sur le clavier, en utilisant la nomenclature QWERTY. Par exemple, la touche "A" sur un clavier AZERTY retourne <code>KeyQ</code>. Idéal pour les contrôles de jeu où la position importe, pas le caractère.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Le caractère généré',
|
|
144
144
|
html: '<p>Retourne la <strong>valeur du caractère</strong> généré selon la langue et les modificateurs actifs. Appuyer sur Shift+A retourne <code>"A"</code> ; sans Shift retourne <code>"a"</code>. Pour les touches spéciales, retourne des noms comme <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referensi dan Standar',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: Tombol fisik',
|
|
139
139
|
html: '<p>Mengembalikan pengenal <strong>posisi fisik</strong> tombol pada keyboard, menggunakan nomenklatur QWERTY. Misalnya, tombol "A" pada keyboard AZERTY mengembalikan <code>KeyQ</code>. Ideal untuk kontrol game di mana posisi yang penting, bukan karakter.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Karakter yang dihasilkan',
|
|
144
144
|
html: '<p>Mengembalikan <strong>nilai karakter</strong> yang dihasilkan berdasarkan bahasa dan modifier aktif. Menekan Shift+A mengembalikan <code>"A"</code>; tanpa Shift mengembalikan <code>"a"</code>. Untuk tombol khusus, mengembalikan nama seperti <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Riferimenti e Standard',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/it/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: Il tasto fisico',
|
|
139
139
|
html: '<p>Restituisce l\'identificatore della <strong>posizione fisica</strong> del tasto sulla tastiera, usando la nomenclatura QWERTY. Ad esempio, il tasto "A" su una tastiera AZERTY restituisce <code>KeyQ</code>. Ideale per i controlli di gioco dove conta la posizione, non il carattere.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Il carattere generato',
|
|
144
144
|
html: '<p>Restituisce il <strong>valore del carattere</strong> generato in base alla lingua e ai modificatori attivi. Premendo Shift+A si ottiene <code>"A"</code>; senza Shift si ottiene <code>"a"</code>. Per i tasti speciali restituisce nomi come <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: '参考資料と標準',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/ja/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: 物理的なキー',
|
|
139
139
|
html: '<p>QWERTYの命名規則を使用して、キーボード上のキーの<strong>物理的な位置</strong>の識別子を返します。たとえば、AZERTYキーボードの「A」キーは<code>KeyQ</code>を返します。位置が重要であり文字ではないゲームコントロールに最適です。</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: 生成された文字',
|
|
144
144
|
html: '<p>言語とアクティブな修飾キーに応じて生成された<strong>文字値</strong>を返します。Shift+Aを押すと<code>"A"</code>が返され、Shiftなしでは<code>"a"</code>が返されます。特殊キーの場合は<code>"Enter"</code>、<code>"Escape"</code>、<code>"ArrowUp"</code>などの名前が返されます。</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: '참고 자료 및 표준',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/ko/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: 물리적 키',
|
|
139
139
|
html: '<p>QWERTY 명명법을 사용하여 키보드에서 키의 <strong>물리적 위치</strong> 식별자를 반환합니다. 예를 들어 AZERTY 키보드의 "A" 키는 <code>KeyQ</code>를 반환합니다. 문자가 아닌 위치가 중요한 게임 컨트롤에 이상적입니다.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: 생성된 문자',
|
|
144
144
|
html: '<p>언어와 활성화된 수정자에 따라 생성된 <strong>문자 값</strong>을 반환합니다. Shift+A를 누르면 <code>"A"</code>가 반환되고, Shift 없이 누르면 <code>"a"</code>가 반환됩니다. 특수 키의 경우 <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>과 같은 이름을 반환합니다.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referenties en Standaarden',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: De fysieke toets',
|
|
139
139
|
html: '<p>Geeft de identifier terug van de <strong>fysieke positie</strong> van de toets op het toetsenbord, met behulp van QWERTY-nomenclatuur. De "A"-toets op een AZERTY-toetsenbord geeft bijvoorbeeld <code>KeyQ</code> terug. Ideaal voor spelbesturingen waarbij de positie telt, niet het teken.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Het gegenereerde teken',
|
|
144
144
|
html: '<p>Geeft de <strong>tekenwaarde</strong> terug die gegenereerd wordt op basis van taal en actieve modifiers. Shift+A indrukken geeft <code>"A"</code> terug; zonder Shift geeft het <code>"a"</code>. Voor speciale toetsen geeft het namen terug zoals <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -41,7 +41,7 @@ const howToData = [
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
name: 'Użyj fragmentów kodu',
|
|
44
|
-
text: 'W sekcji
|
|
44
|
+
text: 'W sekcji "Szybkie fragmenty" znajdziesz bloki kodu JavaScript gotowe do wklejenia bezpośrednio do swojego projektu.',
|
|
45
45
|
},
|
|
46
46
|
];
|
|
47
47
|
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referencje i Standardy',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
139
|
-
html: '<p>Zwraca identyfikator <strong>fizycznej pozycji</strong> klawisza na klawiaturze, używając nomenklatury QWERTY. Na przykład klawisz
|
|
138
|
+
title: 'event.code: Fizyczny klawisz',
|
|
139
|
+
html: '<p>Zwraca identyfikator <strong>fizycznej pozycji</strong> klawisza na klawiaturze, używając nomenklatury QWERTY. Na przykład klawisz "A" na klawiaturze AZERTY zwraca <code>KeyQ</code>. Idealny do sterowania grami, gdzie liczy się pozycja, a nie znak.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Wygenerowany znak',
|
|
144
144
|
html: '<p>Zwraca <strong>wartość znaku</strong> wygenerowanego zgodnie z językiem i aktywnymi modyfikatorami. Naciśnięcie Shift+A zwraca <code>"A"</code>; bez Shift zwraca <code>"a"</code>. Dla klawiszy specjalnych zwraca nazwy jak <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referências e Padrões',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'Especificação UI Events (W3C)
|
|
107
|
+
name: 'Especificação UI Events (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - Valores de KeyboardEvent.code',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: A tecla física',
|
|
139
139
|
html: '<p>Retorna o identificador da <strong>posição física</strong> da tecla no teclado, usando nomenclatura QWERTY. Por exemplo, a tecla "A" em um teclado AZERTY retorna <code>KeyQ</code>. Ideal para controles de jogos onde a posição importa, não o carácter.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: O carácter gerado',
|
|
144
144
|
html: '<p>Retorna o <strong>valor de carácter</strong> gerado de acordo com o idioma e modificadores ativos. Pressionar Shift+A retorna <code>"A"</code>; sem Shift retorna <code>"a"</code>. Para teclas especiais, retorna nomes como <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -16,7 +16,7 @@ const faqData = [
|
|
|
16
16
|
{
|
|
17
17
|
question: 'Что такое event.which и почему это устаревшее?',
|
|
18
18
|
answer:
|
|
19
|
-
'event.which
|
|
19
|
+
'event.which - это устаревшее свойство, которое возвращает числовой код ASCII для клавиши. Оно помечено как устаревшее в современных стандартах, потому что event.key и event.code заменяют его более точной и читаемой информацией. Оно показано в этом инструменте в образовательных целях.',
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
question: 'Что означает свойство location?',
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Ссылки и Стандарты',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'Спецификация UI Events (W3C)
|
|
107
|
+
name: 'Спецификация UI Events (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - Значения KeyboardEvent.code',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: Физическая клавиша',
|
|
139
139
|
html: '<p>Возвращает идентификатор <strong>физической позиции</strong> клавиши на клавиатуре, используя номенклатуру QWERTY. Например, клавиша "A" на клавиатуре AZERTY возвращает <code>KeyQ</code>. Идеально для управления игрой, где важна позиция, а не символ.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Сгенерированный символ',
|
|
144
144
|
html: '<p>Возвращает <strong>значение символа</strong>, сгенерированное в соответствии с языком и активными модификаторами. Нажатие Shift+A возвращает <code>"A"</code>; без Shift возвращает <code>"a"</code>. Для специальных клавиш возвращает названия, такие как <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referenser och Standarder',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: Den fysiska tangenten',
|
|
139
139
|
html: '<p>Returnerar identifieraren för tangentens <strong>fysiska position</strong> på tangentbordet, med QWERTY-nomenklatur. Till exempel returnerar tangenten "A" på ett AZERTY-tangentbord <code>KeyQ</code>. Idealisk för spelkontroller där position spelar roll, inte tecknet.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Det genererade tecknet',
|
|
144
144
|
html: '<p>Returnerar det <strong>genererade teckenvärde</strong> enligt språk och aktiva modifierare. Att trycka Shift+A returnerar <code>"A"</code>; utan Shift returnerar <code>"a"</code>. För specialtangenter returneras namn som <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code>.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: 'Referanslar ve Standartlar',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: Fiziksel Tuş',
|
|
139
139
|
html: '<p>Tuşun klavyedeki <strong>fiziksel konumunun</strong> tanımlayıcısını QWERTY nomenklaturunu kullanarak döndürür. Örneğin, AZERTY klavyesindeki "A" tuşu <code>KeyQ</code> döndürür. Konum önemli olan, karakter değil, oyun kontrolleri için idealdir.</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: Oluşturulan Karakter',
|
|
144
144
|
html: '<p>Dil ve etkin değiştiricilere göre oluşturulan <strong>karakter değerini</strong> döndürür. Shift+A tuşuna basmak <code>"A"</code> döndürür; Shift olmadan <code>"a"</code> döndürür. Özel tuşlar için <code>"Enter"</code>, <code>"Escape"</code>, <code>"ArrowUp"</code> gibi adları döndürür.</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -100,15 +100,15 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
100
100
|
bibliographyTitle: '参考资料和标准',
|
|
101
101
|
bibliography: [
|
|
102
102
|
{
|
|
103
|
-
name: 'MDN Web Docs
|
|
103
|
+
name: 'MDN Web Docs - KeyboardEvent',
|
|
104
104
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent',
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
name: 'UI Events Specification (W3C)
|
|
107
|
+
name: 'UI Events Specification (W3C) - KeyboardEvent',
|
|
108
108
|
url: 'https://www.w3.org/TR/uievents/#events-keyboardevents',
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
name: 'MDN
|
|
111
|
+
name: 'MDN - KeyboardEvent.code values',
|
|
112
112
|
url: 'https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_code_values',
|
|
113
113
|
},
|
|
114
114
|
],
|
|
@@ -135,12 +135,12 @@ export const content: ToolLocaleContent<KeycodeUI> = {
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
type: 'card',
|
|
138
|
-
title: 'event.code
|
|
138
|
+
title: 'event.code: 物理按键',
|
|
139
139
|
html: '<p>使用QWERTY命名法返回键盘上按键<strong>物理位置</strong>的标识符。例如,AZERTY键盘上的"A"键返回<code>KeyQ</code>。对于位置重要而不是字符的游戏控制非常理想。</p>',
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
type: 'card',
|
|
143
|
-
title: 'event.key
|
|
143
|
+
title: 'event.key: 生成的字符',
|
|
144
144
|
html: '<p>返回根据语言和活动修饰符生成的<strong>字符值</strong>。按Shift+A返回<code>"A"</code>;没有Shift时返回<code>"a"</code>。对于特殊按键,返回名称如<code>"Enter"</code>、<code>"Escape"</code>、<code>"ArrowUp"</code>。</p>',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -9,6 +9,7 @@ interface Props {
|
|
|
9
9
|
|
|
10
10
|
const { locale = 'es' } = Astro.props;
|
|
11
11
|
const content = await keycode.i18n[locale]?.();
|
|
12
|
+
if (!content) return null;
|
|
12
13
|
---
|
|
13
14
|
|
|
14
|
-
{content && <SEORenderer content={{ locale, sections: content.seo }} />}
|
|
15
|
+
{content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
|