Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore(release): tidy backmerge formatting and grant documentation
James Dam3227203c2e9e
diff --git a/src-tauri/src/core/filesystem/grants.rs b/src-tauri/src/core/filesystem/grants.rsindex a5d4df0bc..89551ece3 100644--- a/src-tauri/src/core/filesystem/grants.rs+++ b/src-tauri/src/core/filesystem/grants.rs@@ -235,7 +235,7 @@ pub fn init<R: Runtime>(app: &AppHandle<R>) {/// Whether a typed `@path` reference may read `canonical`: the home folder/// itself (the `@` picker starts there and lists it) or anything under/// `canonical_home`, never through a dot-prefixed folder or file and never-/// inside a [`CREDENTIAL_DIRS`] folder. Components compare case-insensitively,+/// inside a [`PRIVATE_APP_DATA`] folder. Components compare case-insensitively,/// as the macOS and Windows default file systems do.pub fn home_read_allowed(canonical: &Path, canonical_home: &Path) -> bool {let Ok(relative) = canonical.strip_prefix(canonical_home) else {diff --git a/src-tauri/src/core/threads/tests.rs b/src-tauri/src/core/threads/tests.rsindex 11571f0fc..b1f17366e 100644--- a/src-tauri/src/core/threads/tests.rs+++ b/src-tauri/src/core/threads/tests.rs@@ -5,9 +5,8 @@ use super::helpers::{write_messages_to_file,};use super::utils::{- validate_thread_id,ensure_data_dirs, ensure_thread_dir_exists, get_data_dir, get_messages_path, get_thread_dir,- get_thread_metadata_path,+ get_thread_metadata_path, validate_thread_id,};use crate::core::app::commands::get_jan_data_folder_path;use futures_util::future;diff --git a/web-app/src/routes/hub/$modelId.tsx b/web-app/src/routes/hub/$modelId.tsxindex ed7a6c5a8..42f884ccc 100644--- a/web-app/src/routes/hub/$modelId.tsx+++ b/web-app/src/routes/hub/$modelId.tsx@@ -485,8 +485,7 @@ function HubModelDetailContent() {</div>) : readmeContent ? (<div className="prose prose-invert max-w-none">- <RenderMarkdown content={readmeContent}- />+ <RenderMarkdown content={readmeContent} /></div>) : (<div className="flex items-center justify-center py-8">