-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfix.cjs
More file actions
1 lines (1 loc) · 892 Bytes
/
Copy pathfix.cjs
File metadata and controls
1 lines (1 loc) · 892 Bytes
1
const fs = require('fs'); let modal = fs.readFileSync('components/TaskValidationModal.tsx', 'utf8'); modal = modal.replace(/bg-slate-900 text-white(.*?hover:)bg-black/g, 'bg-blue-600 text-white$1bg-blue-700'); modal = modal.replace(/bg-slate-900 text-white(.*?)border-slate-700/g, 'bg-[var(--surface-muted)] text-[var(--text-primary)] border-[var(--border)]$1border-[var(--border)]'); fs.writeFileSync('components/TaskValidationModal.tsx', modal); let schedule = fs.readFileSync('components/ImplementationSchedule.tsx', 'utf8'); schedule = schedule.replace(/<div className="grid grid-cols-7/g, '<div className="min-w-[500px] grid grid-cols-7'); schedule = schedule.replace(/<div className="overflow-hidden rounded-2xl md:rounded-3xl"/g, '<div className="overflow-x-auto rounded-2xl md:rounded-3xl"'); fs.writeFileSync('components/ImplementationSchedule.tsx', schedule); console.log('Done!');