@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,310 @@
|
|
|
1
|
+
import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
|
|
2
|
+
import type { ToolLocaleContent } from '../../../types';
|
|
3
|
+
import type { StainChemistryUI } from '../ui';
|
|
4
|
+
|
|
5
|
+
const slug = 'protocole-chimique-taches';
|
|
6
|
+
const title = 'Protocole Chimique des Taches Textiles';
|
|
7
|
+
const description =
|
|
8
|
+
'Protocoles scientifiques pour éliminer les taches selon le type de fibre et la nature chimique de la tache. Percarbonate, enzymes, solvants : la bonne méthode pour chaque cas.';
|
|
9
|
+
|
|
10
|
+
const faqData = [
|
|
11
|
+
{
|
|
12
|
+
question: 'Puis-je utiliser de la javel à la place du percarbonate ?',
|
|
13
|
+
answer:
|
|
14
|
+
'La javel (hypochlorite de sodium) est très corrosive. Elle dégrade les fibres, les rendant jaunâtres et cassantes. Le percarbonate blanchit grâce à l\'oxygène actif, respectant la structure moléculaire naturelle.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
question: 'Pourquoi le vinaigre aide-t-il contre les odeurs ?',
|
|
18
|
+
answer:
|
|
19
|
+
'Les odeurs corporelles sont généralement alcalines. L\'acide acétique du vinaigre les neutralise, les transformant en sels inodores qui sont complètement éliminés lors du rinçage.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: 'Dois-je toujours utiliser de l\'eau froide pour le sang ?',
|
|
23
|
+
answer:
|
|
24
|
+
'Oui. La chaleur coagule les protéines du sang, les liant définitivement à la fibre. L\'eau froide maintient la tache dans un état soluble et permet aux agents enzymatiques d\'agir efficacement.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
question: 'Que se passe-t-il si j\'applique de l\'acétone sur un vêtement en acétate ?',
|
|
28
|
+
answer:
|
|
29
|
+
'L\'acétone dissout le triacétate et l\'acétate. Les fibres d\'acétate sont de la cellulose estérifiée avec de l\'acide acétique et sont totalement solubles dans l\'acétone. Le résultat serait la destruction irréversible du tissu.',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const howToData = [
|
|
34
|
+
{
|
|
35
|
+
name: 'Identifier le type de fibre',
|
|
36
|
+
text: 'Consultez l\'étiquette intérieure du vêtement pour savoir s\'il s\'agit d\'une fibre naturelle, synthétique ou noble (laine, soie, cachemire).',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Sélectionner la fibre dans l\'outil',
|
|
40
|
+
text: 'Choisissez le matériau correspondant dans le premier sélecteur.',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Sélectionner le type de tache',
|
|
44
|
+
text: 'Indiquez si la tache est organique (vin, fruit), protéique (sang), grasse ou synthétique (encre).',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Appliquer le protocole indiqué',
|
|
48
|
+
text: 'Suivez les instructions d\'agent, de température et de méthode. Prêtez une attention particulière aux avertissements de précaution critique.',
|
|
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
|
+
export const content: ToolLocaleContent<StainChemistryUI> = {
|
|
86
|
+
slug,
|
|
87
|
+
title,
|
|
88
|
+
description,
|
|
89
|
+
ui: {
|
|
90
|
+
toolTitle: 'Protocole Chimique des Taches',
|
|
91
|
+
fiberLabel: '1. Fibre',
|
|
92
|
+
selectFiberPlaceholder: 'Sélectionnez le tissu...',
|
|
93
|
+
stainLabel: '2. Tache',
|
|
94
|
+
selectStainPlaceholder: 'Que s\'est-il passé ?',
|
|
95
|
+
molecularDiagnosis: 'Diagnostic Moléculaire',
|
|
96
|
+
requiredAgent: 'Agent Requis',
|
|
97
|
+
thermalCondition: 'Condition Thermique',
|
|
98
|
+
temperature: 'Température',
|
|
99
|
+
cleaningInstructions: 'Instructions de Nettoyage',
|
|
100
|
+
criticalWarning: 'Précaution Critique',
|
|
101
|
+
criticalWarningLabel: 'ATTENTION',
|
|
102
|
+
technicalNote: 'Note technique',
|
|
103
|
+
technicalNoteText:
|
|
104
|
+
'Validez toujours la solidité du colorant sur une zone non visible avant de procéder au traitement chimique complet.',
|
|
105
|
+
systemDiagnosis: 'Système de Diagnostic',
|
|
106
|
+
systemDiagnosisDesc:
|
|
107
|
+
'Configurez les paramètres textiles pour obtenir la feuille de route de nettoyage',
|
|
108
|
+
delicatePercarbonateWarning:
|
|
109
|
+
'RISQUE DE DÉGRADATION MOLÉCULAIRE. Les fibres animales sont très sensibles au percarbonate. Testez sur une zone cachée au préalable.',
|
|
110
|
+
fiberData: {
|
|
111
|
+
cotton: { name: 'Coton', family: 'natural', isNoble: false },
|
|
112
|
+
linen: { name: 'Lin', family: 'natural', isNoble: true },
|
|
113
|
+
wool: { name: 'Laine / Mérinos', family: 'natural', isNoble: true },
|
|
114
|
+
silk: { name: 'Soie', family: 'natural', isNoble: true },
|
|
115
|
+
cashmere: { name: 'Cachemire', family: 'natural', isNoble: true },
|
|
116
|
+
mohair: { name: 'Mohair', family: 'natural', isNoble: true },
|
|
117
|
+
angora: { name: 'Angora', family: 'natural', isNoble: true },
|
|
118
|
+
alpaca: { name: 'Alpaga', family: 'natural', isNoble: true },
|
|
119
|
+
polyester: { name: 'Polyester', family: 'synthetic', isNoble: false },
|
|
120
|
+
viscose: { name: 'Viscose / Rayonne', family: 'artificial', isNoble: false },
|
|
121
|
+
nylon: { name: 'Nylon (Polyamide)', family: 'synthetic', isNoble: false },
|
|
122
|
+
acrylic: { name: 'Acrylique', family: 'synthetic', isNoble: false },
|
|
123
|
+
},
|
|
124
|
+
agents: {
|
|
125
|
+
percarbonate: {
|
|
126
|
+
name: 'Percarbonate de Sodium',
|
|
127
|
+
description:
|
|
128
|
+
'Blanchissant oxygéné biodégradable. Libère de l\'oxygène actif en se dissolvant.',
|
|
129
|
+
warning: 'À éviter sur les fibres protéiques (soie, laine) à fortes concentrations.',
|
|
130
|
+
},
|
|
131
|
+
isopropyl: {
|
|
132
|
+
name: 'Alcool Isopropylique',
|
|
133
|
+
description: 'Solvant efficace pour les pigments et les graisses légères.',
|
|
134
|
+
warning:
|
|
135
|
+
'Peut altérer le lustre de la soie et dissoudre certains acryliques s\'il n\'est pas dilué.',
|
|
136
|
+
},
|
|
137
|
+
acetone: {
|
|
138
|
+
name: 'Acétone',
|
|
139
|
+
description: 'Solvant puissant pour les vernis et les adhésifs.',
|
|
140
|
+
warning: 'INTERDIT sur les acétates et triacétates (dissout la fibre).',
|
|
141
|
+
},
|
|
142
|
+
enzyme: {
|
|
143
|
+
name: 'Détergent Enzymatique',
|
|
144
|
+
description: 'Contient des protéases qui dégradent les taches biologiques.',
|
|
145
|
+
warning: 'À utiliser avec précaution sur la laine et la soie (ce sont des protéines).',
|
|
146
|
+
},
|
|
147
|
+
vinegar: {
|
|
148
|
+
name: 'Vinaigre Blanc',
|
|
149
|
+
description: 'Acide acétique doux pour neutraliser les odeurs et fixer les couleurs.',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
stains: [
|
|
153
|
+
{
|
|
154
|
+
id: 'wine',
|
|
155
|
+
name: 'Vin Rouge / Fruit',
|
|
156
|
+
protocols: {
|
|
157
|
+
natural: {
|
|
158
|
+
agentId: 'percarbonate',
|
|
159
|
+
temperature: '40–60°C',
|
|
160
|
+
method: 'Trempage prolongé',
|
|
161
|
+
},
|
|
162
|
+
synthetic: { agentId: 'percarbonate', temperature: '40°C', method: 'Pâte directe' },
|
|
163
|
+
delicate: {
|
|
164
|
+
agentId: 'vinegar',
|
|
165
|
+
temperature: 'Froide',
|
|
166
|
+
method: 'Rinçage à l\'eau gazeuse et vinaigre',
|
|
167
|
+
notes: 'Ne pas frotter',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: 'blood',
|
|
173
|
+
name: 'Sang',
|
|
174
|
+
protocols: {
|
|
175
|
+
natural: {
|
|
176
|
+
agentId: 'enzyme',
|
|
177
|
+
temperature: 'Froide',
|
|
178
|
+
method: 'Trempage en eau salée puis enzyme',
|
|
179
|
+
},
|
|
180
|
+
synthetic: { agentId: 'enzyme', temperature: 'Froide', method: 'Application directe' },
|
|
181
|
+
delicate: {
|
|
182
|
+
agentId: 'vinegar',
|
|
183
|
+
temperature: 'Froide',
|
|
184
|
+
method: 'Rinçage immédiat, éviter la chaleur',
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 'grease',
|
|
190
|
+
name: 'Graisse / Huile',
|
|
191
|
+
protocols: {
|
|
192
|
+
natural: {
|
|
193
|
+
agentId: 'isopropyl',
|
|
194
|
+
temperature: '40°C',
|
|
195
|
+
method: 'Dissoudre à l\'alcool puis laver',
|
|
196
|
+
},
|
|
197
|
+
synthetic: {
|
|
198
|
+
agentId: 'isopropyl',
|
|
199
|
+
temperature: '40°C',
|
|
200
|
+
method: 'Placer du papier absorbant en dessous',
|
|
201
|
+
},
|
|
202
|
+
delicate: {
|
|
203
|
+
agentId: 'isopropyl',
|
|
204
|
+
temperature: 'Froide',
|
|
205
|
+
method: 'Diluer l\'alcool à 50%',
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: 'ink',
|
|
211
|
+
name: 'Encre / Marqueur',
|
|
212
|
+
protocols: {
|
|
213
|
+
natural: {
|
|
214
|
+
agentId: 'isopropyl',
|
|
215
|
+
temperature: 'Ambiante',
|
|
216
|
+
method: 'Tamponner de l\'extérieur vers l\'intérieur',
|
|
217
|
+
},
|
|
218
|
+
synthetic: {
|
|
219
|
+
agentId: 'isopropyl',
|
|
220
|
+
temperature: 'Ambiante',
|
|
221
|
+
method: 'Attention à la dispersion',
|
|
222
|
+
},
|
|
223
|
+
delicate: {
|
|
224
|
+
agentId: 'isopropyl',
|
|
225
|
+
temperature: 'Froide',
|
|
226
|
+
method: 'Diluer et tester sur une zone cachée',
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
seo: [
|
|
233
|
+
{
|
|
234
|
+
type: 'title',
|
|
235
|
+
text: 'La Chimie Derrière le Nettoyage des Textiles',
|
|
236
|
+
level: 2,
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: 'paragraph',
|
|
240
|
+
html: 'Toutes les taches ne sont pas identiques, et toutes les fibres ne réagissent pas de la même manière aux mêmes agents chimiques. La différence entre sauver un vêtement et le détruire réside dans la compréhension de la nature moléculaire de la tache et de la structure de la fibre.',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
type: 'card',
|
|
244
|
+
title: '01 — Oxydation Contrôlée',
|
|
245
|
+
icon: 'mdi:atom',
|
|
246
|
+
html: 'Le <strong>percarbonate de sodium</strong> libère de l\'oxygène actif qui brise les doubles liaisons des chromophores (les molécules responsables de la couleur de la tache), les rendant incolores et solubles dans l\'eau. C\'est la méthode la plus efficace pour les taches organiques.',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: 'card',
|
|
250
|
+
title: '02 — Solubilisation par Solvants',
|
|
251
|
+
icon: 'mdi:flask-outline',
|
|
252
|
+
html: 'Les taches comme l\'huile ou l\'encre ne sont pas solubles dans l\'eau. Des solvants tels que l\'<strong>alcool isopropylique</strong> ou l\'<strong>acétone</strong> réduisent la tension de surface et attirent les molécules apolaires de la tache, leur permettant d\'être transférées sur un support.',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: 'title',
|
|
256
|
+
text: 'La Souveraineté des Fibres : Pourquoi le Type de Fibre Compte',
|
|
257
|
+
level: 2,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: 'paragraph',
|
|
261
|
+
html: 'Toutes les fibres ne "mangent" pas de la même façon. La <strong>soie et la laine</strong> sont des protéines (fibroïne et kératine). Si vous appliquez un détergent enzymatique conçu pour "digérer les protéines" (taches de sang ou d\'œuf) sans contrôle, le détergent commencera à dégrader la fibre elle-même, détruisant son éclat et la structure du tissu.',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
type: 'title',
|
|
265
|
+
text: 'Le Danger de la Chaleur',
|
|
266
|
+
level: 2,
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
type: 'paragraph',
|
|
270
|
+
html: 'L\'une des erreurs les plus courantes est d\'utiliser de l\'eau chaude pour "ramollir" une tache de sang. Chimiquement, la chaleur provoque la <strong>coagulation des protéines</strong> de la tache, les fixant définitivement à la structure poreuse de la fibre. Les taches protéiques doivent toujours être traitées à l\'eau froide.',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
type: 'tip',
|
|
274
|
+
title: 'Protocole d\'Urgence : Vin Rouge',
|
|
275
|
+
html: '<strong>A. Absorption passive :</strong> Tamponner avec du papier absorbant, ne jamais frotter pour éviter l\'expansion mécanique.<br><strong>B. Neutralisation osmotique :</strong> Couvrir de sel fin pour attirer le liquide vers l\'extérieur du noyau de la fibre.<br><strong>C. Action chimique :</strong> Appliquer une pâte de percarbonate et d\'eau à 40°C si la fibre supporte la chaleur.',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
type: 'title',
|
|
279
|
+
text: 'Solvants Spécifiques et Précautions',
|
|
280
|
+
level: 2,
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: 'paragraph',
|
|
284
|
+
html: 'L\'<strong>acétone</strong> est un solvant exceptionnel pour le vernis à ongles ou les adhésifs, mais elle est destructrice pour l\'<strong>acétate</strong>. En tant que fibres dérivées de la cellulose mais traitées chimiquement, l\'acétone dissout littéralement le tissu.',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
type: 'paragraph',
|
|
288
|
+
html: 'L\'<strong>alcool isopropylique</strong> est plus stable, mais sur les synthétiques teints, il peut entraîner le pigment lui-même. Nous recommandons toujours le "test de l\'ourlet" sur une zone cachée avant le traitement principal.',
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
faqTitle: 'Questions Fréquentes',
|
|
292
|
+
faq: faqData,
|
|
293
|
+
bibliographyTitle: 'Bibliographie',
|
|
294
|
+
bibliography: [
|
|
295
|
+
{
|
|
296
|
+
name: 'AATCC — Association for Advancing Color Technology and Chemistry',
|
|
297
|
+
url: 'https://www.aatcc.org',
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'Kissa, E. — Textile Auxiliaries',
|
|
301
|
+
url: 'https://www.springer.com/gp/book/9783642057328',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'ISO 105 — Tests de solidité des coloris',
|
|
305
|
+
url: 'https://www.iso.org/standard/72682.html',
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
howTo: howToData,
|
|
309
|
+
schemas: [faqSchema, howToSchema, appSchema],
|
|
310
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TextilesToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
|
|
2
|
+
import StainChemistryComponent from './component.astro';
|
|
3
|
+
import StainChemistrySEO from './seo.astro';
|
|
4
|
+
import StainChemistryBibliography from './bibliography.astro';
|
|
5
|
+
|
|
6
|
+
import type { StainChemistryUI } from './ui';
|
|
7
|
+
|
|
8
|
+
export type StainChemistryLocaleContent = ToolLocaleContent<StainChemistryUI>;
|
|
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 stainChemistry: TextilesToolEntry<StainChemistryUI> = {
|
|
15
|
+
id: 'stain-chemistry',
|
|
16
|
+
icons: {
|
|
17
|
+
bg: 'mdi:test-tube',
|
|
18
|
+
fg: 'mdi:iv-bag',
|
|
19
|
+
},
|
|
20
|
+
i18n: {
|
|
21
|
+
es: async () => es,
|
|
22
|
+
en: async () => en,
|
|
23
|
+
fr: async () => fr,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { StainChemistryComponent, StainChemistrySEO, StainChemistryBibliography };
|
|
28
|
+
|
|
29
|
+
export const STAIN_CHEMISTRY_TOOL: ToolDefinition = {
|
|
30
|
+
entry: stainChemistry,
|
|
31
|
+
Component: StainChemistryComponent,
|
|
32
|
+
SEOComponent: StainChemistrySEO,
|
|
33
|
+
BibliographyComponent: StainChemistryBibliography,
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StainChemistryFiber } from './ui';
|
|
2
|
+
|
|
3
|
+
export type FiberType = 'natural' | 'synthetic' | 'delicate';
|
|
4
|
+
|
|
5
|
+
export function getFiberType(fiberId: string, fiberData: Record<string, StainChemistryFiber>): FiberType {
|
|
6
|
+
const fiber = fiberData[fiberId];
|
|
7
|
+
if (!fiber) return 'natural';
|
|
8
|
+
if (fiber.family === 'synthetic') return 'synthetic';
|
|
9
|
+
if (fiber.isNoble) return 'delicate';
|
|
10
|
+
return 'natural';
|
|
11
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
import {
|
|
3
|
+
SEOTitle,
|
|
4
|
+
SEOCard,
|
|
5
|
+
SEOTip,
|
|
6
|
+
SEOList,
|
|
7
|
+
SEOArticle
|
|
8
|
+
} from '@jjlmoya/utils-shared';
|
|
9
|
+
import { stainChemistry } 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 stainChemistry.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,51 @@
|
|
|
1
|
+
export interface StainChemistryFiber {
|
|
2
|
+
name: string;
|
|
3
|
+
family: 'natural' | 'synthetic' | 'artificial';
|
|
4
|
+
isNoble?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface StainChemistryAgent {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
warning?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface StainChemistryProtocol {
|
|
14
|
+
agentId: string;
|
|
15
|
+
temperature: string;
|
|
16
|
+
method: string;
|
|
17
|
+
notes?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface StainChemistryStain {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
protocols: {
|
|
24
|
+
natural: StainChemistryProtocol;
|
|
25
|
+
synthetic: StainChemistryProtocol;
|
|
26
|
+
delicate: StainChemistryProtocol;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface StainChemistryUI {
|
|
31
|
+
toolTitle: string;
|
|
32
|
+
fiberLabel: string;
|
|
33
|
+
selectFiberPlaceholder: string;
|
|
34
|
+
stainLabel: string;
|
|
35
|
+
selectStainPlaceholder: string;
|
|
36
|
+
molecularDiagnosis: string;
|
|
37
|
+
requiredAgent: string;
|
|
38
|
+
thermalCondition: string;
|
|
39
|
+
temperature: string;
|
|
40
|
+
cleaningInstructions: string;
|
|
41
|
+
criticalWarning: string;
|
|
42
|
+
criticalWarningLabel: string;
|
|
43
|
+
technicalNote: string;
|
|
44
|
+
technicalNoteText: string;
|
|
45
|
+
systemDiagnosis: string;
|
|
46
|
+
systemDiagnosisDesc: string;
|
|
47
|
+
delicatePercarbonateWarning: string;
|
|
48
|
+
fiberData: Record<string, StainChemistryFiber>;
|
|
49
|
+
agents: Record<string, StainChemistryAgent>;
|
|
50
|
+
stains: StainChemistryStain[];
|
|
51
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
<ul>
|
|
4
|
+
<li>
|
|
5
|
+
<a href="https://www.craftyarncouncil.com/standards/yarn-weight-system" target="_blank" rel="noopener noreferrer">
|
|
6
|
+
Craft Yarn Council: Standard Yarn Weights & Yardages
|
|
7
|
+
</a>
|
|
8
|
+
</li>
|
|
9
|
+
<li>
|
|
10
|
+
<a href="https://www.interweave.com/article/knitting/yarn-substitution-angelina-take-two/" target="_blank" rel="noopener noreferrer">
|
|
11
|
+
Interweave Essentials: Yarn Substitution and Estimation
|
|
12
|
+
</a>
|
|
13
|
+
</li>
|
|
14
|
+
<li>
|
|
15
|
+
<a href="https://woolery.com/blogs/the-woolery-blog/yarn-weight-charts-helpful-guide/" target="_blank" rel="noopener noreferrer">
|
|
16
|
+
The Woolery: Fibers and Calculation of Yarn Usage
|
|
17
|
+
</a>
|
|
18
|
+
</li>
|
|
19
|
+
</ul>
|