react-cheminfo 0.123.0 → 0.125.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.
Files changed (44) hide show
  1. package/README.md +11 -7
  2. package/lib/ecosystem/core/groups.d.ts +1 -1
  3. package/lib/ecosystem/core/groups.d.ts.map +1 -1
  4. package/lib/ecosystem/core/groups.js +11 -1
  5. package/lib/ecosystem/core/groups.js.map +1 -1
  6. package/lib/ecosystem/core/sites.d.ts.map +1 -1
  7. package/lib/ecosystem/core/sites.js +152 -3
  8. package/lib/ecosystem/core/sites.js.map +1 -1
  9. package/lib/ecosystem/core/types.d.ts +1 -1
  10. package/lib/ecosystem/core/types.d.ts.map +1 -1
  11. package/lib/ecosystem/core/unlistedSites.d.ts.map +1 -1
  12. package/lib/ecosystem/core/unlistedSites.js +0 -143
  13. package/lib/ecosystem/core/unlistedSites.js.map +1 -1
  14. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  15. package/lib/ecosystem/ui/glyphs.js +3 -11
  16. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  17. package/lib/ecosystem/ui/index.d.ts +1 -0
  18. package/lib/ecosystem/ui/index.d.ts.map +1 -1
  19. package/lib/ecosystem/ui/index.js +1 -0
  20. package/lib/ecosystem/ui/index.js.map +1 -1
  21. package/lib/ecosystem/ui/nmriumMark.d.ts +10 -0
  22. package/lib/ecosystem/ui/nmriumMark.d.ts.map +1 -0
  23. package/lib/ecosystem/ui/nmriumMark.js +31 -0
  24. package/lib/ecosystem/ui/nmriumMark.js.map +1 -0
  25. package/lib/i18n/core/chromeCatalog.d.ts +1 -1
  26. package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
  27. package/lib/locales/de.json +6 -2
  28. package/lib/locales/en.json +6 -2
  29. package/lib/locales/es.json +6 -2
  30. package/lib/locales/fr.json +6 -2
  31. package/lib/locales/it.json +6 -2
  32. package/package.json +1 -1
  33. package/src/ecosystem/core/groups.ts +13 -1
  34. package/src/ecosystem/core/sites.ts +159 -3
  35. package/src/ecosystem/core/types.ts +2 -2
  36. package/src/ecosystem/core/unlistedSites.ts +0 -149
  37. package/src/ecosystem/ui/glyphs.tsx +14 -22
  38. package/src/ecosystem/ui/index.ts +1 -0
  39. package/src/ecosystem/ui/nmriumMark.tsx +46 -0
  40. package/src/locales/de.json +6 -2
  41. package/src/locales/en.json +6 -2
  42. package/src/locales/es.json +6 -2
  43. package/src/locales/fr.json +6 -2
  44. package/src/locales/it.json +6 -2
