DEV: zmiana w pobieraniu danych z API

This commit is contained in:
2021-12-30 00:57:22 +01:00
parent cb306d4be5
commit 967356a02a
8 changed files with 114 additions and 45 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
export default defineComponent({
methods: {
calculateExpStyle(exp: string | number, isSupporter = false): string {
calculateExpStyle(exp: number, isSupporter = false): string {
const bgColor = exp > -1 ? (exp < 2 ? '#26B0D9' : `hsl(${-exp * 5 + 100}, 85%, 50%)`) : '#666';
const fontColor = exp > 15 || exp == -1 ? 'white' : 'black';