mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 01:18:09 +00:00 
			
		
		
		
	Optimized language credentials
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
accounts:
 | 
					accounts:
 | 
				
			||||||
  name: Accounts
 | 
					  name: Online Accounts
 | 
				
			||||||
  description: My Online Accounts
 | 
					  description: My Online Accounts
 | 
				
			||||||
  icon:
 | 
					  icon:
 | 
				
			||||||
      class: fa-solid fa-users
 | 
					      class: fa-solid fa-users
 | 
				
			||||||
  children:
 | 
					  children:
 | 
				
			||||||
  - name: Publications
 | 
					  - name: channels
 | 
				
			||||||
    description: My Publications
 | 
					    description: My publication channels
 | 
				
			||||||
    icon:
 | 
					    icon:
 | 
				
			||||||
        class: fas fa-newspaper
 | 
					        class: fas fa-newspaper
 | 
				
			||||||
    children:
 | 
					    children:
 | 
				
			||||||
@@ -252,7 +252,7 @@ company:
 | 
				
			|||||||
navigation:
 | 
					navigation:
 | 
				
			||||||
  header:
 | 
					  header:
 | 
				
			||||||
    children:
 | 
					    children:
 | 
				
			||||||
    - link: accounts.publications.children
 | 
					    - link: accounts.channels.children
 | 
				
			||||||
    - name: Contact
 | 
					    - name: Contact
 | 
				
			||||||
      description: Get in touch
 | 
					      description: Get in touch
 | 
				
			||||||
      icon:
 | 
					      icon:
 | 
				
			||||||
@@ -485,7 +485,16 @@ navigation:
 | 
				
			|||||||
        icon:
 | 
					        icon:
 | 
				
			||||||
            class: fa-solid fa-file-lines
 | 
					            class: fa-solid fa-file-lines
 | 
				
			||||||
        url: https://s.veen.world/lebenslauf
 | 
					        url: https://s.veen.world/lebenslauf
 | 
				
			||||||
      - link: accounts
 | 
					      - name: Languages
 | 
				
			||||||
 | 
					        icon:
 | 
				
			||||||
 | 
					          class: fa-solid fa-language
 | 
				
			||||||
 | 
					        children:
 | 
				
			||||||
 | 
					        - link: accounts.duolingo
 | 
				
			||||||
 | 
					        - name: Languages Credentials
 | 
				
			||||||
 | 
					          description: Check out which languages I speak
 | 
				
			||||||
 | 
					          url: https://s.veen.world/languages
 | 
				
			||||||
 | 
					          icon:
 | 
				
			||||||
 | 
					            class: fa-solid fa-language
 | 
				
			||||||
      - name: Credentials
 | 
					      - name: Credentials
 | 
				
			||||||
        description: Access my certifications, degrees, and professional records
 | 
					        description: Access my certifications, degrees, and professional records
 | 
				
			||||||
        icon:
 | 
					        icon:
 | 
				
			||||||
@@ -506,7 +515,7 @@ navigation:
 | 
				
			|||||||
            icon:
 | 
					            icon:
 | 
				
			||||||
              class: fa-solid fa-scroll
 | 
					              class: fa-solid fa-scroll
 | 
				
			||||||
            url: https://s.veen.world/certifications
 | 
					            url: https://s.veen.world/certifications
 | 
				
			||||||
        
 | 
					      - link: accounts 
 | 
				
			||||||
    - name: Imprint
 | 
					    - name: Imprint
 | 
				
			||||||
      description: Check out the imprint information
 | 
					      description: Check out the imprint information
 | 
				
			||||||
      icon:
 | 
					      icon:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -49,19 +49,15 @@ class ConfigurationResolver:
 | 
				
			|||||||
                                self._replace_in_list_by_list(value,item,loaded_link)
 | 
					                                self._replace_in_list_by_list(value,item,loaded_link)
 | 
				
			||||||
                            else:
 | 
					                            else:
 | 
				
			||||||
                                self._replace_element_in_list(value,item,loaded_link)  
 | 
					                                self._replace_element_in_list(value,item,loaded_link)  
 | 
				
			||||||
 | 
					                        else:
 | 
				
			||||||
 | 
					                            self._recursive_resolve(value, root_config)            
 | 
				
			||||||
                elif key == "link":
 | 
					                elif key == "link":
 | 
				
			||||||
                    try:
 | 
					                    try:
 | 
				
			||||||
                        if self.__load_children(value):
 | 
					                        loaded = self._find_entry(root_config, value.lower(), True)
 | 
				
			||||||
 | 
					                        if isinstance(loaded, list) and len(loaded) > 2:
 | 
				
			||||||
                            loaded = self._find_entry(root_config, value.lower(), False)  
 | 
					                            loaded = self._find_entry(root_config, value.lower(), False)  
 | 
				
			||||||
                            self._replace_in_dict_by_dict(
 | 
					                        current_config.clear()
 | 
				
			||||||
                                    current_config,key,loaded
 | 
					                        current_config.update(loaded)
 | 
				
			||||||
                                )
 | 
					 | 
				
			||||||
                        else:
 | 
					 | 
				
			||||||
                            loaded = self._find_entry(root_config, value.lower(), True)
 | 
					 | 
				
			||||||
                            if isinstance(loaded, list) and len(loaded) > 2:
 | 
					 | 
				
			||||||
                                loaded = self._find_entry(root_config, value.lower(), False)  
 | 
					 | 
				
			||||||
                            current_config.clear()
 | 
					 | 
				
			||||||
                            current_config.update(loaded)
 | 
					 | 
				
			||||||
                    except Exception as e: 
 | 
					                    except Exception as e: 
 | 
				
			||||||
                        raise ValueError(
 | 
					                        raise ValueError(
 | 
				
			||||||
                            f"Error resolving link '{value}': {str(e)}. "
 | 
					                            f"Error resolving link '{value}': {str(e)}. "
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user