react_hsbc_teller 1.9.7 → 1.9.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +39 -39
- package/README.en.md +36 -36
- package/README.md +52 -52
- package/config/webpack.config.js +119 -119
- package/config/webpack.dev.js +108 -108
- package/config/webpack.prod.js +104 -104
- package/lib/hsbc.js +1 -1
- package/package.json +108 -108
- package/packages/api/api.js +553 -553
- package/packages/api/server.js +50 -50
- package/packages/common/JKL.js +61 -61
- package/packages/common/XML.js +271 -271
- package/packages/common/index.esm.js +374 -374
- package/packages/common/websocket.js +267 -267
- package/packages/demo/demo.js +279 -279
- package/packages/demo/index.js +3 -3
- package/packages/demo/pdf.js +79 -79
- package/packages/envconfig/envconfig.js +12 -12
- package/packages/index.js +2 -2
- package/packages/pages/foot/foot.jsx +212 -212
- package/packages/pages/foot/foot.less +84 -84
- package/packages/pages/header/header.jsx +15 -15
- package/packages/pages/header/header.less +51 -51
- package/packages/pages/index.jsx +52 -52
- package/packages/pages/sign/signMy.jsx +221 -221
- package/packages/pages/sign/signMy.less +129 -129
- package/packages/pages/video/video.jsx +6768 -6728
- package/packages/pages/video/video.less +616 -616
- package/packages/style/index.less +1 -1
- package/packages/style/reset.less +345 -345
- package/packages/utils/asyncComponent.jsx +26 -26
- package/packages/utils/cell.js +64 -64
- package/packages/utils/mixin.js +27 -27
- package/packages/utils/setRem.js +10 -10
- package/public/index.html +77 -77
- package/src/index.js +11 -11
- package/src/index.less +5 -5
- package/tsconfig.json +11 -11
package/.babelrc
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
[
|
|
4
|
-
"@babel/preset-env",
|
|
5
|
-
{
|
|
6
|
-
"modules": false
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"@babel/preset-react"
|
|
10
|
-
],
|
|
11
|
-
"plugins": [
|
|
12
|
-
"react-hot-loader/babel",
|
|
13
|
-
[
|
|
14
|
-
"@babel/plugin-proposal-decorators",
|
|
15
|
-
{
|
|
16
|
-
"legacy": true
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
],
|
|
20
|
-
"env": {
|
|
21
|
-
"production": {
|
|
22
|
-
"presets": [
|
|
23
|
-
[
|
|
24
|
-
"minify",
|
|
25
|
-
{
|
|
26
|
-
"builtIns": false,
|
|
27
|
-
"evaluate": false,
|
|
28
|
-
"mangle": false
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"test": {
|
|
34
|
-
"presets": [
|
|
35
|
-
"@babel/preset-env",
|
|
36
|
-
"@babel/preset-react"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": [
|
|
3
|
+
[
|
|
4
|
+
"@babel/preset-env",
|
|
5
|
+
{
|
|
6
|
+
"modules": false
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"@babel/preset-react"
|
|
10
|
+
],
|
|
11
|
+
"plugins": [
|
|
12
|
+
"react-hot-loader/babel",
|
|
13
|
+
[
|
|
14
|
+
"@babel/plugin-proposal-decorators",
|
|
15
|
+
{
|
|
16
|
+
"legacy": true
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
],
|
|
20
|
+
"env": {
|
|
21
|
+
"production": {
|
|
22
|
+
"presets": [
|
|
23
|
+
[
|
|
24
|
+
"minify",
|
|
25
|
+
{
|
|
26
|
+
"builtIns": false,
|
|
27
|
+
"evaluate": false,
|
|
28
|
+
"mangle": false
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"test": {
|
|
34
|
+
"presets": [
|
|
35
|
+
"@babel/preset-env",
|
|
36
|
+
"@babel/preset-react"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
}
|
package/README.en.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# react-hsbc
|
|
2
|
-
|
|
3
|
-
#### Description
|
|
4
|
-
react-hsbc
|
|
5
|
-
|
|
6
|
-
#### Software Architecture
|
|
7
|
-
Software architecture description
|
|
8
|
-
|
|
9
|
-
#### Installation
|
|
10
|
-
|
|
11
|
-
1. xxxx
|
|
12
|
-
2. xxxx
|
|
13
|
-
3. xxxx
|
|
14
|
-
|
|
15
|
-
#### Instructions
|
|
16
|
-
|
|
17
|
-
1. xxxx
|
|
18
|
-
2. xxxx
|
|
19
|
-
3. xxxx
|
|
20
|
-
|
|
21
|
-
#### Contribution
|
|
22
|
-
|
|
23
|
-
1. Fork the repository
|
|
24
|
-
2. Create Feat_xxx branch
|
|
25
|
-
3. Commit your code
|
|
26
|
-
4. Create Pull Request
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
#### Gitee Feature
|
|
30
|
-
|
|
31
|
-
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
-
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
-
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
-
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
-
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
-
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
1
|
+
# react-hsbc
|
|
2
|
+
|
|
3
|
+
#### Description
|
|
4
|
+
react-hsbc
|
|
5
|
+
|
|
6
|
+
#### Software Architecture
|
|
7
|
+
Software architecture description
|
|
8
|
+
|
|
9
|
+
#### Installation
|
|
10
|
+
|
|
11
|
+
1. xxxx
|
|
12
|
+
2. xxxx
|
|
13
|
+
3. xxxx
|
|
14
|
+
|
|
15
|
+
#### Instructions
|
|
16
|
+
|
|
17
|
+
1. xxxx
|
|
18
|
+
2. xxxx
|
|
19
|
+
3. xxxx
|
|
20
|
+
|
|
21
|
+
#### Contribution
|
|
22
|
+
|
|
23
|
+
1. Fork the repository
|
|
24
|
+
2. Create Feat_xxx branch
|
|
25
|
+
3. Commit your code
|
|
26
|
+
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://winyh.github.io/react-hsbc/">
|
|
3
|
-
<img width="200" src="https://github.com/react-hsbc">
|
|
4
|
-
</a>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
<h1 align="center">react-hsbc</h1>
|
|
8
|
-
|
|
9
|
-
<p align="center">React</p>
|
|
10
|
-
|
|
11
|
-
### 安装
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
npm install react_hsbc_teller
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### 打包发布
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
npm run lib
|
|
22
|
-
|
|
23
|
-
npm login
|
|
24
|
-
|
|
25
|
-
npm publish
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### 引用示例
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
import React, { Component } from 'react';
|
|
32
|
-
import {HSBC} from "react_hsbc_teller";
|
|
33
|
-
|
|
34
|
-
class App extends Component {
|
|
35
|
-
render(){
|
|
36
|
-
return (
|
|
37
|
-
<div className="main">
|
|
38
|
-
<HSBC></HSBC>
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export default App;
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### demo(文档待完善)
|
|
48
|
-
|
|
49
|
-
### 贡献代码
|
|
50
|
-
|
|
51
|
-
组件都在 packages 目录下,单个组件用单个目录存放,在 packages 目录下的 index.js 文件中集中对外抛出
|
|
52
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://winyh.github.io/react-hsbc/">
|
|
3
|
+
<img width="200" src="https://github.com/react-hsbc">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">react-hsbc</h1>
|
|
8
|
+
|
|
9
|
+
<p align="center">React</p>
|
|
10
|
+
|
|
11
|
+
### 安装
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm install react_hsbc_teller
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 打包发布
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
npm run lib
|
|
22
|
+
|
|
23
|
+
npm login
|
|
24
|
+
|
|
25
|
+
npm publish
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 引用示例
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
import React, { Component } from 'react';
|
|
32
|
+
import {HSBC} from "react_hsbc_teller";
|
|
33
|
+
|
|
34
|
+
class App extends Component {
|
|
35
|
+
render(){
|
|
36
|
+
return (
|
|
37
|
+
<div className="main">
|
|
38
|
+
<HSBC></HSBC>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default App;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### demo(文档待完善)
|
|
48
|
+
|
|
49
|
+
### 贡献代码
|
|
50
|
+
|
|
51
|
+
组件都在 packages 目录下,单个组件用单个目录存放,在 packages 目录下的 index.js 文件中集中对外抛出
|
|
52
|
+
|
package/config/webpack.config.js
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const webpack = require("webpack");
|
|
3
|
-
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
4
|
-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
5
|
-
const WebpackBar = require("webpackbar");
|
|
6
|
-
const autoprefixer = require("autoprefixer");
|
|
7
|
-
const px2rem = require("postcss-px2rem");
|
|
8
|
-
|
|
9
|
-
module.exports = {
|
|
10
|
-
entry: path.join(__dirname, "../packages/index.js"),
|
|
11
|
-
output: {
|
|
12
|
-
path: path.resolve(__dirname, "../lib"),
|
|
13
|
-
filename: "hsbc.js",
|
|
14
|
-
library: "hsbc",
|
|
15
|
-
libraryTarget: "umd",
|
|
16
|
-
},
|
|
17
|
-
resolve: {
|
|
18
|
-
extensions: [".tsx", ".ts", ".js", ".jsx"],
|
|
19
|
-
alias: {
|
|
20
|
-
"@":path.resolve("packages"),
|
|
21
|
-
"@src":path.resolve("src"),
|
|
22
|
-
"@component":path.resolve("packages/component"),
|
|
23
|
-
"@public":path.resolve("public"),
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
module: {
|
|
27
|
-
rules: [
|
|
28
|
-
{
|
|
29
|
-
test: /\.(css|less)$/,
|
|
30
|
-
use: [
|
|
31
|
-
require.resolve('style-loader'),
|
|
32
|
-
{
|
|
33
|
-
loader: require.resolve('css-loader'),
|
|
34
|
-
options: {
|
|
35
|
-
importLoaders: 1,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
loader: require.resolve('postcss-loader'),
|
|
40
|
-
options: {
|
|
41
|
-
ident: 'postcss',
|
|
42
|
-
plugins: () => [
|
|
43
|
-
require('postcss-flexbugs-fixes'),
|
|
44
|
-
autoprefixer({
|
|
45
|
-
browsers: [
|
|
46
|
-
'>1%',
|
|
47
|
-
'last 4 versions',
|
|
48
|
-
'Firefox ESR',
|
|
49
|
-
'not ie < 9', // React doesn't support IE8 anyway
|
|
50
|
-
],
|
|
51
|
-
flexbox: 'no-2009',
|
|
52
|
-
}),
|
|
53
|
-
px2rem({
|
|
54
|
-
remUnit: 19.20,
|
|
55
|
-
exclude: /node-modules/i,
|
|
56
|
-
}),
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
loader: require.resolve('less-loader')
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
test: /\.(png|svg|jpg|gif|mp3)$/,
|
|
67
|
-
use: [
|
|
68
|
-
{
|
|
69
|
-
loader: 'url-loader',
|
|
70
|
-
options: {
|
|
71
|
-
limit: 200000,
|
|
72
|
-
},
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
78
|
-
use: ["file-loader"],
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
test: /\.tsx?$/,
|
|
82
|
-
exclude: /node_modules/,
|
|
83
|
-
use: "ts-loader",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
test: /\.(js|jsx)$/,
|
|
87
|
-
exclude: /node_modules/,
|
|
88
|
-
use: [
|
|
89
|
-
{
|
|
90
|
-
loader: 'babel-loader',
|
|
91
|
-
options: {plugins:["@babel/plugin-transform-runtime"]},
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
plugins: [
|
|
98
|
-
new WebpackBar(),
|
|
99
|
-
new CleanWebpackPlugin(),
|
|
100
|
-
new HtmlWebpackPlugin({
|
|
101
|
-
title: "lib 创建 library",
|
|
102
|
-
template: path.resolve(__dirname, "../public/index.html"),
|
|
103
|
-
}),
|
|
104
|
-
],
|
|
105
|
-
externals: {
|
|
106
|
-
react: {
|
|
107
|
-
commonjs: 'react',
|
|
108
|
-
commonjs2: 'react',
|
|
109
|
-
amd: 'react',
|
|
110
|
-
root: 'React',
|
|
111
|
-
},
|
|
112
|
-
'react-dom': {
|
|
113
|
-
commonjs: 'react-dom',
|
|
114
|
-
commonjs2: 'react-dom',
|
|
115
|
-
amd: 'react-dom',
|
|
116
|
-
root: 'ReactDOM',
|
|
117
|
-
},
|
|
118
|
-
}
|
|
119
|
-
};
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const webpack = require("webpack");
|
|
3
|
+
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
4
|
+
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
5
|
+
const WebpackBar = require("webpackbar");
|
|
6
|
+
const autoprefixer = require("autoprefixer");
|
|
7
|
+
const px2rem = require("postcss-px2rem");
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
entry: path.join(__dirname, "../packages/index.js"),
|
|
11
|
+
output: {
|
|
12
|
+
path: path.resolve(__dirname, "../lib"),
|
|
13
|
+
filename: "hsbc.js",
|
|
14
|
+
library: "hsbc",
|
|
15
|
+
libraryTarget: "umd",
|
|
16
|
+
},
|
|
17
|
+
resolve: {
|
|
18
|
+
extensions: [".tsx", ".ts", ".js", ".jsx"],
|
|
19
|
+
alias: {
|
|
20
|
+
"@":path.resolve("packages"),
|
|
21
|
+
"@src":path.resolve("src"),
|
|
22
|
+
"@component":path.resolve("packages/component"),
|
|
23
|
+
"@public":path.resolve("public"),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
module: {
|
|
27
|
+
rules: [
|
|
28
|
+
{
|
|
29
|
+
test: /\.(css|less)$/,
|
|
30
|
+
use: [
|
|
31
|
+
require.resolve('style-loader'),
|
|
32
|
+
{
|
|
33
|
+
loader: require.resolve('css-loader'),
|
|
34
|
+
options: {
|
|
35
|
+
importLoaders: 1,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
loader: require.resolve('postcss-loader'),
|
|
40
|
+
options: {
|
|
41
|
+
ident: 'postcss',
|
|
42
|
+
plugins: () => [
|
|
43
|
+
require('postcss-flexbugs-fixes'),
|
|
44
|
+
autoprefixer({
|
|
45
|
+
browsers: [
|
|
46
|
+
'>1%',
|
|
47
|
+
'last 4 versions',
|
|
48
|
+
'Firefox ESR',
|
|
49
|
+
'not ie < 9', // React doesn't support IE8 anyway
|
|
50
|
+
],
|
|
51
|
+
flexbox: 'no-2009',
|
|
52
|
+
}),
|
|
53
|
+
px2rem({
|
|
54
|
+
remUnit: 19.20,
|
|
55
|
+
exclude: /node-modules/i,
|
|
56
|
+
}),
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
loader: require.resolve('less-loader')
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
test: /\.(png|svg|jpg|gif|mp3)$/,
|
|
67
|
+
use: [
|
|
68
|
+
{
|
|
69
|
+
loader: 'url-loader',
|
|
70
|
+
options: {
|
|
71
|
+
limit: 200000,
|
|
72
|
+
},
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
test: /\.(woff|woff2|eot|ttf|otf)$/,
|
|
78
|
+
use: ["file-loader"],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
test: /\.tsx?$/,
|
|
82
|
+
exclude: /node_modules/,
|
|
83
|
+
use: "ts-loader",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
test: /\.(js|jsx)$/,
|
|
87
|
+
exclude: /node_modules/,
|
|
88
|
+
use: [
|
|
89
|
+
{
|
|
90
|
+
loader: 'babel-loader',
|
|
91
|
+
options: {plugins:["@babel/plugin-transform-runtime"]},
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
plugins: [
|
|
98
|
+
new WebpackBar(),
|
|
99
|
+
new CleanWebpackPlugin(),
|
|
100
|
+
new HtmlWebpackPlugin({
|
|
101
|
+
title: "lib 创建 library",
|
|
102
|
+
template: path.resolve(__dirname, "../public/index.html"),
|
|
103
|
+
}),
|
|
104
|
+
],
|
|
105
|
+
externals: {
|
|
106
|
+
react: {
|
|
107
|
+
commonjs: 'react',
|
|
108
|
+
commonjs2: 'react',
|
|
109
|
+
amd: 'react',
|
|
110
|
+
root: 'React',
|
|
111
|
+
},
|
|
112
|
+
'react-dom': {
|
|
113
|
+
commonjs: 'react-dom',
|
|
114
|
+
commonjs2: 'react-dom',
|
|
115
|
+
amd: 'react-dom',
|
|
116
|
+
root: 'ReactDOM',
|
|
117
|
+
},
|
|
118
|
+
}
|
|
119
|
+
};
|