- 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>
45 lines
1.1 KiB
JavaScript
45 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
var callBound = require('call-bound');
|
|
|
|
var $toString = callBound('Object.prototype.toString');
|
|
|
|
/** @type {import('.')} */
|
|
var isStandardArguments = function isArguments(value) {
|
|
if (
|
|
hasToStringTag
|
|
&& value
|
|
&& typeof value === 'object'
|
|
&& Symbol.toStringTag in value
|
|
) {
|
|
return false;
|
|
}
|
|
return $toString(value) === '[object Arguments]';
|
|
};
|
|
|
|
/** @type {import('.')} */
|
|
var isLegacyArguments = function isArguments(value) {
|
|
if (isStandardArguments(value)) {
|
|
return true;
|
|
}
|
|
return value !== null
|
|
&& typeof value === 'object'
|
|
&& 'length' in value
|
|
&& typeof value.length === 'number'
|
|
&& value.length >= 0
|
|
&& $toString(value) !== '[object Array]'
|
|
&& 'callee' in value
|
|
&& $toString(value.callee) === '[object Function]';
|
|
};
|
|
|
|
var supportsStandardArguments = (function () {
|
|
return isStandardArguments(arguments);
|
|
}());
|
|
|
|
// @ts-expect-error TODO make this not error
|
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
|
/** @type {import('.')} */
|
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|