Add simple tree graph mode (#4)
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Add a new kind of family tree: simple tree Reviewed-on: #4
This commit is contained in:
		@@ -107,12 +107,16 @@ export class Member implements MemberDataApi {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  get lastNameUpperCase(): string | undefined {
 | 
			
		||||
    return this.last_name?.toUpperCase();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  get fullName(): string {
 | 
			
		||||
    const firstName = this.first_name ?? "";
 | 
			
		||||
 | 
			
		||||
    return firstName.length === 0
 | 
			
		||||
      ? this.last_name ?? ""
 | 
			
		||||
      : `${firstName} ${this.last_name ?? ""}`;
 | 
			
		||||
      : `${firstName} ${this.last_name?.toUpperCase() ?? ""}`;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  get invertedFullName(): string {
 | 
			
		||||
@@ -159,6 +163,13 @@ export class Member implements MemberDataApi {
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  get displayBirthDeath(): string {
 | 
			
		||||
    let birthDeath = [];
 | 
			
		||||
    if (this.dateOfBirth) birthDeath.push(fmtDate(this.dateOfBirth));
 | 
			
		||||
    if (this.dateOfDeath) birthDeath.push(fmtDate(this.dateOfDeath));
 | 
			
		||||
    return birthDeath.join(" - ");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  get hasContactInfo(): boolean {
 | 
			
		||||
    return this.email ||
 | 
			
		||||
      this.phone ||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user