This commit is contained in:
Julian Freeman
2026-04-17 17:26:55 -04:00
parent 1c43a318c6
commit 6062a38b99
14 changed files with 137 additions and 140 deletions

View File

@@ -47,7 +47,7 @@ function isSelected(url: string) {
<path d="M3.5 8.2L6.4 11.1L12.5 4.9" />
</svg>
</span>
<span>Select All</span>
<span>全选</span>
</label>
<button
class="danger-button"
@@ -55,15 +55,15 @@ function isSelected(url: string) {
:disabled="!selectedBookmarkUrls.length || deleteBusy"
@click="emit('deleteSelected')"
>
{{ deleteBusy ? "Deleting..." : `Delete Selected (${selectedBookmarkUrls.length})` }}
{{ deleteBusy ? "删除中..." : `删除所选(${selectedBookmarkUrls.length}` }}
</button>
</div>
<div class="data-table-header bookmarks-grid">
<div class="header-cell checkbox-cell">Pick</div>
<button class="header-cell sortable" :class="{ active: sortKey === 'title' }" type="button" @click="emit('update:sortKey', 'title')">Name</button>
<div class="header-cell checkbox-cell">选择</div>
<button class="header-cell sortable" :class="{ active: sortKey === 'title' }" type="button" @click="emit('update:sortKey', 'title')">名称</button>
<button class="header-cell sortable" :class="{ active: sortKey === 'url' }" type="button" @click="emit('update:sortKey', 'url')">URL</button>
<div class="header-cell actions-cell">Actions</div>
<div class="header-cell actions-cell">操作</div>
</div>
<div class="data-table-body styled-scrollbar">
<article v-for="bookmark in bookmarks" :key="bookmark.url" class="data-table-row bookmarks-grid">
@@ -89,7 +89,7 @@ function isSelected(url: string) {
<div class="row-cell muted-cell" :title="bookmark.url">{{ bookmark.url }}</div>
<div class="row-cell actions-cell">
<button class="disclosure-button" type="button" @click="emit('showProfiles', bookmark.url)">
<span>View</span>
<span>查看</span>
<span class="badge neutral">{{ bookmark.profileIds.length }}</span>
</button>
<button
@@ -98,14 +98,14 @@ function isSelected(url: string) {
:disabled="deleteBusy"
@click="emit('deleteBookmark', bookmark.url)"
>
Delete
删除
</button>
</div>
</article>
</div>
</div>
<div v-else class="empty-card">
<p>No bookmarks were discovered for this browser.</p>
<p>这个浏览器没有扫描到任何书签</p>
</div>
</section>
</template>