characterization.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import Characterization from '../components/Characterization'
  2. import CharacterizationForm from '../components/CharacterizationForm'
  3. const MOCK_DATA = {
  4. name: 'DCDC Efficiency',
  5. projectVersion: {
  6. id: 'ashvkjhskrjhskfsvsfs',
  7. name: 'Production Tapeout',
  8. changes: ['DCDC removed', 'Logo changed'],
  9. date: Date.now(),
  10. project: {
  11. name: 'Jungfrau',
  12. abbreviation: 'JU_CSD',
  13. description: '9th generation GNSS receiver.',
  14. files: [{
  15. id: 'shkherskfjhslfg',
  16. name: 'Jungfrau Plan',
  17. description: 'Plan of Jungfrau',
  18. filename: 'jungfrau1.png',
  19. path: 'static/uploads/jungfrau1.png',
  20. mimetype: 'image/png',
  21. size: 518380
  22. }, {
  23. id: 'pxugssfnsdognudog',
  24. name: 'Jungfrau Picture',
  25. description: 'Picture of Jungfrau',
  26. filename: 'jungfrau2.jpg',
  27. path: 'static/uploads/jungfrau2.jpg',
  28. mimetype: 'image/jpeg',
  29. size: 79628
  30. }, {
  31. id: 'awqershdfkghlhfdlfkg',
  32. name: 'Jungfrau Text',
  33. description: 'Something written about Jungfrau',
  34. filename: '2016_juh_segmente_23_erlebnisberge_geschaftsmodell.pdf',
  35. path: 'static/uploads/2016_juh_segmente_23_erlebnisberge_geschaftsmodell.pdf',
  36. mimetype: 'application/pdf',
  37. size: 40330
  38. }],
  39. versions: [{ name: 'Production Tapeout' }, { name: 'MPW' }]
  40. }
  41. },
  42. measurementRuns: [{
  43. id: 'asdsdghwkerhkvbsdf',
  44. name: 'Temperature sweep with L=5nH',
  45. operators: [{
  46. name: 'Tomi'
  47. }],
  48. location: 'Thalwil',
  49. temperature: 24.5,
  50. startTime: Date.now(),
  51. endTime: Date.now(),
  52. log: [{
  53. id: 'vxglzhflkjhblkhzg',
  54. when: Date.now(),
  55. json: '{"Comment":{"text":"What a wonderful world","createdAt":2342543,"previousVersion":"dahfkhesrskhqe"}}'
  56. }, {
  57. id: 'qgdglgxlkhxlkb',
  58. when: Date.now(),
  59. json: '{"ConnectionCommand":{"writeString":"*IDN?"}}'
  60. }],
  61. comments: [{
  62. text: 'What a wonderful world',
  63. createdAt: 2342543,
  64. previousVersion: null
  65. }],
  66. measurements: [],
  67. setup: {
  68. id: 'jnerktnkfjgnksdf',
  69. name: 'DCDC Setup',
  70. description: 'JU characterization board',
  71. images: [],
  72. comments: [],
  73. setupHardware: [],
  74. instruments: []
  75. }
  76. }]
  77. }
  78. const CharacterizationPage = props => (
  79. <>
  80. <CharacterizationForm />
  81. <Characterization data={MOCK_DATA} />
  82. </>
  83. )
  84. export default CharacterizationPage