react-cheminfo 0.122.0 → 0.124.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 (94) hide show
  1. package/lib/ecosystem/core/groups.d.ts +1 -1
  2. package/lib/ecosystem/core/groups.d.ts.map +1 -1
  3. package/lib/ecosystem/core/groups.js +11 -1
  4. package/lib/ecosystem/core/groups.js.map +1 -1
  5. package/lib/ecosystem/core/index.d.ts +2 -2
  6. package/lib/ecosystem/core/index.d.ts.map +1 -1
  7. package/lib/ecosystem/core/index.js +1 -1
  8. package/lib/ecosystem/core/index.js.map +1 -1
  9. package/lib/ecosystem/core/lookup.d.ts +6 -0
  10. package/lib/ecosystem/core/lookup.d.ts.map +1 -1
  11. package/lib/ecosystem/core/lookup.js +8 -0
  12. package/lib/ecosystem/core/lookup.js.map +1 -1
  13. package/lib/ecosystem/core/sites.d.ts +1 -1
  14. package/lib/ecosystem/core/sites.d.ts.map +1 -1
  15. package/lib/ecosystem/core/sites.js +134 -3
  16. package/lib/ecosystem/core/sites.js.map +1 -1
  17. package/lib/ecosystem/core/types.d.ts +23 -1
  18. package/lib/ecosystem/core/types.d.ts.map +1 -1
  19. package/lib/ecosystem/core/unlistedSites.d.ts.map +1 -1
  20. package/lib/ecosystem/core/unlistedSites.js +16 -128
  21. package/lib/ecosystem/core/unlistedSites.js.map +1 -1
  22. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  23. package/lib/ecosystem/ui/glyphs.js +3 -0
  24. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  25. package/lib/host/core/answerGet.js +1 -1
  26. package/lib/host/core/answerGet.js.map +1 -1
  27. package/lib/host/core/datasetKinds.d.ts +246 -0
  28. package/lib/host/core/datasetKinds.d.ts.map +1 -0
  29. package/lib/host/core/datasetKinds.js +97 -0
  30. package/lib/host/core/datasetKinds.js.map +1 -0
  31. package/lib/host/core/hostOutputs.js +1 -1
  32. package/lib/host/core/hostOutputs.js.map +1 -1
  33. package/lib/host/core/index.d.ts +6 -1
  34. package/lib/host/core/index.d.ts.map +1 -1
  35. package/lib/host/core/index.js +4 -1
  36. package/lib/host/core/index.js.map +1 -1
  37. package/lib/host/core/kindAccepts.d.ts +15 -0
  38. package/lib/host/core/kindAccepts.d.ts.map +1 -0
  39. package/lib/host/core/kindAccepts.js +22 -0
  40. package/lib/host/core/kindAccepts.js.map +1 -0
  41. package/lib/host/core/kinds.d.ts +7 -10
  42. package/lib/host/core/kinds.d.ts.map +1 -1
  43. package/lib/host/core/kinds.js +7 -17
  44. package/lib/host/core/kinds.js.map +1 -1
  45. package/lib/host/core/selectInputs.d.ts.map +1 -1
  46. package/lib/host/core/selectInputs.js +2 -1
  47. package/lib/host/core/selectInputs.js.map +1 -1
  48. package/lib/host/core/sendTargets.d.ts +32 -0
  49. package/lib/host/core/sendTargets.d.ts.map +1 -0
  50. package/lib/host/core/sendTargets.js +40 -0
  51. package/lib/host/core/sendTargets.js.map +1 -0
  52. package/lib/host/ui/SendToButton.d.ts +38 -0
  53. package/lib/host/ui/SendToButton.d.ts.map +1 -0
  54. package/lib/host/ui/SendToButton.js +61 -0
  55. package/lib/host/ui/SendToButton.js.map +1 -0
  56. package/lib/host/ui/index.d.ts +2 -0
  57. package/lib/host/ui/index.d.ts.map +1 -1
  58. package/lib/host/ui/index.js +1 -0
  59. package/lib/host/ui/index.js.map +1 -1
  60. package/lib/host/ui/openTool.d.ts +16 -8
  61. package/lib/host/ui/openTool.d.ts.map +1 -1
  62. package/lib/host/ui/openTool.js +36 -11
  63. package/lib/host/ui/openTool.js.map +1 -1
  64. package/lib/i18n/core/chromeCatalog.d.ts +1 -1
  65. package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
  66. package/lib/locales/de.json +11 -2
  67. package/lib/locales/en.json +11 -2
  68. package/lib/locales/es.json +11 -2
  69. package/lib/locales/fr.json +11 -2
  70. package/lib/locales/it.json +11 -2
  71. package/package.json +1 -1
  72. package/src/ecosystem/core/groups.ts +13 -1
  73. package/src/ecosystem/core/index.ts +2 -0
  74. package/src/ecosystem/core/lookup.ts +9 -0
  75. package/src/ecosystem/core/sites.ts +141 -3
  76. package/src/ecosystem/core/types.ts +24 -0
  77. package/src/ecosystem/core/unlistedSites.ts +16 -134
  78. package/src/ecosystem/ui/glyphs.tsx +16 -0
  79. package/src/host/core/answerGet.ts +1 -1
  80. package/src/host/core/datasetKinds.ts +202 -0
  81. package/src/host/core/hostOutputs.ts +1 -1
  82. package/src/host/core/index.ts +12 -1
  83. package/src/host/core/kindAccepts.ts +21 -0
  84. package/src/host/core/kinds.ts +14 -18
  85. package/src/host/core/selectInputs.ts +2 -1
  86. package/src/host/core/sendTargets.ts +67 -0
  87. package/src/host/ui/SendToButton.tsx +147 -0
  88. package/src/host/ui/index.ts +2 -0
  89. package/src/host/ui/openTool.ts +57 -16
  90. package/src/locales/de.json +11 -2
  91. package/src/locales/en.json +11 -2
  92. package/src/locales/es.json +11 -2
  93. package/src/locales/fr.json +11 -2
  94. package/src/locales/it.json +11 -2
