{"size": 1639, "ext": "js", "max_stars_repo_path": "www/js/pages/admin/AdminPage.js", "max_stars_repo_name": "frapu78/processeditor", "max_stars_repo_stars_event_min_datetime": "2015-12-29T00:56:12.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-27T15:52:37.000Z", "max_issues_repo_path": "www/js/pages/admin/AdminPage.js", "max_issues_repo_name": "frapu78/processeditor", "max_issues_repo_issues_event_min_datetime": "2015-02-26T21:09:45.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-18T19:34:53.000Z", "max_forks_repo_path": "www/js/pages/admin/AdminPage.js", "max_forks_repo_name": "frapu78/processeditor", "max_forks_repo_forks_event_min_datetime": "2015-02-24T11:15:41.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-26T07:01:44.000Z"}
{"max_stars_count": 5, "max_issues_count": 32, "max_forks_count": 6, "avg_line_length": 29.8, "max_line_length": 118, "alphanum_fraction": 0.5198291641}
function AdminPage(components) {
    this.page = null;
    this.components = components;

    this.render = function(cmp) {
        var size = Util.getComponentSize(cmp);

        this.createBasicLayout(size.width, size.height, cmp)

        Ext.EventManager.onWindowResize(this.resizeWindow, this);
    }

    this.createBasicLayout = function(width, height, cmp) {
        this.page = new Ext.panel.Panel({
            title: 'ProcessEditorServer - Adminstration Platform',
            renderTo: cmp,
            width: width,
            height: height,
            layout: 'anchor',
            items: [
                {
                     id: 'center_region',
                     anchor: '100%, 100%',
                     collapsible: false,
                     split: true,
                     margins: '5 0 5 0',
                     style: 'background-color:"white"',
                     layout: 'fit',
                     items: new Ext.panel.Panel({
                        html: "<div align='center' style='padding-top:50px'><img src='pics/_logo/logo256.png'/></div>"
                     })
                }
            ],
            tbar: new AdminPageMenu(this, this.components).getToolbar()
        });
    }

    this.resizeWindow = function(newWidth, newHeight) {
        this.pageWidth = newWidth;
        this.pageHeight = newHeight;

        this.page.setSize(newWidth, newHeight);

        this.page.getLayout().getLayoutItems()[0].setSize(newWidth, newHeight);

        this.page.doLayout();
    }

    this.getContentArea = function() {
        return this.page.getLayout().getLayoutItems()[0];
    }
}


