Skip to content

Commit

Permalink
use third party service for skins
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Oct 14, 2024
1 parent 63e7e62 commit 8508ccb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
6 changes: 2 additions & 4 deletions components/PlayerHead.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<template>
<div class="head" :style="{ backgroundImage: `url(${texture})` }" />
<div class="head" :style="{ backgroundImage: `url(https://mineskin.eu/avatar/${uuid}/32.png)` }" />
</template>

<script lang="ts" setup>
const props = defineProps<{
defineProps<{
uuid: string
}>()
const texture = await useSkin(props.uuid)
</script>

<style scoped>
Expand Down
28 changes: 0 additions & 28 deletions composables/skins.ts

This file was deleted.

4 changes: 0 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export default defineNuxtConfig({
'/api': 'http://localhost:8080/api',
'/auth': 'http://localhost:8080/auth',
'/dynmap': 'http://localhost:8123',
'/skins': {
target: 'https://sessionserver.mojang.com/session/minecraft/profile/',
changeOrigin: true,
},
},
},

Expand Down

0 comments on commit 8508ccb

Please sign in to comment.