|
|
@ -147,6 +147,12 @@ export class FilePanel extends React.Component<FileProps, FileState>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let store = await IndexedDbStore.CADStore();
|
|
|
|
let store = await IndexedDbStore.CADStore();
|
|
|
|
let fileList = await store.GetDataList(StoreName.Data) as FileData[];;
|
|
|
|
let fileList = await store.GetDataList(StoreName.Data) as FileData[];;
|
|
|
|
|
|
|
|
fileList.sort((f1, f2) =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (f1.key.length !== f2.key.length) return f1.key.length - f2.key.length;
|
|
|
|
|
|
|
|
return f1.key.localeCompare(f2.key);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(fileList.map(f => f.key));
|
|
|
|
this.setState({ fileList });
|
|
|
|
this.setState({ fileList });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|