-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: init selecting paper+purpur on purchase flow Signed-off-by: Evan Song <[email protected]> * feat: properly implement Paper/Purpur in Platform Signed-off-by: Evan Song <[email protected]> * chore: correct wording Signed-off-by: Evan Song <[email protected]> * feat: redo platform modal Signed-off-by: Evan Song <[email protected]> * Switch to HCaptcha for Auth-related captchas (#2945) * Switch to HCaptcha for Auth-related captchas * run fmt * fix hcaptcha not loading * fix: more robust loader dropdown logic Signed-off-by: Evan Song <[email protected]> * fix: handle "not yet supported" install err Signed-off-by: Evan Song <[email protected]> * chore: fix icon kerfuffles Signed-off-by: Evan Song <[email protected]> * chore: improve vanilla install modal title Signed-off-by: Evan Song <[email protected]> * fix: spacing Signed-off-by: Evan Song <[email protected]> * chore: improve no loader state Signed-off-by: Evan Song <[email protected]> * fix: type error Signed-off-by: Evan Song <[email protected]> * chore: adjust mod version modal title Signed-off-by: Evan Song <[email protected]> * chore: adjust modpack warning copy Signed-off-by: Evan Song <[email protected]> * feat: vanilla empty state in content page Signed-off-by: Evan Song <[email protected]> * chore: adjust copy Signed-off-by: Evan Song <[email protected]> * chore: update icon Signed-off-by: Evan Song <[email protected]> * fix: loader type Signed-off-by: Evan Song <[email protected]> * fix: loader type Signed-off-by: Evan Song <[email protected]> * feat: always show dropdown if possible Signed-off-by: Evan Song <[email protected]> * chore: improve spacing Signed-off-by: Evan Song <[email protected]> * chore: appear disabled Signed-off-by: Evan Song <[email protected]> * h Signed-off-by: Evan Song <[email protected]> * chore: if reinstalling, show it on the modal title Signed-off-by: Evan Song <[email protected]> * feat: put it in the dropdown, they said Signed-off-by: Evan Song <[email protected]> * chore: adjust style Signed-off-by: Evan Song <[email protected]> * chore: sort paper-purpur versions desc Signed-off-by: Evan Song <[email protected]> * fix: do not consider backup limit in reinstall prompt Signed-off-by: Evan Song <[email protected]> * feat: backup locking, plugin support * fix: content type error Signed-off-by: Evan Song <[email protected]> * fix: casing Signed-off-by: Evan Song <[email protected]> * fix: plugins pt 2 * feat: backups, mrpack * fix: type errors come on Signed-off-by: Evan Song <[email protected]> * fix: spacing Signed-off-by: Evan Song <[email protected]> * fix: type maxing * chore: show copy button on allocation rows Signed-off-by: Evan Song <[email protected]> * feat: suspend improvement --------- Signed-off-by: Evan Song <[email protected]> Co-authored-by: Evan Song <[email protected]> Co-authored-by: Geometrically <[email protected]> Co-authored-by: Jai A <[email protected]> Co-authored-by: Evan Song <[email protected]>
- Loading branch information
1 parent
eff3189
commit 742c0ed
Showing
26 changed files
with
951 additions
and
247 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
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
70 changes: 70 additions & 0 deletions
70
apps/frontend/src/components/ui/servers/LoaderSelectorCard.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,70 @@ | ||
<template> | ||
<div class="flex w-full items-center justify-between"> | ||
<div class="flex items-center gap-4"> | ||
<div | ||
class="grid size-10 place-content-center rounded-xl border-[1px] border-solid border-button-border bg-button-bg shadow-sm" | ||
:class="isCurrentLoader ? '[&&]:bg-bg-green' : ''" | ||
> | ||
<UiServersIconsLoaderIcon | ||
:loader="loader.name" | ||
class="[&&]:size-6" | ||
:class="isCurrentLoader ? 'text-brand' : ''" | ||
/> | ||
</div> | ||
<div class="flex flex-col gap-0.5"> | ||
<div class="flex flex-row items-center gap-2"> | ||
<h1 class="m-0 text-xl font-bold leading-none text-contrast"> | ||
{{ loader.displayName }} | ||
</h1> | ||
<span | ||
v-if="isCurrentLoader" | ||
class="hidden items-center gap-1 rounded-full bg-bg-green p-1 px-1.5 text-xs font-semibold text-brand sm:flex" | ||
> | ||
<CheckIcon class="h-4 w-4" /> | ||
Current | ||
</span> | ||
</div> | ||
<p v-if="isCurrentLoader" class="m-0 text-xs text-secondary"> | ||
{{ loaderVersion }} | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<ButtonStyled> | ||
<button @click="onSelect"> | ||
<DownloadIcon class="h-5 w-5" /> | ||
{{ isCurrentLoader ? "Reinstall" : "Install" }} | ||
</button> | ||
</ButtonStyled> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { CheckIcon, DownloadIcon } from "@modrinth/assets"; | ||
import { ButtonStyled } from "@modrinth/ui"; | ||
interface LoaderInfo { | ||
name: "Vanilla" | "Fabric" | "Forge" | "Quilt" | "Paper" | "NeoForge" | "Purpur"; | ||
displayName: string; | ||
} | ||
interface Props { | ||
loader: LoaderInfo; | ||
currentLoader: string | null; | ||
loaderVersion: string | null; | ||
} | ||
const props = defineProps<Props>(); | ||
const emit = defineEmits<{ | ||
(e: "select", loader: string): void; | ||
}>(); | ||
const isCurrentLoader = computed(() => { | ||
return props.currentLoader?.toLowerCase() === props.loader.name.toLowerCase(); | ||
}); | ||
const onSelect = () => { | ||
emit("select", props.loader.name); | ||
}; | ||
</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
Oops, something went wrong.