Skip to content

Commit ed04bea

Browse files
committed
New version
1 parent 23ab33b commit ed04bea

File tree

6 files changed

+37
-39
lines changed

6 files changed

+37
-39
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Explorer/Explorer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,27 +351,27 @@ const Explorer = ({
351351
return (
352352
<StyledSidebarContainer id={api.name}>
353353
<StyledSidebarEntry>
354-
<StyledSidebarEntryMenu bgColor={theme.palette.secondary}>
354+
<StyledSidebarEntryMenu bgColor={theme.palette.primary}>
355355
<MenuButton
356356
id="new-file-button"
357357
onClick={() => handleCreateFile(undefined)}
358358
title="Create a new file"
359359
>
360-
<AddIcon className="bt-icon" fill={"var(--icon)"} />
360+
<AddIcon fill={theme.palette.text} />
361361
</MenuButton>
362362
<MenuButtonStroke
363363
id="new-folder-button"
364364
onClick={() => handleCreateFolder(undefined)}
365365
title="Create a new folder"
366366
>
367-
<AddFolderIcon className="bt-icon" stroke={"var(--icon)"} />
367+
<AddFolderIcon stroke={theme.palette.text} />
368368
</MenuButtonStroke>
369369
<MenuButtonStroke
370370
id="refresh-explorer-button"
371371
onClick={() => fetchFileList()}
372372
title="Refresh View"
373373
>
374-
<RefreshIcon className="bt-icon" stroke={"var(--icon)"} />
374+
<RefreshIcon stroke={theme.palette.text} />
375375
</MenuButtonStroke>
376376
<div style={{ marginLeft: "auto" }} />
377377
{currentFile && (
@@ -381,14 +381,14 @@ const Explorer = ({
381381
onClick={handleRenameCurrentFile}
382382
title="Rename file"
383383
>
384-
<RenameIcon className="bt-icon" stroke={"var(--icon)"} />
384+
<RenameIcon stroke={theme.palette.text} />
385385
</MenuButtonStroke>
386386
<MenuButton
387387
id="delete-file-button"
388388
onClick={handleDeleteCurrentFile}
389389
title="Delete file"
390390
>
391-
<DeleteIcon className="bt-icon" fill={"var(--icon)"} />
391+
<DeleteIcon fill={theme.palette.text} />
392392
</MenuButton>
393393
</>
394394
)}

src/components/FileEditor/TextEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ const FileEditor = ({
266266

267267
return (
268268
<Editor
269-
className="file-editor"
270269
width="100%"
271270
height="100%"
272271
defaultLanguage="python"

src/components/Modals/NewFileModal.tsx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,63 +38,63 @@ class CardEntryProps {
3838
}
3939
}
4040

41+
const NewFileModal = ({
42+
onSubmit,
43+
isOpen,
44+
onClose,
45+
fileList,
46+
location,
47+
}: {
48+
onSubmit: Function;
49+
isOpen: boolean;
50+
onClose: Function;
51+
fileList: Entry[];
52+
location: string;
53+
}) => {
54+
const theme = useTheme();
55+
const focusInputRef = useRef<HTMLInputElement>(null);
56+
const [formState, setFormState] = useState(initialNewFileModalData);
57+
const [template, setTemplate] = useState<string>("empty");
58+
const [creationType, setCreationType] = useState<string>("plain");
59+
const [isCreationAllowed, allowCreation] = useState<boolean>(false);
60+
// Search lists for valid names
61+
const [searchActionsList, setSearchActionsList] = useState<Entry[]>([]);
62+
const [searchPlainList, setSearchPlainList] = useState<Entry[]>([]);
63+
4164
///////////////////////// TYPES ////////////////////////////////////////////////
4265
const plain = new CardEntryProps(
4366
"plain",
4467
"plainType",
45-
<ActionTeplateIcon className="bt-icon" fill={"var(--icon)"} />,
68+
<ActionTeplateIcon fill={theme.palette.text} />,
4669
"Plain File"
4770
);
4871
const actions = new CardEntryProps(
4972
"actions",
5073
"actionsType",
51-
<IOTeplateIcon className="bt-icon" fill={"var(--icon)"} />,
74+
<IOTeplateIcon fill={theme.palette.text} />,
5275
"Action"
5376
);
5477

5578
///////////////////////// ACTIONS //////////////////////////////////////////////
5679
const empty = new CardEntryProps(
5780
"empty",
5881
"emptyTemplate",
59-
<EmptyTeplateIcon className="bt-icon" stroke={"var(--icon)"} />,
82+
<EmptyTeplateIcon stroke={theme.palette.text} />,
6083
"Empty"
6184
);
6285
const action = new CardEntryProps(
6386
"action",
6487
"actionTemplate",
65-
<ActionTeplateIcon className="bt-icon" fill={"var(--icon)"} />,
88+
<ActionTeplateIcon fill={theme.palette.text} />,
6689
"Action"
6790
);
6891
const io = new CardEntryProps(
6992
"io",
7093
"ioTemplate",
71-
<IOTeplateIcon className="bt-icon" fill={"var(--icon)"} />,
94+
<IOTeplateIcon fill={theme.palette.text} />,
7295
"I/O"
7396
);
7497

75-
const NewFileModal = ({
76-
onSubmit,
77-
isOpen,
78-
onClose,
79-
fileList,
80-
location,
81-
}: {
82-
onSubmit: Function;
83-
isOpen: boolean;
84-
onClose: Function;
85-
fileList: Entry[];
86-
location: string;
87-
}) => {
88-
const theme = useTheme();
89-
const focusInputRef = useRef<HTMLInputElement>(null);
90-
const [formState, setFormState] = useState(initialNewFileModalData);
91-
const [template, setTemplate] = useState<string>("empty");
92-
const [creationType, setCreationType] = useState<string>("plain");
93-
const [isCreationAllowed, allowCreation] = useState<boolean>(false);
94-
// Search lists for valid names
95-
const [searchActionsList, setSearchActionsList] = useState<Entry[]>([]);
96-
const [searchPlainList, setSearchPlainList] = useState<Entry[]>([]);
97-
9898
const typesCardEntryProps = [plain, actions];
9999
const actionsCardEntryProps = [empty, action, io];
100100

src/components/Modals/UploadModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ const UploadModal = ({
127127
<StyledModalDrop
128128
ref={uploadAreaRef}
129129
htmlFor="uploadDropInput"
130-
className="bt-modal-drop-container"
131130
onDragOver={(e) => {
132131
e.preventDefault();
133132
}}

src/components/StatusBar/StatusBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ const StatusBar = ({
6666
<StyledStatusBarEntry text={theme.palette.text} title="ROS 2 version">
6767
<label>{`ROS 2: ${dockerData.ros_version}`}</label>
6868
</StyledStatusBarEntry>
69-
<StyledStatusBarEntry title="GPU status">
69+
<StyledStatusBarEntry text={theme.palette.text} title="GPU status">
7070
<label>{`GPU: ${dockerData.gpu_avaliable}`}</label>
7171
</StyledStatusBarEntry>
72-
<StyledStatusBarEntry title="Robotics Backend version">
72+
<StyledStatusBarEntry text={theme.palette.text} title="Robotics Backend version">
7373
<label>{`Robotics Backend: ${dockerData.robotics_backend_version}`}</label>
7474
</StyledStatusBarEntry>
7575
</>

0 commit comments

Comments
 (0)