@tntd/reference 1.0.1 → 1.0.3
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/.octopus/en-US/common.d.ts +3 -3
- package/.octopus/en-US/index.d.ts +14 -14
- package/.octopus/en-US/referencebatchcheck.d.ts +13 -13
- package/.octopus/en-US/referencebatchdrawer.d.ts +7 -7
- package/.octopus/en-US/referencecheck.d.ts +11 -11
- package/.octopus/en-US/referencedrawer.d.ts +6 -6
- package/.octopus/en-US/referenceinfo.d.ts +7 -7
- package/.octopus/zh-CN/common.d.ts +3 -3
- package/.octopus/zh-CN/index.d.ts +14 -14
- package/.octopus/zh-CN/referencebatchcheck.d.ts +13 -13
- package/.octopus/zh-CN/referencebatchdrawer.d.ts +7 -7
- package/.octopus/zh-CN/referencecheck.d.ts +11 -11
- package/.octopus/zh-CN/referencedrawer.d.ts +6 -6
- package/.octopus/zh-CN/referenceinfo.d.ts +7 -7
- package/es/AHref/index.js +46 -58
- package/es/I18N.js +12 -19
- package/es/ReferenceBatchCheck/index.js +87 -161
- package/es/ReferenceBatchDrawer/index.js +51 -113
- package/es/ReferenceCheck/index.js +63 -125
- package/es/ReferenceDrawer/index.js +39 -80
- package/es/ReferenceInfo/index.js +83 -157
- package/es/index.js +7 -20
- package/es/index.js.map +1 -1
- package/lib/AHref/index.js +47 -55
- package/lib/I18N.js +17 -21
- package/lib/ReferenceBatchCheck/index.js +90 -167
- package/lib/ReferenceBatchDrawer/index.js +76 -152
- package/lib/ReferenceCheck/index.js +66 -129
- package/lib/ReferenceDrawer/index.js +64 -119
- package/lib/ReferenceInfo/index.js +86 -166
- package/lib/index.d.ts +1 -9
- package/lib/index.js +17 -23
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export { common }
|
|
3
|
+
export { referencebatchcheck }
|
|
4
|
+
export { referencebatchdrawer }
|
|
5
|
+
export { referencecheck }
|
|
6
|
+
export { referencedrawer }
|
|
7
|
+
export { referenceinfo }
|
|
8
8
|
}
|
|
9
|
-
export default _default
|
|
10
|
-
import common from
|
|
11
|
-
import referencebatchcheck from
|
|
12
|
-
import referencebatchdrawer from
|
|
13
|
-
import referencecheck from
|
|
14
|
-
import referencedrawer from
|
|
15
|
-
import referenceinfo from
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
export default _default
|
|
10
|
+
import common from './common'
|
|
11
|
+
import referencebatchcheck from './referencebatchcheck'
|
|
12
|
+
import referencebatchdrawer from './referencebatchdrawer'
|
|
13
|
+
import referencecheck from './referencecheck'
|
|
14
|
+
import referencedrawer from './referencedrawer'
|
|
15
|
+
import referenceinfo from './referenceinfo'
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const qingTiGongYiGe: string
|
|
4
|
+
const chaXunGuanLianGuan: string
|
|
5
|
+
const qiangYinYong: string
|
|
6
|
+
const cunZai: string
|
|
7
|
+
const cunZaiQiangYinYong: string
|
|
8
|
+
const cunZaiRuoYinYong: string
|
|
9
|
+
const xiaYiBu: string
|
|
10
|
+
const quXiao: string
|
|
11
|
+
const shangXianJiaoYanShi: string
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
|
-
export default _default
|
|
15
|
-
//# sourceMappingURL=referencebatchcheck.d.ts.map
|
|
14
|
+
export default _default
|
|
15
|
+
//# sourceMappingURL=referencebatchcheck.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const zanWuShuJu: string
|
|
4
|
+
const chaXunZhong: string
|
|
5
|
+
const chaXunYinYongGuan: string
|
|
6
|
+
}
|
|
7
7
|
}
|
|
8
|
-
export default _default
|
|
9
|
-
//# sourceMappingURL=referencebatchdrawer.d.ts.map
|
|
8
|
+
export default _default
|
|
9
|
+
//# sourceMappingURL=referencebatchdrawer.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const qingTiGongYiGe: string
|
|
4
|
+
const chaXunGuanLianGuan: string
|
|
5
|
+
const cunZaiQiangYinYong: string
|
|
6
|
+
const cunZaiRuoYinYong: string
|
|
7
|
+
const xiaYiBu: string
|
|
8
|
+
const quXiao: string
|
|
9
|
+
const yinYongGuanXiCha: string
|
|
10
|
+
}
|
|
11
11
|
}
|
|
12
|
-
export default _default
|
|
13
|
-
//# sourceMappingURL=referencecheck.d.ts.map
|
|
12
|
+
export default _default
|
|
13
|
+
//# sourceMappingURL=referencecheck.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const chaXunZhong: string
|
|
4
|
+
const chaXunYinYongGuan: string
|
|
5
|
+
}
|
|
6
6
|
}
|
|
7
|
-
export default _default
|
|
8
|
-
//# sourceMappingURL=referencedrawer.d.ts.map
|
|
7
|
+
export default _default
|
|
8
|
+
//# sourceMappingURL=referencedrawer.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const ruoYinYong: string
|
|
4
|
+
const qiangYinYong: string
|
|
5
|
+
const zanWuShuJu: string
|
|
6
|
+
}
|
|
7
7
|
}
|
|
8
|
-
export default _default
|
|
9
|
-
//# sourceMappingURL=referenceinfo.d.ts.map
|
|
8
|
+
export default _default
|
|
9
|
+
//# sourceMappingURL=referenceinfo.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export { common }
|
|
3
|
+
export { referencebatchcheck }
|
|
4
|
+
export { referencebatchdrawer }
|
|
5
|
+
export { referencecheck }
|
|
6
|
+
export { referencedrawer }
|
|
7
|
+
export { referenceinfo }
|
|
8
8
|
}
|
|
9
|
-
export default _default
|
|
10
|
-
import common from
|
|
11
|
-
import referencebatchcheck from
|
|
12
|
-
import referencebatchdrawer from
|
|
13
|
-
import referencecheck from
|
|
14
|
-
import referencedrawer from
|
|
15
|
-
import referenceinfo from
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
export default _default
|
|
10
|
+
import common from './common'
|
|
11
|
+
import referencebatchcheck from './referencebatchcheck'
|
|
12
|
+
import referencebatchdrawer from './referencebatchdrawer'
|
|
13
|
+
import referencecheck from './referencecheck'
|
|
14
|
+
import referencedrawer from './referencedrawer'
|
|
15
|
+
import referenceinfo from './referenceinfo'
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const qingTiGongYiGe: string
|
|
4
|
+
const chaXunGuanLianGuan: string
|
|
5
|
+
const qiangYinYong: string
|
|
6
|
+
const cunZai: string
|
|
7
|
+
const cunZaiQiangYinYong: string
|
|
8
|
+
const cunZaiRuoYinYong: string
|
|
9
|
+
const xiaYiBu: string
|
|
10
|
+
const quXiao: string
|
|
11
|
+
const shangXianJiaoYanShi: string
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
|
-
export default _default
|
|
15
|
-
//# sourceMappingURL=referencebatchcheck.d.ts.map
|
|
14
|
+
export default _default
|
|
15
|
+
//# sourceMappingURL=referencebatchcheck.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const zanWuShuJu: string
|
|
4
|
+
const chaXunZhong: string
|
|
5
|
+
const chaXunYinYongGuan: string
|
|
6
|
+
}
|
|
7
7
|
}
|
|
8
|
-
export default _default
|
|
9
|
-
//# sourceMappingURL=referencebatchdrawer.d.ts.map
|
|
8
|
+
export default _default
|
|
9
|
+
//# sourceMappingURL=referencebatchdrawer.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const qingTiGongYiGe: string
|
|
4
|
+
const chaXunGuanLianGuan: string
|
|
5
|
+
const cunZaiQiangYinYong: string
|
|
6
|
+
const cunZaiRuoYinYong: string
|
|
7
|
+
const xiaYiBu: string
|
|
8
|
+
const quXiao: string
|
|
9
|
+
const yinYongGuanXiCha: string
|
|
10
|
+
}
|
|
11
11
|
}
|
|
12
|
-
export default _default
|
|
13
|
-
//# sourceMappingURL=referencecheck.d.ts.map
|
|
12
|
+
export default _default
|
|
13
|
+
//# sourceMappingURL=referencecheck.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const chaXunZhong: string
|
|
4
|
+
const chaXunYinYongGuan: string
|
|
5
|
+
}
|
|
6
6
|
}
|
|
7
|
-
export default _default
|
|
8
|
-
//# sourceMappingURL=referencedrawer.d.ts.map
|
|
7
|
+
export default _default
|
|
8
|
+
//# sourceMappingURL=referencedrawer.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
namespace index {
|
|
3
|
+
const ruoYinYong: string
|
|
4
|
+
const qiangYinYong: string
|
|
5
|
+
const zanWuShuJu: string
|
|
6
|
+
}
|
|
7
7
|
}
|
|
8
|
-
export default _default
|
|
9
|
-
//# sourceMappingURL=referenceinfo.d.ts.map
|
|
8
|
+
export default _default
|
|
9
|
+
//# sourceMappingURL=referenceinfo.d.ts.map
|
package/es/AHref/index.js
CHANGED
|
@@ -1,60 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
var _default = props => {
|
|
16
|
-
const {
|
|
17
|
-
children,
|
|
18
|
-
href,
|
|
19
|
-
unmountHandle,
|
|
20
|
-
jumpFun,
|
|
21
|
-
iframeJump
|
|
22
|
-
} = props,
|
|
23
|
-
rest = __rest(props, ["children", "href", "unmountHandle", "jumpFun", "iframeJump"]);
|
|
24
|
-
if (window.__isMultiTab__) {
|
|
25
|
-
return React.createElement("a", {
|
|
26
|
-
onClick: evt => {
|
|
27
|
-
evt.preventDefault();
|
|
28
|
-
if (unmountHandle && typeof unmountHandle === 'function') {
|
|
29
|
-
unmountHandle();
|
|
30
|
-
}
|
|
31
|
-
let pathName = href;
|
|
32
|
-
if (href && href.includes('?')) {
|
|
33
|
-
pathName = href === null || href === void 0 ? void 0 : href.split('?')[0];
|
|
34
|
-
}
|
|
35
|
-
if (jumpFun && typeof jumpFun === 'function') {
|
|
36
|
-
jumpFun(href);
|
|
37
|
-
return;
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
38
9
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
export default (props) => {
|
|
13
|
+
const { children, href, unmountHandle, jumpFun, iframeJump } = props, rest = __rest(props, ["children", "href", "unmountHandle", "jumpFun", "iframeJump"]);
|
|
14
|
+
if (window.__isMultiTab__) {
|
|
15
|
+
return (React.createElement("a", { onClick: (evt) => {
|
|
16
|
+
evt.preventDefault();
|
|
17
|
+
if (unmountHandle && typeof unmountHandle === 'function') {
|
|
18
|
+
unmountHandle();
|
|
19
|
+
}
|
|
20
|
+
let pathName = href;
|
|
21
|
+
if (href && href.includes('?')) {
|
|
22
|
+
pathName = href === null || href === void 0 ? void 0 : href.split('?')[0];
|
|
23
|
+
}
|
|
24
|
+
if (jumpFun && typeof jumpFun === 'function') {
|
|
25
|
+
jumpFun(href);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const isInIframe = (window === null || window === void 0 ? void 0 : window.self) !== (window === null || window === void 0 ? void 0 : window.top);
|
|
29
|
+
if (iframeJump && isInIframe) {
|
|
30
|
+
if (pathName === window.location.pathname) {
|
|
31
|
+
window.parent.location.href = href;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
window.parent.open(href);
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (pathName === window.location.pathname) {
|
|
39
|
+
window.location.href = href;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
window.push(href);
|
|
43
|
+
}
|
|
44
|
+
} }, children));
|
|
45
|
+
}
|
|
46
|
+
return (React.createElement("a", Object.assign({ href: href }, rest), children));
|
|
59
47
|
};
|
|
60
|
-
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
package/es/I18N.js
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _universalCookie = _interopRequireDefault(require("universal-cookie"));
|
|
9
|
-
var _zhCN = _interopRequireDefault(require("../.octopus/zh-CN"));
|
|
10
|
-
var _enUS = _interopRequireDefault(require("../.octopus/en-US"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const cookies = new _universalCookie.default();
|
|
13
|
-
const getLang = () => {
|
|
14
|
-
return cookies.get('lang') || 'cn';
|
|
1
|
+
import KiwiIntl from 'otp-intl';
|
|
2
|
+
import Cookies from 'universal-cookie';
|
|
3
|
+
import zhCN from '../.octopus/zh-CN';
|
|
4
|
+
import enUS from '../.octopus/en-US';
|
|
5
|
+
const cookies = new Cookies();
|
|
6
|
+
export const getLang = () => {
|
|
7
|
+
return cookies.get('lang') || 'cn';
|
|
15
8
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
en: _enUS.default
|
|
9
|
+
const kiwiIntl = KiwiIntl.init(getLang(), {
|
|
10
|
+
cn: zhCN,
|
|
11
|
+
en: enUS
|
|
20
12
|
});
|
|
21
|
-
|
|
13
|
+
export default kiwiIntl;
|
|
14
|
+
//# sourceMappingURL=I18N.js.map
|