@@ -126,7 +126,7 @@ export const ECOSYSTEM_SITES: readonly EcosystemSite[] = [
126
126
  name: { lead: 'Derep', alt: 'Flow', ink: 'lead' },
127
127
  host: 'derepflow.cheminfo.org',
128
128
  tagline: 'Identify the constituents of a mixture from its ¹³C spectrum.',
129
- group: 'spectra',
129
+ group: 'identification',
130
130
  brand: '#127ba3',
131
131
  brandAlt: '#1e293b',
132
132
  mark: { plate: '#1e293b', accent: '#127ba3' },
@@ -186,7 +186,7 @@ export const ECOSYSTEM_SITES: readonly EcosystemSite[] = [
186
186
  name: { lead: 'elucidation', alt: 'cheminfo', dot: true },
187
187
  host: 'elucidation.cheminfo.org',
188
188
  tagline: 'A structure from a 1H NMR spectrum and a formula.',
189
- group: 'spectra',
189
+ group: 'identification',
190
190
  brand: '#7e22ce',
191
191
  brandAlt: '#b45309',
192
192
  mark: { plate: '#7e22ce', accent: '#f59e0b' },
@@ -196,7 +196,7 @@ export const ECOSYSTEM_SITES: readonly EcosystemSite[] = [
196
196
  name: { lead: 'spectroscopy', alt: 'cheminfo', dot: true },
197
197
  host: 'spectroscopy.cheminfo.org',
198
198
  tagline: 'Find a structure from its IR, mass and NMR spectra.',
199
- group: 'spectra',
199
+ group: 'identification',
200
200
  // The violet end of the spectrum: the greens a spectrum would suggest are
201
201
  // already smiles', equilibrium's and openbabel's.
202
202
  brand: '#744d9f',
@@ -436,6 +436,162 @@ export const ECOSYSTEM_SITES: readonly EcosystemSite[] = [
436
436
  brandAlt: '#a16207',
437
437
  mark: { plate: '#0b3d2e', accent: '#fde047' },
438
438
  },
439
+ {
440
+ id: 'plot',
441
+ name: { lead: 'plot', alt: 'cheminfo', dot: true },
442
+ host: 'plot.cheminfo.org',
443
+ tagline:
444
+ 'Plot tables and spectra as charts sized and styled for a journal.',
445
+ group: 'drawing',
446
+ // The blue of the pen a curve is drawn with: 7.9:1 on white, and 10.1
447
+ // Oklab units from isomers and mz, the nearest leads.
448
+ brand: '#0024fc',
449
+ // The orange of millimetre paper's grid answers it, at 5:1 for the name.
450
+ brandAlt: '#b45309',
451
+ // The mark's line takes a brighter amber, so it stands apart from the
452
+ // blue plate at 16 px.
453
+ mark: { plate: '#0024fc', accent: '#fbbf24' },
454
+ },
455
+ {
456
+ id: 'uv-vis',
457
+ name: { lead: 'uv-', alt: 'vis' },
458
+ host: 'uv-vis.cheminfo.org',
459
+ tagline: 'Overlay UV-vis spectra and read off every λmax.',
460
+ group: 'spectra',
461
+ // Permanganate's magenta and copper's cyan: the two coloured solutions a
462
+ // first UV-vis lab measures, and a pair of subtractive primaries. The
463
+ // violets a spectrum would suggest are inchi's, elucidation's and ChemCalc's.
464
+ brand: '#c026d3',
465
+ // The cyan of the mark sits at 1.8:1 on white, so the second half of the
466
+ // wordmark takes the darker cyan, at 5.4:1.
467
+ brandAlt: '#0e7490',
468
+ mark: { plate: '#c026d3', accent: '#22d3ee' },
469
+ },
470
+ {
471
+ id: 'nmr',
472
+ name: { lead: 'nmr', alt: 'cheminfo', dot: true },
473
+ host: 'nmr.cheminfo.org',
474
+ // What nmrium.cheminfo.org saved is read as this site's, and opens on its
475
+ // NMRium page, /nmrium.
476
+ formerIds: ['nmrium'],
477
+ formerHosts: ['nmrium.cheminfo.org'],
478
+ tagline:
479
+ 'Process NMR spectra in NMRium, draw pulse sequences, and learn how a spectrum arises.',
480
+ group: 'spectra',
481
+ // A deep wine, 9.7:1 on white and 6.2 Oklab units from the nearest lead of
482
+ // the family (symmetry).
483
+ brand: '#831843',
484
+ // The radio-frequency pulse of the mark, in a blue the wordmark sets its
485
+ // second half in at 6.7:1.
486
+ brandAlt: '#1d4ed8',
487
+ mark: { plate: '#831843', accent: '#60a5fa' },
488
+ },
489
+ {
490
+ id: 'xps',
491
+ name: { lead: 'xps', alt: 'cheminfo', dot: true },
492
+ host: 'xps.cheminfo.org',
493
+ tagline: 'Read, fit and predict X-ray photoelectron spectra.',
494
+ group: 'spectra',
495
+ // Plum, 7.2:1 on white and 8.7 Oklab units from the nearest lead (tex);
496
+ // symmetry has since taken the rose and amber once kept for this site.
497
+ brand: '#97297b',
498
+ // The green an X-ray screen glows. It sits at 1.5:1 on white, so the
499
+ // wordmark sets its second half in this darker green, at 5:1.
500
+ brandAlt: '#4d7c0f',
501
+ mark: { plate: '#97297b', accent: '#a3e635' },
502
+ },
503
+ {
504
+ id: 'biodraw',
505
+ // The name splits on itself, biology and drawing, so it carries no domain.
506
+ name: { lead: 'bio', alt: 'draw', dot: false },
507
+ host: 'biodraw.cheminfo.org',
508
+ tagline: 'Draw cells and membranes, and snap proteins into them.',
509
+ group: 'drawing',
510
+ // Eosin, the pink a cell's cytoplasm takes in the H&E stain every
511
+ // histology slide is read in: 4.6:1 on white, 7.1 Oklab units from
512
+ // molecules, the nearest pink.
513
+ brand: '#db2777',
514
+ // Haematoxylin, the blue-violet the same stain gives a nucleus, at 9.9:1.
515
+ brandAlt: '#3730a3',
516
+ mark: { plate: '#db2777', accent: '#3730a3' },
517
+ },
518
+ {
519
+ id: 'diagram',
520
+ name: { lead: 'diagram', alt: 'cheminfo', dot: true },
521
+ host: 'diagram.cheminfo.org',
522
+ tagline:
523
+ 'Draw flowcharts and block diagrams, with arrows that follow the blocks.',
524
+ group: 'drawing',
525
+ // Coral, the sticky note a block diagram is first laid out on: 5:1 on
526
+ // white, and 7.4 Oklab units from slides, the nearest lead.
527
+ brand: '#b84c59',
528
+ // The cyan of the arrow joining two notes answers it; the name takes the
529
+ // darker cyan, at 5.4:1.
530
+ brandAlt: '#0e7490',
531
+ mark: { plate: '#b84c59', accent: '#67e8f9' },
532
+ },
533
+ {
534
+ id: 'peptide',
535
+ name: { lead: 'peptide', alt: 'cheminfo', dot: true },
536
+ host: 'peptide.cheminfo.org',
537
+ tagline:
538
+ 'Learn peptide synthesis, from protecting groups to the solid phase.',
539
+ group: 'practice',
540
+ // Ruhemann's purple, the colour ninhydrin turns a free amine on a resin
541
+ // bead: 8.5:1 on white, and 7.3 Oklab units from spectroscopy, the
542
+ // nearest lead.
543
+ brand: '#563d8f',
544
+ // The resin bead the chain grows on is teal in the mark; the name takes
545
+ // the darker teal, at 5.5:1.
546
+ brandAlt: '#0f766e',
547
+ mark: { plate: '#563d8f', accent: '#2dd4bf' },
548
+ },
549
+ {
550
+ id: 'optics',
551
+ name: { lead: 'optics', alt: 'cheminfo', dot: true },
552
+ host: 'optics.cheminfo.org',
553
+ tagline:
554
+ 'Set lenses and mirrors on a bench, and follow the light to its image.',
555
+ group: 'physics',
556
+ // The blue of a lens seen edge on: 7.9:1 on white, and 6.6 Oklab units
557
+ // from 3d, the nearest lead.
558
+ brand: '#2c518e',
559
+ // The red of a laser beam answers it, at 6.5:1; the mark draws its rays
560
+ // in the paler red.
561
+ brandAlt: '#b91c1c',
562
+ mark: { plate: '#2c518e', accent: '#fca5a5' },
563
+ },
564
+ {
565
+ id: 'circuits',
566
+ name: { lead: 'circuits', alt: 'cheminfo', dot: true },
567
+ host: 'circuits.cheminfo.org',
568
+ tagline:
569
+ 'Wire batteries, bulbs and resistors, and read what the meters show.',
570
+ group: 'physics',
571
+ // Copper, what every wire is drawn in: 5.8:1 on white, and 6.2 Oklab
572
+ // units from inorganic and from slides, the nearest leads.
573
+ brand: '#a84811',
574
+ // The blue of a current answers it, at 5.9:1; the mark draws the current
575
+ // in the paler blue.
576
+ brandAlt: '#0369a1',
577
+ mark: { plate: '#a84811', accent: '#7dd3fc' },
578
+ },
579
+ {
580
+ id: 'mechanics',
581
+ name: { lead: 'mechanics', alt: 'cheminfo', dot: true },
582
+ host: 'mechanics.cheminfo.org',
583
+ tagline:
584
+ 'Put a block on a slope or over a pulley, and see the forces add up.',
585
+ group: 'physics',
586
+ // Brass, the weights of a mechanics lab: 5.5:1 on white, and 6.7 Oklab
587
+ // units from osiris, the nearest lead.
588
+ brand: '#7b672e',
589
+ // Violet answers it, 31 Oklab units away so the two halves of the name
590
+ // never read as one, at 7:1; the mark draws the block in the paler
591
+ // violet.
592
+ brandAlt: '#7e22ce',
593
+ mark: { plate: '#7b672e', accent: '#d8b4fe' },
594
+ },
439
595
  ];
440
596
 
441
597
  /** How a link to a site is written, beyond the site itself. */
@@ -38,7 +38,6 @@ export type SiteId =
38
38
  | 'ml'
39
39
  | 'vibrations'
40
40
  | 'uv-vis'
41
- | 'nmrium'
42
41
  | 'xps'
43
42
  | 'biodraw'
44
43
  | 'diagram'
@@ -49,7 +48,8 @@ export type SiteId =
49
48
  | 'draw'
50
49
  | 'plate'
51
50
  | 'glassware'
52
- | 'write';
51
+ | 'write'
52
+ | 'nmr';
53
53
 
54
54
  /** A site's name, split the way its own wordmark splits it. */
55
55
  export interface SiteName {
@@ -32,22 +32,6 @@ export const UNLISTED_SITES: readonly EcosystemSite[] = [
32
32
  // the ultramarine plate at 16 px.
33
33
  mark: { plate: '#2200c4', accent: '#f97316' },
34
34
  },
35
- {
36
- id: 'plot',
37
- name: { lead: 'plot', alt: 'cheminfo', dot: true },
38
- host: 'plot.cheminfo.org',
39
- tagline:
40
- 'Plot tables and spectra as charts sized and styled for a journal.',
41
- group: 'drawing',
42
- // The blue of the pen a curve is drawn with: 7.9:1 on white, and 10.1
43
- // Oklab units from isomers and mz, the nearest leads.
44
- brand: '#0024fc',
45
- // The orange of millimetre paper's grid answers it, at 5:1 for the name.
46
- brandAlt: '#b45309',
47
- // The mark's line takes a brighter amber, so it stands apart from the
48
- // blue plate at 16 px.
49
- mark: { plate: '#0024fc', accent: '#fbbf24' },
50
- },
51
35
  {
52
36
  id: 'ml',
53
37
  name: { lead: 'ml', alt: 'cheminfo', dot: true },
@@ -67,137 +51,4 @@ export const UNLISTED_SITES: readonly EcosystemSite[] = [
67
51
  },
68
52
  ],
69
53
  },
70
- {
71
- id: 'uv-vis',
72
- name: { lead: 'uv-', alt: 'vis' },
73
- host: 'uv-vis.cheminfo.org',
74
- tagline: 'Overlay UV-vis spectra and read off every λmax.',
75
- group: 'spectra',
76
- // Permanganate's magenta and copper's cyan: the two coloured solutions a
77
- // first UV-vis lab measures, and a pair of subtractive primaries. The
78
- // violets a spectrum would suggest are inchi's, elucidation's and ChemCalc's.
79
- brand: '#c026d3',
80
- // The cyan of the mark sits at 1.8:1 on white, so the second half of the
81
- // wordmark takes the darker cyan, at 5.4:1.
82
- brandAlt: '#0e7490',
83
- mark: { plate: '#c026d3', accent: '#22d3ee' },
84
- },
85
- {
86
- id: 'nmrium',
87
- // NMRium, served on the family's domain for the figures draw and write
88
- // frame it to make, so it wears NMRium's name, mark and colours.
89
- name: { lead: 'NMR', alt: 'ium' },
90
- host: 'nmrium.cheminfo.org',
91
- tagline: 'Process NMR spectra, and keep them as figures that open again.',
92
- group: 'spectra',
93
- brand: '#ea580c',
94
- brandAlt: '#2b143e',
95
- mark: { plate: '#2b143e', accent: '#ea580c' },
96
- },
97
- {
98
- id: 'xps',
99
- name: { lead: 'xps', alt: 'cheminfo', dot: true },
100
- host: 'xps.cheminfo.org',
101
- tagline: 'Read, fit and predict X-ray photoelectron spectra.',
102
- group: 'spectra',
103
- // Plum, 7.2:1 on white and 8.7 Oklab units from the nearest lead (tex);
104
- // symmetry has since taken the rose and amber once kept for this site.
105
- brand: '#97297b',
106
- // The green an X-ray screen glows. It sits at 1.5:1 on white, so the
107
- // wordmark sets its second half in this darker green, at 5:1.
108
- brandAlt: '#4d7c0f',
109
- mark: { plate: '#97297b', accent: '#a3e635' },
110
- },
111
- {
112
- id: 'biodraw',
113
- // The name splits on itself, biology and drawing, so it carries no domain.
114
- name: { lead: 'bio', alt: 'draw', dot: false },
115
- host: 'biodraw.cheminfo.org',
116
- tagline: 'Draw cells and membranes, and snap proteins into them.',
117
- group: 'drawing',
118
- // Eosin, the pink a cell's cytoplasm takes in the H&E stain every
119
- // histology slide is read in: 4.6:1 on white, 7.1 Oklab units from
120
- // molecules, the nearest pink.
121
- brand: '#db2777',
122
- // Haematoxylin, the blue-violet the same stain gives a nucleus, at 9.9:1.
123
- brandAlt: '#3730a3',
124
- mark: { plate: '#db2777', accent: '#3730a3' },
125
- },
126
- {
127
- id: 'diagram',
128
- name: { lead: 'diagram', alt: 'cheminfo', dot: true },
129
- host: 'diagram.cheminfo.org',
130
- tagline:
131
- 'Draw flowcharts and block diagrams, with arrows that follow the blocks.',
132
- group: 'drawing',
133
- // Coral, the sticky note a block diagram is first laid out on: 5:1 on
134
- // white, and 7.4 Oklab units from slides, the nearest lead.
135
- brand: '#b84c59',
136
- // The cyan of the arrow joining two notes answers it; the name takes the
137
- // darker cyan, at 5.4:1.
138
- brandAlt: '#0e7490',
139
- mark: { plate: '#b84c59', accent: '#67e8f9' },
140
- },
141
- {
142
- id: 'peptide',
143
- name: { lead: 'peptide', alt: 'cheminfo', dot: true },
144
- host: 'peptide.cheminfo.org',
145
- tagline:
146
- 'Learn peptide synthesis, from protecting groups to the solid phase.',
147
- group: 'practice',
148
- // Ruhemann's purple, the colour ninhydrin turns a free amine on a resin
149
- // bead: 8.5:1 on white, and 7.3 Oklab units from spectroscopy, the
150
- // nearest lead.
151
- brand: '#563d8f',
152
- // The resin bead the chain grows on is teal in the mark; the name takes
153
- // the darker teal, at 5.5:1.
154
- brandAlt: '#0f766e',
155
- mark: { plate: '#563d8f', accent: '#2dd4bf' },
156
- },
157
- {
158
- id: 'optics',
159
- name: { lead: 'optics', alt: 'cheminfo', dot: true },
160
- host: 'optics.cheminfo.org',
161
- tagline:
162
- 'Set lenses and mirrors on a bench, and follow the light to its image.',
163
- group: 'practice',
164
- // The blue of a lens seen edge on: 7.9:1 on white, and 6.6 Oklab units
165
- // from 3d, the nearest lead.
166
- brand: '#2c518e',
167
- // The red of a laser beam answers it, at 6.5:1; the mark draws its rays
168
- // in the paler red.
169
- brandAlt: '#b91c1c',
170
- mark: { plate: '#2c518e', accent: '#fca5a5' },
171
- },
172
- {
173
- id: 'circuits',
174
- name: { lead: 'circuits', alt: 'cheminfo', dot: true },
175
- host: 'circuits.cheminfo.org',
176
- tagline:
177
- 'Wire batteries, bulbs and resistors, and read what the meters show.',
178
- group: 'practice',
179
- // Copper, what every wire is drawn in: 5.8:1 on white, and 6.2 Oklab
180
- // units from inorganic and from slides, the nearest leads.
181
- brand: '#a84811',
182
- // The blue of a current answers it, at 5.9:1; the mark draws the current
183
- // in the paler blue.
184
- brandAlt: '#0369a1',
185
- mark: { plate: '#a84811', accent: '#7dd3fc' },
186
- },
187
- {
188
- id: 'mechanics',
189
- name: { lead: 'mechanics', alt: 'cheminfo', dot: true },
190
- host: 'mechanics.cheminfo.org',
191
- tagline:
192
- 'Put a block on a slope or over a pulley, and see the forces add up.',
193
- group: 'practice',
194
- // Brass, the weights of a mechanics lab: 5.5:1 on white, and 6.7 Oklab
195
- // units from osiris, the nearest lead.
196
- brand: '#7b672e',
197
- // Violet answers it, 31 Oklab units away so the two halves of the name
198
- // never read as one, at 7:1; the mark draws the block in the paler
199
- // violet.
200
- brandAlt: '#7e22ce',
201
- mark: { plate: '#7b672e', accent: '#d8b4fe' },
202
- },
203
54
  ];
@@ -196,7 +196,6 @@ export const GLYPHS: Record<SiteId, (alt: string) => ReactNode> = {
196
196
  />
197
197
  </>
198
198
  ),
199
- nmrium: (accent) => nmriumGlyph(accent),
200
199
  // A score plot without its axes: four samples, and the three the analysis
201
200
  // sets apart carrying the answering colour — the map the tool exists to
202
201
  // draw. The spacing is irregular so the groups read as measured samples
@@ -879,26 +878,19 @@ export const GLYPHS: Record<SiteId, (alt: string) => ReactNode> = {
879
878
  />
880
879
  </>
881
880
  ),
882
- };
883
-
884
- /**
885
- * The official NMRium symbol, from `Logo.tsx` of the NMRium sources: the
886
- * orange half is theirs, and the half their logo sets in plum is set in white
887
- * here because the plate already is that plum.
888
- * @param accent - The orange half's colour.
889
- * @returns The symbol.
890
- */
891
- function nmriumGlyph(accent: string): ReactNode {
892
- return (
893
- <g fillRule="evenodd" transform="translate(5.25 6.25) scale(0.088)">
894
- <path
895
- fill={accent}
896
- d="M.64,31.7A31.67,31.67,0,0,1,54.72,9.29l0,0A31.66,31.66,0,0,1,64,31.7V190a13.39,13.39,0,0,0,26.77,0V54a31.7,31.7,0,0,1,31.7-31.7V40.58A13.38,13.38,0,0,0,109.13,54V190a31.71,31.71,0,0,1-63.41,0V31.7a13.29,13.29,0,0,0-3.88-9.46l0,0A13.41,13.41,0,0,0,19,31.7V164.82H.64Z"
897
- />
881
+ // The simplest experiment there is: a 90° pulse in the answering colour, and
882
+ // the free induction decay it sets ringing, dying away.
883
+ nmr: (alt) => (
884
+ <>
885
+ <rect x="4" y="6" width="6" height="20" rx="1" fill={alt} />
898
886
  <path
899
- fill="#ffffff"
900
- d="M154.21,54v68.17a13.34,13.34,0,0,0,3.89,9.47h0A13.39,13.39,0,0,0,181,122.14V99.32h-.06a31.63,31.63,0,0,1,9.29-22.38l0,0a31.65,31.65,0,0,1,44.8,0l0,0a31.58,31.58,0,0,1,9.3,22.39V118H226V99.32a13.3,13.3,0,0,0-3.89-9.46h0a13.44,13.44,0,0,0-18.93,0l0,0a13.3,13.3,0,0,0-3.83,8.19v24.09a31.7,31.7,0,0,1-54.11,22.42v0a31.66,31.66,0,0,1-9.3-22.4V54Z"
887
+ d="M13 16q1.875-18 3.75 0q1.875 10 3.75 0q1.875-5.6 3.75 0q1.875 3 3.75 0"
888
+ fill="none"
889
+ stroke="#ffffff"
890
+ strokeWidth="2.5"
891
+ strokeLinecap="round"
892
+ strokeLinejoin="round"
901
893
  />
902
- </g>
903
- );
904
- }
894
+ </>
895
+ ),
896
+ };
@@ -6,6 +6,7 @@ export type { EcosystemMenuProps } from './EcosystemMenu.tsx';
6
6
  export { EcosystemMenu } from './EcosystemMenu.tsx';
