show all files in explore
This commit is contained in:
1 parent
fa5644fda7
commit
9e71989ff5
3 files changed
+216
-187
No files matched your search
+6
-2
@@ -364,9 +364,9 @@ export const createFileData = (data: TreeGraphData, includeSubtree?: boolean) =>
|
||||
return nodeData;
|
||||
};
|
||||
|
||||
export const createNewTree = (filename: string) => {
|
||||
export const createNewTree = (path: string) => {
|
||||
const tree: TreeModel = {
|
||||
name: Path.basenameWithoutExt(filename),
|
||||
name: Path.basenameWithoutExt(path),
|
||||
root: {
|
||||
id: 1,
|
||||
name: "Sequence",
|
||||
@@ -375,6 +375,10 @@ export const createNewTree = (filename: string) => {
|
||||
return tree;
|
||||
};
|
||||
|
||||
export const isTreeFile = (path: string) => {
|
||||
return path.toLocaleLowerCase().endsWith(".json");
|
||||
};
|
||||
|
||||
const isAsciiChar = (c: number) => {
|
||||
return (c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user