| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- {
- "code": 200,
- "message": "success",
- "data": {
- "id": 0,
- "isEditable": false,
- "name": "Molecule-Demo",
- "fileType": "RootFolder",
- "location": "Molecule-Demo",
- "isLeaf": false,
- "data": "",
- "children": [
- {
- "id": 1,
- "name": "test.js",
- "location": "Molecule-Demo/test.js",
- "fileType": "File",
- "isLeaf": true,
- "isEditable": false,
- "data": { "language": "javascript", "value": "console.log('Hello World');" }
- }, {
- "id": 2,
- "name": "test.py",
- "fileType": "File",
- "location": "Molecule-Demo/test.py",
- "isLeaf": true,
- "isEditable": false,
- "data": { "language": "python", "value": "for letter in 'Python': # 第一个实例\n print(\"当前字母: %s\" % letter)\n \nfruits = ['banana', 'apple', 'mango']\nfor fruit in fruits: # 第二个实例\n print ('当前水果: %s'% fruit)\n \nprint (\"Good bye!\")" }
- }, {
- "id": 3,
- "name": "index.html",
- "fileType": "File",
- "location": "Molecule-Demo/index.html",
- "isLeaf": true,
- "isEditable": false,
- "data": { "language": "html", "value": "<div id=\"molecule\">Hello Molecule</div>" }
- }, {
- "id": 4,
- "name": "test.json",
- "fileType": "File",
- "location": "Molecule-Demo/test.json",
- "isLeaf": true,
- "isEditable": false,
- "data": { "language": "json", "value": "{ \"language\": \"json\", \"value\": \"{}\" }" }
- }, {
- "id": 5,
- "name": "Sub Folder",
- "isLeaf": false,
- "fileType": "Folder",
- "isEditable": false,
- "location": "Molecule-Demo/Sub Folder",
- "children": [{
- "id": 11,
- "name": "test.js",
- "fileType": "File",
- "isEditable": false,
- "location": "Molecule-Demo/Sub Folder/test.js",
- "isLeaf": true,
- "data": { "language": "javascript", "value": "console.log('Hello World');" }
- }, {
- "id": 12,
- "name": "test.css",
- "isEditable": false,
- "location": "Molecule-Demo/Sub Folder/test.css",
- "isLeaf": true,
- "fileType": "File",
- "data": { "language": "css", "value": "mo { background-color: var(--workbenchBackground); color: var(--foreground); }" }
- }, {
- "id": 13,
- "name": "index.html",
- "isEditable": false,
- "location": "Molecule-Demo/Sub Folder/index.html",
- "isLeaf": true,
- "fileType": "File",
- "data": { "language": "html", "value": "<div id=\"molecule\">Hello Molecule</div>" }
- }, {
- "id": 14,
- "name": "test.json",
- "isEditable": false,
- "location": "Molecule-Demo/Sub Folder/test.json",
- "isLeaf": true,
- "fileType": "File",
- "data": { "language": "json", "value": "{ \"language\": \"json\", \"value\": \"{}\" }" }
- }]
- }
- ]
- }
- }
|