mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fdfd772100
* feat(File Tree): add `file-tree` shortcode support * feat(file-tree): add ignoreList parameter to file-tree shortcode * feat(file-tree): enhance file-tree shortcode with ignoreList and folderSlash options * feat(file-tree): enhance file-tree shortcode to support data mode * feat(file-tree): enhance file-tree shortcode to support file mode * feat(file-tree): improve content parsing in file-tree shortcode * feat(file-tree): improve root path validation and error handling in filesystem mode * test(file-tree): add unit tests for `file-tree` shortcode * feat(file-tree): add file-tree code block rendering support * refactor(file-tree): extract filesystem scanning to get-file-tree partial Move directory traversal and root path validation to a separate partial function, consolidating all filesystem-related logic in one place. This simplifies the shortcode implementation and ensures a unified data format for rendering. * docs(readme): extend code fence and shortcode support for file tree in documentation * feat(file-tree): add fullRootName parameter for root path display in file tree * feat(file-tree): add language parameter to get-file-tree function * feat(file-tree): add highlightList parameter for file-tree shortcode * perf(file-tree): add level param for get-file-tree function to descend only level directories deep
73 lines
1.2 KiB
JSON
73 lines
1.2 KiB
JSON
[
|
|
{
|
|
"name": "src-json",
|
|
"type": "dir",
|
|
"children": [
|
|
{
|
|
"name": "index.ts",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "components",
|
|
"type": "dir",
|
|
"children": [
|
|
{
|
|
"name": "Header.tsx",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "Footer.tsx",
|
|
"type": "file"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "utils",
|
|
"type": "dir",
|
|
"children": [
|
|
{
|
|
"name": "helper.ts",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "validator.ts",
|
|
"type": "file"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "public",
|
|
"type": "dir",
|
|
"children": [
|
|
{
|
|
"name": "favicon.ico",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "images",
|
|
"type": "dir",
|
|
"children": [
|
|
{
|
|
"name": "logo.png",
|
|
"type": "file"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "package.json",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "README.md",
|
|
"type": "file"
|
|
},
|
|
{
|
|
"name": "tsconfig.json",
|
|
"type": "file"
|
|
}
|
|
]
|