7
7
  export type { SiteMarkProps } from './marks.tsx';
8
8
  export { SiteMark } from './marks.tsx';
9
+ export { NMRIUM_MARK } from './nmriumMark.tsx';
9
10
  export type { SiteThemeProps } from './SiteTheme.tsx';
10
11
  export { SiteTheme } from './SiteTheme.tsx';
11
12
  export type { SiteTileProps } from './SiteTile.tsx';
@@ -0,0 +1,46 @@
1
+ // tokens-ok: file — NMRium's own orange and plum, from its logo.
2
+ import type { ReactNode } from 'react';
3
+
4
+ import type { SiteMarkProps } from './marks.tsx';
5
+
6
+ /**
7
+ * NMRium's mark, for whatever names NMRium itself rather than the site serving
8
+ * it: the NMRium page of nmr.cheminfo.org, and the entries of draw and write
9
+ * that open it, drawn as `<SiteMark {...NMRIUM_MARK} />`. NMRium is not a site
10
+ * of the family, so its name, colours and symbol are written here rather than
11
+ * in a record of `ECOSYSTEM_SITES`.
12
+ */
13
+ export const NMRIUM_MARK: Required<Pick<SiteMarkProps, 'site' | 'glyph'>> = {
14
+ site: {
15
+ id: 'nmrium',
16
+ name: { lead: 'NMR', alt: 'ium' },
17
+ host: 'www.nmrium.com',
18
+ tagline: 'Process NMR spectra in the browser.',
19
+ brand: '#ea580c',
20
+ brandAlt: '#2b143e',
21
+ mark: { plate: '#2b143e', accent: '#ea580c' },
22
+ },
23
+ glyph: nmriumGlyph,
24
+ };
25
+
26
+ /**
27
+ * The official NMRium symbol, from `Logo.tsx` of the NMRium sources: the
28
+ * orange half is theirs, and the half their logo sets in plum is set in white
29
+ * here because the plate already is that plum.
30
+ * @param accent - The orange half's colour.
31
+ * @returns The symbol.
32
+ */
33
+ function nmriumGlyph(accent: string): ReactNode {
34
+ return (
35
+ <g fillRule="evenodd" transform="translate(5.25 6.25) scale(0.088)">
36
+ <path
37
+ fill={accent}
38
+ d="M.64,31.7A31.67,31.67,0,0,1,54.72,9.29l0,0A31.66,31.66,0,0,1,64,31.7V190a13.39,13.39,0,0,0,26.77,0V54a31.7,31.7,0,0,1,31.7-31.7V40.58A13.38,13.38,0,0,0,109.13,54V190a31.71,31.71,0,0,1-63.41,0V31.7a13.29,13.29,0,0,0-3.88-9.46l0,0A13.41,13.41,0,0,0,19,31.7V164.82H.64Z"
39
+ />
40
+ <path
41
+ fill="#ffffff"
42
+ d="M154.21,54v68.17a13.34,13.34,0,0,0,3.89,9.47h0A13.39,13.39,0,0,0,181,122.14V99.32h-.06a31.63,31.63,0,0,1,9.29-22.38l0,0a31.65,31.65,0,0,1,44.8,0l0,0a31.58,31.58,0,0,1,9.3,22.39V118H226V99.32a13.3,13.3,0,0,0-3.89-9.46h0a13.44,13.44,0,0,0-18.93,0l0,0a13.3,13.3,0,0,0-3.83,8.19v24.09a31.7,31.7,0,0,1-54.11,22.42v0a31.66,31.66,0,0,1-9.3-22.4V54Z"
43
+ />
44
+ </g>
45
+ );
46
+ }
@@ -80,10 +80,14 @@
80
80
  "ecosystem.group.basics.blurb": "Womit ein Kurs beginnt, und worauf man zurückkommt.",
