Skip to content

Commit dd99fae

Browse files
committed
improved layouts, app icons, improved settings and editing
1 parent bf5dd2c commit dd99fae

27 files changed

+853
-373
lines changed

package-lock.json

Lines changed: 0 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"@emotion/styled": "^11.10.6",
1515
"@mui/icons-material": "^5.6.1",
1616
"@mui/material": "^5.10.7",
17-
"allotment": "^1.18.1",
1817
"ramda": "^0.27.0",
1918
"react": "^18.2.0",
2019
"react-dom": "^18.2.0",

public/addwebapp.png

3.57 KB
Loading

public/chatclient.png

3.22 KB
Loading

src/apps/AddWebApp.jsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const AddWebApp = () => {
77
const id = useRef();
88
const width = useRef()
99
const height = useRef()
10+
const imageUrl = useRef()
1011
const [titleError, setTitleError] = useState(false)
1112
const [idError, setIdError] = useState(false)
1213
const [urlError, setUrlError] = useState(false)
@@ -56,7 +57,8 @@ const AddWebApp = () => {
5657
width: Number(width.current.value),
5758
height: Number(height.current.value),
5859
url: url.current.value,
59-
single, deletable, editable
60+
single, deletable, editable,
61+
imageUrl: imageUrl.current.value
6062

6163
}
6264

@@ -142,11 +144,21 @@ const AddWebApp = () => {
142144
error={urlError}
143145
helperText={urlError === true ? "Must be URL and cannot be empty" : ""}
144146
inputRef={url}
145-
/></div>
147+
/>
148+
</div>
149+
<div>
150+
<TextField
151+
label="Image URL"
152+
size="small"
153+
fullWidth
154+
variant="filled"
155+
inputRef={imageUrl}
156+
/>
157+
</div>
146158
<div>
147159
<FormControlLabel control={<Switch onChange={(e) => setSingle(e.target.checked)} />} label="Singleton" /></div>
148-
<div> <FormControlLabel control={<Switch onChange={(e) => setEditable(e.target.checked)} />} label="Editable" /></div>
149-
<div><FormControlLabel control={<Switch onChange={(e) => setDeletable(e.target.checked)} />} label="Deletable" /></div>
160+
<div> <FormControlLabel control={<Switch defaultChecked={true} onChange={(e) => setEditable(e.target.checked)} />} label="Editable" /></div>
161+
<div><FormControlLabel control={<Switch defaultChecked={true} onChange={(e) => setDeletable(e.target.checked)} />} label="Deletable" /></div>
150162
<div>
151163
<Button variant="contained" color="success"
152164
onClick={e => {

src/constants.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ export const BUILT_IN_APPS = {
55
width: 800,
66
height: 600,
77
single: true,
8-
editable: false
8+
editable: false,
9+
imageUrl: "addwebapp.png"
910
},
1011
chatclient: {
1112
appid: "chatclient",
1213
title: "Chat Client",
1314
width: 700,
1415
height: 500,
1516
deletable: true,
16-
editable: true
17+
editable: true,
18+
imageUrl: "chatclient.png"
1719
},
1820
statueofliberty: {
1921
appid: "statueofliberty",

src/css/App.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,18 @@ table {
219219
white-space: nowrap;
220220
}
221221

222-
.sash{
222+
.sash-vertical{
223223
z-index: 1 !important;
224224
width: 5px !important;
225225
background-color: #474747;
226226
}
227227

228+
.sash-horizontal{
229+
z-index: 1 !important;
230+
height: 5px !important;
231+
background-color: #474747;
232+
}
233+
228234
:root {
229235
--separator-border: none !important;
230236
--focus-border: none !important;

src/img/layouts-2-icon.png

-804 Bytes
Binary file not shown.

src/img/unknown-1.png

4.2 MB
Loading

src/img/unknown.jpg

240 KB
Loading

0 commit comments

Comments
 (0)