@lingxiteam/assets 1.0.10-alpha.2 → 1.0.10-alpha.4
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/README.md +2 -2
- package/es/error/errorCatch/index.js +1 -0
- package/es/error/errorDisplay/Mobile/Drawer/Drawer.less +201 -201
- package/es/error/errorDisplay/Mobile/Modal/Modal.less +146 -146
- package/es/error/errorDisplay/Web/Drawer/Drawer.less +381 -381
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +1 -0
- package/es/error/errorDisplay/Web/Notification/Notice.js +1 -0
- package/es/error/errorDisplay/Web/Notification/Notification.less +137 -137
- package/es/error/errorDisplay/animation.less +112 -112
- package/es/error/errorDisplay/http.js +1 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/security/httpEncryption.js +4 -4
- package/es/svg/check.svg +9 -9
- package/es/svg/normal-check.svg +9 -9
- package/es/utils/global.d.ts +4 -0
- package/es/utils/global.js +21 -0
- package/es/utils/url.js +1 -0
- package/lib/IconSvg/index.d.ts +6 -0
- package/lib/IconSvg/index.js +30 -0
- package/lib/error/errorCatch/index.js +49 -0
- package/lib/error/errorDisplay/Mobile/Drawer/Drawer.js +115 -0
- package/lib/error/errorDisplay/Mobile/Drawer/Drawer.less +201 -0
- package/lib/error/errorDisplay/Mobile/Drawer/index.js +140 -0
- package/lib/error/errorDisplay/Mobile/ErrorMsg/index.js +207 -0
- package/lib/error/errorDisplay/Mobile/Modal/Modal.js +53 -0
- package/lib/error/errorDisplay/Mobile/Modal/Modal.less +146 -0
- package/lib/error/errorDisplay/Mobile/Modal/index.js +127 -0
- package/lib/error/errorDisplay/Mobile/defaultGlobalConfig.js +21 -0
- package/lib/error/errorDisplay/SVGstring.js +18 -0
- package/lib/error/errorDisplay/Web/Drawer/Drawer.js +274 -0
- package/lib/error/errorDisplay/Web/Drawer/Drawer.less +381 -0
- package/lib/error/errorDisplay/Web/Drawer/DrawerConnect.js +213 -0
- package/lib/error/errorDisplay/Web/Drawer/index.js +134 -0
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +279 -0
- package/lib/error/errorDisplay/Web/Notification/Notice.js +162 -0
- package/lib/error/errorDisplay/Web/Notification/Notification.js +149 -0
- package/lib/error/errorDisplay/Web/Notification/Notification.less +137 -0
- package/lib/error/errorDisplay/Web/Notification/index.js +93 -0
- package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +29 -0
- package/lib/error/errorDisplay/animation.less +112 -0
- package/lib/error/errorDisplay/compUtils.js +52 -0
- package/lib/error/errorDisplay/const.js +83 -0
- package/lib/error/errorDisplay/http.js +104 -0
- package/lib/error/errorDisplay/variables.less +1 -0
- package/lib/error/index.js +34 -0
- package/lib/images/ico-back.png +0 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +7 -0
- package/lib/security/const.d.ts +22 -0
- package/lib/security/const.js +38 -0
- package/lib/security/encipher/aes.d.ts +2 -0
- package/lib/security/encipher/aes.js +35 -0
- package/lib/security/encipher/des.d.ts +2 -0
- package/lib/security/encipher/des.js +34 -0
- package/lib/security/encipher/rsa.d.ts +2 -0
- package/lib/security/encipher/rsa.js +26 -0
- package/lib/security/encipher/sign.d.ts +6 -0
- package/lib/security/encipher/sign.js +130 -0
- package/lib/security/fetch.d.ts +9 -0
- package/lib/security/fetch.js +212 -0
- package/lib/security/httpEncryption.js +83 -0
- package/lib/security/index.d.ts +39 -0
- package/lib/security/index.js +29 -0
- package/lib/svg/check.svg +10 -0
- package/lib/svg/normal-check.svg +10 -0
- package/lib/utils/global.d.ts +4 -0
- package/lib/utils/global.js +27 -0
- package/lib/utils/img.d.ts +1 -0
- package/lib/utils/img.js +10 -0
- package/lib/utils/url.d.ts +2 -0
- package/lib/utils/url.js +39 -0
- package/package.json +42 -41
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
## 主题
|
|
2
|
-
|
|
1
|
+
## 主题
|
|
2
|
+
|
|
3
3
|
通过 `document.documentElement.setAttribute('data-prefers-color', 'dark');` 开启暗黑风格
|
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
@import url('../../animation.less');
|
|
2
|
-
@import url('../../variables.less');
|
|
3
|
-
|
|
4
|
-
.lxm-drawer {
|
|
5
|
-
&-wraper {
|
|
6
|
-
position: absolute;
|
|
7
|
-
left: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
bottom: 0;
|
|
10
|
-
top: 0;
|
|
11
|
-
z-index: 9999;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-close-move &-container {
|
|
16
|
-
animation: lxmDrawerClose 0.3s;
|
|
17
|
-
animation-fill-mode: forwards;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-container {
|
|
21
|
-
position: relative;
|
|
22
|
-
height: 100%;
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
background-color: #fff;
|
|
27
|
-
animation: lxmDrawerOpen 0.3s;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-header {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
height: 44 * @hd;
|
|
34
|
-
background-color: #f6f8fa;
|
|
35
|
-
|
|
36
|
-
&-close {
|
|
37
|
-
width: 24 * @hd;
|
|
38
|
-
height: 24 * @hd;
|
|
39
|
-
display: inline-block;
|
|
40
|
-
vertical-align: middle;
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-extend {
|
|
45
|
-
width: 80 * @hd;
|
|
46
|
-
padding: 0 20* @hd;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-title {
|
|
50
|
-
flex: 1;
|
|
51
|
-
text-align: center;
|
|
52
|
-
font-size: 18* @hd;
|
|
53
|
-
font-weight: 500;
|
|
54
|
-
color: #1c242e;
|
|
55
|
-
white-space: nowrap;
|
|
56
|
-
text-overflow: ellipsis;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-tabs {
|
|
62
|
-
padding: 8* @hd 20* @hd;
|
|
63
|
-
background-color: #f6f8fa;
|
|
64
|
-
|
|
65
|
-
&-row {
|
|
66
|
-
background: #f0f0f0;
|
|
67
|
-
border-radius: 8* @hd;
|
|
68
|
-
padding: 4* @hd;
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&-row &-btn {
|
|
74
|
-
color: #1c242e;
|
|
75
|
-
text-align: center;
|
|
76
|
-
padding: 4* @hd;
|
|
77
|
-
font-size: 14* @hd;
|
|
78
|
-
flex: 1;
|
|
79
|
-
border-radius: 8* @hd;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&-row &-btn.active {
|
|
84
|
-
background-color: #fff;
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
box-shadow: 0 1* @hd 6* @hd -4* @hd rgba(28, 36, 46, 0.15);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&-main {
|
|
91
|
-
border-top: 1px solid #f0f0f0;
|
|
92
|
-
flex: 1;
|
|
93
|
-
background-color: #fff;
|
|
94
|
-
overflow-y: auto;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&-content {
|
|
98
|
-
padding: 20* @hd;
|
|
99
|
-
|
|
100
|
-
&-head {
|
|
101
|
-
margin-bottom: 20* @hd;
|
|
102
|
-
|
|
103
|
-
&-title {
|
|
104
|
-
font-size: 21* @hd;
|
|
105
|
-
font-weight: 500;
|
|
106
|
-
color: #1c242e;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-author {
|
|
110
|
-
font-size: 13* @hd;
|
|
111
|
-
color: rgba(28, 36, 46, 0.45);;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&-body {
|
|
116
|
-
font-size: 15* @hd;
|
|
117
|
-
color: rgba(28, 36, 46, 0.75);
|
|
118
|
-
|
|
119
|
-
// 内置文章样式
|
|
120
|
-
dt {
|
|
121
|
-
font-size: 17* @hd;
|
|
122
|
-
font-weight: 500;
|
|
123
|
-
margin-top: 30* @hd;
|
|
124
|
-
}
|
|
125
|
-
dd {
|
|
126
|
-
padding: 8* @hd 0;
|
|
127
|
-
margin: 0;
|
|
128
|
-
font-size: 15* @hd;
|
|
129
|
-
}
|
|
130
|
-
ol, ul {
|
|
131
|
-
padding: 0;
|
|
132
|
-
margin: 0;
|
|
133
|
-
}
|
|
134
|
-
ol, ul {
|
|
135
|
-
list-style: inside inside;
|
|
136
|
-
}
|
|
137
|
-
li, p {
|
|
138
|
-
line-height: 24* @hd;
|
|
139
|
-
letter-spacing: 1px;
|
|
140
|
-
margin: 4* @hd 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&-list {
|
|
146
|
-
padding: 0 20* @hd;
|
|
147
|
-
|
|
148
|
-
&-item {
|
|
149
|
-
padding: 8* @hd 0;
|
|
150
|
-
border-bottom: 1px solid #f0f0f0;
|
|
151
|
-
|
|
152
|
-
&.purple &-dt {
|
|
153
|
-
&-title {
|
|
154
|
-
color: #9747ff;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&.blue &-dt {
|
|
159
|
-
&-title {
|
|
160
|
-
color: #47e;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.red &-dt {
|
|
165
|
-
&-title {
|
|
166
|
-
color: #fa7570;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&-dt {
|
|
171
|
-
display: flex;
|
|
172
|
-
|
|
173
|
-
&-title {
|
|
174
|
-
flex: 1;
|
|
175
|
-
font-size: 14* @hd;
|
|
176
|
-
font-weight: 500;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&-extra {
|
|
180
|
-
font-size: 12* @hd;
|
|
181
|
-
color: rgba(28, 36, 46, 0.45);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&-title + &-extra {
|
|
185
|
-
margin-left: 8* @hd;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&-dd {
|
|
190
|
-
font-size: 12* @hd;
|
|
191
|
-
color: rgba(28, 36, 46, 0.75);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&-empty {
|
|
197
|
-
padding: 20* @hd;
|
|
198
|
-
text-align: center;
|
|
199
|
-
color: rgba(28, 36, 46, 0.45);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
1
|
+
@import url('../../animation.less');
|
|
2
|
+
@import url('../../variables.less');
|
|
3
|
+
|
|
4
|
+
.lxm-drawer {
|
|
5
|
+
&-wraper {
|
|
6
|
+
position: absolute;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
z-index: 9999;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-close-move &-container {
|
|
16
|
+
animation: lxmDrawerClose 0.3s;
|
|
17
|
+
animation-fill-mode: forwards;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-container {
|
|
21
|
+
position: relative;
|
|
22
|
+
height: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
animation: lxmDrawerOpen 0.3s;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-header {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
height: 44 * @hd;
|
|
34
|
+
background-color: #f6f8fa;
|
|
35
|
+
|
|
36
|
+
&-close {
|
|
37
|
+
width: 24 * @hd;
|
|
38
|
+
height: 24 * @hd;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
vertical-align: middle;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-extend {
|
|
45
|
+
width: 80 * @hd;
|
|
46
|
+
padding: 0 20* @hd;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-title {
|
|
50
|
+
flex: 1;
|
|
51
|
+
text-align: center;
|
|
52
|
+
font-size: 18* @hd;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
color: #1c242e;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-tabs {
|
|
62
|
+
padding: 8* @hd 20* @hd;
|
|
63
|
+
background-color: #f6f8fa;
|
|
64
|
+
|
|
65
|
+
&-row {
|
|
66
|
+
background: #f0f0f0;
|
|
67
|
+
border-radius: 8* @hd;
|
|
68
|
+
padding: 4* @hd;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-row &-btn {
|
|
74
|
+
color: #1c242e;
|
|
75
|
+
text-align: center;
|
|
76
|
+
padding: 4* @hd;
|
|
77
|
+
font-size: 14* @hd;
|
|
78
|
+
flex: 1;
|
|
79
|
+
border-radius: 8* @hd;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&-row &-btn.active {
|
|
84
|
+
background-color: #fff;
|
|
85
|
+
font-weight: 500;
|
|
86
|
+
box-shadow: 0 1* @hd 6* @hd -4* @hd rgba(28, 36, 46, 0.15);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-main {
|
|
91
|
+
border-top: 1px solid #f0f0f0;
|
|
92
|
+
flex: 1;
|
|
93
|
+
background-color: #fff;
|
|
94
|
+
overflow-y: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-content {
|
|
98
|
+
padding: 20* @hd;
|
|
99
|
+
|
|
100
|
+
&-head {
|
|
101
|
+
margin-bottom: 20* @hd;
|
|
102
|
+
|
|
103
|
+
&-title {
|
|
104
|
+
font-size: 21* @hd;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
color: #1c242e;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-author {
|
|
110
|
+
font-size: 13* @hd;
|
|
111
|
+
color: rgba(28, 36, 46, 0.45);;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-body {
|
|
116
|
+
font-size: 15* @hd;
|
|
117
|
+
color: rgba(28, 36, 46, 0.75);
|
|
118
|
+
|
|
119
|
+
// 内置文章样式
|
|
120
|
+
dt {
|
|
121
|
+
font-size: 17* @hd;
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
margin-top: 30* @hd;
|
|
124
|
+
}
|
|
125
|
+
dd {
|
|
126
|
+
padding: 8* @hd 0;
|
|
127
|
+
margin: 0;
|
|
128
|
+
font-size: 15* @hd;
|
|
129
|
+
}
|
|
130
|
+
ol, ul {
|
|
131
|
+
padding: 0;
|
|
132
|
+
margin: 0;
|
|
133
|
+
}
|
|
134
|
+
ol, ul {
|
|
135
|
+
list-style: inside inside;
|
|
136
|
+
}
|
|
137
|
+
li, p {
|
|
138
|
+
line-height: 24* @hd;
|
|
139
|
+
letter-spacing: 1px;
|
|
140
|
+
margin: 4* @hd 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&-list {
|
|
146
|
+
padding: 0 20* @hd;
|
|
147
|
+
|
|
148
|
+
&-item {
|
|
149
|
+
padding: 8* @hd 0;
|
|
150
|
+
border-bottom: 1px solid #f0f0f0;
|
|
151
|
+
|
|
152
|
+
&.purple &-dt {
|
|
153
|
+
&-title {
|
|
154
|
+
color: #9747ff;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.blue &-dt {
|
|
159
|
+
&-title {
|
|
160
|
+
color: #47e;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&.red &-dt {
|
|
165
|
+
&-title {
|
|
166
|
+
color: #fa7570;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&-dt {
|
|
171
|
+
display: flex;
|
|
172
|
+
|
|
173
|
+
&-title {
|
|
174
|
+
flex: 1;
|
|
175
|
+
font-size: 14* @hd;
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&-extra {
|
|
180
|
+
font-size: 12* @hd;
|
|
181
|
+
color: rgba(28, 36, 46, 0.45);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&-title + &-extra {
|
|
185
|
+
margin-left: 8* @hd;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&-dd {
|
|
190
|
+
font-size: 12* @hd;
|
|
191
|
+
color: rgba(28, 36, 46, 0.75);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&-empty {
|
|
197
|
+
padding: 20* @hd;
|
|
198
|
+
text-align: center;
|
|
199
|
+
color: rgba(28, 36, 46, 0.45);
|
|
200
|
+
}
|
|
201
|
+
}
|