From 65ef299d728d58e9e06585e0ec9cf32a11d31258 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 6 Dec 2025 15:22:06 +0530 Subject: [PATCH] feat(settings): display app version, link --- next.config.mjs | 5 ++ src/components/Settings/SettingsDialogue.tsx | 74 ++++++++++++-------- 2 files changed, 51 insertions(+), 28 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 2300ff4..5770f76 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,3 +1,5 @@ +import pkg from './package.json' with { type: 'json' }; + /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', @@ -9,6 +11,9 @@ const nextConfig = { ], }, serverExternalPackages: ['pdf-parse'], + env: { + NEXT_PUBLIC_VERSION: pkg.version, + }, }; export default nextConfig; diff --git a/src/components/Settings/SettingsDialogue.tsx b/src/components/Settings/SettingsDialogue.tsx index ba097a9..f42ce9c 100644 --- a/src/components/Settings/SettingsDialogue.tsx +++ b/src/components/Settings/SettingsDialogue.tsx @@ -3,6 +3,7 @@ import { ArrowLeft, BrainCog, ChevronLeft, + ExternalLink, Search, Sliders, ToggleRight, @@ -115,35 +116,52 @@ const SettingsDialogue = ({ ) : (