-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Re-work on resource search UX re-design
- Loading branch information
Showing
28 changed files
with
578 additions
and
334 deletions.
There are no files selected for viewing
Submodule xmcl
updated
2 files
+1 −0 | packages/curseforge/index.ts | |
+13 −13 | packages/modrinth/types.ts |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,7 @@ | ||
<template> | ||
<v-tabs | ||
:value="tab" | ||
class="mt-3" | ||
centered | ||
background-color="transparent" | ||
@change="$emit('update:tab', $event)" | ||
> | ||
<v-tab> | ||
<v-icon left> | ||
all_inclusive | ||
</v-icon> | ||
{{ t('modSearchType.all') }} | ||
<div | ||
class="v-badge__badge primary static ml-1 w-[unset]" | ||
> | ||
{{ local + modrinth + curseforge }} | ||
</div> | ||
</v-tab> | ||
<v-tab | ||
v-if="local >= 0" | ||
:disabled="local === 0" | ||
> | ||
<v-icon left> | ||
storage | ||
</v-icon> | ||
{{ t('modSearchType.local') }} | ||
<div | ||
class="v-badge__badge primary static ml-1 w-[unset]" | ||
> | ||
{{ local }} | ||
</div> | ||
</v-tab> | ||
<v-tab :disabled="curseforge === 0"> | ||
<v-icon | ||
:size="28" | ||
left | ||
> | ||
$vuetify.icons.curseforge | ||
</v-icon> | ||
Curseforge | ||
<div | ||
class="v-badge__badge primary static ml-1 w-[unset]" | ||
> | ||
{{ curseforge }} | ||
</div> | ||
</v-tab> | ||
<v-tab :disabled="modrinth === 0"> | ||
<v-icon left> | ||
$vuetify.icons.modrinth | ||
</v-icon> | ||
Modrinth | ||
<div | ||
class="v-badge__badge primary static ml-1 w-[unset]" | ||
> | ||
{{ modrinth }} | ||
</div> | ||
</v-tab> | ||
</v-tabs> | ||
<div | ||
class="flex w-full items-center justify-center gap-4 py-2" | ||
/> | ||
</template> | ||
<script lang="ts" setup> | ||
defineProps<{ | ||
tab: number | ||
local: number | ||
modrinth: number | ||
curseforge: number | ||
}>() | ||
defineEmits<{ | ||
(event: 'update:tab', tab: number): void | ||
}>() | ||
const { t } = useI18n() | ||
</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
Oops, something went wrong.