mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: integrate filegraph into session
This commit is contained in:
1 parent
cdd22634e0
commit
2d95ca382f
13 files changed
+105
-42
No files matched your search
@@ -2,14 +2,17 @@ import { model, Schema, Types } from 'mongoose'
|
||||
|
||||
export interface INode {
|
||||
path: string
|
||||
type: string
|
||||
type: 'file' | 'directory'
|
||||
discovered: boolean
|
||||
children?: INode[]
|
||||
}
|
||||
|
||||
const nodeSchema = new Schema<INode>({
|
||||
path: String,
|
||||
type: String,
|
||||
type: {
|
||||
type: String,
|
||||
enum: ['file', 'directory'],
|
||||
},
|
||||
discovered: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
|
||||
Reference in new issue
Block a user