- 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>
21 lines
834 B
JavaScript
21 lines
834 B
JavaScript
export var TokenType;
|
|
(function (TokenType) {
|
|
TokenType[TokenType["CHARACTER"] = 0] = "CHARACTER";
|
|
TokenType[TokenType["NULL_CHARACTER"] = 1] = "NULL_CHARACTER";
|
|
TokenType[TokenType["WHITESPACE_CHARACTER"] = 2] = "WHITESPACE_CHARACTER";
|
|
TokenType[TokenType["START_TAG"] = 3] = "START_TAG";
|
|
TokenType[TokenType["END_TAG"] = 4] = "END_TAG";
|
|
TokenType[TokenType["COMMENT"] = 5] = "COMMENT";
|
|
TokenType[TokenType["DOCTYPE"] = 6] = "DOCTYPE";
|
|
TokenType[TokenType["EOF"] = 7] = "EOF";
|
|
TokenType[TokenType["HIBERNATION"] = 8] = "HIBERNATION";
|
|
})(TokenType || (TokenType = {}));
|
|
export function getTokenAttr(token, attrName) {
|
|
for (let i = token.attrs.length - 1; i >= 0; i--) {
|
|
if (token.attrs[i].name === attrName) {
|
|
return token.attrs[i].value;
|
|
}
|
|
}
|
|
return null;
|
|
}
|