Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Jul 23, 2020
1 parent a83183f commit eec9c18
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"license": "MIT",
"homepage": "http://portal.nekocraft.net/",
"dependencies": {
"@ant-design/icons": "^4.2.1",
"@babel/core": "^7.10.4",
Expand All @@ -28,7 +27,7 @@
"typescript": "3.9.6"
},
"scripts": {
"start": "parcel index.html --public-url .",
"start": "parcel index.html",
"build": "parcel build index.html --public-url . --no-source-maps",
"lint": "eslint src/**/*.{ts,tsx}",
"fix": "eslint --fix src/**/*.{ts,tsx}"
Expand Down
9 changes: 5 additions & 4 deletions src/assets/about_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
5. 击杀 **劫掠兽** 不掉落 *马鞍* , 而是掉落 *皮革* .
6. 击杀 **女巫** 不掉落 *酿造好的药水*.
7. 击杀 **卫道士** & **掠夺者** & **唤魔者** 不掉落 *旗帜**斧头*.
8. 在聊天框中以 `<某位玩家名字>空格` *(比如说: Notch 你好)*, 会提醒该玩家查看信息.
9. 安装有座椅插件, **空手** 右键点击 **楼梯** 可以坐上去.
10. **僵尸** 无法拾起 *鸡蛋**腐肉*.
11. 服务器地图种子: `609567216262790763`
8. **僵尸** 被有 **掠夺** 附魔的物品击杀, 会掉落 *沙子*.
9. 在聊天框中以 `<某位玩家名字>空格` *(比如说: Notch 你好)*, 会提醒该玩家查看信息.
10. 安装有座椅插件, **空手** 右键点击 **楼梯** 可以坐上去.
11. **僵尸** 无法拾起 *鸡蛋**腐肉*.
12. 服务器地图种子: `609567216262790763`

### 可以使用的指令

Expand Down
3 changes: 0 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import zhCN from 'antd/es/locale/zh_CN'
import * as moment from 'moment'
import { ConfigProvider } from 'antd'

if (location.protocol === 'https:') {
location.protocol = 'http:'
}
moment.locale('zh')

ReactDOM.render(<ConfigProvider locale={zhCN}><App /></ConfigProvider>, document.getElementById('root'))
2 changes: 1 addition & 1 deletion src/io.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import socketIO from 'socket.io-client'

export default socketIO(process.env.NODE_ENV === 'production'
? location.protocol === 'https:' ? 'https://hz.apisium.cn/nekoPanelWs' : 'http://hz.apisium.cn:9124' : 'http://127.0.0.1:9124')
? location.protocol === 'https:' ? 'https://hz.apisium.cn/nekoPanelWs' : 'http://hz.apisium.cn:9124' : 'http://hz.apisium.cn:9124')
1 change: 0 additions & 1 deletion src/routes/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const ListPage: React.FC = () => {
list1.forEach(it => {
it.lastLoginText = moment(it.lastLogin).format('YYYY/MM/DD HH:mm:ss')
it.firstPlayedText = moment(it.firstPlayed).format('YYYY/MM/DD HH:mm:ss')
console.log(it.onlineTime)
it.onlineTimeText = moment.duration(it.onlineTime / 20, 'seconds').humanize()
if (it.name in obj) it.banned = true
})
Expand Down

0 comments on commit eec9c18

Please sign in to comment.