Skip to content

Commit 4462b57

Browse files
Add support for ioLayout
1 parent 060b0e2 commit 4462b57

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

js/configuration.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const DEFAULT_CONFIGURATIONS = {
2020
showCopyright: true
2121
},
2222
appOptions: {
23-
showAIAssistant: true
23+
showAIAssistant: true,
24+
ioLayout: "stack"
2425
}
2526
},
2627
minimal: {
@@ -40,7 +41,8 @@ const DEFAULT_CONFIGURATIONS = {
4041
showCopyright: false
4142
},
4243
appOptions: {
43-
showAIAssistant: false
44+
showAIAssistant: false,
45+
ioLayout: "column"
4446
}
4547
},
4648
standalone: {
@@ -60,7 +62,8 @@ const DEFAULT_CONFIGURATIONS = {
6062
showCopyright: false
6163
},
6264
appOptions: {
63-
showAIAssistant: true
65+
showAIAssistant: true,
66+
ioLayout: "stack"
6467
}
6568
},
6669
electron: {
@@ -80,7 +83,8 @@ const DEFAULT_CONFIGURATIONS = {
8083
showCopyright: false
8184
},
8285
appOptions: {
83-
showAIAssistant: true
86+
showAIAssistant: true,
87+
ioLayout: "stack"
8488
}
8589
},
8690
puter: {
@@ -100,7 +104,8 @@ const DEFAULT_CONFIGURATIONS = {
100104
showCopyright: true
101105
},
102106
appOptions: {
103-
showAIAssistant: true
107+
showAIAssistant: true,
108+
ioLayout: "stack"
104109
}
105110
}
106111
};
@@ -147,7 +152,10 @@ const PROXY_HANDLER = {
147152

148153
const LEGAL_VALUES = new Proxy({
149154
theme: ["system", "reverse-system", "light", "dark"],
150-
style: Object.keys(DEFAULT_CONFIGURATIONS)
155+
style: Object.keys(DEFAULT_CONFIGURATIONS),
156+
appOptions: {
157+
ioLayout: ["stack", "row", "column"]
158+
}
151159
}, PROXY_HANDLER);
152160

153161
const configuration = {

js/ide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ var layoutConfig = {
7777
readOnly: false
7878
}
7979
} : null, {
80-
type: "stack",
80+
type: configuration.get("appOptions.ioLayout"),
8181
content: [
8282
{
8383
type: "component",

0 commit comments

Comments
 (0)