@conecli/cone-render 0.8.17-beta.0 → 0.8.17-fixWg.0

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/dist/api/index.ts CHANGED
@@ -1 +1 @@
1
- import { protocol, isBetaServer, isH5 } from '../config/env'
2
1
  mobileLogin: `${protocol}//conecli.com`,
2
+ import { protocol, isBetaServer, isH5 } from '../config/env'
3
3
  mobileLogin: `${protocol}//conecli.com`,
4
4
  mJshop: `${protocol}//conecli.com`,
5
5
  mPreview: `${domain.mJshop}/mshop/edit/preview.json`,
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  public config: object | null
3
2
  this.config = {}
3
+ import Taro from '@tarojs/taro'
4
4
  public config: object | null
5
5
  this.config = {}
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  public config: object | null
3
2
  this.config = {}
4
3
  console.log('=================>', 'updateBusinessDomainAndApi')
4
+ import Taro from '@tarojs/taro'
5
5
  public config: object | null
6
6
  this.config = {}
7
7
  console.log('=================>', 'updateBusinessDomainAndApi')
@@ -1 +1 @@
1
- import * as WXAPP_LOGIN from '../wxapp/common/login/login.js'
1
+ import * as WXAPP_LOGIN from '../wxapp/common/login/login.js'
@@ -52,6 +52,8 @@
52
52
  position: relative;
53
53
  top: 2px;
54
54
  padding-bottom: 2px;
55
+ // 文字titile行高不够被遮盖问题 比如“g”字母
56
+ line-height: 1.25;
55
57
  }
56
58
 
