-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix wrong order of launch behaviours
- Loading branch information
Showing
9 changed files
with
197 additions
and
71 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
interface HoverProps { | ||
invert: boolean | ||
} | ||
const props = withDefaults(defineProps<HoverProps>(), { invert: false }) | ||
const outlined = ref(props.invert) | ||
</script> | ||
|
||
<template> | ||
<Button :outlined="outlined" | ||
@mouseover="outlined = props.invert ? false : true" | ||
@mouseleave="outlined = props.invert ? true : false" | ||
/> | ||
</template> |
153 changes: 153 additions & 0 deletions
153
frontend/src/components/reusable/PlatformSelectPanels.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,153 @@ | ||
<script lang="ts" setup> | ||
import { ref } from "vue" | ||
// import FileUpload from 'primevue/fileupload' | ||
// import DataView from 'primevue/dataview' | ||
import Splitter from 'primevue/splitter' | ||
import SplitterPanel from 'primevue/splitterpanel' | ||
//import OutlineHoverButton from "./OutlineHoverButton.vue" | ||
import { TSPackageManifest, TSPackageFile } from '@types' | ||
import { experimental } from '@frontend/wailsjs/go/models' | ||
// TODO: Finish implementing pack/unpack functionality | ||
import { | ||
//UnpackZip, | ||
ValidateIcon, | ||
ValidateManifest, | ||
ValidateReadme | ||
} from '@backend/thunderstore/Tools' | ||
// Validates each required file for uploading a Thunderstore mod. | ||
function ValidateFiles(icon: experimental.IconValidatorParams, readme: TSPackageFile, manifest: TSPackageManifest) { | ||
ValidateIcon(icon) | ||
ValidateReadme(readme.data) | ||
if (!manifest.author) return | ||
ValidateManifest(manifest.author, manifest.data) | ||
} | ||
const items = ref([{ | ||
label: 'Your Packages', | ||
icon: 'pi pi-box' | ||
}, { | ||
label: 'Package Validater', | ||
icon: 'pi pi-check-square' | ||
}]) | ||
</script> | ||
|
||
<template> | ||
<Splitter | ||
class="platform-splitter" | ||
gutterSize.number="2" | ||
stateStorage="local" | ||
stateKey="platform-splitter-state" | ||
> | ||
<SplitterPanel :min-size="1" class="platform-splitter-panel panel-ts"> | ||
<div class="blur w-full h-full"> | ||
<div class="flex column panel-text"> | ||
Thunderstore | ||
<Button class="mt-3" label="Select"/> | ||
</div> | ||
</div> | ||
</SplitterPanel> | ||
|
||
<SplitterPanel :min-size="1" class="platform-splitter-panel panel-nexus"> | ||
<div class="blur w-full h-full"> | ||
<div class="flex column panel-text"> | ||
Nexus Mods | ||
<Button class="mt-3" label="Select"/> | ||
</div> | ||
</div> | ||
</SplitterPanel> | ||
</Splitter> | ||
|
||
<!-- <div class="mod-dev-tools column"> | ||
<DataView dataKey="dev-package-list"> | ||
</DataView> | ||
</div> | ||
<div class="no-drag"> | ||
<FileUpload | ||
name="demo[]" | ||
accept=".zip" | ||
:multiple="false" | ||
:maxFileSize="1000000" | ||
:showUploadButton="false" | ||
@select="" | ||
> | ||
<template #content> | ||
</template> | ||
<template #empty> | ||
<div class="flex row pi pi-upload gap-2"> | ||
<div>Drag and drop your mod zip file here.</div> | ||
</div> | ||
</template> | ||
</FileUpload> | ||
</div> --> | ||
</template> | ||
|
||
<style scoped> | ||
.platform-splitter { | ||
margin-left: 75px; | ||
height: 100vh; | ||
width: 100vw; | ||
background: transparent !important; | ||
border: none; | ||
} | ||
.platform-splitter-panel { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.panel-text { | ||
font-size: 55px; | ||
font-weight: 510; | ||
user-select: none; | ||
color: #ffffff; | ||
text-shadow: 0 0 5px rgb(25, 25, 25); | ||
text-wrap: nowrap; | ||
} | ||
.panel-ts { | ||
background-image: url('../../assets/images/ts.webp'); | ||
background-position: center; | ||
background-position-y: 0px; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.panel-nexus { | ||
background-image: url('../../assets/images/nexus.png'); | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.blur { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
backdrop-filter: brightness(26%); /* TODO: Also use blur here, but on GPU not CPU */ | ||
} | ||
:deep(.p-splitter-gutter) { | ||
background: #202125; | ||
border: 1px solid rgba(255, 255, 255, 0.259); | ||
} | ||
:deep(.p-splitter-gutter-handle) { | ||
background: rgba(255, 255, 255, 0.617) !important; | ||
} | ||
.mod-dev-tools { | ||
margin-left: 75px; /* Account for sidebar */ | ||
top: 350px; | ||
} | ||
</style> |
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 was deleted.
Oops, something went wrong.
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,23 @@ | ||
<script lang="ts" setup> | ||
import { PlatformSelectPanels } from "@components" | ||
import { Nullable } from "primevue/ts-helpers" | ||
import { ref } from "vue" | ||
enum Platform { | ||
THUNDERSTORE, | ||
NEXUS | ||
} | ||
const selectedPlatform = ref<Nullable<Platform>>(null) | ||
</script> | ||
|
||
<template> | ||
<PlatformSelectPanels v-if="!selectedPlatform" | ||
@selectThunderstore="selectedPlatform = Platform.THUNDERSTORE" | ||
@selectNexus="selectedPlatform = Platform.NEXUS" | ||
/> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |