You've already forked AstralRinth
forked from didirus/AstralRinth
155f4091a6
* Tweak search sorting * Tweak search sorting * fix ping impl * remove port field, add server regions * fix compile * fix tests * update frontend banner upload size limit * feat: use server project region instead of country * remove java and bedrock port in frontend * add helper text * allow filtering by if server is online * add server status online offline filter * use region in instance * pre-collapse status in app discovery * pnpm prepr * remove server discovery flag * add servers into mobile nav tabs * parse port from address if present --------- Co-authored-by: tdgao <mr.trumgao@gmail.com>
26 lines
516 B
Vue
26 lines
516 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
|
|
import { TagItem } from '../../base'
|
|
|
|
const { region } = defineProps<{
|
|
region: string
|
|
}>()
|
|
|
|
const regionNames: Record<string, string> = {
|
|
us_east: 'US East',
|
|
us_west: 'US West',
|
|
europe: 'Europe',
|
|
asia: 'Asia',
|
|
australia: 'Australia',
|
|
south_america: 'South America',
|
|
middle_east: 'Middle East',
|
|
russia: 'Russia',
|
|
}
|
|
|
|
const regionName = computed(() => regionNames[region] ?? region)
|
|
</script>
|
|
<template>
|
|
<TagItem>{{ regionName }}</TagItem>
|
|
</template>
|