81
81
  "ecosystem.group.practice.label": "Üben",
82
82
  "ecosystem.group.practice.blurb": "Wo ein erster Kurs durchgearbeitet wird, eine abgestufte Reihe nach der anderen.",
83
+ "ecosystem.group.physics.label": "Physik",
84
+ "ecosystem.group.physics.blurb": "Die Physik, auf die ein Chemiekurs baut, auf einem Versuchstisch aufgebaut.",
83
85
  "ecosystem.group.structures.label": "Strukturen und Notation",
84
86
  "ecosystem.group.structures.blurb": "Ein Molekül zeichnen, zwischen Notationen umwandeln, im Raum betrachten.",
85
87
  "ecosystem.group.spectra.label": "Spektren",
86
- "ecosystem.group.spectra.blurb": "Eine Messung verarbeiten und auf die Struktur dahinter zurückschließen.",
88
+ "ecosystem.group.spectra.blurb": "Eine Messung öffnen, verarbeiten und neben andere legen.",
89
+ "ecosystem.group.identification.label": "Struktur aus Spektren",
90
+ "ecosystem.group.identification.blurb": "Von einem Spektrum auf die Struktur dahinter zurückschließen.",
87
91
  "ecosystem.group.research.label": "Forschung und Daten",
88
92
  "ecosystem.group.research.blurb": "Spezialisierte Arbeit: echte Datensätze und Moleküle, die niemand hergestellt hat.",
