Skip to content

Commit eaa26ca

Browse files
authored
v1.5.3
1 parent fb4a52f commit eaa26ca

3 files changed

Lines changed: 21 additions & 14 deletions

File tree

dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<button class="btn" data-title="Account Settings" id="account">
3333
Account Settings
3434
</button>
35-
<p id="ver">v1.5.2</p>
35+
<p id="ver">v1.5.3</p>
3636
</div>
3737

3838
<div class="projects-container">

devlog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
NEKO Code Editor Devlog
22
|-----------------------|
33

4+
Bug Fix v1.5.3 02/28/2023:
5+
- Fixed "Import Project" feature
6+
- Edited sidenav
7+
48
Update v1.5.2 02/27/2023:
59
- Added a feature where you can import a project
610

editor.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@
6363
<img src="https://cdn-icons-png.flaticon.com/512/569/569837.png" width="25px" height="25px" class="btn-dev" style="cursor: pointer;">
6464
</div>
6565
<br><br><br>
66-
<div data-title="Settings">
67-
<img src="https://cdn-icons-png.flaticon.com/512/2040/2040504.png" width="25px" height="25px" class="btn-setting" style="cursor: pointer; display: none;">
68-
</div>
69-
<br><br><br>
7066
<div data-title="Download Project">
7167
<img src="https://cdn-icons-png.flaticon.com/512/3580/3580085.png" width="25px" height="25px" class="btn-download" style="cursor: pointer;">
7268
</div>
7369
<br><br><br>
7470
<div data-title="Import Project">
7571
<img src="https://cdn-icons-png.flaticon.com/512/3889/3889512.png" width="25px" height="25px" class="btn-import" style="cursor: pointer;">
7672
</div>
73+
<br><br><br>
74+
<div data-title="Settings">
75+
<img src="https://cdn-icons-png.flaticon.com/512/2040/2040504.png" width="25px" height="25px" class="btn-setting" style="cursor: pointer; display: none;">
76+
</div>
7777
</div>
7878
<div id="container">
7979
<div class="left">
@@ -104,7 +104,7 @@
104104
</label>
105105
</div>
106106
<div id="settingsMenu"></div>
107-
<i id="ver" style="font-size: 2rem;">v1.5.2</i>
107+
<i id="ver" style="font-size: 2rem;">v1.5.3</i>
108108
<iframe frameborder="0" id="iframe"></iframe>
109109
<div style="display: none;" class="tocl tocl-4">
110110
<p class="toclp">Console</p>
@@ -236,7 +236,8 @@
236236
{
237237
var zipFileLoaded = new JSZip(fileLoadedEvent.target.result);
238238

239-
window.afs = {"main": {}}
239+
window.afs = {};
240+
window.afs["main"] = {};
240241

241242
document.getElementById("eframe").contentDocument.getElementById("editor").innerHTML = "";
242243

@@ -265,12 +266,13 @@
265266

266267
var newOption = document.createElement("option");
267268

268-
newOption.innerHTML = nameOfFileContainedInZipFile;
269+
newOption.innerHTML = splitFolder[1];
269270

270-
document.querySelector('.language-picker').appendChild(newOption);
271+
if (document.querySelector(".folder-picker").options[document.querySelector(".folder-picker").selectedIndex].innerHTML === folder) {
272+
document.querySelector('.language-picker').appendChild(newOption);
273+
eframe.contentWindow.loadEditor(folder, file, window.afs);
274+
}
271275
document.querySelector(".language-picker").style.display = "";
272-
273-
eframe.contentWindow.loadEditor(folder, file, window.afs);
274276
} else {
275277
var splitFile = nameOfFileContainedInZipFile.split(".");
276278
var file = window.Base64.encode(splitFile[0]) + "-" + splitFile[1];
@@ -280,10 +282,11 @@
280282

281283
newOption.innerHTML = nameOfFileContainedInZipFile;
282284

283-
document.querySelector('.language-picker').appendChild(newOption);
285+
if (document.querySelector(".folder-picker").options[document.querySelector(".folder-picker").selectedIndex].innerHTML === "main") {
286+
document.querySelector('.language-picker').appendChild(newOption);
287+
eframe.contentWindow.loadEditor("main", file, window.afs);
288+
}
284289
document.querySelector(".language-picker").style.display = "";
285-
286-
eframe.contentWindow.loadEditor("main", file, window.afs);
287290
}
288291
}
289292
};

0 commit comments

Comments
 (0)