(function(args, client){
    'use strict';

    var filename;
    var path;

    if(args.length > 1){
        var result = boss.lib.utils.splitPathFilename(args[1], client);
        path = result.path;
        filename = result.name;
    }

    if(filename){

        var counter = boss.app_number++;

        var layoutConfig = {
            type: 'row',
            content: [
                {
                    title: 'edit',
                    type: 'component',
                    componentName: 'editor-' + counter,
                    componentState: {}
                }
            ]
        };

        boss.layout.registerComponent('editor-' + counter, function( container, state ){
            container.getElement().html('<div id="app-' + counter + '" class="editor"><editor :path="path" :filename="filename" :client="client"></editor></div>');
        });

        boss.layout.root.contentItems[0].addChild(layoutConfig);

        var vm = new Vue({
            el: '#app-' + counter,
            data: {
                path: path,
                filename: filename,
                client: client
            }
        });

    } else if(!filename) {
        boss.lib.print.error('error: no file argument', client);
    }
});
@@ -307,23 +307,17 @@
     var 
-layoutC
+c
 onfig = 
@@ -322,82 +322,8 @@
 = %7B%0A
-            type: 'row',%0A            content: %5B%0A                %7B%0A        
     
@@ -357,24 +357,16 @@
         
-     
-   
 type: 'c
@@ -372,32 +372,24 @@
 component',%0A
-        
             
@@ -432,32 +432,24 @@
             
-      
-  
 componentSta
@@ -459,40 +459,8 @@
  %7B%7D%0A
-                %7D%0A            %5D%0A
     
@@ -787,15 +787,9 @@
 ild(
-layoutC
+c
 onfi

fix editor