Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Dec 29, 2021
1 parent d2029fd commit 1b4ad63
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ customAddress: 'https://example.com/{token}' # Your custom address
geolite2-eula: false # Agree or not with EULA of MaxMind GeoIP2
baidu-map-license-key: '' # If you deploy your own front-end website and turn on the GeoIP function, you should use your own Baidu map license key

skin-url: '' # Custom player skin url (png), {} will be replaced with username or UUID
head-url: '' # Custom player avatar url (png), {} will be replaced with username or UUID

debug: false # Debug mode

logger: # Logger configures
Expand Down
2 changes: 1 addition & 1 deletion languages/zh_CN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
tip: '提示',
noData: '暂无数据',
pluginUpdate: '发现插件更新! 推荐立即更新!',
wrongToken: '密钥错误或插件版本过旧, 最新版本为',
wrongToken: '密钥错误',
reconnect: '正在尝试重新连接...',
disconnected: '连接已断开!',
failedToConnect: '无法连接到服务器!',
Expand Down
1 change: 1 addition & 0 deletions web/pages/Vault.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Box, Toolbar, Container, Card, CardHeader, Grid, DialogContent, DialogC
import { DataGrid, GridCellParams, GridSortItem } from '@mui/x-data-grid'
import { useHistory } from 'react-router-dom'
import { action, success } from '../toast'
import { getSkin } from '../utils'
import lang, { minecraft } from '../../languages'
import dialog from '../dialog'
import isEqual from 'lodash/isEqual'
Expand Down
2 changes: 1 addition & 1 deletion web/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const formatMS = (time: number) => {
return (time / 1000 | 0) + ' ' + language.secound
}

export const getSkin = (data: Partial<GlobalInfo> | null | undefined, name: string, isHead = false) => {
export const getSkin = (data: Partial<GlobalInfo> | null | undefined, name: any, isHead = false) => {
const { headUrl, skinUrl } = data || { }
return isHead
? headUrl ? headUrl.replace(/{}/g, name) : `https://mc-heads.net/avatar/${name}/40`
Expand Down

0 comments on commit 1b4ad63

Please sign in to comment.