Standardize GlitchComponent: glitch.json config, build/deploy setup, ignore node_modules
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+60
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"componentId": "bloodsugar",
|
||||
"displayName": "Blood Sugar Delay Lab",
|
||||
"description": "Blood Sugar Delay Lab glitch component for Glitch University",
|
||||
"version": "1.0.0",
|
||||
"entry": "dist/bloodsugar.js",
|
||||
"paramSchema": {
|
||||
"responseDelay": {
|
||||
"type": "range",
|
||||
"label": "Feedback Lag",
|
||||
"description": "Minutes of delay between glucose rising, insulin being secreted, and insulin action arriving.",
|
||||
"default": 34,
|
||||
"min": 0,
|
||||
"max": 80,
|
||||
"step": 1
|
||||
},
|
||||
"mealLoad": {
|
||||
"type": "range",
|
||||
"label": "Meal Size",
|
||||
"default": 44,
|
||||
"min": 20,
|
||||
"max": 80,
|
||||
"step": 1
|
||||
},
|
||||
"pancreasStrength": {
|
||||
"type": "range",
|
||||
"label": "Compensation Strength",
|
||||
"default": 1,
|
||||
"min": 0.45,
|
||||
"max": 1.6,
|
||||
"step": 0.01
|
||||
},
|
||||
"playbackSpeed": {
|
||||
"type": "range",
|
||||
"label": "Playback Speed",
|
||||
"default": 1,
|
||||
"min": 0.25,
|
||||
"max": 3,
|
||||
"step": 0.05
|
||||
},
|
||||
"primaryColor": {
|
||||
"type": "color",
|
||||
"label": "Glucose Color",
|
||||
"default": "#6366f1"
|
||||
},
|
||||
"accentColor": {
|
||||
"type": "color",
|
||||
"label": "Insulin Color",
|
||||
"default": "#22d3ee"
|
||||
}
|
||||
},
|
||||
"defaultParams": {
|
||||
"responseDelay": 34,
|
||||
"mealLoad": 44,
|
||||
"pancreasStrength": 1,
|
||||
"playbackSpeed": 1,
|
||||
"primaryColor": "#6366f1",
|
||||
"accentColor": "#22d3ee"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user