Skip to content

Commit 1fb4816

Browse files
anobakaclaude
andcommitted
docs: warn about data loss on uninstall when DataPath is default
Add a warning under the AppData path in system configuration, shown only when dataPathSource is Default — these users would otherwise lose their DB, covers, configs and backups silently when uninstalling, since the Velopack install root and the anchor coincide. Users who have already moved DataPath outside the install tree don't see the notice (their data is safe). resolves #1072 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b3ab1c1 commit 1fb4816

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/web/src/locales/cn/pages/configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989

9090
"configuration.appInfo.tip.appDataPath": "这是存储核心数据文件的位置,如非必要请勿更改。[系统] - [日志] 中的日志保存在 bootstrap_log.* 文件中,可以安全删除。",
9191
"configuration.appInfo.tip.appDataPath.manualMerge": "如果想在保持当前路径的前提下导入旧数据,也可以手动操作:1) 点击右侧文件夹图标打开当前目录;2) 完全关闭 Bakabase;3) 把旧 AppData 内的所有文件复制覆盖到当前目录;4) 重新打开 Bakabase。",
92+
"configuration.appInfo.tip.appDataPath.uninstallNotice": "若数据保存在平台默认位置,通过卸载程序卸载 Bakabase 时,这些数据会被一并删除。如需在卸载后保留数据,请先将路径改到应用目录之外。",
9293
"configuration.appInfo.tip.dataPath": "这是存储用户文件、封面等数据的目录。",
9394
"configuration.appInfo.tip.tempFilesPath": "这是存储临时文件的目录。",
9495
"configuration.appInfo.tip.logPath": "描述应用运行状态的详细信息。如果应用运行异常,您可以将日志文件发送给开发者;如果一切正常,也可以删除它们。",

src/web/src/locales/en/pages/configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989

9090
"configuration.appInfo.tip.appDataPath": "This is where core data files stored and DO NOT change them if not necessary. The logs in [System] - [Logs] are saved in bootstrap_log.* files, they can be safely deleted.",
9191
"configuration.appInfo.tip.appDataPath.manualMerge": "To bring data from a previous install over without changing this path, you can also do it by hand: 1) click the folder icon to open the current directory; 2) fully close Bakabase; 3) copy and overwrite the current directory with the contents of the old AppData; 4) reopen Bakabase.",
92+
"configuration.appInfo.tip.appDataPath.uninstallNotice": "Data kept at the platform default location is removed together with the app when you uninstall Bakabase. To keep it, switch the path to a directory outside the install tree before uninstalling.",
9293
"configuration.appInfo.tip.dataPath": "This is where user files, covers, and other data are stored.",
9394
"configuration.appInfo.tip.tempFilesPath": "This is a directory where temporary files are stored.",
9495
"configuration.appInfo.tip.logPath": "Detailed information which describing the running states of app. You can send log files to developer if the app is not running normally, and you can delete them also if everything is ok.",

src/web/src/pages/configuration/components/AppInfo/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ const AppInfo: React.FC<AppInfoProps> = ({ appInfo, applyPatches }) => {
277277
<span className="text-xs text-foreground-400">
278278
{t("configuration.appInfo.tip.appDataPath.manualMerge")}
279279
</span>
280+
{appInfo.dataPathSource === DataPathSource.Default && (
281+
<span className="text-xs text-warning-500">
282+
{t("configuration.appInfo.tip.appDataPath.uninstallNotice")}
283+
</span>
284+
)}
280285
</div>
281286
),
282287
},

0 commit comments

Comments
 (0)