feat: fs tree component
This commit is contained in:
1 parent
6c57df23f2
commit
278255efd7
18 files changed
+2427
-94
No files matched your search
@@ -3,7 +3,10 @@ import AppMenu from "./AppMenu";
|
||||
import Settings from "./Settings";
|
||||
import MainEventType from "../common/MainEventType";
|
||||
|
||||
const electronLocalshortcut = require("electron-localshortcut");
|
||||
import electronLocalshortcut from "electron-localshortcut";
|
||||
|
||||
//launch fs server listen port 5000
|
||||
require("../fs-tree-view/server/server");
|
||||
|
||||
// 一些暴露给render-process的全局变量
|
||||
export interface Global {
|
||||
|
||||
@@ -36,8 +36,8 @@ export default class Workspace {
|
||||
const model = JSON.parse(str) as WorkspaceModel;
|
||||
if (model.isRelative) {
|
||||
const root = path.dirname(this.filepath);
|
||||
this.nodeConfPath = root + "/" + model.nodeConfPath;
|
||||
this.workdir = root + "/" + model.workdir;
|
||||
this.nodeConfPath = path.join(root,model.nodeConfPath);
|
||||
this.workdir = path.join(root,model.workdir);
|
||||
} else {
|
||||
this.nodeConfPath = model.nodeConfPath;
|
||||
this.workdir = model.workdir;
|
||||
|
||||
Reference in new issue
Block a user