chem-generic-ui 0.1.46 → 0.1.49

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 (75) hide show
  1. package/README.md +0 -0
  2. package/dist/bundle.js +25 -2
  3. package/package.json +34 -49
  4. package/.babelrc +0 -11
  5. package/.eslintrc +0 -23
  6. package/.tool-versions +0 -3
  7. package/chem-generic-ui-v0.1.41.tgz +0 -0
  8. package/dist/bundle.js.LICENSE.txt +0 -70
  9. package/dist/ds_details.json +0 -57
  10. package/dist/ds_klass.json +0 -102
  11. package/dist/ds_props.json +0 -54
  12. package/dist/index.html +0 -14
  13. package/dist/sg_details.json +0 -2036
  14. package/dist/sg_klass.json +0 -850
  15. package/dist/units_system.json +0 -430
  16. package/public/ds_details.json +0 -57
  17. package/public/ds_klass.json +0 -102
  18. package/public/ds_props.json +0 -54
  19. package/public/favicon.ico +0 -0
  20. package/public/images/not_available.svg +0 -1
  21. package/public/index.html +0 -47
  22. package/public/logo192.png +0 -0
  23. package/public/logo512.png +0 -0
  24. package/public/manifest.json +0 -25
  25. package/public/robots.txt +0 -3
  26. package/public/sg_details.json +0 -2036
  27. package/public/sg_klass.json +0 -850
  28. package/public/test/ds_props.json +0 -54
  29. package/public/units_system.json +0 -430
  30. package/src/app.js +0 -52
  31. package/src/asserts/bootstrap-theme.min.css +0 -6
  32. package/src/asserts/bootstrap.min.css +0 -6
  33. package/src/asserts/main.css +0 -458
  34. package/src/asserts/main.scss +0 -490
  35. package/src/components/admin/ElementManager.js +0 -28
  36. package/src/components/details/GenDSDetails.js +0 -164
  37. package/src/components/details/GenSgDetails.js +0 -396
  38. package/src/components/dnd/DragDropItemTypes.js +0 -13
  39. package/src/components/dnd/GenericElDropTarget.js +0 -160
  40. package/src/components/dnd/GridDnD.js +0 -42
  41. package/src/components/dnd/PanelDnD.js +0 -85
  42. package/src/components/fields/ButtonConfirm.js +0 -45
  43. package/src/components/fields/ButtonTooltip.js +0 -46
  44. package/src/components/fields/FieldLabel.js +0 -18
  45. package/src/components/fields/GenDSMisType.js +0 -20
  46. package/src/components/fields/GenFormGroupCb.js +0 -17
  47. package/src/components/fields/GenProperties.js +0 -56
  48. package/src/components/fields/GenPropertiesFields.js +0 -440
  49. package/src/components/layers/GenPropertiesLayer.js +0 -178
  50. package/src/components/layers/LayerModal.js +0 -52
  51. package/src/components/layers/LayersLayout.js +0 -68
  52. package/src/components/models/Attachment.js +0 -37
  53. package/src/components/models/GenericSubField.js +0 -10
  54. package/src/components/table/DropLinkRenderer.js +0 -35
  55. package/src/components/table/DropRenderer.js +0 -31
  56. package/src/components/table/DropTextRenderer.js +0 -25
  57. package/src/components/table/GenericElTableDropTarget.js +0 -131
  58. package/src/components/table/GridBtn.js +0 -41
  59. package/src/components/table/GridEntry.js +0 -75
  60. package/src/components/table/SamOption.js +0 -53
  61. package/src/components/table/SelectRenderer.js +0 -34
  62. package/src/components/table/TableRecord.js +0 -254
  63. package/src/components/table/UConverterRenderer.js +0 -24
  64. package/src/components/tools/collate.js +0 -65
  65. package/src/components/tools/orten.js +0 -171
  66. package/src/components/tools/utils.js +0 -414
  67. package/src/data/SystemUnits.js +0 -434
  68. package/src/data/systemUnits.json +0 -430
  69. package/src/index.css +0 -13
  70. package/src/index.html +0 -1
  71. package/src/index.js +0 -45
  72. package/src/logo.svg +0 -1
  73. package/src/simulations/SimuDS.js +0 -52
  74. package/src/simulations/SimuSG.js +0 -54
  75. package/webpack.config.js +0 -46
