diff --git a/pages/dashboard/moderation.vue b/pages/dashboard/moderation.vue index 7cace897..f2c87c34 100644 --- a/pages/dashboard/moderation.vue +++ b/pages/dashboard/moderation.vue @@ -35,20 +35,6 @@ Reject -
-

Versions

-
-
-
- - Version {{ version.name }} - -
-
- - -
-
@@ -72,21 +58,12 @@ export default { }, } - let res = await axios.get( - `https://api.modrinth.com/api/v1/moderation/mods`, - config - ) - - const mods = res.data - - res = await axios.get( - `https://api.modrinth.com/api/v1/moderation/versions`, - config - ) + const mods = ( + await axios.get(`https://api.modrinth.com/api/v1/moderation/mods`, config) + ).data return { mods, - versions: res.data, } }, methods: { @@ -109,26 +86,6 @@ export default { await this.$router.go(0) }, - - async changeVersionStatus(id) { - const config = { - headers: { - Authorization: this.$auth.getToken('local') - ? this.$auth.getToken('local') - : '', - }, - } - - await axios.patch( - `https://api.modrinth.com/api/v1/version/${id}`, - { - accepted: true, - }, - config - ) - - await this.$router.go(0) - }, }, } @@ -137,16 +94,4 @@ export default { .button { margin: 0.25rem 0; } - -.version { - @extend %card; - padding: var(--spacing-card-sm) var(--spacing-card-lg); - margin-bottom: var(--spacing-card-sm); - align-items: center; - justify-content: space-between; - - p { - margin: 0; - } -}