Skip to content

Commit 5ed4334

Browse files
authored
Merge pull request #9 from thomscoder/smallImprovements
Small improvements
2 parents 405e2b8 + 7648f12 commit 5ed4334

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,23 @@ Quickly upload, create, open, read, modify and download files, on the fly.
44

55
Harmony also keep tracks of your changes or "workspaces" through git branches and git commits, all in-memory in your browser.
66

7-
<img src="https://i.ibb.co/mb99Q01/Schermata-2022-10-01-alle-13-00-39.png" width=80% />
7+
<img src="https://i.ibb.co/GC4SfB2/Schermata-2022-10-02-alle-18-13-31.png" width=80% />
88

99
> Just me experimenting with WebAssembly.
10-
11-
<img src="https://i.ibb.co/4JQbLgN/Schermata-2022-10-01-alle-13-58-20.png" width=80% />
1210
<br/>
1311
1412
Harmony implements via WebAssembly a virtual file system and a in-memory version of Git, written in Go, (a revisited version of my <a href="https://github.com/thomscoder/nova-git" target="_blank">Nova</a> project) where all the file operations happen.
1513

1614
Save and switch between your "workspaces" in few clicks or even quicker with shortcuts.
1715

18-
<img src="https://i.ibb.co/hc3gxLk/Schermata-2022-10-01-alle-14-09-06.png" width=80% />
16+
<img src="https://i.ibb.co/1zXsCVk/Schermata-2022-10-02-alle-18-13-54.png" width=80% />
1917

2018

2119
## Harmony supports git commits and branches.
2220

2321

2422

25-
https://user-images.githubusercontent.com/78874117/193406968-cf0b44c6-c5a9-4e14-9085-edbea06bf59e.mp4
23+
https://user-images.githubusercontent.com/78874117/193465430-7a76e848-1e5b-406a-b2b0-99869a031f3a.mp4
2624

2725

2826

client/src/components/Editor/Editor.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Fragment, useState } from 'react';
22
import Draggable from 'react-draggable';
3+
import { isMobile, isDesktop } from 'react-device-detect';
34

45
import MonacoEditor, { EditorDidMount } from 'react-monaco-editor';
56
import * as monaco from 'monaco-editor';
@@ -118,7 +119,6 @@ export function Editor({ text, save, close, filename }: { text: string; save: an
118119
<span>
119120
{saved ? <span className="saved-message">Saved</span> : copied ? <span className="saved-message">Copied</span> : 'Editing'} {filename}
120121
</span>
121-
<CloseIcon onClick={() => close()} />
122122
</strong>
123123
<MonacoEditor width="80%" height="40vh" language={fileExt} theme="vs-dark" options={MONACO_OPTIONS} onChange={onChange} editorDidMount={editorDidMount} />
124124
<div className="editor-btn-container">
@@ -166,6 +166,15 @@ export function Editor({ text, save, close, filename }: { text: string; save: an
166166
<DownloadIcon />
167167
</button>
168168
)}
169+
<button
170+
type="button"
171+
id="clear-icon"
172+
onClick={() => {
173+
close();
174+
}}
175+
>
176+
<CloseIcon />
177+
</button>
169178
</div>
170179
</form>
171180
</Draggable>

client/src/components/Menu/Help.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const Help = () => {
8080
<br />- <strong>Ctrl + Shift + U </strong>: Upload a new file
8181
<br />- <strong>Ctrl + Shift + H</strong> : Open this guide
8282
<br />
83-
<video width="100%" src="https://user-images.githubusercontent.com/78874117/193406968-cf0b44c6-c5a9-4e14-9085-edbea06bf59e.mp4" controls autoPlay></video>
83+
<video width="100%" src="https://user-images.githubusercontent.com/78874117/193465430-7a76e848-1e5b-406a-b2b0-99869a031f3a.mp4" controls autoPlay></video>
8484
{(action === HELP || open) && (
8585
<Button
8686
sx={{

client/src/components/styles/Editor.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,23 @@
2626
text-align: center;
2727
background-color: #121212;
2828
cursor: grab;
29-
display: flex;
30-
justify-content: space-between;
3129
align-items: center;
3230
padding: 0 2em;
3331
}
3432

33+
.nova-editor form .editor-btn-container {
34+
display: flex;
35+
width: 100%;
36+
}
37+
3538
.nova-editor form .editor-btn-container button,
3639
#create-file-btn,
3740
#downloader {
3841
background-color: #1e1e1e;
3942
color: white;
4043
border: 0.3px solid white;
4144
border-radius: 0;
45+
width: 100%;
4246
}
4347

4448
.nova-editor form .editor-btn-container button:hover,
@@ -54,6 +58,7 @@
5458
#downloader {
5559
padding: 0.53em 1em;
5660
background-color: #ffac4b;
61+
text-align: center;
5762
}
5863

5964
@media screen and (max-width: 768px) {
@@ -68,13 +73,8 @@
6873
font-size: 13px;
6974
}
7075

71-
.nova-editor form .editor-btn-container {
72-
display: flex;
73-
width: 100%;
74-
}
7576
.nova-editor form .editor-btn-container button,
7677
#downloader {
7778
padding: 0.3em;
78-
width: 100%;
7979
}
8080
}

0 commit comments

Comments
 (0)