File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
(main)/settings/preferences Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { DateRangeSetting } from './DateRangeSetting';
44import { LanguageSetting } from './LanguageSetting' ;
55import { ThemeSetting } from './ThemeSetting' ;
66import { TimezoneSetting } from './TimezoneSetting' ;
7+ import { VersionSetting } from './VersionSetting' ;
78
89export function PreferenceSettings ( ) {
910 const { user } = useLoginQuery ( ) ;
@@ -31,6 +32,10 @@ export function PreferenceSettings() {
3132 < Label > { formatMessage ( labels . theme ) } </ Label >
3233 < ThemeSetting />
3334 </ Column >
35+ < Column >
36+ < Label > { formatMessage ( labels . version ) } </ Label >
37+ < VersionSetting />
38+ </ Column >
3439 </ Column >
3540 ) ;
3641}
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
3+ import { Text } from '@umami/react-zen' ;
4+ import { CURRENT_VERSION } from '@/lib/constants' ;
5+
6+ export function VersionSetting ( ) {
7+ return < Text > { CURRENT_VERSION } </ Text > ;
8+ }
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ export async function GET(request: Request) {
1717 telemetryDisabled : ! ! process . env . DISABLE_TELEMETRY ,
1818 trackerScriptName : process . env . TRACKER_SCRIPT_NAME ,
1919 updatesDisabled : ! ! process . env . DISABLE_UPDATES ,
20+ currentVersion : ! ! process . env . currentVersion ,
2021 } ) ;
2122}
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ export const labels = defineMessages({
351351 growth : { id : 'label.growth' , defaultMessage : 'Growth' } ,
352352 account : { id : 'label.account' , defaultMessage : 'Account' } ,
353353 application : { id : 'label.application' , defaultMessage : 'Application' } ,
354+ version : { id : 'label.version' , defaultMessage : 'Version' } ,
354355 saveSegment : { id : 'label.save-segment' , defaultMessage : 'Save as segment' } ,
355356 saveCohort : { id : 'label.save-cohort' , defaultMessage : 'Save as cohort' } ,
356357 analysis : { id : 'label.analysis' , defaultMessage : 'Analysis' } ,
You can’t perform that action at this time.
0 commit comments