@@ -0,0 +1,147 @@
1
+ import { Menu, MenuDivider, MenuItem } from '@blueprintjs/core';
2
+ import type { CSSProperties, ReactElement } from 'react';
3
+
4
+ import { siteDisplayName } from '../../ecosystem/core/lookup.ts';
5
+ import { siteUrl } from '../../ecosystem/core/sites.ts';
6
+ import { SiteMark } from '../../ecosystem/ui/marks.tsx';
7
+ import { useChromeT } from '../../i18n/ui/useT.ts';
8
+ import type { HeaderButtonProps } from '../../shared/ui/MenuButton.tsx';
9
+ import { MenuButton } from '../../shared/ui/MenuButton.tsx';
10
+ import type { HostItem } from '../core/protocol.ts';
11
+ import type { SendOffer, SendTarget } from '../core/sendTargets.ts';
12
+ import { sendTargets } from '../core/sendTargets.ts';
13
+
14
+ import { openTool } from './openTool.ts';
15
+
16
+ /** Something the page could send, and how it is built once a site is picked. */
17
+ export interface SendItemOffer extends SendOffer {
18
+ /** Build the item; the site's tab is already open and loading meanwhile. */
19
+ make: () => HostItem | Promise<HostItem>;
20
+ }
21
+
22
+ /** What {@link SendToButton} needs. */
23
+ export interface SendToButtonProps extends HeaderButtonProps {
24
+ /** What the page could send now, in its own order of preference. */
25
+ offers: readonly SendItemOffer[];
26
+ /** The site sending: how it introduces itself, and never a target. */
27
+ siteId: string;
28
+ /**
29
+ * Where a site is opened instead of its own host, by site id — a checkout
30
+ * running locally, e.g. `{ ml: 'http://localhost:11112' }`.
31
+ * @default {}
32
+ */
33
+ addresses?: Readonly<Record<string, string>>;
34
+ /**
35
+ * Told, in one sentence, why something could not be sent.
36
+ * @default undefined — nobody is told
37
+ */
38
+ onError?: (message: string) => void;
39
+ }
40
+
41
+ const DOES_STYLE: CSSProperties = { fontSize: '0.85em', opacity: 0.75 };
42
+
43
+ /**
44
+ * The Send entry of a site header: the sites of the family that can take what
45
+ * the page shows, each opened in a new tab and handed it through the host
46
+ * protocol. Which sites are listed is worked out from the kinds alone, before
47
+ * anything is built; the data is built once a site is picked, while its tab
48
+ * loads.
49
+ * @param props - See {@link SendToButtonProps}.
50
+ * @returns The button and its menu.
51
+ */
52
+ export function SendToButton(props: SendToButtonProps): ReactElement {
53
+ const { offers, siteId, addresses = {}, onError, ...rest } = props;
54
+ const t = useChromeT();
55
+ const targets = sendTargets(offers, siteId);
56
+
57
+ function send(target: SendTarget<SendItemOffer>): void {
58
+ const base = addresses[target.site.id] ?? siteUrl(target.site);
59
+ const url = new URL(target.receiver.page ?? '/', base).href;
60
+ const document = `${siteId}:send:${crypto.randomUUID()}`;
61
+ const opened = openTool({
62
+ url,
63
+ host: siteId,
64
+ document: async () => ({
65
+ document,
66
+ items: [await target.offer.make()],
67
+ }),
68
+ ...(onError === undefined ? {} : { onError }),
69
+ });
70
+ if (!opened) onError?.(t('send.blocked'));
71
+ }
72
+
73
+ return (
74
+ <MenuButton
75
+ {...rest}
76
+ className="send-to-button"
77
+ icon="send-to"
78
+ label={t('send.label')}
79
+ menu={<SendMenu targets={targets} onSend={send} none={t('send.none')} />}
80
+ />
81
+ );
82
+ }
83
+
84
+ interface SendMenuProps {
85
+ targets: ReadonlyArray<SendTarget<SendItemOffer>>;
86
+ onSend: (target: SendTarget<SendItemOffer>) => void;
87
+ none: string;
88
+ }
89
+
90
+ function SendMenu(props: SendMenuProps): ReactElement {
91
+ const { targets, onSend, none } = props;
92
+ const t = useChromeT();
93
+ if (targets.length === 0) {
94
+ return (
95
+ <Menu>
96
+ <MenuItem disabled text={none} />
97
+ </Menu>
98
+ );
99
+ }
100
+ const offers: SendItemOffer[] = [];
101
+ for (const target of targets) {
102
+ if (!offers.includes(target.offer)) offers.push(target.offer);
103
+ }
104
+ return (
105
+ <Menu>
106
+ {offers.map((offer) => (
107
+ <SendGroup
108
+ key={offer.kind}
109
+ title={t('send.heading', { what: offer.label })}
110
+ targets={targets.filter((target) => target.offer === offer)}
111
+ onSend={onSend}
112
+ />
113
+ ))}
114
+ </Menu>
115
+ );
116
+ }
117
+
118
+ interface SendGroupProps {
119
+ title: string;
120
+ targets: ReadonlyArray<SendTarget<SendItemOffer>>;
121
+ onSend: (target: SendTarget<SendItemOffer>) => void;
122
+ }
123
+
124
+ function SendGroup(props: SendGroupProps): ReactElement {
125
+ const { title, targets, onSend } = props;
126
+ return (
127
+ <>
128
+ <MenuDivider title={title} />
129
+ {targets.map((target) => (
130
+ <MenuItem
131
+ key={`${target.site.id}:${target.receiver.page ?? '/'}`}
132
+ icon={<SiteMark site={target.site} size={24} />}
133
+ multiline
134
+ text={
135
+ <>
136
+ <div>{siteDisplayName(target.site)}</div>
137
+ <div style={DOES_STYLE}>{target.receiver.does}</div>
138
+ </>
139
+ }
140
+ onClick={() => {
141
+ onSend(target);
142
+ }}
143
+ />
144
+ ))}
145
+ </>
146
+ );
147
+ }
@@ -17,6 +17,8 @@ export type { SaveFigureAs, SaveFigureAsOptions } from './useSaveFigureAs.tsx';
17
17
  export { useSaveFigureAs } from './useSaveFigureAs.tsx';