57
59
  .d-vertical-line {
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- import { ComponentInterFace } from './component'
2
1
  mobileLogin: string
2
+ import { ComponentInterFace } from './component'
3
3
  mobileLogin: string
4
4
  mJshop: string
5
5
  mPreview: string,
@@ -0,0 +1 @@
1
+ import Taro from "@tarojs/taro";
@@ -0,0 +1 @@
1
+ import ParamsSign from "@legos/js-security-jdxcx";
@@ -0,0 +1 @@
1
+ class FingerReport {
@@ -0,0 +1 @@
1
+ export const paramsSign = ({data}) => {
@@ -0,0 +1,191 @@
1
+ /**
2
+ *
3
+ * Secure Hash Algorithm (SHA256)
4
+ * http://www.webtoolkit.info/
5
+ *
6
+ * Original code by Angel Marin, Paul Johnston.
7
+ *
8
+ **/
9
+ /* eslint-disable */
10
+ function SHA256(s) {
11
+ var chrsz = 8
12
+ var hexcase = 0
13
+ function safe_add(x, y) {
14
+ var lsw = (x & 0xffff) + (y & 0xffff)
15
+ var msw = (x >> 16) + (y >> 16) + (lsw >> 16)
16
+ return (msw << 16) | (lsw & 0xffff)
17
+ }
18
+ function S(X, n) {
19
+ return (X >>> n) | (X << (32 - n))
20
+ }
21
+ function R(X, n) {
22
+ return X >>> n
23
+ }
24
+ function Ch(x, y, z) {
25
+ return (x & y) ^ (~x & z)
26
+ }
27
+ function Maj(x, y, z) {
28
+ return (x & y) ^ (x & z) ^ (y & z)
29
+ }
30
+ function Sigma0256(x) {
31
+ return S(x, 2) ^ S(x, 13) ^ S(x, 22)
32
+ }
33
+ function Sigma1256(x) {
34
+ return S(x, 6) ^ S(x, 11) ^ S(x, 25)
35
+ }
36
+ function Gamma0256(x) {
37
+ return S(x, 7) ^ S(x, 18) ^ R(x, 3)
38
+ }
39
+ function Gamma1256(x) {
40
+ return S(x, 17) ^ S(x, 19) ^ R(x, 10)
41
+ }
42
+ function core_sha256(m, l) {
43
+ var K = new Array(
44
+ 0x428a2f98,
45
+ 0x71374491,
46
+ 0xb5c0fbcf,
47
+ 0xe9b5dba5,
48
+ 0x3956c25b,
49
+ 0x59f111f1,
50
+ 0x923f82a4,
51
+ 0xab1c5ed5,
52
+ 0xd807aa98,
53
+ 0x12835b01,
54
+ 0x243185be,
55
+ 0x550c7dc3,
56
+ 0x72be5d74,
57
+ 0x80deb1fe,
58
+ 0x9bdc06a7,
59
+ 0xc19bf174,
60
+ 0xe49b69c1,
61
+ 0xefbe4786,
62
+ 0xfc19dc6,
63
+ 0x240ca1cc,
64
+ 0x2de92c6f,
65
+ 0x4a7484aa,
66
+ 0x5cb0a9dc,
67
+ 0x76f988da,
68
+ 0x983e5152,
69
+ 0xa831c66d,
70
+ 0xb00327c8,
71
+ 0xbf597fc7,
72
+ 0xc6e00bf3,
73
+ 0xd5a79147,
74
+ 0x6ca6351,
75
+ 0x14292967,
76
+ 0x27b70a85,
77
+ 0x2e1b2138,
78
+ 0x4d2c6dfc,
79
+ 0x53380d13,
80
+ 0x650a7354,
81
+ 0x766a0abb,
82
+ 0x81c2c92e,
83
+ 0x92722c85,
84
+ 0xa2bfe8a1,
85
+ 0xa81a664b,
86
+ 0xc24b8b70,
87
+ 0xc76c51a3,
88
+ 0xd192e819,
89
+ 0xd6990624,
90
+ 0xf40e3585,
91
+ 0x106aa070,
92
+ 0x19a4c116,
93
+ 0x1e376c08,
94
+ 0x2748774c,
95
+ 0x34b0bcb5,
96
+ 0x391c0cb3,
97
+ 0x4ed8aa4a,
98
+ 0x5b9cca4f,
99
+ 0x682e6ff3,
100
+ 0x748f82ee,
101
+ 0x78a5636f,
102
+ 0x84c87814,
103
+ 0x8cc70208,
104
+ 0x90befffa,
105
+ 0xa4506ceb,
106
+ 0xbef9a3f7,
107
+ 0xc67178f2
108
+ )
109
+ var HASH = new Array(0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19)
110
+ var W = new Array(64)
111
+ var a, b, c, d, e, f, g, h, i, j
112
+ var T1, T2
113
+ m[l >> 5] |= 0x80 << (24 - (l % 32))
114
+ m[(((l + 64) >> 9) << 4) + 15] = l
115
+ for (var i = 0; i < m.length; i += 16) {
116
+ a = HASH[0]
117
+ b = HASH[1]
118
+ c = HASH[2]
119
+ d = HASH[3]
120
+ e = HASH[4]
121
+ f = HASH[5]
122
+ g = HASH[6]
123
+ h = HASH[7]
124
+ for (var j = 0; j < 64; j++) {
125
+ if (j < 16) W[j] = m[j + i]
126
+ else W[j] = safe_add(safe_add(safe_add(Gamma1256(W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16])
127
+ T1 = safe_add(safe_add(safe_add(safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j])
128
+ T2 = safe_add(Sigma0256(a), Maj(a, b, c))
129
+ h = g
130
+ g = f
131
+ f = e
132
+ e = safe_add(d, T1)
133
+ d = c
134
+ c = b
135
+ b = a
136
+ a = safe_add(T1, T2)
137
+ }
138
+ HASH[0] = safe_add(a, HASH[0])
139
+ HASH[1] = safe_add(b, HASH[1])
140
+ HASH[2] = safe_add(c, HASH[2])
141
+ HASH[3] = safe_add(d, HASH[3])
142
+ HASH[4] = safe_add(e, HASH[4])
143
+ HASH[5] = safe_add(f, HASH[5])
144
+ HASH[6] = safe_add(g, HASH[6])
145
+ HASH[7] = safe_add(h, HASH[7])
146
+ }
147
+ return HASH
148
+ }
149
+ function str2binb(str) {
150
+ var bin = Array()
151
+ var mask = (1 << chrsz) - 1
152
+ for (var i = 0; i < str.length * chrsz; i += chrsz) {
153
+ bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - (i % 32))
154
+ }
155
+ return bin
156
+ }
157
+ function Utf8Encode(string) {
158
+ string = string.replace(/\r\n/g, '\n')
159
+ var utftext = ''
160
+ for (var n = 0; n < string.length; n++) {
161
+ var c = string.charCodeAt(n)
162
+ if (c < 128) {
163
+ utftext += String.fromCharCode(c)
164
+ } else if (c > 127 && c < 2048) {
165
+ utftext += String.fromCharCode((c >> 6) | 192)
166
+ utftext += String.fromCharCode((c & 63) | 128)
167
+ } else {
168
+ utftext += String.fromCharCode((c >> 12) | 224)
169
+ utftext += String.fromCharCode(((c >> 6) & 63) | 128)
170
+ utftext += String.fromCharCode((c & 63) | 128)
171
+ }
172
+ }
173
+ return utftext
174
+ }
175
+ function binb2hex(binarray) {
176
+ var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef'
177
+ var str = ''
178
+ for (var i = 0; i < binarray.length * 4; i++) {
179
+ str +=
180
+ hex_tab.charAt((binarray[i >> 2] >> ((3 - (i % 4)) * 8 + 4)) & 0xf) +
181
+ hex_tab.charAt((binarray[i >> 2] >> ((3 - (i % 4)) * 8)) & 0xf)
182
+ }
183
+ return str
184
+ }
185
+ s = Utf8Encode(s)
186
+ return binb2hex(core_sha256(str2binb(s), s.length * chrsz))
187
+ }
188
+
189
+ module.exports = {
190
+ sha256_digest: SHA256,
191
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.17-beta.0",
3
+ "version": "0.8.17-fixWg.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"
@@ -47,6 +47,7 @@
47
47
  "dev:quickapp": "npm run build:quickapp -- --watch",
48
48
  "compressWatch": "gulp compressWatch --gulpfile ./publish/gulpfile.js",
49
49
  "compress": "gulp compress --gulpfile ./publish/gulpfile.js",
50
+ "build": "npm run compress",
50
51
  "check": "gulp check --gulpfile ./publish/gulpfile.js"
51
52
  },
52
53
  "browserslist": [