@jjlmoya/utils-textiles 1.1.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 +60 -0
- package/src/category/i18n/en.ts +76 -0
- package/src/category/i18n/es.ts +76 -0
- package/src/category/i18n/fr.ts +73 -0
- package/src/category/index.ts +17 -0
- package/src/category/seo.astro +15 -0
- package/src/components/PreviewNavSidebar.astro +116 -0
- package/src/components/PreviewToolbar.astro +143 -0
- package/src/data.ts +11 -0
- package/src/env.d.ts +5 -0
- package/src/index.ts +32 -0
- package/src/layouts/PreviewLayout.astro +117 -0
- package/src/pages/[locale]/[slug].astro +146 -0
- package/src/pages/[locale].astro +253 -0
- package/src/pages/index.astro +4 -0
- package/src/tests/faq_count.test.ts +19 -0
- package/src/tests/locale_completeness.test.ts +42 -0
- package/src/tests/mocks/astro_mock.js +2 -0
- package/src/tests/no_h1_in_components.test.ts +48 -0
- package/src/tests/seo_length.test.ts +22 -0
- package/src/tests/title_separators.test.ts +40 -0
- package/src/tests/tool_validation.test.ts +17 -0
- package/src/tool/burnTest/bibliography.astro +34 -0
- package/src/tool/burnTest/component.astro +602 -0
- package/src/tool/burnTest/i18n/en.ts +225 -0
- package/src/tool/burnTest/i18n/es.ts +225 -0
- package/src/tool/burnTest/i18n/fr.ts +225 -0
- package/src/tool/burnTest/index.ts +34 -0
- package/src/tool/burnTest/logic.ts +3 -0
- package/src/tool/burnTest/seo.astro +40 -0
- package/src/tool/burnTest/ui.ts +36 -0
- package/src/tool/clothingSizeConverter/bibliography.astro +34 -0
- package/src/tool/clothingSizeConverter/component.astro +1226 -0
- package/src/tool/clothingSizeConverter/i18n/en.ts +356 -0
- package/src/tool/clothingSizeConverter/i18n/es.ts +356 -0
- package/src/tool/clothingSizeConverter/i18n/fr.ts +356 -0
- package/src/tool/clothingSizeConverter/index.ts +34 -0
- package/src/tool/clothingSizeConverter/logic.ts +30 -0
- package/src/tool/clothingSizeConverter/seo.astro +40 -0
- package/src/tool/clothingSizeConverter/ui.ts +70 -0
- package/src/tool/fabricProjectCalculator/bibliography.astro +19 -0
- package/src/tool/fabricProjectCalculator/component.astro +914 -0
- package/src/tool/fabricProjectCalculator/i18n/en.ts +250 -0
- package/src/tool/fabricProjectCalculator/i18n/es.ts +250 -0
- package/src/tool/fabricProjectCalculator/i18n/fr.ts +250 -0
- package/src/tool/fabricProjectCalculator/index.ts +34 -0
- package/src/tool/fabricProjectCalculator/logic.ts +89 -0
- package/src/tool/fabricProjectCalculator/seo.astro +40 -0
- package/src/tool/fabricProjectCalculator/ui.ts +57 -0
- package/src/tool/fabricTruth/bibliography.astro +40 -0
- package/src/tool/fabricTruth/component.astro +708 -0
- package/src/tool/fabricTruth/i18n/en.ts +282 -0
- package/src/tool/fabricTruth/i18n/es.ts +316 -0
- package/src/tool/fabricTruth/i18n/fr.ts +282 -0
- package/src/tool/fabricTruth/index.ts +34 -0
- package/src/tool/fabricTruth/logic.ts +91 -0
- package/src/tool/fabricTruth/seo.astro +40 -0
- package/src/tool/fabricTruth/ui.ts +28 -0
- package/src/tool/fiberPrep/bibliography.astro +33 -0
- package/src/tool/fiberPrep/component.astro +987 -0
- package/src/tool/fiberPrep/i18n/en.ts +225 -0
- package/src/tool/fiberPrep/i18n/es.ts +225 -0
- package/src/tool/fiberPrep/i18n/fr.ts +225 -0
- package/src/tool/fiberPrep/index.ts +34 -0
- package/src/tool/fiberPrep/logic.ts +36 -0
- package/src/tool/fiberPrep/seo.astro +40 -0
- package/src/tool/fiberPrep/ui.ts +38 -0
- package/src/tool/knittingGauge/bibliography.astro +14 -0
- package/src/tool/knittingGauge/component.astro +828 -0
- package/src/tool/knittingGauge/i18n/en.ts +234 -0
- package/src/tool/knittingGauge/i18n/es.ts +234 -0
- package/src/tool/knittingGauge/i18n/fr.ts +234 -0
- package/src/tool/knittingGauge/index.ts +34 -0
- package/src/tool/knittingGauge/logic.ts +28 -0
- package/src/tool/knittingGauge/seo.astro +40 -0
- package/src/tool/knittingGauge/ui.ts +41 -0
- package/src/tool/laundryGuide/bibliography.astro +33 -0
- package/src/tool/laundryGuide/component.astro +486 -0
- package/src/tool/laundryGuide/data-en.ts +166 -0
- package/src/tool/laundryGuide/data-es.ts +166 -0
- package/src/tool/laundryGuide/data-fr.ts +103 -0
- package/src/tool/laundryGuide/i18n/en.ts +275 -0
- package/src/tool/laundryGuide/i18n/es.ts +275 -0
- package/src/tool/laundryGuide/i18n/fr.ts +291 -0
- package/src/tool/laundryGuide/index.ts +29 -0
- package/src/tool/laundryGuide/logic.ts +19 -0
- package/src/tool/laundryGuide/seo.astro +40 -0
- package/src/tool/needleConverter/bibliography.astro +14 -0
- package/src/tool/needleConverter/component.astro +518 -0
- package/src/tool/needleConverter/i18n/en.ts +217 -0
- package/src/tool/needleConverter/i18n/es.ts +217 -0
- package/src/tool/needleConverter/i18n/fr.ts +217 -0
- package/src/tool/needleConverter/index.ts +34 -0
- package/src/tool/needleConverter/logic.ts +31 -0
- package/src/tool/needleConverter/seo.astro +15 -0
- package/src/tool/needleConverter/ui.ts +17 -0
- package/src/tool/sewingPatternScaler/bibliography.astro +14 -0
- package/src/tool/sewingPatternScaler/component.astro +550 -0
- package/src/tool/sewingPatternScaler/i18n/en.ts +196 -0
- package/src/tool/sewingPatternScaler/i18n/es.ts +231 -0
- package/src/tool/sewingPatternScaler/i18n/fr.ts +187 -0
- package/src/tool/sewingPatternScaler/index.ts +34 -0
- package/src/tool/sewingPatternScaler/logic.ts +35 -0
- package/src/tool/sewingPatternScaler/seo.astro +49 -0
- package/src/tool/sewingPatternScaler/ui.ts +29 -0
- package/src/tool/shoeSizeConverter/bibliography.astro +34 -0
- package/src/tool/shoeSizeConverter/component.astro +437 -0
- package/src/tool/shoeSizeConverter/i18n/en.ts +188 -0
- package/src/tool/shoeSizeConverter/i18n/es.ts +188 -0
- package/src/tool/shoeSizeConverter/i18n/fr.ts +188 -0
- package/src/tool/shoeSizeConverter/index.ts +34 -0
- package/src/tool/shoeSizeConverter/logic.ts +8 -0
- package/src/tool/shoeSizeConverter/seo.astro +40 -0
- package/src/tool/shoeSizeConverter/ui.ts +21 -0
- package/src/tool/stainChemistry/bibliography.astro +40 -0
- package/src/tool/stainChemistry/component.astro +717 -0
- package/src/tool/stainChemistry/i18n/en.ts +303 -0
- package/src/tool/stainChemistry/i18n/es.ts +300 -0
- package/src/tool/stainChemistry/i18n/fr.ts +310 -0
- package/src/tool/stainChemistry/index.ts +34 -0
- package/src/tool/stainChemistry/logic.ts +11 -0
- package/src/tool/stainChemistry/seo.astro +40 -0
- package/src/tool/stainChemistry/ui.ts +51 -0
- package/src/tool/yarnCalculator/bibliography.astro +19 -0
- package/src/tool/yarnCalculator/component.astro +792 -0
- package/src/tool/yarnCalculator/i18n/en.ts +310 -0
- package/src/tool/yarnCalculator/i18n/es.ts +310 -0
- package/src/tool/yarnCalculator/i18n/fr.ts +310 -0
- package/src/tool/yarnCalculator/index.ts +34 -0
- package/src/tool/yarnCalculator/logic.ts +84 -0
- package/src/tool/yarnCalculator/seo.astro +14 -0
- package/src/tool/yarnCalculator/ui.ts +42 -0
- package/src/tools.ts +16 -0
- package/src/types.ts +72 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { BurnTestUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'test-combustion-textile';
|
|
6
|
+
const title = 'Test de Combustion Textile';
|
|
7
|
+
const description =
|
|
8
|
+
"Identifiez la composition réelle de n'importe quel tissu en analysant son comportement à la combustion. Différenciez scientifiquement le coton, la laine, la soie et les synthétiques.";
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Est-il sûr d\'effectuer un test de combustion à la maison?',
|
|
13
|
+
answer:
|
|
14
|
+
"Oui, à condition de prendre des précautions extrêmes : utilisez des pinces métalliques, travaillez sur une surface ignifuge (céramique ou métal), gardez de l'eau à portée et effectuez le test dans un endroit ventilé. Vous n'avez besoin que d'un petit échantillon de 1x1 cm ou de quelques fils.",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Comment sent le coton quand il brûle?',
|
|
18
|
+
answer:
|
|
19
|
+
'Le coton est de la cellulose pure. En brûlant, il sent exactement comme du papier brûlé ou des feuilles sèches. La cendre résultante est grise, très fine et s\'effrite au toucher.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Qu\'indique une bille noire et dure à l\'extrémité de la fibre?',
|
|
23
|
+
answer:
|
|
24
|
+
'C\'est le signe indéniable d\'une fibre synthétique (plastique), comme le polyester ou le nylon. En fondant, le polymère s\'agglomère en une perle plastique qui ne s\'émiette pas, contrairement aux cendres des fibres naturelles.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'Pourquoi la laine sent-elle mauvais quand elle brûle?',
|
|
28
|
+
answer:
|
|
29
|
+
'La laine et la soie sont des protéines animales qui contiennent du soufre. Au contact du feu, elles émettent une odeur pénétrante de cheveux brûlés ou de plumes brûlées. C\'est le moyen le plus simple de les différencier des fibres végétales.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Extraire un échantillon représentatif',
|
|
36
|
+
text: 'Coupez un petit carré du tissu ou, mieux encore, extrayez quelques fils de la chaîne (vertical) et de la trame (horizontal).',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "Observer l'approche de la flamme",
|
|
40
|
+
text: 'Approchez lentement la fibre du feu sans le toucher. Observez si elle rétrécit, fond ou prend feu immédiatement.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Analyser le type de flamme et de fumée',
|
|
44
|
+
text: 'Notez si la flamme est constante ou s\'éteint seule, et si la fumée est blanche, noire ou inexistante.',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Évaluer le résidu et l\'odeur',
|
|
48
|
+
text: "Une fois refroidi, touchez la cendre ou la perle résultante et percevez l'odeur (papier, cheveux ou chimique) pour confirmer la famille de la fibre.",
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const faqSchema: WithContext<FAQPage> = {
|
|
53
|
+
'@context': 'https://schema.org',
|
|
54
|
+
'@type': 'FAQPage',
|
|
55
|
+
mainEntity: faqData.map((item) => ({
|
|
56
|
+
'@type': 'Question',
|
|
57
|
+
name: item.question,
|
|
58
|
+
acceptedAnswer: { '@type': 'Answer', text: item.answer },
|
|
59
|
+
})),
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const howToSchema: WithContext<HowTo> = {
|
|
63
|
+
'@context': 'https://schema.org',
|
|
64
|
+
'@type': 'HowTo',
|
|
65
|
+
name: title,
|
|
66
|
+
description,
|
|
67
|
+
step: howToData.map((step) => ({
|
|
68
|
+
'@type': 'HowToStep',
|
|
69
|
+
name: step.name,
|
|
70
|
+
text: step.text,
|
|
71
|
+
})),
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const appSchema: WithContext<SoftwareApplication> = {
|
|
75
|
+
'@context': 'https://schema.org',
|
|
76
|
+
'@type': 'SoftwareApplication',
|
|
77
|
+
name: title,
|
|
78
|
+
description,
|
|
79
|
+
applicationCategory: 'UtilityApplication',
|
|
80
|
+
operatingSystem: 'All',
|
|
81
|
+
offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
|
|
82
|
+
inLanguage: 'fr',
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const flame = {
|
|
86
|
+
cellulosic: 'Brûle VITE et avec ÉCLAT (flamme jaune). Ne fond pas. Continue de brûler à l\'écart.',
|
|
87
|
+
protein: 'Brûle LENTEMENT, crépite et SE RÉTRACTE loin de la flamme. S\'éteint seule à l\'écart.',
|
|
88
|
+
synthetic: 'FOND et se contracte rapidement, goutte comme du plastique fondu. Flamme fumeuse.',
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const odor = {
|
|
92
|
+
paper: 'Papier brûlé, bois, feuilles sèches.',
|
|
93
|
+
hair: 'Cheveux brûlés, corne brûlée, plumes.',
|
|
94
|
+
chemical_sweet: 'Chimique AROMATIQUE (doux, fruité).',
|
|
95
|
+
chemical_fishy: 'Chimique AIGRE (poisson, viande rôtie).',
|
|
96
|
+
vegetable: 'Légumes cuits (céleri).',
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const residue = {
|
|
100
|
+
ash_soft: 'Cendre GRISE/NOIRE fine, douce et volatile (se désintègre au toucher).',
|
|
101
|
+
ash_shape: 'Cendre GRISE conservant la forme de la fibre (friable).',
|
|
102
|
+
bead_crushable: "Masse noire creuse/friable (s'écrase facilement avec les doigts).",
|
|
103
|
+
bead_hard: 'Perle DURE et vitreuse. Impossible à briser avec les doigts.',
|
|
104
|
+
bead_irregular: 'Masse noire DURE et irrégulière.',
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const smoke = {
|
|
108
|
+
white_gray: 'Blanc / Gris clair.',
|
|
109
|
+
gray: 'Gris moyen.',
|
|
110
|
+
black: 'Noir DENSE et sombre.',
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export const content: ToolLocaleContent<BurnTestUI> = {
|
|
114
|
+
slug,
|
|
115
|
+
title,
|
|
116
|
+
description,
|
|
117
|
+
faqTitle: 'Questions Fréquentes',
|
|
118
|
+
faq: faqData,
|
|
119
|
+
bibliographyTitle: 'Bibliographie',
|
|
120
|
+
bibliography: [
|
|
121
|
+
{
|
|
122
|
+
name: 'AATCC TM20: Fiber Analysis - Qualitative',
|
|
123
|
+
url: 'https://members.aatcc.org/store/tm20/485/',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Textile Fibers: Identification and Testing - NIST',
|
|
127
|
+
url: 'https://nvlpubs.nist.gov/nistpubs/Legacy/circ/nbscircular41e3.pdf',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'Burn Test Chart for Fiber Identification - Fabric Mart',
|
|
131
|
+
url: 'https://fabricmartfabrics.com/pages/burn-test-chart',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
howTo: howToData,
|
|
135
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
136
|
+
seo: [
|
|
137
|
+
{
|
|
138
|
+
type: 'title',
|
|
139
|
+
text: 'La Science Forensique du Filament',
|
|
140
|
+
level: 2,
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: 'paragraph',
|
|
144
|
+
html: "Le test de combustion est la méthode analytique la plus rapide et précise pour différencier les polymères naturels des synthétiques sans recourir au microscope électronique. En soumettant une fibre à la chaleur, son comportement moléculaire révèle son origine : depuis la cellulose végétale jusqu'aux protéines animales ou aux dérivés du pétrole.",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: 'card',
|
|
148
|
+
title: 'Fibres Cellulosiques',
|
|
149
|
+
icon: 'mdi:leaf',
|
|
150
|
+
html: 'Le <strong>Coton</strong> et le <strong>Lin</strong> brûlent rapidement sans fondre. Ils sentent le papier brûlé car ils proviennent du bois ou des plantes, laissant une cendre grise volatile qui se disperse en soufflant.',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: 'card',
|
|
154
|
+
title: 'Fibres Protéiques',
|
|
155
|
+
icon: 'mdi:sheep',
|
|
156
|
+
html: 'La <strong>Laine</strong> et la <strong>Soie</strong> s\'éloignent de la flamme. Leur odeur caractéristique de cheveux brûlés indique la présence de soufre et de kératine. Le résidu est une perle noire qui se pulvérise au toucher.',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: 'card',
|
|
160
|
+
title: 'Fibres Synthétiques',
|
|
161
|
+
icon: 'mdi:bottle-soda-classic',
|
|
162
|
+
html: 'Le <strong>Polyester</strong> et le <strong>Nylon</strong> sont essentiellement des plastiques. Ils fondent en formant une goutte chaude qui durcit en une perle vitreuse impossible à briser, avec une odeur chimique piquante.',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'title',
|
|
166
|
+
text: 'Matrice de Preuves Chimiques',
|
|
167
|
+
level: 2,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: 'paragraph',
|
|
171
|
+
html: "Une analyse précise nécessite de croiser au moins trois preuves. L'odeur est l'indicateur le plus fiable pour identifier les mélanges : si un tissu de \"lin\" dégage un léger arôme plastique et laisse des résidus durs, cela indique un mélange polyester non déclaré.",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
type: 'tip',
|
|
175
|
+
title: 'Protocole de Sécurité de Laboratoire',
|
|
176
|
+
html: '<strong>Ventilation critique :</strong> Les fibres synthétiques libèrent des gaz toxiques en brûlant. Ne jamais effectuer ce test dans des espaces fermés.<br><strong>Extinction immédiate :</strong> Toujours garder un récipient d\'eau à portée. Certaines fibres synthétiques peuvent fondre et adhérer à la peau.',
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
ui: {
|
|
180
|
+
investigationLabel: 'INVESTIGATION',
|
|
181
|
+
stepPrefix: 'ÉTAPE',
|
|
182
|
+
stepCompleted: 'ANALYSE COMPLÈTE',
|
|
183
|
+
resetLabel: 'RECOMMENCER',
|
|
184
|
+
positiveId: 'IDENTIFICATION POSITIVE',
|
|
185
|
+
flameLabel: 'Comportement Flamme',
|
|
186
|
+
odorLabel: 'Trace Olfactive',
|
|
187
|
+
residueLabel: 'Résidu',
|
|
188
|
+
identifiedAs: 'Échantillon identifié positivement comme',
|
|
189
|
+
safetyTitle: 'Protocole de Sécurité',
|
|
190
|
+
safetyText:
|
|
191
|
+
"Effectuez ce test dans un endroit ventilé, sur une surface ignifuge. Utilisez des pinces métalliques et gardez de l'eau à portée.",
|
|
192
|
+
questions: {
|
|
193
|
+
flame: 'Comportement face à la flamme ?',
|
|
194
|
+
odor: 'Odeur caractéristique ?',
|
|
195
|
+
residue: 'Résidu final ?',
|
|
196
|
+
smoke: 'Type de fumée ?',
|
|
197
|
+
},
|
|
198
|
+
fiberData: {
|
|
199
|
+
cotton: { name: 'Coton', icon: 'mdi:tshirt-crew', color: '#60A5FA', description: 'Fibre végétale naturelle, douce et respirante. La reine des basiques.' },
|
|
200
|
+
linen: { name: 'Lin', icon: 'mdi:leaf', color: '#A7F3D0', description: 'Fibre végétale très résistante, fraîche et caractéristiquement froissée.' },
|
|
201
|
+
wool: { name: 'Laine / Mérinos', icon: 'mdi:sheep', color: '#FCD34D', description: 'Fibre animale protéique, excellent isolant thermique et élastique.' },
|
|
202
|
+
silk: { name: 'Soie', icon: 'mdi:ticket-percent', color: '#F472B6', description: 'Fibre animale à filament continu. Éclat naturel et toucher sec.' },
|
|
203
|
+
cashmere: { name: 'Cachemire', icon: 'mdi:crown', color: '#F59E0B', description: 'Fibre de luxe de la chèvre de Cachemire. Extrêmement douce et légère.' },
|
|
204
|
+
mohair: { name: 'Mohair', icon: 'mdi:shimmer', color: '#14B8A6', description: 'La "fibre diamant" de la chèvre d\'Angora. Éclat naturel et élastique.' },
|
|
205
|
+
angora: { name: 'Angora', icon: 'mdi:rabbit', color: '#F9FAFB', description: 'Poil du lapin angora. Effet "halo" duveteux et légèreté extrême.' },
|
|
206
|
+
alpaca: { name: 'Alpaga', icon: 'mdi:image-filter-hdr', color: '#9F7AEA', description: 'Trésor des Andes. Fibre creuse, thermique, hypoallergénique et soyeuse.' },
|
|
207
|
+
polyester: { name: 'Polyester', icon: 'mdi:oil', color: '#94A3B8', description: 'Fibre synthétique dérivée du pétrole. Résistante, infroissable, non respirante.' },
|
|
208
|
+
nylon: { name: 'Nylon (Polyamide)', icon: 'mdi:parachute', color: '#2DD4BF', description: 'Fibre synthétique très résistante à la traction et à l\'abrasion.' },
|
|
209
|
+
acrylic: { name: 'Acrylique', icon: 'mdi:resize', color: '#450A0A', description: 'Imitation laine synthétique. Douce, chaude, fait facilement des boulettes.' },
|
|
210
|
+
},
|
|
211
|
+
burnTestData: [
|
|
212
|
+
{ fiberId: 'cotton', flame: flame.cellulosic, odor: odor.paper, smoke: smoke.white_gray, residue: residue.ash_soft },
|
|
213
|
+
{ fiberId: 'linen', flame: flame.cellulosic, odor: odor.paper, smoke: smoke.white_gray, residue: residue.ash_shape },
|
|
214
|
+
{ fiberId: 'wool', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
215
|
+
{ fiberId: 'silk', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
216
|
+
{ fiberId: 'cashmere', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
217
|
+
{ fiberId: 'mohair', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
218
|
+
{ fiberId: 'angora', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
219
|
+
{ fiberId: 'alpaca', flame: flame.protein, odor: odor.hair, smoke: smoke.gray, residue: residue.bead_crushable },
|
|
220
|
+
{ fiberId: 'polyester', flame: flame.synthetic, odor: odor.chemical_sweet, smoke: smoke.black, residue: residue.bead_hard },
|
|
221
|
+
{ fiberId: 'nylon', flame: flame.synthetic, odor: odor.vegetable, smoke: smoke.white_gray, residue: residue.bead_hard },
|
|
222
|
+
{ fiberId: 'acrylic', flame: flame.synthetic, odor: odor.chemical_fishy, smoke: smoke.black, residue: residue.bead_irregular },
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TextilesToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
|
|
2
|
+
import BurnTestComponent from './component.astro';
|
|
3
|
+
import BurnTestSEO from './seo.astro';
|
|
4
|
+
import BurnTestBibliography from './bibliography.astro';
|
|
5
|
+
|
|
6
|
+
import type { BurnTestUI } from './ui';
|
|
7
|
+
|
|
8
|
+
export type BurnTestLocaleContent = ToolLocaleContent<BurnTestUI>;
|
|
9
|
+
|
|
10
|
+
import { content as es } from './i18n/es';
|
|
11
|
+
import { content as en } from './i18n/en';
|
|
12
|
+
import { content as fr } from './i18n/fr';
|
|
13
|
+
|
|
14
|
+
export const burnTest: TextilesToolEntry<BurnTestUI> = {
|
|
15
|
+
id: 'burn-test',
|
|
16
|
+
icons: {
|
|
17
|
+
bg: 'mdi:fire',
|
|
18
|
+
fg: 'mdi:test-tube',
|
|
19
|
+
},
|
|
20
|
+
i18n: {
|
|
21
|
+
es: async () => es,
|
|
22
|
+
en: async () => en,
|
|
23
|
+
fr: async () => fr,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { BurnTestComponent, BurnTestSEO, BurnTestBibliography };
|
|
28
|
+
|
|
29
|
+
export const BURN_TEST_TOOL: ToolDefinition = {
|
|
30
|
+
entry: burnTest,
|
|
31
|
+
Component: BurnTestComponent,
|
|
32
|
+
SEOComponent: BurnTestSEO,
|
|
33
|
+
BibliographyComponent: BurnTestBibliography,
|
|
34
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
import {
|
|
3
|
+
SEOTitle,
|
|
4
|
+
SEOCard,
|
|
5
|
+
SEOTip,
|
|
6
|
+
SEOList,
|
|
7
|
+
SEOArticle
|
|
8
|
+
} from '@jjlmoya/utils-shared';
|
|
9
|
+
import { burnTest } from './index';
|
|
10
|
+
import type { KnownLocale } from '../../types';
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
locale?: KnownLocale;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const { locale = 'es' } = Astro.props;
|
|
17
|
+
const content = await burnTest.i18n[locale]?.();
|
|
18
|
+
if (!content) return null;
|
|
19
|
+
|
|
20
|
+
const { seo } = content;
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<SEOArticle>
|
|
24
|
+
{seo.map((section: any) => {
|
|
25
|
+
switch (section.type) {
|
|
26
|
+
case 'title':
|
|
27
|
+
return <SEOTitle title={section.text} level={section.level || 2} />;
|
|
28
|
+
case 'paragraph':
|
|
29
|
+
return <p set:html={section.html} />;
|
|
30
|
+
case 'list':
|
|
31
|
+
return <SEOList items={section.items} />;
|
|
32
|
+
case 'card':
|
|
33
|
+
return <SEOCard title={section.title} icon={section.icon}><Fragment set:html={section.html} /></SEOCard>;
|
|
34
|
+
case 'tip':
|
|
35
|
+
return <SEOTip title={section.title}><Fragment set:html={section.html} /></SEOTip>;
|
|
36
|
+
default:
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
})}
|
|
40
|
+
</SEOArticle>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface BurnTestFiber {
|
|
2
|
+
name: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
color: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface BurnTestEntry {
|
|
9
|
+
fiberId: string;
|
|
10
|
+
flame: string;
|
|
11
|
+
odor: string;
|
|
12
|
+
smoke: string;
|
|
13
|
+
residue: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface BurnTestUI {
|
|
17
|
+
investigationLabel: string;
|
|
18
|
+
stepPrefix: string;
|
|
19
|
+
stepCompleted: string;
|
|
20
|
+
resetLabel: string;
|
|
21
|
+
positiveId: string;
|
|
22
|
+
flameLabel: string;
|
|
23
|
+
odorLabel: string;
|
|
24
|
+
residueLabel: string;
|
|
25
|
+
identifiedAs: string;
|
|
26
|
+
safetyTitle: string;
|
|
27
|
+
safetyText: string;
|
|
28
|
+
questions: {
|
|
29
|
+
flame: string;
|
|
30
|
+
odor: string;
|
|
31
|
+
residue: string;
|
|
32
|
+
smoke: string;
|
|
33
|
+
};
|
|
34
|
+
fiberData: Record<string, BurnTestFiber>;
|
|
35
|
+
burnTestData: BurnTestEntry[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
<div class="bibliography">
|
|
4
|
+
<h3>References</h3>
|
|
5
|
+
<ul>
|
|
6
|
+
<li><a href="https://www.iso.org/standard/68644.html" target="_blank">ISO 3635: Clothing Sizes - Official Standard</a></li>
|
|
7
|
+
<li><a href="https://en.wikipedia.org/wiki/Clothing_size" target="_blank">Clothing Size Standards - Wikipedia</a></li>
|
|
8
|
+
<li><a href="https://en.wikipedia.org/wiki/Clothing_size#International_variations" target="_blank">International Clothing Size Conversion - Wikipedia</a></li>
|
|
9
|
+
</ul>
|
|
10
|
+
</div>
|
|
11
|
+
<style>
|
|
12
|
+
.bibliography {
|
|
13
|
+
padding: 1rem 0;
|
|
14
|
+
}
|
|
15
|
+
.bibliography h3 {
|
|
16
|
+
font-size: 1.1rem;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
margin-bottom: 1rem;
|
|
19
|
+
}
|
|
20
|
+
.bibliography ul {
|
|
21
|
+
list-style: none;
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
.bibliography li {
|
|
25
|
+
margin-bottom: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
.bibliography a {
|
|
28
|
+
color: #6366f1;
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
}
|
|
31
|
+
.bibliography a:hover {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
</style>
|