Merge branch 'master' of https://gitea.51mars.com/pqc/new-demo
This commit is contained in:
commit
8fd31fb8bb
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"projectDir": "./"
|
||||
}
|
||||
16
package.json
16
package.json
|
|
@ -61,7 +61,8 @@
|
|||
"antd-mobile": "^5.32.0",
|
||||
"antd-mobile-icons": "^0.3.0",
|
||||
"classnames": "^2.3.1",
|
||||
"crypto-browserify": "^3.12.0",
|
||||
"crypto-browserify": "3.12.0",
|
||||
"readable-stream": "3.6.2",
|
||||
"crypto-js": "^4.1.1",
|
||||
"dayjs": "^1.11.5",
|
||||
"echarts": "^5.3.0",
|
||||
|
|
@ -74,7 +75,7 @@
|
|||
"juejin-markdown-themes": "^1.34.0",
|
||||
"lodash": "^4.17.21",
|
||||
"nprogress": "^0.2.0",
|
||||
"oak-domain": "~5.1.6",
|
||||
"oak-domain": "^5.1.7",
|
||||
"oak-external-sdk": "~2.3.3",
|
||||
"oak-frontend-base": "~5.3.14",
|
||||
"oak-general-business": "~5.5.3",
|
||||
|
|
@ -129,7 +130,7 @@
|
|||
"@types/urlsafe-base64": "^1.0.28",
|
||||
"@types/uuid": "^8.3.0",
|
||||
"@types/wechat-miniprogram": "^3.4.0",
|
||||
"@xuchangzju/oak-cli": "file:../oak-cli",
|
||||
"@xuchangzju/oak-cli": "^4.0.11",
|
||||
"assert": "^2.0.0",
|
||||
"babel-jest": "^27.4.2",
|
||||
"babel-loader": "^8.2.3",
|
||||
|
|
@ -223,5 +224,10 @@
|
|||
"not op_mini all"
|
||||
]
|
||||
},
|
||||
"copyWebpack": []
|
||||
}
|
||||
"copyWebpack": [],
|
||||
"overrides": {
|
||||
"crypto-browserify": {
|
||||
"readable-stream": "3.6.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -24,7 +24,54 @@
|
|||
type="text/javascript"
|
||||
src="//g.alicdn.com/de/prismplayer/2.11.0/aliplayer-h5-min.js"
|
||||
></script>
|
||||
|
||||
<script src="//cdn.staticfile.org/react/18.2.0/umd/react.production.min.js"></script>
|
||||
<script>
|
||||
window.React || document.write('<script src="//cdn.bootcdn.net/ajax/libs/react/18.2.0/umd/react.production.min.js"><\/script>')
|
||||
</script>
|
||||
<script>
|
||||
window.React || document.write('<script src="//unpkg.com/react@18.2.0/umd/react.production.min.js"><\/script>')
|
||||
</script>
|
||||
<script src="//cdn.staticfile.org/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
|
||||
<script>
|
||||
window.ReactDOM || document.write('<script src="//cdn.bootcdn.net/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"><\/script>')
|
||||
</script>
|
||||
<script>
|
||||
window.ReactDOM || document.write('<script src="//unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js"><\/script>')
|
||||
</script>
|
||||
<script src="//cdn.staticfile.org/echarts/5.4.3/echarts.min.js"></script>
|
||||
<script>
|
||||
window.echarts || document.write('<script src="//unpkg.com/echarts@5.4.0/dist/echarts.min.js"><\/script>')
|
||||
</script>
|
||||
<script src="//cdn.staticfile.org/lodash.js/4.17.21/lodash.min.js"></script>
|
||||
<script>
|
||||
window._ || document.write('<script src="//cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"><\/script>')
|
||||
</script>
|
||||
<script>
|
||||
window._ || document.write('<script src="//unpkg.com/lodash@4.17.21/lodash.js"><\/script>')
|
||||
</script>
|
||||
<!-- <script src="//unpkg.com/@wangeditor/basic-modules@1.1.6/dist/index.js"></script> -->
|
||||
<!-- <link href="//unpkg.com/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">
|
||||
<script src="//unpkg.com/@wangeditor/editor@latest/dist/index.js"></script> -->
|
||||
<link href="//cdn.staticfile.org/wangeditor5/5.1.22/css/style.min.css" rel="stylesheet" />
|
||||
<script src="//cdn.staticfile.org/wangeditor5/5.1.22/index.js"></script>
|
||||
<script>
|
||||
window.wangEditor || document.write('<script src="//cdn.bootcdn.net/ajax/libs/wangeditor5/5.1.22/index.min.js"><\/script>')
|
||||
</script>
|
||||
<script src="//qiniu.gecomebox.com/static/cdn/fp.min.js"></script>
|
||||
<script>
|
||||
window.FingerprintJS || document.write('<script src="//cdn.jsdelivr.net/npm/@fingerprintjs/fingerprintjs@3.3.6/dist/fp.min.js"><\/script>')
|
||||
</script>
|
||||
<script>
|
||||
window.FingerprintJS || document.write('<script src="//unpkg.com/@fingerprintjs/fingerprintjs@3.3.6/dist/fp.min.js"><\/script>')
|
||||
</script>
|
||||
|
||||
<script src="//qiniu.gecomebox.com/static/cdn/bn.min.js"></script>
|
||||
<script>
|
||||
window.BN || document.write('<script src="//cdn.jsdelivr.net/npm/bn.js@5.2.1/lib/bn.min.js"><\/script>')
|
||||
</script>
|
||||
<script>
|
||||
window.BN || document.write('<script src="//unpkg.com/bn.js@5.2.1/lib/bn.js"><\/script>')
|
||||
</script>
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
|
|
@ -34,7 +81,7 @@
|
|||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>new-demo</title>
|
||||
<title>New Demo</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
@ -49,4 +96,111 @@
|
|||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
--></body>
|
||||
|
||||
<script>
|
||||
function getBrowserVersion() {
|
||||
var sys = {};
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
var s;
|
||||
(s = ua.match(/firefox\/([\d.]+)/))
|
||||
? (sys.firefox = s[1])
|
||||
: (s = ua.match(/chrome\/([\d.]+)/))
|
||||
? (sys.chrome = s[1])
|
||||
: (s = ua.match(/opera.([\d.]+)/))
|
||||
? (sys.opera = s[1])
|
||||
: (s = ua.match(/rv:([\d.]+)/))
|
||||
? (sys.ie = s[1])
|
||||
: (s = ua.match(/msie ([\d.]+)/))
|
||||
? (sys.ie = s[1])
|
||||
: (s = ua.match(/version\/([\d.]+).*safari/))
|
||||
? (sys.safari = s[1])
|
||||
: 0;
|
||||
var browser = 'Unknown';
|
||||
var tip = document.createElement('div');
|
||||
var closeBtn = document.createElement('img');
|
||||
var contentHTML =
|
||||
'您当前使用的浏览器可能会出现界面显示异常或功能无法正常使用等问题,建议下载使用最新的 360 极速浏览器并切换到极速模式。';
|
||||
var handleClickClose = function (event) {
|
||||
document.body.removeChild(tip);
|
||||
};
|
||||
var startAppend = function () {
|
||||
document.body.appendChild(tip);
|
||||
tip.appendChild(closeBtn);
|
||||
};
|
||||
|
||||
closeBtn.style.position = 'absolute';
|
||||
closeBtn.style.right = '20px';
|
||||
closeBtn.style.bottom = '7px';
|
||||
closeBtn.style.cursor = 'pointer';
|
||||
closeBtn.style.width = '15px';
|
||||
closeBtn.style.height = '15px';
|
||||
closeBtn.src = '../assets/images/icon-close.png';
|
||||
closeBtn.alt = '关闭';
|
||||
|
||||
if (closeBtn.addEventListener) {
|
||||
closeBtn.addEventListener('click', handleClickClose);
|
||||
} else {
|
||||
// IE8 及以下
|
||||
closeBtn.attachEvent('onclick', handleClickClose);
|
||||
}
|
||||
|
||||
tip.style.position = 'relative';
|
||||
tip.style.backgroundColor = 'yellow';
|
||||
tip.style.color = 'red';
|
||||
tip.style.position = 'fixed';
|
||||
tip.style.top = 0;
|
||||
tip.style.right = 0;
|
||||
tip.style.left = 0;
|
||||
tip.style.padding = '5px 20px';
|
||||
tip.style.fontSize = '14px';
|
||||
|
||||
if (sys.ie) {
|
||||
browser = 'IE';
|
||||
tip.innerHTML = contentHTML;
|
||||
startAppend();
|
||||
}
|
||||
if (sys.firefox) {
|
||||
browser = 'Firefox';
|
||||
tip.innerHTML = contentHTML;
|
||||
startAppend();
|
||||
}
|
||||
if (sys.chrome) {
|
||||
browser = 'Chrome';
|
||||
|
||||
var getChromeVersion = function () {
|
||||
var arr = navigator.userAgent.split(' ');
|
||||
var chromeVersion = '';
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (/chrome/i.test(arr[i])) chromeVersion = arr[i];
|
||||
}
|
||||
if (chromeVersion) {
|
||||
return Number(
|
||||
chromeVersion.split('/')[1].split('.')[0]
|
||||
);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
if (getChromeVersion()) {
|
||||
var version = getChromeVersion();
|
||||
// 如果 360 极速浏览器并切换到极速模式低于86版本
|
||||
if (version < 87) {
|
||||
tip.innerHTML =
|
||||
'您当前使用的浏览器版本过低,使用可能会出现界面显示异常或功能无法正常使用等问题,建议下载使用谷歌,火狐,edge等新版本浏览器。';
|
||||
startAppend();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sys.opera) {
|
||||
browser = 'Opera';
|
||||
tip.innerHTML = contentHTML;
|
||||
startAppend();
|
||||
}
|
||||
if (sys.safari) {
|
||||
browser = 'Safari';
|
||||
}
|
||||
}
|
||||
getBrowserVersion();
|
||||
</script>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue