-
Notifications
You must be signed in to change notification settings - Fork 828
Feature/translate #72
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
Changes from 1 commit
89122a2
0c554aa
f7d5c65
7f2e57c
c871d71
b79f89d
fde8166
ac5d758
dc9b2f6
a1e15ae
74a0344
78c6723
3f74bc4
c51c04e
85bd3cc
a570801
b8addd2
0b0bbf5
0617cb5
ed1a89f
3bc84b4
9ce9194
a9ff90f
d5136da
a9d74e1
43fd38b
52afaa9
f5e9b49
28e0dc7
5f72414
b5f08b9
56f2f4a
9fa3b40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,18 +8,18 @@ | |
| <svg style="width: 16px; height: 16px;fill: #377aec; margin-right: 5px;" viewBox="0, 0, 40 , 40" xmlns="http://www.w3.org/2000/svg"> | ||
| <rect x="0" y="18.5" width="40" height="3" rx="1.5" ry="1.5"></rect> | ||
| <rect x="18.5" y="0" width="3" height="40" rx="1.5" ry="1.5"></rect> | ||
| </svg> {{'TITEL.CREATE_PRODUCT' | translate}} | ||
| </svg> {{'TITLE.CREATE_PRODUCT' | translate}} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Product -> Project
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里会改成app, |
||
| </div> | ||
| </wayne-card> | ||
| <ng-container *ngFor="let cluster of clusters; let i = index"> | ||
| <wayne-card @cardState *ngIf="cluster.state" [header]="cluster.name"> | ||
| <div style="flex: 1; margin-top: 12px; display: flex; flex-direction: column; justify-content: space-around;"> | ||
| <div style="display: flex;"> | ||
| <div style="font-family: monospace;">{{'TITEL.CPU_USAGE_SHORT' | translate}}</div> | ||
| <div style="font-family: monospace;">{{'TITLE.CPU_USAGE_SHORT' | translate}}</div> | ||
| <wayne-progress [count]="resources[cluster.name].usage.cpu" [total]="dealLimitLogic(resources[cluster.name].limit.cpu)"></wayne-progress> | ||
| </div> | ||
| <div style="display: flex;"> | ||
| <div style="font-family: monospace;">{{'TITEL.MEMORY_USAGE_SHORT' | translate}}</div> | ||
| <div style="font-family: monospace;">{{'TITLE.MEMORY_USAGE_SHORT' | translate}}</div> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. short 后缀是有 long 什么的 key 么?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是因为有正常的,不一定是有long |
||
| <wayne-progress [count]="resources[cluster.name].usage.memory" [total]="dealLimitLogic(resources[cluster.name].limit.memory)"></wayne-progress> | ||
| </div> | ||
| </div> | ||
|
|
@@ -40,15 +40,15 @@ | |
| <wayne-box> | ||
| <div class="table-search" style="padding: 0 15px;"> | ||
| <div class="table-search-left"> | ||
| <button class="wayne-button active" [class.active]="!starredFilter" (click)="starredChange(false)">{{'TITEL.ALL_CONTENT' | translate}}</button> | ||
| <button class="wayne-button" [class.active]="starredFilter" (click)="starredChange(true)">{{'TITEL.COLLECTED' | translate}}</button> | ||
| <button class="wayne-button active" [class.active]="!starredFilter" (click)="starredChange(false)">{{'TITLE.ALL_CONTENT' | translate}}</button> | ||
| <button class="wayne-button" [class.active]="starredFilter" (click)="starredChange(true)">{{'TITLE.COLLECTED' | translate}}</button> | ||
| <wayne-filter-box (confirm)="confirmEvent()" (cancel)="cancelEvent()"> | ||
| <wayne-checkbox-group class=".filter-body-content" [(ngModel)]="showList"> | ||
| <wayne-checkbox value="name">{{'TITEL.NAME' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="description">{{'TITEL.DESCRIPTION' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="create_time">{{'TITEL.CREATE_TIME' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="create_user">{{'TITEL.CREATE_USER' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="action">{{'TITEL.ACTION' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="name">{{'TITLE.NAME' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="description">{{'TITLE.DESCRIPTION' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="create_time">{{'TITLE.CREATE_TIME' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="create_user">{{'TITLE.CREATE_USER' | translate}}</wayne-checkbox> | ||
| <wayne-checkbox value="action">{{'TITLE.ACTION' | translate}}</wayne-checkbox> | ||
| </wayne-checkbox-group> | ||
| </wayne-filter-box> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么前面叫 expire_in,后面 key 叫expire_time?按照常用用法,应该是使用expire_in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
带时间的在translate中统一用time, 用你这种写法好维护?