89
93
  "ecosystem.group.computing.label": "Informatik und Lehre",
@@ -95,7 +99,6 @@
95
99
  "site.openbabel.tagline": "Eine Struktur zwischen beliebigen chemischen Dateiformaten umwandeln.",
96
100
  "site.chemcalc.tagline": "Summenformel, exakte Masse und Isotopenverteilung.",
97
101
  "site.dbe.tagline": "Ringe und Doppelbindungen aus einer Formel oder einer Struktur zählen.",
98
- "site.nmrium.tagline": "NMR-Spektren verarbeiten und als Abbildungen behalten, die sich wieder öffnen.",
99
102
  "site.metabo.tagline": "Eine Reihe von NMR-Spektren in eine Karte Ihrer Proben verwandeln.",
100
103
  "site.derepflow.tagline": "Die Bestandteile eines Gemischs aus seinem ¹³C-Spektrum bestimmen.",
101
104
  "site.isomers.tagline": "Alle Konstitutionsisomere einer Summenformel.",
@@ -129,6 +132,7 @@
129
132
  "site.plot.tagline": "Tabellen und Spektren als Diagramme zeichnen, in Größe und Stil einer Zeitschrift.",
130
133
  "site.ml.tagline": "Maschinelles Lernen auf Spektren, im Browser.",
