-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
68 lines (59 loc) · 1.5 KB
/
config.js
File metadata and controls
68 lines (59 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Configuration file for the application
// This can be used to store app-wide settings and constants
const config = {
// Application metadata
appName: 'Support System Design Calculator',
appVersion: '1.0.0',
appDescription: 'A computational tool for designing roof-bolt support for underground coal mine galleries and junctions',
// Calculator defaults
defaults: {
rmr: 50,
roofThickness: 2.0,
boltCapacity: 100,
fos: 1.4,
boltEfficiency: 0.85,
plateEfficiency: 0.95,
location: '1.0' // Gallery
},
// Validation ranges
validation: {
rmr: { min: 0, max: 100 },
roofThickness: { min: 0.1, max: 10 },
boltCapacity: { min: 10, max: 500 },
fos: { min: 1.0, max: 3.0 },
boltEfficiency: { min: 0, max: 1 },
plateEfficiency: { min: 0, max: 1 },
location: { min: 1.0, max: 2.0 }
},
// Calculation constants
constants: {
gravity: 9.80665, // m/s²
rockLoadCoefficient: 0.1
},
// UI settings
ui: {
animationDuration: 300,
themeStorageKey: 'theme',
resultsDecimals: 3
},
// API endpoints (if you add backend later)
api: {
baseUrl: process.env.API_URL || '',
endpoints: {
calculate: '/api/calculate',
validate: '/api/validate'
}
},
// Feature flags
features: {
darkMode: true,
analytics: false,
exportResults: false
}
};
// Export for use in other files
if (typeof module !== 'undefined' && module.exports) {
module.exports = config;
} else {
window.config = config;
}