mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Add support for rendering search corrections.
This commit is contained in:
		
							parent
							
								
									24c338ca49
								
							
						
					
					
						commit
						8cf3b298de
					
				
					 2 changed files with 18 additions and 6 deletions
				
			
		| 
						 | 
					@ -21,6 +21,15 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <hr />
 | 
					    <hr />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <div v-if="results && results.corrected" style="height: 7vh">
 | 
				
			||||||
 | 
					        {{ $t("search.did_you_mean") }}
 | 
				
			||||||
 | 
					        <i>
 | 
				
			||||||
 | 
					            <router-link :to="{ name: 'SearchResults', query: { search_query: results.suggestion } }">
 | 
				
			||||||
 | 
					                {{ results.suggestion }}
 | 
				
			||||||
 | 
					            </router-link>
 | 
				
			||||||
 | 
					        </i>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div v-if="results" class="uk-grid-xl" uk-grid="parallax: 0">
 | 
					    <div v-if="results" class="uk-grid-xl" uk-grid="parallax: 0">
 | 
				
			||||||
        <div
 | 
					        <div
 | 
				
			||||||
            v-for="result in results.items"
 | 
					            v-for="result in results.items"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -70,19 +70,22 @@
 | 
				
			||||||
        "pinned_by": "Pinned by"
 | 
					        "pinned_by": "Pinned by"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "preferences": {
 | 
					    "preferences": {
 | 
				
			||||||
        "instance_name":"Instance Name",
 | 
					        "instance_name": "Instance Name",
 | 
				
			||||||
        "instance_locations":"Instance Locations",
 | 
					        "instance_locations": "Instance Locations",
 | 
				
			||||||
        "has_cdn":"Has CDN?",
 | 
					        "has_cdn": "Has CDN?",
 | 
				
			||||||
        "ssl_score":"SSL Score"
 | 
					        "ssl_score": "SSL Score"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "login": {
 | 
					    "login": {
 | 
				
			||||||
        "username":"Username",
 | 
					        "username": "Username",
 | 
				
			||||||
        "password":"Password"
 | 
					        "password": "Password"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "video": {
 | 
					    "video": {
 | 
				
			||||||
        "videos": "Videos",
 | 
					        "videos": "Videos",
 | 
				
			||||||
        "views": "views",
 | 
					        "views": "views",
 | 
				
			||||||
        "watched": "Watched",
 | 
					        "watched": "Watched",
 | 
				
			||||||
        "sponsor_segments": "Sponsors Segments"
 | 
					        "sponsor_segments": "Sponsors Segments"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "search": {
 | 
				
			||||||
 | 
					        "did_you_mean": "Did you mean: "
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue