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

feat: add storage class in file list #486

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
11 changes: 8 additions & 3 deletions app/main/files/_/file-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<!-- 大小 -->
{{'type'|translate}} / {{'size'|translate}}
</th>
<th>
<!-- 存储类型 -->
{{'storage.class'|translate}}
</th>
<th>
<!-- 最后修改时间 -->
{{'lastModifyTime'|translate}}
Expand Down Expand Up @@ -111,13 +115,14 @@
</span>
<span ng-if="item.isFolder!=true">{{item.size|sizeFormat}}</span>
</td>
<td><span ng-if="!!item.storageClass">{{('storageClassesType.'+item.storageClass.toLowerCase())|translate}}</span></td>
<td>{{item.lastModified|timeFormat}}</td>
<td align="right">
<!-- <a href="" ng-if="item.isFolder!=true" ng-click="showPreview(item);$event.stopPropagation()">预览</a> -->
<!-- <a href="" ng-if="item.isFolder==true" ng-click="goIn(currentBucket,item.path);$event.stopPropagation()">进入</a>
| -->
<span
ng-if="!item.isFolder && (item.storageClass!='Archive' || item.storageStatus==3)"
ng-if="!item.isFolder && (item.storageClass != 'Archive' || item.storageStatus == 3)"
>
<a
href=""
Expand All @@ -130,7 +135,7 @@
|
</span>

<span ng-if="item.storageClass!='Archive' || item.storageStatus==3">
<span ng-if="item.storageClass != 'Archive' || item.storageStatus == 3">
<a href="" ng-click="showDownload(item);$event.stopPropagation()">
<!-- 下载 -->
{{'download'|translate}}
Expand All @@ -139,7 +144,7 @@
</span>

<span
ng-if="!item.isFolder && (item.storageClass=='Archive' && item.storageStatus!=3)"
ng-if="!item.isFolder && (item.storageClass == 'Archive' && item.storageStatus != 3)"
>
<a href="" ng-click="showRestore(item);$event.stopPropagation()">
<!-- 恢复 -->
Expand Down
3 changes: 3 additions & 0 deletions node/i18n/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
type: "Type",
customize: "Customize",
"public.cloud": "Public Cloud",
"storage.class": "Storage Class",

"region.oss-cn-hangzhou": "East China 1(Hangzhou)",
"region.oss-cn-shanghai": "East China 2(Shanghai)",
Expand Down Expand Up @@ -102,6 +103,8 @@ module.exports = {
"storageClassesType.standard": "Standard",
"storageClassesType.ia": "IA",
"storageClassesType.archive": "Archive",
"storageClassesType.coldarchive": "Cold Archive",
"storageClassesType.deepcoldarchive": "Deep Cold Archive",

"aclType.default": "Inherit From Bucket",
"aclType.public-read-write": "Public Read and Write",
Expand Down
3 changes: 3 additions & 0 deletions node/i18n/ja-JP.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
type: "タイプ",
customize: "カスタマイズ",
"public.cloud": "パブリッククラウド",
"storage.class": "ストレージタイプ",

"region.oss-cn-hangzhou": "杭州 (中国東部 1)",
"region.oss-cn-shanghai": "上海 (中国東部 2)",
Expand Down Expand Up @@ -103,6 +104,8 @@ module.exports = {
"storageClassesType.standard": "標準",
"storageClassesType.ia": "低頻度アクセス",
"storageClassesType.archive": "アーカイブ",
"storageClassesType.coldarchive": "コールド・アーカイブ",
"storageClassesType.deepcoldarchive": "ディープコールドアーカイブ",

"aclType.default": "バケットから継承",
"aclType.public-read-write": "公開読み書き",
Expand Down
3 changes: 3 additions & 0 deletions node/i18n/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
type: "类型",
customize: "自定义",
"public.cloud": "公共云",
"storage.class": "存储类型",

"region.oss-cn-hangzhou": "华东1(杭州)",
"region.oss-cn-shanghai": "华东2(上海)",
Expand Down Expand Up @@ -100,6 +101,8 @@ module.exports = {
"storageClassesType.standard": "标准类型",
"storageClassesType.ia": "低频访问类型",
"storageClassesType.archive": "归档存储",
"storageClassesType.coldarchive": "冷归档存储",
"storageClassesType.deepcoldarchive": "深度冷归档存储",

"aclType.default": "继承Bucket",
"aclType.public-read-write": "公共读写",
Expand Down