mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 14:27:00 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e1ff7127e | ||
|
|
e9c0997799 | ||
|
|
958b6f9bcd | ||
|
|
a73b7bd74d | ||
|
|
e502ea6f32 | ||
|
|
b75a641568 | ||
|
|
6a7635a01a |
@@ -1,4 +1,4 @@
|
||||
# frps-panel
|
||||
# frps-panel(Support FRP >= 0.52.0)
|
||||
|
||||
[README](README.md) | [中文文档](README_zh.md)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# frps-panel
|
||||
# frps-panel(支持 FRP >= 0.52.0)
|
||||
|
||||
[README](README.md) | [中文文档](README_zh.md)
|
||||
|
||||
|
||||
@@ -99,5 +99,9 @@
|
||||
"Please input password": "Please input password",
|
||||
"Login success": "Login success",
|
||||
"Username or password incorrect": "Username or password incorrect",
|
||||
"Token invalid": "Token invalid"
|
||||
"Token invalid": "Token invalid",
|
||||
"Total": "Total ",
|
||||
"Items": " items",
|
||||
"Go to": "Go to",
|
||||
"Per Page": " / page"
|
||||
}
|
||||
@@ -99,5 +99,9 @@
|
||||
"Please input password": "请填写密码",
|
||||
"Login success": "登录成功",
|
||||
"Username or password incorrect": "用户名或密码错误",
|
||||
"Token invalid": "登录信息无效"
|
||||
"Token invalid": "登录信息无效",
|
||||
"Total": "共",
|
||||
"Items": "条记录",
|
||||
"Go to": "到第",
|
||||
"Per Page": "条/页"
|
||||
}
|
||||
@@ -1,9 +1,17 @@
|
||||
var httpPort, httpsPort;
|
||||
var httpPort, httpsPort, pageOptions;
|
||||
(function ($) {
|
||||
$(function () {
|
||||
function init() {
|
||||
var langLoading = layui.layer.load()
|
||||
$.getJSON('/lang.json').done(function (lang) {
|
||||
pageOptions = {
|
||||
limitTemplet: function (item) {
|
||||
return item + lang['PerPage'];
|
||||
},
|
||||
skipText: [lang['Goto'], '', lang['Confirm']],
|
||||
countText: [lang['Total'], lang['Items']]
|
||||
};
|
||||
|
||||
$.ajaxSetup({
|
||||
error: function (xhr,) {
|
||||
if (xhr.status === 401) {
|
||||
@@ -12,7 +20,7 @@ var httpPort, httpsPort;
|
||||
});
|
||||
}
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
layui.element.on('nav(leftNav)', function (elem) {
|
||||
var id = elem.attr('id');
|
||||
@@ -47,15 +55,4 @@ var httpPort, httpsPort;
|
||||
|
||||
init();
|
||||
});
|
||||
})(layui.$);
|
||||
|
||||
var pageOptions = {
|
||||
layout: navigator.language.indexOf("zh") === -1 ? ['prev', 'page', 'next', 'skip', 'limit'] : ['prev', 'page', 'next', 'skip', 'count', 'limit'],
|
||||
limitTemplet: function (item) {
|
||||
if (navigator.language.indexOf("zh") === -1) {
|
||||
return item + ' / Page';
|
||||
}
|
||||
return item + ' 条/页';
|
||||
},
|
||||
skipText: navigator.language.indexOf("zh") === -1 ? ['Go to', '', 'Confirm'] : ['到第', '页', '确定']
|
||||
};
|
||||
})(layui.$);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -12,7 +12,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const version = "1.8.2"
|
||||
const version = "2.0.0"
|
||||
|
||||
var (
|
||||
showVersion bool
|
||||
|
||||
@@ -238,6 +238,10 @@ func (c *HandleController) MakeLangFunc() func(context *gin.Context) {
|
||||
"NotSet": ginI18n.MustGetMessage(context, "Not Set"),
|
||||
"Proxy": ginI18n.MustGetMessage(context, "Proxy"),
|
||||
"TokenInvalid": ginI18n.MustGetMessage(context, "Token invalid"),
|
||||
"Total": ginI18n.MustGetMessage(context, "Total"),
|
||||
"Items": ginI18n.MustGetMessage(context, "Items"),
|
||||
"Goto": ginI18n.MustGetMessage(context, "Go to"),
|
||||
"PerPage": ginI18n.MustGetMessage(context, "Per Page"),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user