Update server side structure

This commit is contained in:
Bruno SIMON
2016-06-09 19:07:15 +02:00
parent 4ecc6103f0
commit bd936322ef
6 changed files with 152 additions and 38 deletions
+22 -1
View File
@@ -94,9 +94,30 @@ application.factory(
console.log('connected');
} );
socket.on( 'update_file', function( data )
{
console.log('update_file');
console.log(data);
} );
socket.on( 'delete_file', function( data )
{
console.log('delete_file');
console.log(data);
} );
socket.on( 'update_folders', function( data )
{
console.log('update_folders');
console.log(data);
} );
// Update project event
socket.on( 'update_project', function( data )
{
console.log('update_folders');
console.log(data);
// Reformat versions
result.each_version( data, function( version )
{
@@ -140,7 +161,7 @@ application.factory(
} );
};
result.data = {"name":"","folders":{}};
result.data = {'name':'',folders:{},files:{}};
return result;
}
+1 -1
View File
@@ -30,7 +30,7 @@ section.page-project {position:fixed;top:60px;right:0;bottom:0;left:0;}
section.page-project .aside {position:absolute;top:0;bottom:0;left:0;width:240px;}
section.page-project section.file {position:absolute;top:0;right:0;bottom:0;left:240px;}
section.page-project section.file .file-header {position:absolute;top:0;right:0;left:0;height:30px;line-height:30px;padding:0 0 0 10px;background:#00f;}
section.page-project section.file .versions-nav {position:absolute;top:30px;bottom:0;left:0;width:140px;background:#f0f;}
section.page-project section.file .versions-nav {position:absolute;top:30px;bottom:0;left:0;width:140px;background:#555;}
section.page-project section.file .code {position:absolute;top:30px;right:0;bottom:0;left:140px;background:#ff0;}
section.page-project section.file .code pre code {position:absolute;top:0;right:0;bottom:0;left:0;}