* web: Check JS files. Add types. * web: Fix issues surrounding Vite/ESBuild types. * web: Clean up version constants. Tidy types * web: Clean up docs, types. * web: Clean up package paths. * web: (ESLint) no-lonely-if * web: Render slot before navbar. * web: Fix line-height alignment. * web: Truncate long headers. * web: Clean up page header declarations. Add story. Update paths. * web: Ignore out directory. * web: Lint Lit. * web: Use private alias. * web: Fix implicit CJS mode. * web: Update deps. * web: await all imports.
		
			
				
	
	
		
			40 lines
		
	
	
		
			953 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			953 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/**
 | 
						|
 * @file Import meta environment variables available via ESBuild.
 | 
						|
 */
 | 
						|
 | 
						|
export {};
 | 
						|
declare global {
 | 
						|
    interface ESBuildImportEnv {
 | 
						|
        /**
 | 
						|
         * The authentik version injected by ESBuild during build time.
 | 
						|
         *
 | 
						|
         * @format semver
 | 
						|
         */
 | 
						|
        readonly AK_VERSION: string;
 | 
						|
 | 
						|
        /**
 | 
						|
         * @todo Determine where this is used and if it is needed,
 | 
						|
         * give it a better name.
 | 
						|
         * @deprecated
 | 
						|
         */
 | 
						|
        readonly AK_API_BASE_PATH: string;
 | 
						|
    }
 | 
						|
 | 
						|
    type ESBuildImportEnvKey = keyof ESBuildImportEnv;
 | 
						|
 | 
						|
    /**
 | 
						|
     * Environment variables injected by ESBuild.
 | 
						|
     */
 | 
						|
    interface ImportMetaEnv extends ESBuildImportEnv {
 | 
						|
        /**
 | 
						|
         * An environment variable used to determine
 | 
						|
         * whether Node.js is running in production mode.
 | 
						|
         */
 | 
						|
        readonly NODE_ENV: "development" | "production";
 | 
						|
    }
 | 
						|
 | 
						|
    interface ImportMeta {
 | 
						|
        readonly env: ImportMetaEnv;
 | 
						|
    }
 | 
						|
}
 |