You've already forked AstralRinth
forked from didirus/AstralRinth
External dependencies list (#518)
This commit is contained in:
@@ -315,7 +315,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
v-if="
|
v-if="
|
||||||
version.dependencies.length > 0 ||
|
version.dependencies.filter((x) => !x.file_name).length > 0 ||
|
||||||
mode === 'edit' ||
|
mode === 'edit' ||
|
||||||
mode === 'create'
|
mode === 'create'
|
||||||
"
|
"
|
||||||
@@ -323,7 +323,9 @@
|
|||||||
<h3>Dependencies</h3>
|
<h3>Dependencies</h3>
|
||||||
<div class="dependencies">
|
<div class="dependencies">
|
||||||
<div
|
<div
|
||||||
v-for="(dependency, index) in version.dependencies"
|
v-for="(dependency, index) in version.dependencies.filter(
|
||||||
|
(x) => !x.file_name
|
||||||
|
)"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="dependency"
|
class="dependency"
|
||||||
>
|
>
|
||||||
@@ -419,6 +421,32 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr class="card-divider" />
|
<hr class="card-divider" />
|
||||||
</section>
|
</section>
|
||||||
|
<section
|
||||||
|
v-if="version.dependencies.filter((x) => x.file_name).length > 0"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<h3>External Dependencies</h3>
|
||||||
|
<InfoIcon
|
||||||
|
v-tooltip="
|
||||||
|
'Mods not part of the Modrinth platform but depended on by this project'
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="external-dependency">
|
||||||
|
<div
|
||||||
|
v-for="(dependency, index) in version.dependencies.filter(
|
||||||
|
(x) => x.file_name
|
||||||
|
)"
|
||||||
|
:key="index"
|
||||||
|
class="external-dependency"
|
||||||
|
>
|
||||||
|
<p v-if="dependency.file_name">
|
||||||
|
{{ decodeURIComponent(dependency.file_name) }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr class="card-divider" />
|
||||||
|
</section>
|
||||||
<section
|
<section
|
||||||
v-if="version.files.length > 0 || mode === 'edit' || mode === 'create'"
|
v-if="version.files.length > 0 || mode === 'edit' || mode === 'create'"
|
||||||
>
|
>
|
||||||
@@ -501,6 +529,7 @@ import Multiselect from 'vue-multiselect'
|
|||||||
import ConfirmPopup from '~/components/ui/ConfirmPopup'
|
import ConfirmPopup from '~/components/ui/ConfirmPopup'
|
||||||
import SmartFileInput from '~/components/ui/SmartFileInput'
|
import SmartFileInput from '~/components/ui/SmartFileInput'
|
||||||
|
|
||||||
|
import InfoIcon from '~/assets/images/utils/info.svg?inline'
|
||||||
import TrashIcon from '~/assets/images/utils/trash.svg?inline'
|
import TrashIcon from '~/assets/images/utils/trash.svg?inline'
|
||||||
import PlusIcon from '~/assets/images/utils/plus.svg?inline'
|
import PlusIcon from '~/assets/images/utils/plus.svg?inline'
|
||||||
import EditIcon from '~/assets/images/utils/edit.svg?inline'
|
import EditIcon from '~/assets/images/utils/edit.svg?inline'
|
||||||
@@ -529,6 +558,7 @@ export default {
|
|||||||
Multiselect,
|
Multiselect,
|
||||||
PlusIcon,
|
PlusIcon,
|
||||||
SmartFileInput,
|
SmartFileInput,
|
||||||
|
InfoIcon,
|
||||||
},
|
},
|
||||||
beforeRouteLeave(to, from, next) {
|
beforeRouteLeave(to, from, next) {
|
||||||
if (this.mode === 'create') {
|
if (this.mode === 'create') {
|
||||||
@@ -1016,6 +1046,12 @@ section {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.external-dependency {
|
||||||
|
p {
|
||||||
|
margin: 0.25rem 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.edit-dependency {
|
.edit-dependency {
|
||||||
h4 {
|
h4 {
|
||||||
margin: 0 0 0.25rem 0;
|
margin: 0 0 0.25rem 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user