mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 07:45:41 +00:00
update to 4.0
This commit is contained in:
23
docs-src/assets/auto-lang.js
Normal file
23
docs-src/assets/auto-lang.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/* eslint no-var: off */
|
||||
/**
|
||||
* detect if the browser is in UTF-8 zone
|
||||
* @return boolean
|
||||
*/
|
||||
function isUTF8Zone() {
|
||||
return new Date().getTimezoneOffset() === -480;
|
||||
}
|
||||
|
||||
/**
|
||||
* detect if the browser is already in a locale view
|
||||
*/
|
||||
function isInLocaleView() {
|
||||
return /(cn|en)/i.test(location.href);
|
||||
}
|
||||
|
||||
function initDefaultLocaleAndStatic() {
|
||||
if (!isInLocaleView()) {
|
||||
location.href = isUTF8Zone() ? '/cn' : 'en';
|
||||
}
|
||||
}
|
||||
|
||||
initDefaultLocaleAndStatic();
|
BIN
docs-src/assets/favicon.png
Normal file
BIN
docs-src/assets/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
12
docs-src/assets/main.js
Normal file
12
docs-src/assets/main.js
Normal file
@@ -0,0 +1,12 @@
|
||||
/* eslint no-var: off */
|
||||
function injectBaiduStatic() {
|
||||
var _hmt = _hmt || [];
|
||||
var hm = document.createElement('script');
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
|
||||
hm.src = '//hm.baidu.com/hm.js?4e51565b7d471fd6623c163a8fd79e07';
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
}
|
||||
|
||||
|
||||
injectBaiduStatic();
|
51
docs-src/assets/website.css
Normal file
51
docs-src/assets/website.css
Normal file
@@ -0,0 +1,51 @@
|
||||
.book .book-summary ul.summary li.active>a, .book .book-summary ul.summary li a:hover {
|
||||
color: #008cff;
|
||||
background: transparent;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #2674BA;
|
||||
}
|
||||
h2 {
|
||||
color: #0099CC;
|
||||
}
|
||||
h3 {
|
||||
color: #108ee9;
|
||||
}
|
||||
h4 {
|
||||
color: #662D91;
|
||||
}
|
||||
h5 {
|
||||
color: #444444;
|
||||
}
|
||||
|
||||
.gitbook-link {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.summary-title-span {
|
||||
position: relative !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.rule-title:after,
|
||||
.sample-title:after {
|
||||
font-size: 12px;
|
||||
padding: 0 3px;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.rule-title:after{
|
||||
content: 'rule';
|
||||
background-color: #108ee9;
|
||||
}
|
||||
|
||||
.sample-title:after {
|
||||
content: 'sample';
|
||||
background-color: #00a854;
|
||||
}
|
||||
|
||||
.page-inner {
|
||||
max-width: 1000px !important;
|
||||
}
|
Reference in New Issue
Block a user