{ "ast": { "items": [ { "use": { "tree": { "path": { "ident": "dioxus", "tree": { "group": [ { "path": { "ident": "html", "tree": { "ident": "HasFileData" } } }, { "path": { "ident": "prelude", "tree": "*" } } ] } } } } }, { "fn": { "attrs": [ { "meta": { "path": { "segments": [ { "ident": "component" } ] } }, "style": "outer" } ], "ident": "FileUploadArea", "inputs": [ { "typed": { "pat": { "ident": { "ident": "hovered" } }, "ty": { "path": { "segments": [ { "ident": "bool" } ] } } } }, { "typed": { "pat": { "ident": { "ident": "on_hover" } }, "ty": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "ident": "bool" } ] } } } ] } }, "ident": "EventHandler" } ] } } } }, { "typed": { "pat": { "ident": { "ident": "on_upload" } }, "ty": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "ident": "FormEvent" } ] } } } ] } }, "ident": "EventHandler" } ] } } } }, { "typed": { "pat": { "ident": { "ident": "on_drop" } }, "ty": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "ident": "DragEvent" } ] } } } ] } }, "ident": "EventHandler" } ] } } } } ], "output": { "path": { "segments": [ { "ident": "Element" } ] } }, "stmts": [ { "macro": { "delimiter": "brace", "path": { "segments": [ { "ident": "rsx" } ] }, "tokens": [ { "ident": "div" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "class" }, { "punct": { "op": ":", "spacing": "alone" } }, { "lit": "\"file-input\"" }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "label" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "r#for" }, { "punct": { "op": ":", "spacing": "alone" } }, { "lit": "\"file-upload\"" }, { "punct": { "op": ",", "spacing": "alone" } }, { "lit": "\"📁 Select Markdown Files:\"" } ] } }, { "ident": "input" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "id" }, { "punct": { "op": ":", "spacing": "alone" } }, { "lit": "\"file-upload\"" }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "r#type" }, { "punct": { "op": ":", "spacing": "alone" } }, { "lit": "\"file\"" }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "accept" }, { "punct": { "op": ":", "spacing": "alone" } }, { "lit": "\".md,.txt\"" }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "multiple" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "true" }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "onchange" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "on_upload" }, { "punct": { "op": ",", "spacing": "alone" } } ] } } ] } }, { "ident": "div" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "class" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "if" }, { "ident": "hovered" }, { "group": { "delimiter": "brace", "stream": [ { "lit": "\"upload-area drag-over\"" } ] } }, { "ident": "else" }, { "group": { "delimiter": "brace", "stream": [ { "lit": "\"upload-area\"" } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondragover" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": "|", "spacing": "alone" } }, { "group": { "delimiter": "brace", "stream": [ { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "prevent_default" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "on_hover" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "true" } ] } }, { "punct": { "op": ";", "spacing": "alone" } } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondragleave" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "_" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "on_hover" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "false" } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondrop" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "async" }, { "ident": "move" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "prevent_default" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "on_hover" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "false" } ] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "if" }, { "ident": "let" }, { "ident": "Some" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "file_engine" } ] } }, { "punct": { "op": "=", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "files" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "group": { "delimiter": "brace", "stream": [ { "ident": "on_drop" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "evt" } ] } }, { "punct": { "op": ";", "spacing": "alone" } } ] } } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "lit": "\"🎯 Drop markdown files here or click above to select\"" } ] } } ] } } ], "vis": "pub" } } ] }, "file_path": "src\\extractor\\components\\upload.rs", "summary": { "emoji_counts_in_strings": { "🎯": 1, "📁": 1 }, "string_literals": [ "\"file-input\"", "\"file-upload\"", "\"📁 Select Markdown Files:\"", "\"file-upload\"", "\"file\"", "\".md,.txt\"", "\"upload-area drag-over\"", "\"upload-area\"", "\"🎯 Drop markdown files here or click above to select\"" ], "top_level_nodes": 1, "total_nodes": 233, "type_counts": { "angle_bracketed": 3, "args": 3, "arguments": 3, "attrs": 1, "delimiter": 18, "fn": 1, "group": 18, "ident": 69, "inputs": 1, "items": 1, "lit": 9, "macro": 1, "meta": 1, "op": 37, "output": 1, "pat": 4, "path": 13, "punct": 37, "segments": 10, "spacing": 37, "stmts": 1, "stream": 17, "style": 1, "tokens": 1, "tree": 4, "ty": 4, "type": 3, "typed": 4, "use": 1, "vis": 1 }, "word_counts": { "above": 1, "area": 2, "click": 1, "drag": 1, "drop": 1, "file": 4, "files": 2, "here": 1, "input": 1, "markdown": 2, "md": 1, "or": 1, "over": 1, "select": 2, "to": 1, "txt": 1, "upload": 4 }, "word_emoji_counts": { "🔀": 1 } }, "timestamp": 1751588217 }