mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-10-26 14:00:20 +00:00
Fix the lint errors: use the component's own locale in Home, format, and declare Image
This commit is contained in:
1 parent
46b0a26969
commit
f45156a143
2 files changed
+3
-4
No files matched your search
@@ -34,6 +34,7 @@ export default [
|
|||||||
alert: 'readonly',
|
alert: 'readonly',
|
||||||
prompt: 'readonly',
|
prompt: 'readonly',
|
||||||
getComputedStyle: 'readonly',
|
getComputedStyle: 'readonly',
|
||||||
|
Image: 'readonly',
|
||||||
// Node globals
|
// Node globals
|
||||||
process: 'readonly',
|
process: 'readonly',
|
||||||
__dirname: 'readonly',
|
__dirname: 'readonly',
|
||||||
|
|||||||
+2
-4
@@ -16,7 +16,7 @@ import {
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import landingLq from '@/assets/landing-lq.jpg'
|
import landingLq from '@/assets/landing-lq.jpg'
|
||||||
import landingHq from '@/assets/landing_hq.png'
|
import landingHq from '@/assets/landing_hq.png'
|
||||||
const { t } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
const onlinePlayers = ref('...')
|
const onlinePlayers = ref('...')
|
||||||
const onlineServers = ref('...')
|
const onlineServers = ref('...')
|
||||||
@@ -43,7 +43,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
const data = await response.text()
|
const data = await response.text()
|
||||||
const lines = data.split('\n')
|
const lines = data.split('\n')
|
||||||
const values = lines.map(line => line.split(' '))
|
const values = lines.map((line) => line.split(' '))
|
||||||
if (values.length >= 3) {
|
if (values.length >= 3) {
|
||||||
onlinePlayers.value = values[0][1]
|
onlinePlayers.value = values[0][1]
|
||||||
onlineServers.value = values[1][1]
|
onlineServers.value = values[1][1]
|
||||||
@@ -123,7 +123,6 @@ const devFeatures = computed(() => [
|
|||||||
description: t('message.home.devFeatures.lua.description'),
|
description: t('message.home.devFeatures.lua.description'),
|
||||||
link:
|
link:
|
||||||
'https://docs.beammp.com/' +
|
'https://docs.beammp.com/' +
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
(locale.value == 'en' ? '' : locale.value + '/') +
|
(locale.value == 'en' ? '' : locale.value + '/') +
|
||||||
'scripting/mod-reference/',
|
'scripting/mod-reference/',
|
||||||
},
|
},
|
||||||
@@ -131,7 +130,6 @@ const devFeatures = computed(() => [
|
|||||||
icon: BookOpen,
|
icon: BookOpen,
|
||||||
title: t('message.home.devFeatures.docs.title'),
|
title: t('message.home.devFeatures.docs.title'),
|
||||||
description: t('message.home.devFeatures.docs.description'),
|
description: t('message.home.devFeatures.docs.description'),
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
link: 'https://docs.beammp.com/' + (locale.value == 'en' ? '' : locale.value + '/'),
|
link: 'https://docs.beammp.com/' + (locale.value == 'en' ? '' : locale.value + '/'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user