Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #182

Merged
merged 3 commits into from
Jan 25, 2021
Merged

Dev #182

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .electron-vue/fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ let packagePaths = [
path.join(__dirname, "..", "node_modules/upyun/node_modules/axios/package.json"),
path.join(__dirname, "..", "node_modules/ali-oss/package.json"),
path.join(__dirname, "..", "node_modules/agentkeepalive/package.json"),
path.join(__dirname, "..", "node_modules/ali-oss/node_modules/agentkeepalive/package.json")
path.join(__dirname, "..", "node_modules/ali-oss/node_modules/agentkeepalive/package.json"),
path.join(__dirname, "..", "node_modules/aws-sdk/package.json")
]

packagePaths.forEach((path) => {
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 云存储管理客户端 v0.5.1
# 云存储管理客户端 v0.5.3

![](http://blog-res.mayday5.me/file/icon.png?imageView2/1/w/80/h/80/q/75|imageslim) 朋友给做的新图标
![](http://blog-res.mayday5.me/file/icon.png?imageView2/1/w/80/h/80/q/75|imageslim) 我老婆(2020.12.03 👩‍❤️‍👨)给做的新图标
> 云存储管理客户端。支持七牛云、腾讯云、青云、阿里云、又拍云、亚马逊S3、京东云。仿文件夹式管理、图片预览、拖拽上传、文件夹上传、同步、批量导出URL等功能

## 效果图
Expand All @@ -14,6 +14,10 @@
![屏幕快照 2018-12-25 下午4.28.47.png](http://blog-res.mayday5.me/img/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202018-12-25%20%E4%B8%8B%E5%8D%884.28.47.png)

## 更新说明
2021.01.25
***
- fix aws 文件上传失败

2020.07.13
***
- 使用indexDB缓存数据,对读取几千条数据的存储桶更友好(上万的条的没测试过,不好说).
Expand Down Expand Up @@ -115,7 +119,7 @@ old

## 下载

- [云存储管理客户端-0.5.1-mac.dmg](http://blog-res.mayday5.me/file/%E4%BA%91%E5%AD%98%E5%82%A8%E7%AE%A1%E7%90%86%E5%AE%A2%E6%88%B7%E7%AB%AF-0.5.1-mac.dmg)
- [云存储管理客户端-0.5.3-mac.dmg](http://blog-res.mayday5.me/file/%E4%BA%91%E5%AD%98%E5%82%A8%E7%AE%A1%E7%90%86%E5%AE%A2%E6%88%B7%E7%AB%AF-0.5.3-mac.dmg)
- [云存储管理客户端-0.5.1-win.exe](http://blog-res.mayday5.me/file/%E4%BA%91%E5%AD%98%E5%82%A8%E7%AE%A1%E7%90%86%E5%AE%A2%E6%88%B7%E7%AB%AF-0.5.1-win.exe)

## Build Setup
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "qiniuclient",
"cnname": "云存储管理客户端",
"cdnPath": "",
"version": "0.5.1",
"version": "0.5.3",
"description": "云存储管理客户端。仿文件夹式管理、图片预览、拖拽上传、文件夹上传、同步、批量导出URL等功能",
"author": "诗人的咸鱼 <[email protected]>",
"license": "MIT",
Expand Down
25 changes: 13 additions & 12 deletions src/main/index.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
// process.env.NODE_ENV = 'development';
// process.env.BABEL_ENV = 'main';

require('babel-register')({
require("babel-register")({
ignore: /node_modules/
});
})

// Install `electron-debug` with `devtron`
require('electron-debug')({showDevTools: true});
require("electron-debug")({ showDevTools: true })

// Install `vue-devtools`
require('electron').app.on('ready', () => {
let installExtension = require('electron-devtools-installer');
installExtension.default(installExtension.VUEJS_DEVTOOLS)
require("electron").app.on("ready", () => {
let installExtension = require("electron-devtools-installer")
installExtension
.default(installExtension.VUEJS_DEVTOOLS)
.then((name) => {
console.log(`install:${name}`);
console.log(`install:${name}`)
})
.catch(err => {
console.log('Unable to install `vue-devtools`: \n', err);
});
});
.catch((err) => {
console.log("Unable to install `vue-devtools`: \n", err)
})
})

// Require `main` process to boot app
require('./index');
require("./index")
2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const getMenuData = function () {
//
if (mainWindow) {
//console.log(path.join(app.getPath('userData'), 'Cache'));
mainWindow.webContents.session.clearCache(function () {
mainWindow.webContents.session.clearCache().then(()=>{
mainWindow.loadURL(util.mainURL);
});
}
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/components/ResourceList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
>
<template v-if="file._directory">
<Icon class="file" :type="file._icon" size="50"></Icon>
<span class="name">{{ file._name }}</span>
<span class="name" :title="file._name">{{ file._name }}</span>
</template>
<template v-else>
<img
Expand All @@ -71,7 +71,7 @@
v-lazy="file.imgObj"
/>
<Icon v-else class="file" :type="file._icon" size="50"></Icon>
<span class="name">{{ file.displayName }}</span>
<span class="name" :title="file.displayName">{{ file.displayName }}</span>
<div class="btn">
<Button
shape="circle"
Expand Down Expand Up @@ -112,11 +112,11 @@
>
<template v-if="file._directory">
<Icon :type="file._icon" size="15"></Icon>
<span class="name">{{ file._name }}</span>
<span class="name" :title="file._name">{{ file._name }}</span>
</template>
<template v-else>
<Icon :type="file._icon" size="15"></Icon>
<span class="name">{{ file.displayName }}</span>
<span class="name" :title="file.displayName">{{ file.displayName }}</span>
<span class="date">{{ file.putTime | formatDate }}</span>
<span class="size">{{ file.fsize | formatFileSize }}</span>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<template v-if="menuState">
<Icon :size="item.size ? item.icon : 25"
:type="item.permission === 1 ? 'md-lock' : (bucketInfo.name === item.name ? 'md-folder-open' : 'md-folder')"></Icon>
<span class="layout-text">{{item.name}}</span>
<span class="layout-text" :title="item.name" >{{item.name}}</span>
</template>
<template v-else>
<span class="layout-icon">{{item.name.substring(0,1)}}</span>
Expand Down