mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	 3c25033741
			
		
	
	3c25033741
	
	
	
		
			
			* chore: shared external link component, glimmerization * chore: update easy a tags * chore: update other a tags * chore: lil cleanup * changelog
		
			
				
	
	
		
			22 lines
		
	
	
		
			570 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			570 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import ExternalLink from './external-link';
 | |
| 
 | |
| /**
 | |
|  * @module DocLink
 | |
|  * `DocLink` components are used to render anchor links to relevant Vault documentation at vaultproject.io.
 | |
|  *
 | |
|  * @example
 | |
|  * ```js
 | |
|     <DocLink @path="/docs/secrets/kv/kv-v2.html">Learn about KV v2</DocLink>
 | |
|  * ```
 | |
|  *
 | |
|  * @param path="/"{String} - The path to documentation on vaultproject.io that the component should link to.
 | |
|  *
 | |
|  */
 | |
| export default class DocLinkComponent extends ExternalLink {
 | |
|   host = 'https://www.vaultproject.io';
 | |
| 
 | |
|   get href() {
 | |
|     return `${this.host}${this.args.path}`;
 | |
|   }
 | |
| }
 |