Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: team search in workspace search and spotlight
- Loading branch information
Showing
8 changed files
with
711 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/hoppscotch-common/src/components/app/spotlight/entry/RESTTeamRequestEntry.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<span class="flex flex-1 items-center space-x-2"> | ||
<template v-for="(title, index) in collectionTitles" :key="index"> | ||
<span class="block" :class="{ truncate: index !== 0 }"> | ||
{{ title }} | ||
</span> | ||
<icon-lucide-chevron-right class="flex flex-shrink-0" /> | ||
</template> | ||
<span | ||
v-if="request" | ||
class="flex flex-shrink-0 truncate rounded-md border border-dividerDark px-1 text-tiny font-semibold" | ||
:style="{ color: getMethodLabelColor(request.method) }" | ||
> | ||
{{ request.method.toUpperCase() }} | ||
</span> | ||
<span v-if="request" class="block"> | ||
{{ request.name }} | ||
</span> | ||
</span> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { getMethodLabelColor } from "~/helpers/rest/labelColoring" | ||
defineProps<{ | ||
collectionTitles: string[] | ||
request: { | ||
name: string | ||
method: string | ||
} | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.