18
18
  export { useSaveShortcut } from './useSaveShortcut.ts';
19
19
  export { openTool } from './openTool.ts';
20
+ export type { SendItemOffer, SendToButtonProps } from './SendToButton.tsx';
21
+ export { SendToButton } from './SendToButton.tsx';
20
22
  export type {
21
23
  FramedTool,
22
24
  FramedToolOptions,
@@ -1,10 +1,15 @@
1
1
  /**
2
- * Open a framed tool on its own site, in a new tab, carrying what the frame
3
- * shows: a visitor who wants the whole site keeps the structure they were
4
- * looking at.
2
+ * Open a tool on its own site, in a new tab, carrying data: a framed tool's
3
+ * structure for a visitor who wants the whole site, or what a Send menu sends
4
+ * another site of the family.
5
5
  */
6
6
 
7
- import type { ToolDocument } from '../core/connectTool.ts';
7
+ import { errorMessage } from '../../error/core/toError.ts';
8
+ import type {
9
+ LoadOutcome,
10
+ ToolConnection,
11
+ ToolDocument,
12
+ } from '../core/connectTool.ts';
8
13
  import { REQUEST_TIMEOUT, connectTool } from '../core/connectTool.ts';
9
14
  import { toolPageUrl } from '../core/toolPage.ts';
10
15
 
@@ -12,29 +17,40 @@ import { HELLO_TIMEOUT } from './useFramedTool.ts';
12
17
 
13
18
  /** What {@link openTool} opens, and what it hands over. */
14
19
  export interface OpenToolOptions {
15
- /** The framed address; the tab opens the same page without the framing. */
20
+ /** The address; the tab opens the same page without the framing. */
16
21
  url: string;
17
22
  /** How the host introduces itself to the tool. */
18
23
  host: string;
19
24
  /**
20
- * What the tab is handed once the tool greets it, or `null` to open the
21
- * page as it is.
25
+ * What the tab is handed once the tool greets it: the document, a function
26
+ * building it once the tab is open — a large one takes the time the tool
27
+ * takes to load — or `null` to open the page as it is.
22
28
  */
23
- document: ToolDocument | null;
29
+ document: ToolDocument | (() => Promise<ToolDocument>) | null;
30
+ /**
31
+ * Told, in one sentence, when the document could not be built, or the tool
32
+ * refused it or never answered.
33
+ * @default undefined — nobody is told
34
+ */
35
+ onError?: (message: string) => void;
24
36
  }
25
37
 
38
+ /** What a tool that greeted nobody, or never answered, is reported as. */
39
+ const NOT_ANSWERED = 'The tool did not answer in time.';
40
+
26
41
  /**
27
42
  * Open the tool's own page in a new tab and, when there is a document, hand
28
43
  * it over through the host protocol: the tool greets the window that opened
29
44
  * it as it greets a parent frame. The connection is closed once the tool has
30
45
  * answered, or has had its time to.
31
46
  *
32
- * Call it from a click: a browser opens a tab only then.
47
+ * Call it from a click: a browser opens a tab only then, which is why a
48
+ * document that takes time to build is passed as a function.
33
49
  * @param options - See {@link OpenToolOptions}.
34
50
  * @returns `false` when the browser would not open the tab.
35
51
  */
36
52
  export function openTool(options: OpenToolOptions): boolean {
37
- const { url, host, document } = options;
53
+ const { url, host, document, onError } = options;
38
54
  const page = toolPageUrl(url);
39
55
  if (document === null) {
40
56
  // `noopener` makes `open` return null whether or not the tab opened.
@@ -54,14 +70,39 @@ export function openTool(options: OpenToolOptions): boolean {
54
70
  };
55
71
  },
56
72
  });
