123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- ;(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;
- }())
|