Skip to content

Commit 52e310c

Browse files
Add more options
1 parent 16b838a commit 52e310c

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

js/configuration.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const DEFAULT_CONFIGURATIONS = {
2323
showAIAssistant: true,
2424
ioLayout: "stack",
2525
assistantLayout: "column",
26-
mainLayout: "row"
26+
mainLayout: "row",
27+
showInput: true,
28+
showOutput: true
2729
}
2830
},
2931
minimal: {
@@ -46,7 +48,9 @@ const DEFAULT_CONFIGURATIONS = {
4648
showAIAssistant: false,
4749
ioLayout: "column",
4850
assistantLayout: "column",
49-
mainLayout: "row"
51+
mainLayout: "row",
52+
showInput: true,
53+
showOutput: true
5054
}
5155
},
5256
standalone: {
@@ -69,7 +73,9 @@ const DEFAULT_CONFIGURATIONS = {
6973
showAIAssistant: true,
7074
ioLayout: "stack",
7175
assistantLayout: "column",
72-
mainLayout: "row"
76+
mainLayout: "row",
77+
showInput: true,
78+
showOutput: true
7379
}
7480
},
7581
electron: {
@@ -92,7 +98,9 @@ const DEFAULT_CONFIGURATIONS = {
9298
showAIAssistant: true,
9399
ioLayout: "stack",
94100
assistantLayout: "column",
95-
mainLayout: "row"
101+
mainLayout: "row",
102+
showInput: true,
103+
showOutput: true
96104
}
97105
},
98106
puter: {
@@ -115,7 +123,9 @@ const DEFAULT_CONFIGURATIONS = {
115123
showAIAssistant: true,
116124
ioLayout: "stack",
117125
assistantLayout: "column",
118-
mainLayout: "row"
126+
mainLayout: "row",
127+
showInput: true,
128+
showOutput: true
119129
}
120130
}
121131
};

js/ide.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var layoutConfig = {
8181
type: configuration.get("appOptions.ioLayout"),
8282
title: "I/O",
8383
content: [
84-
{
84+
configuration.get("appOptions.showInput") ? {
8585
type: "component",
8686
componentName: "stdin",
8787
id: "stdin",
@@ -90,7 +90,7 @@ var layoutConfig = {
9090
componentState: {
9191
readOnly: false
9292
}
93-
}, {
93+
} : null, configuration.get("appOptions.showOutput") ? {
9494
type: "component",
9595
componentName: "stdout",
9696
id: "stdout",
@@ -99,7 +99,7 @@ var layoutConfig = {
9999
componentState: {
100100
readOnly: true
101101
}
102-
}]
102+
} : null].filter(Boolean)
103103
}].filter(Boolean)
104104
}]
105105
}]

0 commit comments

Comments
 (0)