1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

fix: metadata count translate (#6567)

* fix: metadata count translate

* feat: optimzie code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-16 10:57:22 +08:00
committed by GitHub
parent 6d0680f4b4
commit 7543f195f3
7 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ const HiddenColumns = ({ readOnly, columns, hiddenColumns, onChange }) => {
<HideColumn <HideColumn
key={column.key} key={column.key}
readOnly={readOnly} readOnly={readOnly}
isHidden={hiddenColumns.includes(column.key)} isHidden={!hiddenColumns.includes(column.key)}
column={column} column={column}
onChange={onChange} onChange={onChange}
/> />

View File

@@ -59,7 +59,7 @@
background: #f5f5f5; background: #f5f5f5;
} }
.sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover .sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover,
.sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover * { .sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover * {
cursor: pointer; cursor: pointer;
} }

View File

@@ -100,7 +100,7 @@ const HideColumnPopover = ({ hidePopover, onChange, readOnly, target, placement,
className="sf-metadata-hide-columns-popover" className="sf-metadata-hide-columns-popover"
boundariesElement={document.body} boundariesElement={document.body}
> >
<div ref={popoverRef} onClick={onPopoverInsideClick} className="sf-metadata-hide-columns-container"> <div ref={popoverRef} onClick={onPopoverInsideClick} className="sf-metadata-hide-columns-container" style={{ maxHeight: window.innerHeight - 100 }}>
<div className="sf-metadata-hide-columns-search-container"> <div className="sf-metadata-hide-columns-search-container">
<SearchInput placeholder={gettext('Search property')} onKeyDown={onKeyDown} onChange={onChangeSearch} autoFocus={true}/> <SearchInput placeholder={gettext('Search property')} onKeyDown={onKeyDown} onChange={onChangeSearch} autoFocus={true}/>
</div> </div>

View File

@@ -100,7 +100,7 @@ class OrgLinks extends React.Component {
<th width="50%">{gettext('Name')}</th> <th width="50%">{gettext('Name')}</th>
<th width="15%">{gettext('Owner')}</th> <th width="15%">{gettext('Owner')}</th>
<th width="15%">{gettext('Created At')}</th> <th width="15%">{gettext('Created At')}</th>
<th width="10%">{gettext('Count')}</th> <th width="10%">{gettext('Visit count')}</th>
<th width="10%"></th> <th width="10%"></th>
</tr> </tr>
</thead> </thead>

View File

@@ -68,7 +68,7 @@ class Content extends Component {
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByTime}>{gettext('Created At')} {sortBy == 'ctime' ? sortIcon : initialSortIcon}</a> <a className="d-inline-block table-sort-op" href="#" onClick={this.sortByTime}>{gettext('Created At')} {sortBy == 'ctime' ? sortIcon : initialSortIcon}</a>
</th> </th>
<th width="10%"> <th width="10%">
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByCount}>{gettext('Count')} {sortBy == 'view_cnt' ? sortIcon : initialSortIcon}</a> <a className="d-inline-block table-sort-op" href="#" onClick={this.sortByCount}>{gettext('Visit count')} {sortBy == 'view_cnt' ? sortIcon : initialSortIcon}</a>
</th> </th>
<th width="11%">{gettext('Expiration')}</th> <th width="11%">{gettext('Expiration')}</th>
<th width="10%">{/* Operations*/}</th> <th width="10%">{/* Operations*/}</th>

View File

@@ -48,7 +48,7 @@ class Content extends Component {
<th width="18%">{gettext('Token')}</th> <th width="18%">{gettext('Token')}</th>
<th width="18%">{gettext('Owner')}</th> <th width="18%">{gettext('Owner')}</th>
<th width="15%">{gettext('Created At')}</th> <th width="15%">{gettext('Created At')}</th>
<th width="10%">{gettext('Count')}</th> <th width="10%">{gettext('Visit count')}</th>
<th width="11%">{gettext('Expiration')}</th> <th width="11%">{gettext('Expiration')}</th>
<th width="10%">{/* Operations*/}</th> <th width="10%">{/* Operations*/}</th>
</tr> </tr>

View File

@@ -4941,7 +4941,7 @@ msgstr "所有公开链接"
#: frontend/src/pages/org-admin/org-links.js:103 #: frontend/src/pages/org-admin/org-links.js:103
#: frontend/src/pages/sys-admin/links/share-links.js:71 #: frontend/src/pages/sys-admin/links/share-links.js:71
msgid "Count" msgid "Count"
msgstr "访问次数" msgstr "数"
#: frontend/src/pages/org-admin/org-links.js:217 #: frontend/src/pages/org-admin/org-links.js:217
msgid "View Link" msgid "View Link"