Files
taskpile/frontend/node_modules/next/dist/lib/recursive-copy.js
Alvis f1d51b8cc8 Add side panels, task selection, graph animation, and project docs
- Foldable left panel (user profile) and right panel (task details)
- Clicking a task in the list or graph node selects it and shows details
- Both views (task list + graph) always mounted via absolute inset-0 for
  correct canvas dimensions; tabs toggle visibility with opacity
- Graph node selection animation: other nodes repel outward (charge -600),
  then selected node smoothly slides to center (500ms cubic ease-out),
  then charge restores to -120 and graph stabilizes
- Graph re-fits on tab switch and panel resize via ResizeObserver
- Fix UUID string IDs throughout (backend returns UUIDs, not integers)
- Add TaskDetailPanel, UserPanel components
- Add CLAUDE.md project documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 11:23:06 +00:00

71 lines
2.6 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "recursiveCopy", {
enumerable: true,
get: function() {
return recursiveCopy;
}
});
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
const _fs = require("fs");
const _asyncsema = require("next/dist/compiled/async-sema");
const _iserror = /*#__PURE__*/ _interop_require_default(require("./is-error"));
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
const COPYFILE_EXCL = _fs.constants.COPYFILE_EXCL;
async function recursiveCopy(source, dest, { concurrency = 32, overwrite = false, filter = ()=>true } = {}) {
const cwdPath = process.cwd();
const from = _path.default.resolve(cwdPath, source);
const to = _path.default.resolve(cwdPath, dest);
const sema = new _asyncsema.Sema(concurrency);
// deep copy the file/directory
async function _copy(item, lstats) {
const target = item.replace(from, to);
await sema.acquire();
if (!lstats) {
// after lock on first run
lstats = await _fs.promises.lstat(from);
}
// readdir & lstat do not follow symbolic links
// if part is a symbolic link, follow it with stat
let isFile = lstats.isFile();
let isDirectory = lstats.isDirectory();
if (lstats.isSymbolicLink()) {
const stats = await _fs.promises.stat(item);
isFile = stats.isFile();
isDirectory = stats.isDirectory();
}
if (isDirectory) {
try {
await _fs.promises.mkdir(target, {
recursive: true
});
} catch (err) {
// do not throw `folder already exists` errors
if ((0, _iserror.default)(err) && err.code !== "EEXIST") {
throw err;
}
}
sema.release();
const files = await _fs.promises.readdir(item, {
withFileTypes: true
});
await Promise.all(files.map((file)=>_copy(_path.default.join(item, file.name), file)));
} else if (isFile && // before we send the path to filter
// we remove the base path (from) and replace \ by / (windows)
filter(item.replace(from, "").replace(/\\/g, "/"))) {
await _fs.promises.copyFile(item, target, overwrite ? undefined : COPYFILE_EXCL);
sema.release();
} else {
sema.release();
}
}
await _copy(from);
}
//# sourceMappingURL=recursive-copy.js.map