73
+ void handOver(connection, document)
74
+ .then(
75
+ (outcome) => {
76
+ if (outcome.status === 'refused') onError?.(outcome.error.message);
77
+ if (outcome.status === 'dropped') onError?.(NOT_ANSWERED);
78
+ },
79
+ (error: unknown) => {
80
+ onError?.(errorMessage(error));
81
+ },
82
+ )
83
+ .finally(() => {
84
+ connection.close();
85
+ });
86
+ return true;
87
+ }
88
+
89
+ async function handOver(
90
+ connection: ToolConnection,
91
+ document: ToolDocument | (() => Promise<ToolDocument>),
92
+ ): Promise<LoadOutcome> {
93
+ const ready = typeof document === 'function' ? await document() : document;
94
+ // The tool's time to greet and to answer runs from when there is something
95
+ // to hand it.
57
96
  const timer = setTimeout(() => {
58
97
  connection.close();
59
98
  }, HELLO_TIMEOUT + REQUEST_TIMEOUT);
60
- // Only the structure: nothing the frame takes back is asked of the tab.
61
- const handed = { document: document.document, items: document.items };
62
- void connection.load(handed).finally(() => {
99
+ try {
100
+ // Only the data: nothing the opener takes back is asked of the tab.
101
+ return await connection.load({
102
+ document: ready.document,
103
+ items: ready.items,
104
+ });
105
+ } finally {
63
106
  clearTimeout(timer);
64
- connection.close();
65
- });
66
- return true;
107
+ }
67
108
  }
