mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
DEV: zmiana w pobieraniu danych z API
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user