|
a |
|
b/src/data/mockData.ts |
|
|
1 |
import { GeneAssembly } from '../types'; |
|
|
2 |
|
|
|
3 |
export const mockGeneAssemblies: GeneAssembly[] = [ |
|
|
4 |
{ |
|
|
5 |
id: '1', |
|
|
6 |
name: 'Enhanced Drought Assembly v1', |
|
|
7 |
components: ['DREB1A', 'HSF3', 'ABA1'], |
|
|
8 |
predictedPerformance: { |
|
|
9 |
stressTolerance: 0.85, |
|
|
10 |
growthRate: 0.92, |
|
|
11 |
yield: 0.88, |
|
|
12 |
}, |
|
|
13 |
validationStatus: 'validated', |
|
|
14 |
createdAt: '2025-02-28T10:00:00Z', |
|
|
15 |
updatedAt: '2025-02-28T14:30:00Z', |
|
|
16 |
}, |
|
|
17 |
{ |
|
|
18 |
id: '2', |
|
|
19 |
name: 'Salt Resistance Assembly v2', |
|
|
20 |
components: ['SOS1', 'NHX1', 'HKT1'], |
|
|
21 |
predictedPerformance: { |
|
|
22 |
stressTolerance: 0.78, |
|
|
23 |
growthRate: 0.85, |
|
|
24 |
yield: 0.82, |
|
|
25 |
}, |
|
|
26 |
validationStatus: 'in_progress', |
|
|
27 |
createdAt: '2025-02-28T11:00:00Z', |
|
|
28 |
updatedAt: '2025-02-28T15:30:00Z', |
|
|
29 |
}, |
|
|
30 |
]; |
|
|
31 |
|
|
|
32 |
export const getRandomColor = () => { |
|
|
33 |
const letters = '0123456789ABCDEF'; |
|
|
34 |
let color = '#'; |
|
|
35 |
for (let i = 0; i < 6; i++) { |
|
|
36 |
color += letters[Math.floor(Math.random() * 16)]; |
|
|
37 |
} |
|
|
38 |
return color; |
|
|
39 |
}; |