@@ -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",
@@ -127,6 +131,7 @@
127
131
  "site.wikidata.tagline": "Die Chemie der Wikipedia-Infoboxen, nach Struktur durchsuchbar.",
128
132
  "site.mz.tagline": "Massenspektren, danach geordnet, wie sie gemessen wurden.",
129
133
  "site.plot.tagline": "Tabellen und Spektren als Diagramme zeichnen, in Größe und Stil einer Zeitschrift.",
134
+ "site.ml.tagline": "Maschinelles Lernen auf Spektren, im Browser.",
130
135
  "site.uv-vis.tagline": "UV-Vis-Spektren überlagern und jedes λmax ablesen.",
131
136
  "site.xps.tagline": "Röntgenphotoelektronenspektren lesen, anpassen und vorhersagen.",
132
137
  "site.biodraw.tagline": "Zellen und Membranen zeichnen und Proteine darin verankern.",
@@ -1058,5 +1063,9 @@
1058
1063
  "folder.create": "Erstellen",
1059
1064
  "folder.folderTaken": "Hier heißt bereits ein Ordner {name}: Wählen Sie einen anderen Namen.",
1060
1065
  "folder.openFolder": "Den Ordner {folder} öffnen",
1061
- "folder.found": "In {path}"
1066
+ "folder.found": "In {path}",
1067
+ "send.label": "Senden an",
1068
+ "send.heading": "{what} senden an",
1069
+ "send.none": "Von dieser Seite lässt sich noch nichts an ein anderes Werkzeug senden.",
1070
+ "send.blocked": "Der Browser hat den neuen Tab blockiert: Pop-ups für diese Seite erlauben, dann erneut senden."
1062
1071
  }
@@ -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",
@@ -127,6 +131,7 @@
127
131
  "site.wikidata.tagline": "The chemistry of Wikipedia’s infoboxes, searchable by structure.",
128
132
  "site.mz.tagline": "Mass spectra, classified by how they were measured.",
129
133
  "site.plot.tagline": "Plot tables and spectra as charts sized and styled for a journal.",
134
+ "site.ml.tagline": "Machine learning on spectra, in the browser.",
130
135
  "site.uv-vis.tagline": "Overlay UV-vis spectra and read off every λmax.",
131
136
  "site.xps.tagline": "Read, fit and predict X-ray photoelectron spectra.",
132
137
  "site.biodraw.tagline": "Draw cells and membranes, and snap proteins into them.",
@@ -1058,5 +1063,9 @@
1058
1063
  "folder.create": "Create",
1059
1064
  "folder.folderTaken": "A folder is already named {name} here: choose another name.",
1060
1065
  "folder.openFolder": "Open the folder {folder}",
1061
- "folder.found": "In {path}"
1066
+ "folder.found": "In {path}",
1067
+ "send.label": "Send to",
1068
+ "send.heading": "Send {what} to",
1069
+ "send.none": "Nothing on this page can be sent to another tool yet.",
1070
+ "send.blocked": "The browser blocked the new tab: allow pop-ups for this site, then send again."
1062
1071
  }
@@ -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",
@@ -127,6 +131,7 @@
127
131
  "site.wikidata.tagline": "La química de las fichas de Wikipedia, con búsqueda por estructura.",
128
132
  "site.mz.tagline": "Espectros de masas, clasificados según cómo se midieron.",
129
133
  "site.plot.tagline": "Trazar tablas y espectros como gráficos con el tamaño y el estilo de una revista.",
134
+ "site.ml.tagline": "Aprendizaje automático sobre espectros, en el navegador.",
130
135
  "site.uv-vis.tagline": "Superponer espectros UV-vis y leer cada λmax.",
