Skip to content

Commit

Permalink
feat: add spongeneo to downloads index
Browse files Browse the repository at this point in the history
  • Loading branch information
gabizou committed Oct 10, 2024
1 parent d05fdce commit dcd56f6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/assets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $sponge_very_light_grey: tint($sponge_grey, 98%);

$spongevanilla_color: #917300;
$spongeforge_color: #910020;
$spongeneo_color: #cc6f2f;
$spongeapi_color: #009172;

// Bootstrap
Expand Down
6 changes: 5 additions & 1 deletion src/components/PlatformLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
props: ['platform'],
computed: {
isBadged: function () {
return ["spongevanilla", "spongeforge", "spongeapi"].indexOf(this.platform.id) !== -1
return ["spongevanilla", "spongeforge", "spongeneo", "spongeapi"].indexOf(this.platform.id) !== -1
}
}
};
Expand Down Expand Up @@ -56,6 +56,10 @@
background-color: $spongeforge_color;
}
&.spongeneo {
background-color: $spongeneo_color;
}
&.spongeapi {
background-color: $spongeapi_color;
}
Expand Down
31 changes: 31 additions & 0 deletions src/platforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,36 @@ export const Platforms = {
],
checkIsLegacy: mcIsLegacyCheck,
checkExperimental: markExperimental
},
spongeneo: {
group: 'org.spongepowered',
id: 'spongeneo',
name: "SpongeNeo",
suffix: "Neo",
featured: true,
description: "Using NeoForge mods? Install the SpongeNeo to use mods and plugins together!",
recommendation: "Recommended for running plugins together with NeoForge mods.",
queryModifiers: spongeQueryModifiers,
tags: {
api: {
name: "api"
},
neo: {
name: "Minimum NeoForge Required",
display: false,
color: 'forge'
},
minecraft: {
name: "minecraft",
sort: VersionSort.sortVersions
},
},
artifactTypes: [
ArtifactTypes.Main,
ArtifactTypes.Sources,
ArtifactTypes.DevShaded
],
checkIsLegacy: mcIsLegacyCheck,
checkExperimental: markExperimental
}
};
2 changes: 1 addition & 1 deletion src/views/Downloads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

import axios from 'axios';

import {Platforms} from '../platforms';
import {Platforms} from '@/platforms';
import Builds from '../components/Builds.vue';
import PlatformLogo from '../components/PlatformLogo.vue';

Expand Down

0 comments on commit dcd56f6

Please sign in to comment.