;(function (){
    const
        local_storage = require('local-storage'),
        transfer = require('transfer')
    ;

    let cache = {
        cur_user: {
        },
        shareBcrumbs: [{
            id: '',
            text: "分享文件"
        }],
        myShareBcrumbs: [{
            id: '',
            text: "我的分享"
        }],
        breadcrumbs: [{
            id: '0',
            text: "我的云盘"
        }],
        use_space: {},
        historys: [],
        file_show_type: false,
        storage_left_menu: true,
        share_left_menu: true,
        storage_left_btn: true,
        share_left_btn: true,
        task_panel: 'complete',
        task_controller: 'task.complete',
        share_config:{
            limitShareData : 300
        },
        local_config: function () {
            let config =  Object.assign(
                {
                    close:{
                        type : 'min',
                        default:false
                    },
                    down_setting: {
                        'default': false,
                        'path': 'C:\\'
                    },
                    task: {
                        down_num:3,
                        upload_num: 3
                    }

                },
                local_storage.get('local_config')
            );
            config.task.down_num = 3;
            config.task.upload_num = 3;
            config.down_setting.path = config.down_setting.path||'C:\\';
            return config ;
        }
    };

    transfer.cache = cache;
}())

