import { useScrollHighlight } from '@/hooks/useScrollHighlight";
add the '' wrapper to the layout around the top level parent container of the project's main scrollable content
export default function RootLayout({
const { execSync } = require("child_process"); | |
var XLSX = require("xlsx"); | |
const startTime = new Date(); | |
// Function to calculate and format elapsed time | |
const getElapsedTime = () => { | |
const elapsed = new Date() - startTime; | |
const minutes = Math.floor(elapsed / 60000).toString().padStart(2, "0"); | |
const seconds = Math.floor((elapsed % 60000) / 1000).toString().padStart(2, "0"); |
import fs from 'fs'; | |
import path from 'path'; | |
function mapFiles(dir, excludedPaths = [], prefix = '', isLast = true) { | |
const items = fs.readdirSync(dir); | |
items.forEach((item, index) => { | |
const fullPath = path.join(dir, item); | |
const isExcludedPath = excludedPaths.includes(fullPath); | |
const isDirectory = fs.statSync(fullPath).isDirectory(); |