Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
feat: host search
Browse files Browse the repository at this point in the history
  • Loading branch information
sousuke0422 committed Nov 12, 2022
1 parent 4df025d commit 00b20df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/app/common/views/components/instance-ticker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<router-link v-if="instance != null" class="instance-info-wrap" :to="`/search?q=${ encodeURIComponent(`${instance.host}`) }`">
<router-link v-if="instance != null" class="instance-info-wrap" :to="`/search?q=${ encodeURIComponent(`host:${instance.host}`) }`">
<div class="instance-info" :title="getDetail(instance)" :style="{ background: `linear-gradient(to right, ${themeColor}, rgba(0, 0, 0, 0))` }">
<img v-if="instance.faviconUrl != null" class="icon" :src="`/proxy/icon.ico?${urlQuery({ url: instance.faviconUrl })}`"/>
<div class="name">
Expand All @@ -12,6 +12,7 @@
<script lang="ts">
import Vue from 'vue';
import { query as urlQuery } from '../../../../../prelude/url';
type II = {
host?: string;
name?: string;
Expand All @@ -20,6 +21,7 @@ type II = {
// 本家と同じ仕様?
faviconUrl: '/favicon.ico';
};
export default Vue.extend({
props: ['instance'],
data() {
Expand Down

0 comments on commit 00b20df

Please sign in to comment.