131
134
  "site.uv-vis.tagline": "UV-Vis-Spektren überlagern und jedes λmax ablesen.",
135
+ "site.nmr.tagline": "NMR-Spektren in NMRium verarbeiten, Pulssequenzen zeichnen und verstehen, wie ein Spektrum entsteht.",
132
136
  "site.xps.tagline": "Röntgenphotoelektronenspektren lesen, anpassen und vorhersagen.",
133
137
  "site.biodraw.tagline": "Zellen und Membranen zeichnen und Proteine darin verankern.",
134
138
  "site.diagram.tagline": "Flussdiagramme und Blockschaltbilder zeichnen, mit Pfeilen, die den Blöcken folgen.",
@@ -80,10 +80,14 @@
80
80
  "ecosystem.group.basics.blurb": "Where a course starts, and what you go back to.",
81
81
  "ecosystem.group.practice.label": "Practice",
82
82
  "ecosystem.group.practice.blurb": "Where a first course is worked through, one graded series at a time.",
83
+ "ecosystem.group.physics.label": "Physics",
84
+ "ecosystem.group.physics.blurb": "The physics a chemistry course leans on, set up on a bench.",
83
85
  "ecosystem.group.structures.label": "Structures & notation",
84
86
  "ecosystem.group.structures.blurb": "Draw a molecule, convert it between notations, see it in space.",
85
87
  "ecosystem.group.spectra.label": "Spectra",
86
- "ecosystem.group.spectra.blurb": "Process a measurement, and work back to the structure behind it.",
88
+ "ecosystem.group.spectra.blurb": "Open a measurement, process it, and set it beside others.",
89
+ "ecosystem.group.identification.label": "Structure from spectra",
90
+ "ecosystem.group.identification.blurb": "Work back from a spectrum to the structure behind it.",
87
91
  "ecosystem.group.research.label": "Research & data",
88
92
  "ecosystem.group.research.blurb": "Specialised work: real datasets, and molecules nobody has made.",
89
93
  "ecosystem.group.computing.label": "Computing & teaching",