131
136
  "site.xps.tagline": "Leer, ajustar y predecir espectros de fotoelectrones de rayos X.",
132
137
  "site.biodraw.tagline": "Dibujar células y membranas, y anclar proteínas en ellas.",
@@ -1058,5 +1063,9 @@
1058
1063
  "folder.create": "Crear",
1059
1064
  "folder.folderTaken": "Aquí ya hay una carpeta llamada {name}: elija otro nombre.",
1060
1065
  "folder.openFolder": "Abrir la carpeta {folder}",
1061
- "folder.found": "En {path}"
1066
+ "folder.found": "En {path}",
1067
+ "send.label": "Enviar a",
1068
+ "send.heading": "Enviar {what} a",
1069
+ "send.none": "Nada de esta página puede enviarse todavía a otra herramienta.",
1070
+ "send.blocked": "El navegador bloqueó la nueva pestaña: permita las ventanas emergentes para este sitio y vuelva a enviar."
1062
1071
  }
@@ -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",
@@ -127,6 +131,7 @@
127
131
  "site.wikidata.tagline": "La chimie des infobox de Wikipédia, interrogeable par structure.",
128
132
  "site.mz.tagline": "Des spectres de masse, classés selon la façon dont ils ont été mesurés.",
129
133
  "site.plot.tagline": "Tracer des tableaux et des spectres en graphiques aux dimensions et au style d’une revue.",
134
+ "site.ml.tagline": "Apprentissage automatique sur des spectres, dans le navigateur.",
130
135
  "site.uv-vis.tagline": "Superposer des spectres UV-visible et relever chaque λmax.",
131
136
  "site.xps.tagline": "Lire, ajuster et prédire des spectres de photoélectrons X.",
132
137
  "site.biodraw.tagline": "Dessiner cellules et membranes, et y ancrer des protéines.",
@@ -1058,5 +1063,9 @@
1058
1063
  "folder.create": "Créer",
1059
1064
  "folder.folderTaken": "Un dossier s’appelle déjà {name} ici : choisissez un autre nom.",
1060
1065
  "folder.openFolder": "Ouvrir le dossier {folder}",
1061
- "folder.found": "Dans {path}"
1066
+ "folder.found": "Dans {path}",
1067
+ "send.label": "Envoyer vers",
1068
+ "send.heading": "Envoyer {what} vers",
1069
+ "send.none": "Rien sur cette page ne peut encore être envoyé à un autre outil.",
1070
+ "send.blocked": "Le navigateur a bloqué le nouvel onglet : autorisez les fenêtres pour ce site, puis envoyez à nouveau."
1062
1071
  }
@@ -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",
@@ -127,6 +131,7 @@
127
131
  "site.wikidata.tagline": "La chimica delle infobox di Wikipedia, ricercabile per struttura.",
128
132
  "site.mz.tagline": "Spettri di massa, classificati in base a come sono stati misurati.",
129
133
  "site.plot.tagline": "Tracciare tabelle e spettri come grafici con le dimensioni e lo stile di una rivista.",
134
+ "site.ml.tagline": "Apprendimento automatico sugli spettri, nel browser.",
130
135
  "site.uv-vis.tagline": "Sovrapporre spettri UV-vis e leggere ogni λmax.",
131
136
  "site.xps.tagline": "Leggere, adattare e prevedere spettri fotoelettronici a raggi X.",
132
137
  "site.biodraw.tagline": "Disegnare cellule e membrane, e ancorarvi delle proteine.",
@@ -1058,5 +1063,9 @@
1058
1063
  "folder.create": "Crea",
1059
1064
  "folder.folderTaken": "Qui c’è già una cartella chiamata {name}: scegli un altro nome.",
1060
1065
  "folder.openFolder": "Apri la cartella {folder}",
1061
- "folder.found": "In {path}"
1066
+ "folder.found": "In {path}",
1067
+ "send.label": "Invia a",
1068
+ "send.heading": "Invia {what} a",
1069
+ "send.none": "Nulla di questa pagina può ancora essere inviato a un altro strumento.",
1070
+ "send.blocked": "Il browser ha bloccato la nuova scheda: consenti i pop-up per questo sito, poi invia di nuovo."
1062
1071
  }