This commit adds a new component called BuildInfoCard. The BuildInfoCard component displays information about the build, including the Git branch, Git hash, build time, and build version. It is used in the SettingPage component. The packages/client/vite.config.ts file is modified to define environment variables for the build information. The __BUILD_TIME__, __BUILD_VERSION__, __GIT_BRANCH__, and __GIT_HASH__ variables are defined using functions that retrieve the current build time, build version, Git branch, and Git hash respectively. This commit introduces new functionality and improves the user experience by providing build information in the application.
		
			
				
	
	
		
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			330 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			330 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
declare const __GIT_BRANCH__: string;
 | 
						|
declare const __GIT_HASH__: string;
 | 
						|
declare const __BUILD_TIME__: string;
 | 
						|
declare const __BUILD_VERSION__: string;
 | 
						|
 | 
						|
export function getBuildInfo() {
 | 
						|
  return {
 | 
						|
    gitBranch: __GIT_BRANCH__,
 | 
						|
    gitHash: __GIT_HASH__,
 | 
						|
    buildTime: __BUILD_TIME__,
 | 
						|
    buildVersion: __BUILD_VERSION__,
 | 
						|
  };
 | 
						|
} |