style: fix formatting and add approved bash commands
- Add trailing comma in cropToActiveBeads config - Format console.log call for better readability - Format postMessage call parameters - Add approved bash commands for icon testing to local settings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1109,13 +1109,20 @@ function TutorialPlayerContent({
|
||||
|
||||
// Debug logging for custom styles
|
||||
if (Object.keys(styles).length > 0) {
|
||||
console.log('📋 TUTORIAL CUSTOM STYLES:', JSON.stringify({
|
||||
beadLevelHighlights,
|
||||
columnLevelHighlights,
|
||||
finalStyles: styles,
|
||||
currentStepHighlightBeads: currentStep.highlightBeads,
|
||||
abacusColumns,
|
||||
}, null, 2))
|
||||
console.log(
|
||||
'📋 TUTORIAL CUSTOM STYLES:',
|
||||
JSON.stringify(
|
||||
{
|
||||
beadLevelHighlights,
|
||||
columnLevelHighlights,
|
||||
finalStyles: styles,
|
||||
currentStepHighlightBeads: currentStep.highlightBeads,
|
||||
abacusColumns,
|
||||
},
|
||||
null,
|
||||
2
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
return Object.keys(styles).length > 0 ? styles : undefined
|
||||
|
||||
@@ -119,7 +119,7 @@ export function generateCalendarComposite(options: CalendarCompositeOptions): st
|
||||
compact={false}
|
||||
hideInactiveBeads={true}
|
||||
cropToActiveBeads={{
|
||||
padding: { top: 8, bottom: 2, left: 5, right: 5 }
|
||||
padding: { top: 8, bottom: 2, left: 5, right: 5 },
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -142,10 +142,13 @@ scale([scale_factor, scale_factor, scale_factor]) {
|
||||
console.log('[OpenSCAD Worker] Rendering complete:', stlBuffer.byteLength, 'bytes')
|
||||
|
||||
// Send the result back
|
||||
self.postMessage({
|
||||
type: 'result',
|
||||
stl: stlBuffer,
|
||||
}, [stlBuffer]) // Transfer ownership of the buffer
|
||||
self.postMessage(
|
||||
{
|
||||
type: 'result',
|
||||
stl: stlBuffer,
|
||||
},
|
||||
[stlBuffer]
|
||||
) // Transfer ownership of the buffer
|
||||
|
||||
// Clean up STL file
|
||||
try {
|
||||
|
||||
@@ -28,7 +28,18 @@
|
||||
"WebFetch(domain:schroer.ca)",
|
||||
"WebFetch(domain:github.com)",
|
||||
"Bash(npm search:*)",
|
||||
"Bash(pnpm add:*)"
|
||||
"Bash(pnpm add:*)",
|
||||
"Bash(/tmp/icon-test.svg)",
|
||||
"Bash(/tmp/icon-fixed.svg)",
|
||||
"Bash(/tmp/icon-new.svg)",
|
||||
"Bash(for day in 1 15 25 31)",
|
||||
"Bash(do npx tsx scripts/generateDayIcon.tsx $day)",
|
||||
"Bash(for day in 1 5 15 25 31)",
|
||||
"Bash(do echo \"=== Day $day ===\")",
|
||||
"Bash(/tmp/icon-day-$day.svg)",
|
||||
"Bash(echo:*)",
|
||||
"Bash(done)",
|
||||
"Bash(node /tmp/test-crop.mjs:*)"
|
||||
]
|
||||
},
|
||||
"enableAllProjectMcpServers": true,
|
||||
|
||||
Reference in New Issue
Block a user