updated console and server repo name
This commit is contained in:
39
private-console/web/error/auth_error.html
Normal file
39
private-console/web/error/auth_error.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cmn">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="screen-orientation" content="portrait"/>
|
||||
<meta name="description" content="irext application">
|
||||
<meta name="author" content="strawmanbobi">
|
||||
<title data-i18n="page_error.title_error">控制台错误</title>
|
||||
|
||||
<link href="../public_js/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="./css/error.css" rel="stylesheet">
|
||||
</head>
|
||||
<body class="page_error">
|
||||
<div class="site-wrapper">
|
||||
|
||||
<div class="site-wrapper-inner">
|
||||
<div class="cover-container">
|
||||
<div class="inner cover">
|
||||
<h1 class="cover-heading" data-i18n="page_error.auth_error">认证错误</h1>
|
||||
<p class="lead" data-i18n="page_error.access_after_login">请在登录之后访问</p>
|
||||
<p class="lead">
|
||||
<a href="../" class="btn btn-lg btn-default" data-i18n="page_error.access_to_console">访问控制台</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mastfoot">
|
||||
<div class="inner">
|
||||
<p> <a href="http://cc.irext.net"> irext.net </a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="../public_js/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script src="./js/error.js"></script>
|
||||
</html>
|
||||
40
private-console/web/error/confirm_pw.html
Normal file
40
private-console/web/error/confirm_pw.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cmn">
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="screen-orientation" content="portrait"/>
|
||||
<meta name="description" content="irext application">
|
||||
<meta name="author" content="strawmanbobi">
|
||||
<title data-i18n="page_error.title_confirm_pw">确认密码</title>
|
||||
|
||||
<link href="../public_js/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="./css/password.css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript" src="../public_js/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../public_js/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="../public_js/utils/url_parser.js"></script>
|
||||
<script type="text/javascript" src="./js/password.js"></script>
|
||||
</head>
|
||||
<body class="page_error">
|
||||
<div class="site-wrapper">
|
||||
<div class="site-wrapper-inner">
|
||||
<div class="cover-container">
|
||||
<div class="inner cover">
|
||||
<h1 class="cover-heading" data-i18n="page_error.change_pw">修改密码</h1>
|
||||
<p class="lead" id="plain_password"></p>
|
||||
<p class="lead">
|
||||
<a href="../" class="btn btn-lg btn-default" data-i18n="page_error.access_to_console">访问控制台</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="mastfoot">
|
||||
<div class="inner">
|
||||
<p> <a href="http://cc.irext.net"> irext.net </a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
166
private-console/web/error/css/error.css
Normal file
166
private-console/web/error/css/error.css
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
body {
|
||||
font-family: 微软雅黑, Arial
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a,
|
||||
a:focus,
|
||||
a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Custom default button */
|
||||
.btn-default,
|
||||
.btn-default:hover,
|
||||
.btn-default:focus {
|
||||
color: #333;
|
||||
text-shadow: none; /* Prevent inheritence from `body` */
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Base structure
|
||||
*/
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
background-color: #333;
|
||||
}
|
||||
body {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
/* Extra markup and styles for table-esque vertical and horizontal centering */
|
||||
.site-wrapper {
|
||||
display: table;
|
||||
width: 100%;
|
||||
height: 100%; /* For at least Firefox */
|
||||
min-height: 100%;
|
||||
-webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||
box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||
}
|
||||
.site-wrapper-inner {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
.cover-container {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Padding for spacing */
|
||||
.inner {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Header
|
||||
*/
|
||||
.masthead-brand {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.masthead-nav > li {
|
||||
display: inline-block;
|
||||
}
|
||||
.masthead-nav > li + li {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.masthead-nav > li > a {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #fff; /* IE8 proofing */
|
||||
color: rgba(255,255,255,.75);
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
.masthead-nav > li > a:hover,
|
||||
.masthead-nav > li > a:focus {
|
||||
background-color: transparent;
|
||||
border-bottom-color: #a9a9a9;
|
||||
border-bottom-color: rgba(255,255,255,.25);
|
||||
}
|
||||
.masthead-nav > .active > a,
|
||||
.masthead-nav > .active > a:hover,
|
||||
.masthead-nav > .active > a:focus {
|
||||
color: #fff;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.masthead-brand {
|
||||
float: left;
|
||||
}
|
||||
.masthead-nav {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Cover
|
||||
*/
|
||||
|
||||
.cover {
|
||||
padding: 0 20px;
|
||||
}
|
||||
.cover .btn-lg {
|
||||
padding: 10px 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Footer
|
||||
*/
|
||||
|
||||
.mastfoot {
|
||||
color: #999; /* IE8 proofing */
|
||||
color: rgba(255,255,255,.5);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Affix and center
|
||||
*/
|
||||
|
||||
@media (min-width: 768px) {
|
||||
/* Pull out the header and footer */
|
||||
.masthead {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
.mastfoot {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
/* Start the vertical centering */
|
||||
.site-wrapper-inner {
|
||||
vertical-align: middle;
|
||||
}
|
||||
/* Handle the widths */
|
||||
.masthead,
|
||||
.mastfoot,
|
||||
.cover-container {
|
||||
width: 100%; /* Must be percentage or pixels for horizontal alignment */
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.masthead,
|
||||
.mastfoot,
|
||||
.cover-container {
|
||||
width: 700px;
|
||||
}
|
||||
}
|
||||
166
private-console/web/error/css/password.css
Normal file
166
private-console/web/error/css/password.css
Normal file
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Globals
|
||||
*/
|
||||
body {
|
||||
font-family: 微软雅黑, Arial
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a,
|
||||
a:focus,
|
||||
a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Custom default button */
|
||||
.btn-default,
|
||||
.btn-default:hover,
|
||||
.btn-default:focus {
|
||||
color: #333;
|
||||
text-shadow: none; /* Prevent inheritence from `body` */
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Base structure
|
||||
*/
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
background-color: #5599ff;
|
||||
}
|
||||
body {
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
/* Extra markup and styles for table-esque vertical and horizontal centering */
|
||||
.site-wrapper {
|
||||
display: table;
|
||||
width: 100%;
|
||||
height: 100%; /* For at least Firefox */
|
||||
min-height: 100%;
|
||||
-webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||
box-shadow: inset 0 0 100px rgba(0,0,0,.5);
|
||||
}
|
||||
.site-wrapper-inner {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
}
|
||||
.cover-container {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Padding for spacing */
|
||||
.inner {
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Header
|
||||
*/
|
||||
.masthead-brand {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.masthead-nav > li {
|
||||
display: inline-block;
|
||||
}
|
||||
.masthead-nav > li + li {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.masthead-nav > li > a {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #fff; /* IE8 proofing */
|
||||
color: rgba(255,255,255,.75);
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
.masthead-nav > li > a:hover,
|
||||
.masthead-nav > li > a:focus {
|
||||
background-color: transparent;
|
||||
border-bottom-color: #a9a9a9;
|
||||
border-bottom-color: rgba(255,255,255,.25);
|
||||
}
|
||||
.masthead-nav > .active > a,
|
||||
.masthead-nav > .active > a:hover,
|
||||
.masthead-nav > .active > a:focus {
|
||||
color: #fff;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.masthead-brand {
|
||||
float: left;
|
||||
}
|
||||
.masthead-nav {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Cover
|
||||
*/
|
||||
|
||||
.cover {
|
||||
padding: 0 20px;
|
||||
}
|
||||
.cover .btn-lg {
|
||||
padding: 10px 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Footer
|
||||
*/
|
||||
|
||||
.mastfoot {
|
||||
color: #999; /* IE8 proofing */
|
||||
color: rgba(255,255,255,.5);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Affix and center
|
||||
*/
|
||||
|
||||
@media (min-width: 768px) {
|
||||
/* Pull out the header and footer */
|
||||
.masthead {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
.mastfoot {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
/* Start the vertical centering */
|
||||
.site-wrapper-inner {
|
||||
vertical-align: middle;
|
||||
}
|
||||
/* Handle the widths */
|
||||
.masthead,
|
||||
.mastfoot,
|
||||
.cover-container {
|
||||
width: 100%; /* Must be percentage or pixels for horizontal alignment */
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.masthead,
|
||||
.mastfoot,
|
||||
.cover-container {
|
||||
width: 700px;
|
||||
}
|
||||
}
|
||||
28
private-console/web/error/js/error.js
Normal file
28
private-console/web/error/js/error.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Created by Strawmanbobi
|
||||
* 2017-05-24
|
||||
*/
|
||||
|
||||
let LS_KEY_ID = "user_name";
|
||||
let LS_KEY_TOKEN = "token";
|
||||
|
||||
let userLang = "en-US";
|
||||
let paramLang = getParameter('lang') || localStorage.getItem(LS_KEY_LANG);
|
||||
|
||||
if (paramLang) {
|
||||
localStorage.setItem(LS_KEY_LANG, paramLang);
|
||||
} else {
|
||||
// set LANG default to simplified Chinese
|
||||
localStorage.setItem(LS_KEY_LANG, "zh-CN");
|
||||
}
|
||||
|
||||
userLang = navigator.language || paramLang;
|
||||
|
||||
i18n.init(function(err, t) {
|
||||
$(".page_error").i18n({ lng: userLang });
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
localStorage.removeItem(LS_KEY_ID);
|
||||
localStorage.removeItem(LS_KEY_TOKEN);
|
||||
});
|
||||
42
private-console/web/error/js/password.js
Normal file
42
private-console/web/error/js/password.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Created by Strawmanbobi
|
||||
* 2016-12-02
|
||||
*/
|
||||
|
||||
let LS_KEY_ID = "user_name";
|
||||
let LS_KEY_TOKEN = "token";
|
||||
|
||||
let userLang = "en-US";
|
||||
let paramLang = getParameter('lang') || localStorage.getItem(LS_KEY_LANG);
|
||||
|
||||
if (paramLang) {
|
||||
localStorage.setItem(LS_KEY_LANG, paramLang);
|
||||
} else {
|
||||
// set LANG default to simplified Chinese
|
||||
localStorage.setItem(LS_KEY_LANG, "zh-CN");
|
||||
}
|
||||
|
||||
userLang = navigator.language || paramLang;
|
||||
|
||||
i18n.init(function(err, t) {
|
||||
$(".page_error").i18n({ lng: userLang });
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
let password = getParameter('password');
|
||||
let result = getParameter('result');
|
||||
let indFrame = $("#plain_password");
|
||||
let indContent = "";
|
||||
|
||||
if (result === 1) {
|
||||
indContent = i18n.t("page_error.change_pw_success", { lng: userLang }) + password;
|
||||
} else {
|
||||
indContent = i18n.t("page_error.change_pw_fail", { lng: userLang });
|
||||
}
|
||||
|
||||
indFrame.empty();
|
||||
indFrame.html(indContent);
|
||||
|
||||
localStorage.removeItem(LS_KEY_ID);
|
||||
localStorage.removeItem(LS_KEY_TOKEN);
|
||||
});
|
||||
18
private-console/web/error/locales/dev/translation.json
Normal file
18
private-console/web/error/locales/dev/translation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "IRext"
|
||||
},
|
||||
"page_error": {
|
||||
"title_error": "控制台错误",
|
||||
"title_confirm_pw": "确认密码",
|
||||
"auth_error": "认证错误",
|
||||
"access_after_login": "请在登录之后访问",
|
||||
"access_to_console": "访问控制台",
|
||||
"change_pw": "修改密码",
|
||||
"register": "用户注册",
|
||||
"change_pw_success": "修改密码成功,请牢记您的新密码:",
|
||||
"change_pw_fail": "未能成功修改密码",
|
||||
"register_success": "注册用户成功,请牢记您的新密码:",
|
||||
"register_fail": "未能成功注册用户"
|
||||
}
|
||||
}
|
||||
18
private-console/web/error/locales/en-US/translation.json
Normal file
18
private-console/web/error/locales/en-US/translation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "IRext"
|
||||
},
|
||||
"page_error": {
|
||||
"title_error": "Console Error",
|
||||
"title_confirm_pw": "Confirm Password",
|
||||
"auth_error": "Authentication Error",
|
||||
"access_after_login": "Please access to console after sign in",
|
||||
"access_to_console": "Access to console",
|
||||
"change_pw": "Change password",
|
||||
"register": "Register",
|
||||
"change_pw_success": "Password has been changed, please keep it firmly : ",
|
||||
"change_pw_fail": "Failed to change password",
|
||||
"register_success": "User has been registered, please keep the password firmly : ",
|
||||
"register_fail": "Failed to register user"
|
||||
}
|
||||
}
|
||||
18
private-console/web/error/locales/en/translation.json
Normal file
18
private-console/web/error/locales/en/translation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "IRext"
|
||||
},
|
||||
"page_error": {
|
||||
"title_error": "Console Error",
|
||||
"title_confirm_pw": "Confirm Password",
|
||||
"auth_error": "Authentication Error",
|
||||
"access_after_login": "Please access to console after sign in",
|
||||
"access_to_console": "Access to console",
|
||||
"change_pw": "Change password",
|
||||
"register": "Register",
|
||||
"change_pw_success": "Password has been changed, please keep it firmly : ",
|
||||
"change_pw_fail": "Failed to change password",
|
||||
"register_success": "User has been registered, please keep the password firmly : ",
|
||||
"register_fail": "Failed to register user"
|
||||
}
|
||||
}
|
||||
18
private-console/web/error/locales/zh-CN/translation.json
Normal file
18
private-console/web/error/locales/zh-CN/translation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "IRext"
|
||||
},
|
||||
"page_error": {
|
||||
"title_error": "控制台错误",
|
||||
"title_confirm_pw": "确认密码",
|
||||
"auth_error": "认证错误",
|
||||
"access_after_login": "请在登录之后访问",
|
||||
"access_to_console": "访问控制台",
|
||||
"change_pw": "修改密码",
|
||||
"register": "用户注册",
|
||||
"change_pw_success": "修改密码成功,请牢记您的新密码:",
|
||||
"change_pw_fail": "未能成功修改密码",
|
||||
"register_success": "注册用户成功,请牢记您的新密码:",
|
||||
"register_fail": "未能成功注册用户"
|
||||
}
|
||||
}
|
||||
18
private-console/web/error/locales/zh/translation.json
Normal file
18
private-console/web/error/locales/zh/translation.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"app": {
|
||||
"name": "IRext"
|
||||
},
|
||||
"page_error": {
|
||||
"title_error": "控制台错误",
|
||||
"title_confirm_pw": "确认密码",
|
||||
"auth_error": "认证错误",
|
||||
"access_after_login": "请在登录之后访问",
|
||||
"access_to_console": "访问控制台",
|
||||
"change_pw": "修改密码",
|
||||
"register": "用户注册",
|
||||
"change_pw_success": "修改密码成功,请牢记您的新密码:",
|
||||
"change_pw_fail": "未能成功修改密码",
|
||||
"register_success": "注册用户成功,请牢记您的新密码:",
|
||||
"register_fail": "未能成功注册用户"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user