@@ -95,7 +99,6 @@
95
99
  "site.openbabel.tagline": "Convert a structure between any pair of chemical file formats.",
96
100
  "site.chemcalc.tagline": "Molecular formula, exact mass and isotopic distribution.",
97
101
  "site.dbe.tagline": "Count rings and double bonds from a formula or a structure.",
98
- "site.nmrium.tagline": "Process NMR spectra, and keep them as figures that open again.",
99
102
  "site.metabo.tagline": "Turn a batch of NMR spectra into a map of your samples.",
100
103
  "site.derepflow.tagline": "Identify the constituents of a mixture from its ¹³C spectrum.",
101
104
  "site.isomers.tagline": "Every constitutional isomer of a molecular formula.",
@@ -129,6 +132,7 @@
129
132
  "site.plot.tagline": "Plot tables and spectra as charts sized and styled for a journal.",
130
133
  "site.ml.tagline": "Machine learning on spectra, in the browser.",
131
134
  "site.uv-vis.tagline": "Overlay UV-vis spectra and read off every λmax.",
135
+ "site.nmr.tagline": "Process NMR spectra in NMRium, draw pulse sequences, and learn how a spectrum arises.",
132
136
  "site.xps.tagline": "Read, fit and predict X-ray photoelectron spectra.",
133
137
  "site.biodraw.tagline": "Draw cells and membranes, and snap proteins into them.",
134
138
  "site.diagram.tagline": "Draw flowcharts and block diagrams, with arrows that follow the blocks.",
@@ -80,10 +80,14 @@
80
80
  "ecosystem.group.basics.blurb": "Por dónde empieza un curso, y a qué se vuelve.",
81
81
  "ecosystem.group.practice.label": "Práctica",
82
82
  "ecosystem.group.practice.blurb": "Donde se trabaja un primer curso, una serie graduada a la vez.",
83
+ "ecosystem.group.physics.label": "Física",
84
+ "ecosystem.group.physics.blurb": "La física en la que se apoya un curso de química, montada en un banco.",
83
85
  "ecosystem.group.structures.label": "Estructuras y notación",
84
86
  "ecosystem.group.structures.blurb": "Dibujar una molécula, convertirla entre notaciones, verla en el espacio.",
85
87
  "ecosystem.group.spectra.label": "Espectros",
86
- "ecosystem.group.spectra.blurb": "Procesar una medida y remontarse a la estructura que hay detrás.",
88
+ "ecosystem.group.spectra.blurb": "Abrir una medida, procesarla y compararla con otras.",
89
+ "ecosystem.group.identification.label": "Estructura a partir de espectros",
90
+ "ecosystem.group.identification.blurb": "Remontarse de un espectro a la estructura que hay detrás.",
87
91
  "ecosystem.group.research.label": "Investigación y datos",
88
92
  "ecosystem.group.research.blurb": "Trabajo especializado: conjuntos de datos reales y moléculas que nadie ha hecho.",
89
93
  "ecosystem.group.computing.label": "Informática y docencia",
@@ -95,7 +99,6 @@
95
99
  "site.openbabel.tagline": "Convertir una estructura entre cualquier par de formatos de archivo químicos.",
96
100
  "site.chemcalc.tagline": "Fórmula molecular, masa exacta y distribución isotópica.",
97
101
  "site.dbe.tagline": "Contar ciclos y dobles enlaces a partir de una fórmula o una estructura.",
98
- "site.nmrium.tagline": "Procesar espectros de RMN y guardarlos como figuras que se vuelven a abrir.",
99
102
  "site.metabo.tagline": "Convertir un lote de espectros de RMN en un mapa de sus muestras.",
100
103
  "site.derepflow.tagline": "Identificar los constituyentes de una mezcla a partir de su espectro de ¹³C.",
101
104
  "site.isomers.tagline": "Todos los isómeros constitucionales de una fórmula molecular.",
@@ -129,6 +132,7 @@
129
132
  "site.plot.tagline": "Trazar tablas y espectros como gráficos con el tamaño y el estilo de una revista.",
130
133
  "site.ml.tagline": "Aprendizaje automático sobre espectros, en el navegador.",
131
134
  "site.uv-vis.tagline": "Superponer espectros UV-vis y leer cada λmax.",
135
+ "site.nmr.tagline": "Procesar espectros de RMN en NMRium, dibujar secuencias de pulsos y entender cómo nace un espectro.",
132
136
  "site.xps.tagline": "Leer, ajustar y predecir espectros de fotoelectrones de rayos X.",
133
137
  "site.biodraw.tagline": "Dibujar células y membranas, y anclar proteínas en ellas.",
134
138
  "site.diagram.tagline": "Dibujar diagramas de flujo y de bloques, con flechas que siguen a los bloques.",
@@ -80,10 +80,14 @@
80
80
  "ecosystem.group.basics.blurb": "Par où commence un cours, et ce qu'on y revoit.",
81
81
  "ecosystem.group.practice.label": "Exercices",
82
82
  "ecosystem.group.practice.blurb": "Où l'on travaille un premier cours, une série graduée à la fois.",
83
+ "ecosystem.group.physics.label": "Physique",
84
+ "ecosystem.group.physics.blurb": "La physique dont un cours de chimie a besoin, montée sur un banc.",
83
85
  "ecosystem.group.structures.label": "Structures et notations",
84
86
  "ecosystem.group.structures.blurb": "Dessiner une molécule, la convertir d'une notation à l'autre, la voir dans l'espace.",
85
87
  "ecosystem.group.spectra.label": "Spectres",
