diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 3678964..e0f68c7 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -554,7 +554,12 @@ fn remove_sidecar_files(path: &Path) { } fn cleanup_file_names() -> Vec { - ["SGlzdG9yeQ==", "VG9wIFNpdGVz", "VmlzaXRlZCBMaW5rcw=="] + [ + "SGlzdG9yeQ==", + "VG9wIFNpdGVz", + "VmlzaXRlZCBMaW5rcw==", + "U2hvcnRjdXRz", + ] .into_iter() .map(decoded_literal) .filter(|value| !value.is_empty()) diff --git a/src-tauri/src/models.rs b/src-tauri/src/models.rs index 0d13f38..96c6004 100644 --- a/src-tauri/src/models.rs +++ b/src-tauri/src/models.rs @@ -90,6 +90,7 @@ pub struct HistoryCleanupSummary { pub history: CleanupFileStatus, pub top_sites: CleanupFileStatus, pub visited_links: CleanupFileStatus, + pub shortcuts: CleanupFileStatus, pub sessions: CleanupFileStatus, } diff --git a/src-tauri/src/scanner.rs b/src-tauri/src/scanner.rs index 8d67188..22cdf06 100644 --- a/src-tauri/src/scanner.rs +++ b/src-tauri/src/scanner.rs @@ -105,6 +105,7 @@ fn scan_browser(config: BrowserConfigEntry) -> Option { cleanup.history == CleanupFileStatus::Found || cleanup.top_sites == CleanupFileStatus::Found || cleanup.visited_links == CleanupFileStatus::Found + || cleanup.shortcuts == CleanupFileStatus::Found || cleanup.sessions == CleanupFileStatus::Found }) .count(); @@ -242,6 +243,7 @@ fn scan_history_cleanup_status(profile_path: &Path) -> HistoryCleanupSummary { visited_links: cleanup_file_status( &profile_path.join(decoded_literal("VmlzaXRlZCBMaW5rcw==")), ), + shortcuts: cleanup_file_status(&profile_path.join(decoded_literal("U2hvcnRjdXRz"))), sessions: cleanup_sessions_status(&profile_path.join(decoded_literal("U2Vzc2lvbnM="))), } } diff --git a/src/components/browser-data/HistoryCleanupList.vue b/src/components/browser-data/HistoryCleanupList.vue index 907c529..2d973f0 100644 --- a/src/components/browser-data/HistoryCleanupList.vue +++ b/src/components/browser-data/HistoryCleanupList.vue @@ -23,6 +23,7 @@ const selectableProfiles = computed(() => profile.historyCleanup.history, profile.historyCleanup.topSites, profile.historyCleanup.visitedLinks, + profile.historyCleanup.shortcuts, profile.historyCleanup.sessions, ]), ), @@ -53,6 +54,7 @@ function isSelectable(profile: ProfileSummary) { profile.historyCleanup.history, profile.historyCleanup.topSites, profile.historyCleanup.visitedLinks, + profile.historyCleanup.shortcuts, profile.historyCleanup.sessions, ]); } @@ -98,6 +100,7 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) {
历史记录
热门站点
访问链接
+
快捷方式
会话
操作
@@ -146,6 +149,11 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) { {{ statusLabel(profile.historyCleanup.visitedLinks) }} +
+ + {{ statusLabel(profile.historyCleanup.shortcuts) }} + +
{{ statusLabel(profile.historyCleanup.sessions) }} @@ -291,7 +299,7 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) { .history-grid { display: grid; - grid-template-columns: 52px 56px minmax(170px, 1fr) 118px 118px 128px 118px 108px; + grid-template-columns: 52px 56px minmax(170px, 1fr) 108px 108px 118px 108px 108px 108px; gap: 12px; align-items: center; } @@ -408,7 +416,7 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) { @media (max-width: 900px) { .history-grid { - grid-template-columns: 52px 56px minmax(160px, 1fr) 110px 110px 118px 110px 100px; + grid-template-columns: 52px 56px minmax(160px, 1fr) 100px 100px 110px 100px 100px 100px; } } @@ -425,7 +433,8 @@ function hasAnyHistoryFile(statuses: CleanupFileStatus[]) { .history-grid > :nth-child(5), .history-grid > :nth-child(6), .history-grid > :nth-child(7), - .history-grid > :nth-child(8) { + .history-grid > :nth-child(8), + .history-grid > :nth-child(9) { display: none; } } diff --git a/src/components/browser-data/HistoryCleanupModal.vue b/src/components/browser-data/HistoryCleanupModal.vue index 47d0414..08efcd6 100644 --- a/src/components/browser-data/HistoryCleanupModal.vue +++ b/src/components/browser-data/HistoryCleanupModal.vue @@ -28,7 +28,7 @@ const emit = defineEmits<{