@@ -1,430 +0,0 @@
1
- {
2
- "fields": [
3
- {
4
- "type": "numeric",
5
- "field": "acceleration",
6
- "label": "Acceleration",
7
- "default": "",
8
- "position": 10,
9
- "placeholder": "acceleration",
10
- "units": [
11
- { "key": "mm_s2", "label": "mm/s<sup>2</sup>" }
12
- ]
13
- },
14
- {
15
- "type": "numeric",
16
- "field": "agitation",
17
- "label": "Agitation",
18
- "default": "",
19
- "position": 20,
20
- "placeholder": "agitation",
21
- "units": [
22
- { "key": "rpm", "label": "rpm" }
23
- ]
24
- },
25
- {
26
- "type": "numeric",
27
- "field": "amount_enzyme",
28
- "label": "Amount enzyme as nmol/min",
29
- "default": "",
30
- "position": 30,
31
- "placeholder": "amount enzyme as nmol/min",
32
- "units": [
33
- { "key": "u", "label": "U", "nm": 1 },
34
- { "key": "mu", "label": "mU", "nm": 1000 }
35
- ]
36
- },
37
- {
38
- "type": "numeric",
39
- "field": "molarity",
40
- "label": "Chem. concentration (Molarity)",
41
- "default": "",
42
- "position": 40,
43
- "placeholder": "molarity",
44
- "units": [
45
- { "key": "mol_l", "label": "mol/L (M)", "nm": 1 },
46
- { "key": "mmol_l", "label": "mmol/L (mM)", "nm": 1000 },
47
- { "key": "nmol_l", "label": "nmol/L (nM)", "nm": 1000000 },
48
- { "key": "pmol_l", "label": "pmol/L (pM)", "nm": 1000000000 }
49
- ]
50
- },
51
- {
52
- "type": "numeric",
53
- "field": "chem_distances",
54
- "label": "Chem. distances",
55
- "default": "",
56
- "position": 50,
57
- "placeholder": "Chem. distances",
58
- "units": [
59
- { "key": "angstrom", "label": "Å" }
60
- ]
61
- },
62
- {
63
- "type": "numeric",
64
- "field": "concentration",
65
- "label": "Concentration",
66
- "default": "",
67
- "position": 60,
68
- "placeholder": "concentration",
69
- "units": [
70
- { "key": "ng_l", "label": "ng/L", "nm": 1000000 },
71
- { "key": "mg_l", "label": "mg/L", "nm": 1000 },
72
- { "key": "g_l", "label": "g/L", "nm": 1 }
73
- ]
74
- },
75
- {
76
- "type": "numeric",
77
- "field": "conductivity",
78
- "label": "Conductivity",
79
- "default": "",
80
- "position": 66,
81
- "placeholder": "conductivity",
82
- "units": [
83
- { "key": "s_m", "label": "S/m", "nm": 1 }
84
- ]
85
- },{
86
- "type": "numeric",
87
- "field": "current",
88
- "label": "Current",
89
- "default": "",
90
- "position": 60,
91
- "placeholder": "Current",
92
- "units": [
93
- { "key": "A", "label": "A", "nm": 1 },
94
- { "key": "mA", "label": "mA", "nm": 1000 },
95
- { "key": "uA", "label": "µA", "nm": 1000000},
96
- { "key": "nA", "label": "nA", "nm": 1000000000 }
97
- ]
98
- },
99
- {
100
- "type": "numeric",
101
- "field": "degree",
102
- "label": "Degree",
103
- "default": "",
104
- "position": 70,
105
- "placeholder": "degree",
106
- "units": [
107
- { "key": "degree", "label": "°" }
108
- ]
109
- },
110
- {
111
- "type": "numeric",
112
- "field": "density",
113
- "label": "Density",
114
- "default": "",
115
- "position": 75,
116
- "placeholder": "density",
117
- "units": [
118
- { "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 },
119
- { "key": "kg_l", "label": "kg/l", "nm": 1 }
120
- ]
121
- },
122
- {
123
- "type": "numeric",
124
- "field": "duration",
125
- "label": "Duration",
126
- "default": "",
127
- "position": 80,
128
- "placeholder": "duration",
129
- "units": [
130
- { "key": "d", "label": "d", "nm": 1 },
131
- { "key": "h", "label": "h", "nm": 24 },
132
- { "key": "min", "label": "m", "nm": 1440 },
133
- { "key": "s", "label": "s", "nm": 86400 }
134
- ]
135
- },
136
- {
137
- "type": "numeric",
138
- "field": "elastic_modulus",
139
- "label": "Elastic modulus",
140
- "default": "",
141
- "position": 86,
142
- "placeholder": "Elastic modulus",
143
- "units": [
144
- { "key": "m_pa", "label": "MPa", "nm": 1 },
145
- { "key": "k_pa", "label": "kPa", "nm": 1000 },
146
- { "key": "pa", "label": "Pa", "nm": 1000000 }
147
- ]
148
- },
149
- {
150
- "type": "numeric",
151
- "field": "electric_field",
152
- "label": "Electric field",
153
- "default": "",
154
- "position": 86,
155
- "placeholder": "Electric field",
156
- "units": [
157
- { "key": "v_m", "label": "V/m", "nm": 1 }
158
- ]
159
- },
160
- {
161
- "type": "numeric",
162
- "field": "energy",
163
- "label": "Energy",
164
- "default": "",
165
- "position": 88,
166
- "placeholder": "Joule",
167
- "units": [
168
- { "key": "j", "label": "J", "nm": 1000 },
169
- { "key": "k_j", "label": "kJ", "nm": 1 }
170
- ]
171
- },
172
- {
173
- "type": "numeric",
174
- "field": "enzyme_activity",
175
- "label": "Enzyme activity",
176
- "default": "",
177
- "position": 90,
178
- "placeholder": "Enzyme activity",
179
- "units": [
180
- { "key": "u_l", "label": "U/L", "nm": 1 },
181
- { "key": "u_ml", "label": "U/mL", "nm": 1000 }
182
- ]
183
- },
184
- {
185
- "type": "numeric",
186
- "field": "flow_rate",
187
- "label": "Flow rate",
188
- "default": "",
189
- "position": 100,
190
- "placeholder": "Flow rate",
191
- "units": [
192
- { "key": "ul_min", "label": "µl/min", "nm": 1000000 },
193
- { "key": "ml_min", "label": "ml/min", "nm": 1000 },
194
- { "key": "l_m", "label": "l/m", "nm": 1 }
195
- ]
196
- },
197
- {
198
- "type": "numeric",
199
- "field": "frequency",
200
- "label": "Frequency",
201
- "default": "",
202
- "position": 100,
203
- "placeholder": "frequency",
204
- "units": [
205
- { "key": "hz", "label": "Hz", "nm": 1000 },
206
- { "key": "khz", "label": "kHz", "nm": 1 }
207
- ]
208
- },
209
- {
210
- "type": "numeric",
211
- "field": "heating_rate",
212
- "label": "Heating rate",
213
- "default": "",
214
- "position": 106,
215
- "placeholder": "heating rate",
216
- "units": [
217
- { "key": "k_min", "label": "K/min", "nm": 1 }
218
- ]
219
- },
220
- {
221
- "type": "numeric",
222
- "field": "length",
223
- "label": "Length",
224
- "default": "",
225
- "position": 110,
226
- "placeholder": "length",
227
- "units": [
228
- { "key": "pm", "label": "pm", "nm": 100000 },
229
- { "key": "nm", "label": "nm", "nm": 10000 },
230
- { "key": "mm", "label": "mm", "nm": 1000 },
231
- { "key": "cm", "label": "cm", "nm": 100 },
232
- { "key": "m", "label": "m", "nm": 1 }
233
- ]
234
- },
235
- {
236
- "type": "numeric",
237
- "field": "magnetic_flux_density",
238
- "label": "Magnetic flux density/inductivity",
239
- "default": "",
240
- "position": 120,
241
- "placeholder": "",
242
- "units": [
243
- { "key": "T", "label": "T", "nm": 1 }
244
- ]
245
- },
246
- {
247
- "type": "numeric",
248
- "field": "mass",
249
- "label": "Mass",
250
- "default": "",
251
- "position": 120,
252
- "placeholder": "mass",
253
- "units": [
254
- { "key": "g", "label": "g", "nm": 1 },
255
- { "key": "mg", "label": "mg", "nm": 1000 },
256
- { "key": "ug", "label": "µg", "nm": 1000000 }
257
- ]
258
- },
259
- {
260
- "type": "numeric",
261
- "field": "mass_molecule",
262
- "label": "Mass of molecule",
263
- "default": "",
264
- "position": 126,
265
- "placeholder": "mass of molecule",
266
- "units": [
267
- { "key": "dalton", "label": "D", "nm": 1000 },
268
- { "key": "kilo_dalton", "label": "kD", "nm": 1 }
269
- ]
270
- },
271
- {
272
- "type": "numeric",
273
- "field": "molecular_weight",
274
- "label": "Molecular weight",
275
- "default": "",
276
- "position": 130,
277
- "placeholder": "Molecular weight",
278
- "units": [
279
- { "key": "g_mol", "label": "g/mol" }
280
- ]
281
- },
282
- {
283
- "type": "numeric",
284
- "field": "percentage",
285
- "label": "Percentage",
286
- "default": "",
287
- "position": 136,
288
- "placeholder": "percentage",
289
- "units": [
290
- { "key": "p", "label": "%", "nm": 1 }
291
- ]
292
- },
293
- {
294
- "type": "numeric",
295
- "field": "pressure",
296
- "label": "Pressure",
297
- "default": "",
298
- "position": 140,
299
- "placeholder": "pressure",
300
- "units": [
301
- { "key": "atm", "label": "atm", "nm": 1 },
302
- { "key": "pa", "label": "Pa", "nm": 101325 },
303
- { "key": "torr", "label": "Torr", "nm": 760 }
304
- ]
305
- },
306
- {
307
- "type": "numeric",
308
- "field": "reaction_rate",
309
- "label": "Reaction rate",
310
- "default": "",
311
- "position": 150,
312
- "placeholder": "Reaction rate",
313
- "units": [
314
- { "key": "mol_lmin", "label": "mol/Lmin", "nm": 1 },
315
- { "key": "mol_lsec", "label": "mol/Ls", "nm": 60 }
316
- ]
317
- },
318
- {
319
- "type": "numeric",
320
- "field": "specific_volume",
321
- "label": "Specific Volume",
322
- "default": "",
323
- "position": 160,
324
- "placeholder": "Specific Volume",
325
- "units": [
326
- { "key": "cm3_g", "label": "cm<sup>3</sup>/g", "nm": 1 }
327
- ]
328
- },
329
- {
330
- "type": "numeric",
331
- "field": "speed",
332
- "label": "Speed",
333
- "default": "",
334
- "position": 165,
335
- "placeholder": "speed",
336
- "units": [
337
- { "key": "cm_s", "label": "cm/s", "nm": 1 },
338
- { "key": "mm_s", "label": "mm/s", "nm": 10 },
339
- { "key": "cm_h", "label": "cm/h", "nm": 3600 },
340
- { "key": "mm_h", "label": "mm/h", "nm": 36000 }
341
- ]
342
- },
343
- {
344
- "type": "numeric",
345
- "field": "surface",
346
- "label": "Surface",
347
- "default": "",
348
- "position": 170,
349
- "placeholder": "surface",
350
- "units": [
351
- { "key": "a_2", "label": "A<sup>2</sup>" },
352
- { "key": "mm_2", "label": "mm<sup>2</sup>" },
353
- { "key": "cm_2", "label": "cm<sup>2</sup>" }
354
- ]
355
- },
356
- {
357
- "type": "numeric",
358
- "field": "temperature",
359
- "label": "Temperature",
360
- "default": "",
361
- "position": 180,
362
- "placeholder": "temperature",
363
- "units": [
364
- { "key": "C", "label": "°C" },
365
- { "key": "F", "label": "°F" },
366
- { "key": "K", "label": "°K" }
367
- ]
368
- },
369
- {
370
- "type": "numeric",
371
- "field": "turnover_number",
372
- "label": "Turnover number",
373
- "default": "",
374
- "position": 190,
375
- "placeholder": "Turnover number",
376
- "units": [
377
- { "key": "1_s", "label": "1/s" }
378
- ]
379
- },
380
- {
381
- "type": "numeric",
382
- "field": "viscosity",
383
- "label": "Dynamic Viscosity",
384
- "default": "",
385
- "position": 200,
386
- "placeholder": "Dynamic Viscosity",
387
- "units": [
388
- { "key": "pas", "label": "Pas", "nm": 1 },
389
- { "key": "mpas", "label": "mPas", "nm": 1000 }
390
- ]
391
- },
392
- {
393
- "type": "numeric",
394
- "field": "kinematic_viscosity",
395
- "label": "Kinematic Viscosity",
396
- "default": "",
397
- "position": 205,
398
- "placeholder": "Kinematic Viscosity",
399
- "units": [
400
- { "key": "m2_s", "label": "m<sup>2</sup>/s", "nm": 1 }
401
- ]
402
- },
403
- {
404
- "type": "numeric",
405
- "field": "voltage",
406
- "label": "Voltage",
407
- "default": "",
408
- "position": 200,
409
- "placeholder": "voltage",
410
- "units": [
411
- { "key": "mv", "label": "mV", "nm": 1000 },
412
- { "key": "v", "label": "V", "nm": 1 }
413
- ]
414
- },
415
- {
416
- "type": "numeric",
417
- "field": "volumes",
418
- "label": "Volumes",
419
- "default": "",
420
- "position": 210,
421
- "placeholder": "volume",
422
- "units": [
423
- { "key": "l", "label": "l", "nm": 1 },
424
- { "key": "ml", "label": "ml", "nm": 1000 },
425
- { "key": "ul", "label": "µl", "nm": 1000000},
426
- { "key": "nl", "label": "nl", "nm": 1000000000 }
427
- ]
428
- }
429
- ]
430
- }
package/src/index.css DELETED
@@ -1,13 +0,0 @@
1
- body {
2
- margin: 0;
3
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
- sans-serif;
6
- -webkit-font-smoothing: antialiased;
7
- -moz-osx-font-smoothing: grayscale;
8
- }
9
-
10
- code {
11
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
- monospace;
13
- }
package/src/index.html DELETED
@@ -1 +0,0 @@
1
- <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/> <meta name="theme-color" content="#000000"/> <title>React with Webpack and Babel</title> </head> <body> <noscript> You need to enable JavaScript to run this app. </noscript> <div id="generic"> </div> </body> </html>
package/src/index.js DELETED
@@ -1,45 +0,0 @@
1
- /* eslint-disable no-unused-vars */
2
- import React from 'react';
3
- import ReactDOM from 'react-dom';
4
- // import 'bootstrap/dist/css/bootstrap.min.css';
5
- import './index.css';
6
- //import 'bootstrap/dist/css/bootstrap.min.css';
7
- // import 'bootstrap/dist/css/bootstrap.css'; Paggy
8
-
9
-
10
- // import 'bootstrap/dist/css/bootstrap.css';
11
- // import 'bootstrap/dist/css/bootstrap-theme.css';
12
-
13
- // import 'bootstrap/dist/css/bootstrap.min.css';
14
- // import App from './App';
15
- // import reportWebVitals from './reportWebVitals';
16
-
17
- // import { ElementManager, GenPropertiesText } from './components/admin/ElementManager';
18
- import { ElementManager, GenDSMisType, GenericDSDetails, SegmentDetails } from './app';
19
- import SimuDS from './simulations/SimuDS';
20
- import SimuSG from './simulations/SimuSG';
21
-
22
- // export { ElementManager, GenPropertiesText };
23
-
24
- ReactDOM.render(
25
- <div>
26
- <ElementManager elements={[]} element={{}} />
27
- <GenDSMisType uiCtrl />
28
- <SimuDS />
29
- <SimuSG />
30
- </div>
31
- ,
32
- document.getElementById('generic')
33
- );
34
-
35
- module.hot.accept();
36
- // function App() {
37
- // return (
38
- // <div>
39
- // Project A
40
- // <ElementManager />
41
- // </div>
42
- // );
43
- // }
44
-
45
- // export default App;
package/src/logo.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>
@@ -1,52 +0,0 @@
1
- import React, { Component } from 'react';
2
- import GenericDSDetails from '../components/details/GenDSDetails';
3
-
4
- class SimuDS extends Component {
5
- constructor(props) {
6
- super(props);
7
- this.state = {
8
- genericDS: {}, klass: {}
9
- };
10
- this.handleChange = this.handleChange.bind(this);
11
- }
12
-
13
- componentDidMount() {
14
- fetch('ds_details.json', { headers: { 'Content-Type': 'application/json', Accept: 'application/json' } })
15
- .then(response => response.json()).then((json) => {
16
- fetch('ds_klass.json', { headers: { 'Content-Type': 'application/json', Accept: 'application/json' } })
17
- .then(response => response.json()).then((kjson) => {
18
- this.setState({ genericDS: json, klass: kjson });
19
- })
20
- .catch((errorMessage) => {
21
- console.log(errorMessage);
22
- });
23
- })
24
- .catch((errorMessage) => {
25
- console.log(errorMessage);
26
- });
27
- }
28
-
29
- handleChange(newObj) {
30
- this.setState({ genericDS: newObj });
31
- }
32
-
33
- render() {
34
- const { genericDS, klass } = this.state;
35
- return (
36
- <div>
37
- <h2>GenericDSDetails</h2>
38
- <div>
39
- <GenericDSDetails
40
- uiCtrl
41
- genericDS={genericDS}
42
- klass={klass}
43
- kind="1H NMR"
44
- onChange={this.handleChange}
45
- />
46
- </div>
47
- </div>
48
- );
49
- }
50
- }
51
-
52
- export default SimuDS;
@@ -1,54 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { DragDropContext } from 'react-dnd';
3
- import HTML5Backend from 'react-dnd-html5-backend';
4
- import SegmentDetails from '../components/details/GenSgDetails';
5
-
6
- class SimuSG extends Component {
7
- constructor(props) {
8
- super(props);
9
- this.state = {
10
- segment: {}, klass: {}
11
- };
12
- this.handleChange = this.handleChange.bind(this);
13
- }
14
-
15
- componentDidMount() {
16
- fetch('sg_details.json', { headers: { 'Content-Type': 'application/json', Accept: 'application/json' } })
17
- .then(response => response.json()).then((json) => {
18
- console.log(json);
19
- fetch('sg_klass.json', { headers: { 'Content-Type': 'application/json', Accept: 'application/json' } })
20
- .then(response => response.json()).then((kjson) => {
21
- this.setState({ segment: json, klass: kjson });
22
- })
23
- .catch((errorMessage) => {
24
- console.log(errorMessage);
25
- });
26
- })
27
- .catch((errorMessage) => {
28
- console.log(errorMessage);
29
- });
30
- }
31
-
32
- handleChange(newObj) {
33
- this.setState({ segment: newObj });
34
- }
35
-
36
- render() {
37
- const { segment, klass } = this.state;
38
- return (
39
- <div>
40
- <h2>SegmentDetails</h2>
41
- <div>
42
- <SegmentDetails
43
- uiCtrl
44
- segment={segment}
45
- klass={klass}
46
- onChange={this.handleChange}
47
- />
48
- </div>
49
- </div>
50
- );
51
- }
52
- }
53
-
54
- export default DragDropContext(HTML5Backend)(SimuSG);
package/webpack.config.js DELETED
@@ -1,46 +0,0 @@
1
- const path = require('path');
2
- const webpack = require('webpack');
3
-
4
- module.exports = {
5
- mode: 'production',
6
- entry: {
7
- index: [
8
- './src/app.js',
9
- // './asserts/bootstrap.min.css',
10
- // './asserts/bootstrap-theme.min.css'
11
- ]
12
- },
13
- module: {
14
- rules: [
15
- {
16
- test: /\.(js|jsx)$/,
17
- exclude: /node_modules/,
18
- use: {
19
- loader: "babel-loader",
20
- options: {
21
- presets: ['@babel/preset-env', '@babel/preset-react']
22
- }
23
- }
24
- },
25
- {
26
- test: /\.css$/,
27
- use: [
28
- 'style-loader',
29
- 'css-loader',
30
- 'sass-loader'
31
- ]
32
- }
33
- ],
34
- },
35
- resolve: {
36
- extensions: ['*', '.js', '.jsx'],
37
- },
38
- output: {
39
- path: path.resolve(__dirname, './dist'),
40
- filename: 'bundle.js',
41
- },
42
- devServer: {
43
- static: path.resolve(__dirname, './dist'),
44
- hot: true,
45
- },
46
- };