Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ax l
MCSManager
Commits
6e4ee86a
"git@git.gitsec.cn:baidan/helm.git" did not exist on "657ce552cb6e582976c08cccc9605e42c242084e"
Commit
6e4ee86a
authored
5 years ago
by
Suwings
Browse files
Options
Download
Email Patches
Plain Diff
删除 旧版历史记录功能
parent
fb65a609
master
v8.7.0
v8.6.23
v8.6.22
v8.6.21
v8.6.20
v8.6.19
v8.6.18
v8.6.17
v8.6.15
v8.6.14
v8.6.13
v8.6.12
v8.6.11
v8.6.10
v8.6.9
v8.6.8
v8.6.7
v8.6.6
v8.6.5
v8.6.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/common/js/viewmodel.js
+0
-22
public/common/js/viewmodel.js
with
0 additions
and
22 deletions
+0
-22
public/common/js/viewmodel.js
+
0
-
22
View file @
6e4ee86a
...
...
@@ -125,34 +125,12 @@
MI
.
routeCopy
(
'
OneUserView
'
,
data
.
obj
);
});
// Minecraft 服务器终端换行替换符
var
terminalEncode
=
function
(
text
)
{
var
consoleSafe
=
TOOLS
.
encode
(
text
);
consoleSafe
=
consoleSafe
.
replace
(
/
\[
_b_r_
\]
/igm
,
'
<br>
'
);
return
consoleSafe
;
}
// 终端控制台界面,实时接受服务端终端日志
// 每当控制面板后端发送实时日志,都将第一时间触发此
MI
.
routeListener
(
'
server/console/ws
'
,
function
(
data
)
{
MCSERVER
.
term
.
write
(
data
.
body
);
});
// 获取MC服务端终端日志历史记录
MI
.
routeListener
(
'
server/console/history
'
,
function
(
data
)
{
var
consoleSafe
=
terminalEncode
(
data
.
body
);
var
MinecraftConsole
=
document
.
getElementById
(
'
TerminalMinecraft
'
);
var
oldHeightV
=
MinecraftConsole
.
scrollHeight
;
//颜色过滤
consoleSafe
=
TOOLS
.
encodeConsoleColor
(
consoleSafe
);
consoleSafe
=
TOOLS
.
deletDoubleS
(
consoleSafe
);
//incude
MinecraftConsole
.
innerHTML
=
consoleSafe
+
MinecraftConsole
.
innerHTML
;
var
newHeightV
=
MinecraftConsole
.
scrollHeight
;
var
resVTopLac
=
newHeightV
-
oldHeightV
;
MinecraftConsole
.
scrollTop
=
resVTopLac
-
999
;
});
// 普通用户主页
MI
.
routeListener
(
'
genuser/home
'
,
function
(
data
)
{
MI
.
routeCopy
(
'
GenHome
'
,
data
.
obj
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help