86
- "ecosystem.group.spectra.blurb": "Traiter une mesure, et remonter à la structure qui la produit.",
88
+ "ecosystem.group.spectra.blurb": "Ouvrir une mesure, la traiter, et la comparer à d'autres.",
89
+ "ecosystem.group.identification.label": "Structure à partir des spectres",
90
+ "ecosystem.group.identification.blurb": "Remonter d'un spectre à la structure qui le produit.",
87
91
  "ecosystem.group.research.label": "Recherche et données",
88
92
  "ecosystem.group.research.blurb": "Travail spécialisé : jeux de données réels, et molécules que personne n'a faites.",
89
93
  "ecosystem.group.computing.label": "Informatique et enseignement",
@@ -95,7 +99,6 @@
95
99
  "site.openbabel.tagline": "Convertir une structure entre deux formats de fichier chimiques quelconques.",
96
100
  "site.chemcalc.tagline": "Formule moléculaire, masse exacte et distribution isotopique.",
97
101
  "site.dbe.tagline": "Compter cycles et doubles liaisons à partir d'une formule ou d'une structure.",
98
- "site.nmrium.tagline": "Traiter des spectres RMN et les garder en figures qui se rouvrent.",
99
102
  "site.metabo.tagline": "Transformer un lot de spectres RMN en une carte de vos échantillons.",
100
103
  "site.derepflow.tagline": "Identifier les constituants d'un mélange à partir de son spectre ¹³C.",
101
104
  "site.isomers.tagline": "Tous les isomères de constitution d'une formule moléculaire.",
@@ -129,6 +132,7 @@
129
132
  "site.plot.tagline": "Tracer des tableaux et des spectres en graphiques aux dimensions et au style d’une revue.",
130
133
  "site.ml.tagline": "Apprentissage automatique sur des spectres, dans le navigateur.",
131
134
  "site.uv-vis.tagline": "Superposer des spectres UV-visible et relever chaque λmax.",
135
+ "site.nmr.tagline": "Traiter des spectres RMN dans NMRium, dessiner des séquences d'impulsions, et comprendre comment naît un spectre.",
132
136
  "site.xps.tagline": "Lire, ajuster et prédire des spectres de photoélectrons X.",
133
137
  "site.biodraw.tagline": "Dessiner cellules et membranes, et y ancrer des protéines.",
134
138
  "site.diagram.tagline": "Dessiner des logigrammes et des schémas-blocs, avec des flèches qui suivent les blocs.",
@@ -80,10 +80,14 @@
80
80
  "ecosystem.group.basics.blurb": "Da dove comincia un corso, e a cosa si torna.",
81
81
  "ecosystem.group.practice.label": "Esercitazione",
82
82
  "ecosystem.group.practice.blurb": "Dove si affronta un primo corso, una serie graduata alla volta.",
83
+ "ecosystem.group.physics.label": "Fisica",
84
+ "ecosystem.group.physics.blurb": "La fisica su cui si appoggia un corso di chimica, montata su un banco.",
83
85
  "ecosystem.group.structures.label": "Strutture e notazione",
84
86
  "ecosystem.group.structures.blurb": "Disegnare una molecola, convertirla fra notazioni, vederla nello spazio.",
85
87
  "ecosystem.group.spectra.label": "Spettri",
86
- "ecosystem.group.spectra.blurb": "Elaborare una misura, e risalire alla struttura che c'è dietro.",
88
+ "ecosystem.group.spectra.blurb": "Aprire una misura, elaborarla e confrontarla con altre.",
89
+ "ecosystem.group.identification.label": "Struttura dagli spettri",
90
+ "ecosystem.group.identification.blurb": "Risalire da uno spettro alla struttura che c'è dietro.",
87
91
  "ecosystem.group.research.label": "Ricerca e dati",
88
92
  "ecosystem.group.research.blurb": "Lavoro specialistico: dati reali, e molecole che nessuno ha mai fatto.",
89
93
  "ecosystem.group.computing.label": "Informatica e didattica",
@@ -95,7 +99,6 @@
95
99
  "site.openbabel.tagline": "Convertire una struttura fra qualsiasi coppia di formati di file chimici.",
96
100
  "site.chemcalc.tagline": "Formula molecolare, massa esatta e distribuzione isotopica.",
97
101
  "site.dbe.tagline": "Contare cicli e doppi legami a partire da una formula o da una struttura.",
98
- "site.nmrium.tagline": "Elaborare spettri NMR e conservarli come figure che si riaprono.",
99
102
  "site.metabo.tagline": "Trasformare una serie di spettri NMR in una mappa dei propri campioni.",
100
103
  "site.derepflow.tagline": "Identificare i costituenti di una miscela dal suo spettro ¹³C.",
101
104
  "site.isomers.tagline": "Tutti gli isomeri costituzionali di una formula molecolare.",
@@ -129,6 +132,7 @@
129
132
  "site.plot.tagline": "Tracciare tabelle e spettri come grafici con le dimensioni e lo stile di una rivista.",
130
133
  "site.ml.tagline": "Apprendimento automatico sugli spettri, nel browser.",
131
134
  "site.uv-vis.tagline": "Sovrapporre spettri UV-vis e leggere ogni λmax.",
135
+ "site.nmr.tagline": "Elaborare spettri NMR in NMRium, disegnare sequenze di impulsi e capire come nasce uno spettro.",
132
136
  "site.xps.tagline": "Leggere, adattare e prevedere spettri fotoelettronici a raggi X.",
133
137
  "site.biodraw.tagline": "Disegnare cellule e membrane, e ancorarvi delle proteine.",
134
138
  "site.diagram.tagline": "Disegnare diagrammi di flusso e a blocchi, con frecce che seguono i blocchi.",