Skip to content

Commit 24f9bdc

Browse files
committed
fix some bugs, small visual changes
1 parent 215a37b commit 24f9bdc

9 files changed

Lines changed: 16 additions & 18 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sail
33
.htaccess
44
.htaccess
55
server.js
6+
socket.js
67
ssh.js
78
comments.txt
89
server

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This is only the **FRONTEND**. There is also a backend component which is not op
1414
If you want to see the places where all of the _magic_ happens, take a look at `js/drive.js`, `js/sky.js`, and `js/tabs.js`. Enjoy!
1515

1616
### Recent Updates
17+
+ Better publish function
1718
+ Tree contents loaded asyncronously
1819
+ Modes dynamically loaded, instead of all at once
1920
+ Can now import and export snippets
@@ -39,7 +40,7 @@ If you want to see the places where all of the _magic_ happens, take a look at `
3940
+ ~~Dynamically load modes~~ **DONE!**
4041
+ Custom-made color picker (WIP)
4142
+ Chat and collaboration using our backend, so that Onedrive users can chat and collaborate as well
42-
+ Better publishing (WIP)
43+
+ ~~Better publishing~~ **DONE!**
4344
+ ~~Remove Roboto font, use websafe font~~ **KEEP IT, LOADED VIA GOOGLE FONTS**
4445

4546
### Long-Term Goals

css/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,12 @@ LOADING ICON
12091209
width: 79px;
12101210
width: 80px;
12111211
}
1212+
.popup>*{
1213+
border-bottom: solid 1px #eee !important;
1214+
}
1215+
.popup>*:last-child{
1216+
border-bottom: none !important;
1217+
}
12121218
.popup a{
12131219
color: #5E5B5B !important;
12141220
}

images/web.png

-501 KB
Loading

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<div id="nav_preview" onclick="nav.nav('preview')"><i class="zmdi zmdi-eye"></i></div>
4444
<div id="nav_snippet" onclick="nav.nav('snippet')">
4545
<i class="fa fa-code"></i>
46-
<span style="
46+
<!--span style="
4747
position: absolute;
4848
left: 18px;
4949
font-family: &quot;Roboto&quot;;
@@ -56,7 +56,7 @@
5656
padding-bottom: 1px;
5757
padding-top: 1px;
5858
top: 2px;
59-
">new</span>
59+
">new</span-->
6060
</div>
6161
</div>
6262

@@ -299,10 +299,10 @@ <h6>
299299
<span onclick="picker.share()" id="share-button"><i class="zmdi zmdi-account-add"></i> Share</span>
300300
<span onclick="picker.saveAs()"><i class="zmdi zmdi-floppy"></i>Save As</span>
301301
<span onclick="picker.download()"><i class="zmdi zmdi-download"></i>Download</span>
302-
<span class="side-pub" onclick="publish_html()"><i class="zmdi zmdi-upload"></i>Publish</span>
302+
<span class="side-pub" onclick="manager.publish()"><i class="zmdi zmdi-upload"></i>Publish</span>
303303
<span class="side-pub">
304304
<a class="side-pub-link" href="" target="_blank" style="text-decoration: none;">
305-
<i class="zmdi zmdi-link"></i>Go to Site
305+
<i class="zmdi zmdi-link"></i>View Published File
306306
</a>
307307
</span>
308308
<span class="side-drive side-file">

js/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ context.toggleMenuOff = function() {
168168
context.positionMenu = function(e) {
169169
context.clickCoords = context.taskItemInContext.getBoundingClientRect();
170170
context.clickCoordsX = context.clickCoords.left + context.clickCoords.width - 25;
171-
context.clickCoordsY = context.clickCoords.top + context.clickCoords.height + 10;
171+
context.clickCoordsY = context.clickCoords.top + context.clickCoords.height + 0;
172172

173173
context.menuWidth = context.menu.offsetWidth + 4;
174174
context.menuHeight = context.menu.offsetHeight + 4;

js/drive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ drive.getInfo = function(){
107107
}
108108
try{
109109
drive.id = resp.user.permissionId;
110-
$(".side-pub-link").attr("href", "https://codeyourcloud.com/pub/"+true_id+"/index.html");
111110

112111
}
113112
catch(e){}

js/sky.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ sky.getInfo = function(){
7979
});
8080

8181
try{
82-
$(".side-pub-link").attr("href", "https://codeyourcloud.com/pub/"+true_id+"/index.html");
8382
$(".side-drive").css("display","none");
8483
}
8584
catch(e){}

js/tabs.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,10 @@ function adjust(){
217217
$(".side-pub").css("display","none"); //can't publish anything
218218

219219
//set publish link
220+
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + true_id + "/" + id.replace("-","") + ".html");
220221
if(cloud_use === "drive"){
221-
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + drive.id + "/index.html");
222222
$(".side-drive-link").attr("href","https://drive.google.com/file/d/" + current_file + "/view?usp=drivesdk");
223223
}
224-
else if(cloud_use === "sky"){
225-
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + sky.id + "/index.html");
226-
}
227224

228225
if(mode === "text/javascript"){
229226
$(".side-run").css("display","inline-block"); //can run javascript
@@ -236,12 +233,7 @@ function adjust(){
236233
}
237234
else if(mode === "text/x-latex" || mode === "text/x-stex"){
238235
$(".side-pub").css("display","inline-block");;
239-
if(cloud_use === "drive"){
240-
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + drive.id + "/" + current_file + ".pdf");
241-
}
242-
else if(cloud_use === "sky"){
243-
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + sky.id + "/" + current_file + ".pdf");
244-
}
236+
$(".side-pub-link").attr("href","https://codeyourcloud.com/pub/" + true_id + "/" + id.replace("-","") + ".pdf");
245237
}
246238
else if(mode === "text/x-markdown" || mode === "gfm" || mode === "markdown"){
247239
$(".side-pub").css("display","inline-block"); //can publish markdown

0 commit comments

Comments
 (0)