wotokol-edm 1.1.71 → 1.1.72
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/package.json +1 -1
- package/wotokol-edm.common.js +175 -169
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.umd.js +175 -169
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.umd.js
CHANGED
|
@@ -91152,174 +91152,6 @@ var lib = __webpack_require__(6153);
|
|
|
91152
91152
|
|
|
91153
91153
|
/* harmony default export */ var skywalking_client_js = (ClientMonitor);
|
|
91154
91154
|
|
|
91155
|
-
;// ./src/utils/skyWalking.js
|
|
91156
|
-
|
|
91157
|
-
|
|
91158
|
-
//注册skywalking
|
|
91159
|
-
if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
|
|
91160
|
-
skywalking_client_js.register({
|
|
91161
|
-
service: 'wotohubService',
|
|
91162
|
-
//应用名称
|
|
91163
|
-
serviceVersion: '10.1.0',
|
|
91164
|
-
//应用版本号
|
|
91165
|
-
traceSDKInternal: true,
|
|
91166
|
-
//追踪sdk
|
|
91167
|
-
pagePath: location.href,
|
|
91168
|
-
//当前路由地址
|
|
91169
|
-
useFmp: true,
|
|
91170
|
-
//use first meaningful paint
|
|
91171
|
-
collector: location.origin,
|
|
91172
|
-
// report serve
|
|
91173
|
-
jsErrors: true,
|
|
91174
|
-
// vue, js and promise errors
|
|
91175
|
-
apiErrors: true,
|
|
91176
|
-
resourceErrors: true,
|
|
91177
|
-
autoTracePerf: true,
|
|
91178
|
-
// trace performance detail
|
|
91179
|
-
enableSPA: true,
|
|
91180
|
-
detailMode: true,
|
|
91181
|
-
noTraceOrigins: [],
|
|
91182
|
-
vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
|
|
91183
|
-
});
|
|
91184
|
-
}
|
|
91185
|
-
//上报错误信息方法
|
|
91186
|
-
function reportFrameErrors(error) {
|
|
91187
|
-
if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
|
|
91188
|
-
skywalking_client_js.reportFrameErrors({
|
|
91189
|
-
service: 'wotohubService',
|
|
91190
|
-
//应用名称
|
|
91191
|
-
serviceVersion: '10.1.0',
|
|
91192
|
-
//应用版本号
|
|
91193
|
-
traceSDKInternal: true,
|
|
91194
|
-
//追踪sdk
|
|
91195
|
-
pagePath: location.href,
|
|
91196
|
-
//当前路由地址
|
|
91197
|
-
useFmp: true,
|
|
91198
|
-
//use first meaningful paint
|
|
91199
|
-
collector: location.origin,
|
|
91200
|
-
// report serve
|
|
91201
|
-
jsErrors: true,
|
|
91202
|
-
// vue, js and promise errors
|
|
91203
|
-
apiErrors: true,
|
|
91204
|
-
resourceErrors: true,
|
|
91205
|
-
autoTracePerf: true,
|
|
91206
|
-
// trace performance detail
|
|
91207
|
-
enableSPA: true,
|
|
91208
|
-
detailMode: true,
|
|
91209
|
-
noTraceOrigins: [],
|
|
91210
|
-
traceTimeInterval: 60000,
|
|
91211
|
-
// 1min
|
|
91212
|
-
vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
|
|
91213
|
-
}, error);
|
|
91214
|
-
}
|
|
91215
|
-
}
|
|
91216
|
-
|
|
91217
|
-
//上报错误信息方法
|
|
91218
|
-
function setPerformance() {
|
|
91219
|
-
if (({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_ENV !== 'dev') {
|
|
91220
|
-
//路由上报到skywalking
|
|
91221
|
-
ClientMonitor.setPerformance({
|
|
91222
|
-
service: 'wotohubService',
|
|
91223
|
-
//应用名称
|
|
91224
|
-
serviceVersion: '10.1.0',
|
|
91225
|
-
//应用版本号
|
|
91226
|
-
traceSDKInternal: true,
|
|
91227
|
-
//追踪sdk
|
|
91228
|
-
pagePath: location.href,
|
|
91229
|
-
//当前路由地址
|
|
91230
|
-
useFmp: true,
|
|
91231
|
-
//use first meaningful paint
|
|
91232
|
-
collector: location.origin,
|
|
91233
|
-
// report serve
|
|
91234
|
-
jsErrors: true,
|
|
91235
|
-
// vue, js and promise errors
|
|
91236
|
-
apiErrors: true,
|
|
91237
|
-
resourceErrors: true,
|
|
91238
|
-
autoTracePerf: true,
|
|
91239
|
-
// trace performance detail
|
|
91240
|
-
enableSPA: true,
|
|
91241
|
-
detailMode: true,
|
|
91242
|
-
noTraceOrigins: [],
|
|
91243
|
-
traceTimeInterval: 60000,
|
|
91244
|
-
// 1min
|
|
91245
|
-
vue: Vue //vue实例
|
|
91246
|
-
});
|
|
91247
|
-
}
|
|
91248
|
-
}
|
|
91249
|
-
;// ./src/utils/request-login.js
|
|
91250
|
-
|
|
91251
|
-
|
|
91252
|
-
|
|
91253
|
-
|
|
91254
|
-
|
|
91255
|
-
const service = lib_axios.create({
|
|
91256
|
-
baseURL: 'https://dss-apis.kuku.info'
|
|
91257
|
-
});
|
|
91258
|
-
service.interceptors.request.use(config => {
|
|
91259
|
-
// 过滤参数中的空值
|
|
91260
|
-
if (config.data) {
|
|
91261
|
-
for (const key in config.data) {
|
|
91262
|
-
if (isEmpty(config.data[key])) {
|
|
91263
|
-
delete config.data[key];
|
|
91264
|
-
}
|
|
91265
|
-
}
|
|
91266
|
-
}
|
|
91267
|
-
if (config.params) {
|
|
91268
|
-
for (const key in config.params) {
|
|
91269
|
-
if (isEmpty(config.params[key])) {
|
|
91270
|
-
delete config.params[key];
|
|
91271
|
-
}
|
|
91272
|
-
}
|
|
91273
|
-
}
|
|
91274
|
-
// 验证有无token
|
|
91275
|
-
if (store.getters.token) {
|
|
91276
|
-
config.headers['Authorization'] = 'Bearer ' + getToken();
|
|
91277
|
-
}
|
|
91278
|
-
return config;
|
|
91279
|
-
}, error => {
|
|
91280
|
-
return Promise.reject(error);
|
|
91281
|
-
});
|
|
91282
|
-
service.interceptors.response.use(response => {
|
|
91283
|
-
const res = response.data;
|
|
91284
|
-
try {
|
|
91285
|
-
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
91286
|
-
// 捕获code不为0的接口异常
|
|
91287
|
-
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
91288
|
-
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
91289
|
-
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
91290
|
-
}
|
|
91291
|
-
} catch (error) {
|
|
91292
|
-
// 处理错误的代码,例如打印错误信息
|
|
91293
|
-
console.error("An error occurred:", error);
|
|
91294
|
-
reportFrameErrors(error);
|
|
91295
|
-
}
|
|
91296
|
-
return Promise.resolve(res);
|
|
91297
|
-
}, error => {
|
|
91298
|
-
if (error.response.data.code === 100003) {
|
|
91299
|
-
(0,element_ui_common.Message)({
|
|
91300
|
-
message: error.response.data.message,
|
|
91301
|
-
type: 'error',
|
|
91302
|
-
duration: 5 * 1000
|
|
91303
|
-
});
|
|
91304
|
-
} else {
|
|
91305
|
-
(0,element_ui_common.Message)({
|
|
91306
|
-
message: error.response.data.message ? error.response.data.message : '网络错误,请稍后再试~',
|
|
91307
|
-
type: 'error',
|
|
91308
|
-
duration: 5 * 1000
|
|
91309
|
-
});
|
|
91310
|
-
}
|
|
91311
|
-
return Promise.reject(error);
|
|
91312
|
-
});
|
|
91313
|
-
/* harmony default export */ var request_login = (service);
|
|
91314
|
-
|
|
91315
|
-
/**
|
|
91316
|
-
* 非空判断
|
|
91317
|
-
* @param {*} obj
|
|
91318
|
-
* @returns
|
|
91319
|
-
*/
|
|
91320
|
-
function isEmpty(obj) {
|
|
91321
|
-
return typeof obj === 'undefined' || obj === null || obj === '';
|
|
91322
|
-
}
|
|
91323
91155
|
;// ./node_modules/jsencrypt/lib/lib/jsbn/util.js
|
|
91324
91156
|
var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
|
|
91325
91157
|
function int2char(n) {
|
|
@@ -97391,7 +97223,7 @@ function withUUID(app) {
|
|
|
97391
97223
|
* @param {*} obj
|
|
97392
97224
|
* @returns
|
|
97393
97225
|
*/
|
|
97394
|
-
function
|
|
97226
|
+
function isEmpty(obj) {
|
|
97395
97227
|
return typeof obj === 'undefined' || obj === null || obj === '';
|
|
97396
97228
|
}
|
|
97397
97229
|
|
|
@@ -97498,6 +97330,7 @@ function replaceNullWithEmptyMutate(obj) {
|
|
|
97498
97330
|
}
|
|
97499
97331
|
function initJavaService(env) {
|
|
97500
97332
|
defaultEnv = env;
|
|
97333
|
+
localStorage.setItem('EDMDefaultEnv', env);
|
|
97501
97334
|
if (env === "dev" || env === "development" || env === "test") {
|
|
97502
97335
|
baseUrl = "https://k8s-api.wotohub.com"; // https://pre-api.kuku.info
|
|
97503
97336
|
} else if (env === "pre") {
|
|
@@ -97689,6 +97522,177 @@ const uploadSingleFile = (url, data, fn) => {
|
|
|
97689
97522
|
|
|
97690
97523
|
// 返回结果同上
|
|
97691
97524
|
|
|
97525
|
+
;// ./src/utils/skyWalking.js
|
|
97526
|
+
|
|
97527
|
+
|
|
97528
|
+
|
|
97529
|
+
const currentEnv = localStorage.getItem("EDMDefaultEnv");
|
|
97530
|
+
|
|
97531
|
+
//注册skywalking
|
|
97532
|
+
if (currentEnv !== 'dev') {
|
|
97533
|
+
skywalking_client_js.register({
|
|
97534
|
+
service: 'wotohubService',
|
|
97535
|
+
//应用名称
|
|
97536
|
+
serviceVersion: '10.1.0',
|
|
97537
|
+
//应用版本号
|
|
97538
|
+
traceSDKInternal: true,
|
|
97539
|
+
//追踪sdk
|
|
97540
|
+
pagePath: location.href,
|
|
97541
|
+
//当前路由地址
|
|
97542
|
+
useFmp: true,
|
|
97543
|
+
//use first meaningful paint
|
|
97544
|
+
collector: location.origin,
|
|
97545
|
+
// report serve
|
|
97546
|
+
jsErrors: true,
|
|
97547
|
+
// vue, js and promise errors
|
|
97548
|
+
apiErrors: true,
|
|
97549
|
+
resourceErrors: true,
|
|
97550
|
+
autoTracePerf: true,
|
|
97551
|
+
// trace performance detail
|
|
97552
|
+
enableSPA: true,
|
|
97553
|
+
detailMode: true,
|
|
97554
|
+
noTraceOrigins: [],
|
|
97555
|
+
vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
|
|
97556
|
+
});
|
|
97557
|
+
}
|
|
97558
|
+
//上报错误信息方法
|
|
97559
|
+
function reportFrameErrors(error) {
|
|
97560
|
+
if (currentEnv !== 'dev') {
|
|
97561
|
+
skywalking_client_js.reportFrameErrors({
|
|
97562
|
+
service: 'wotohubService',
|
|
97563
|
+
//应用名称
|
|
97564
|
+
serviceVersion: '10.1.0',
|
|
97565
|
+
//应用版本号
|
|
97566
|
+
traceSDKInternal: true,
|
|
97567
|
+
//追踪sdk
|
|
97568
|
+
pagePath: location.href,
|
|
97569
|
+
//当前路由地址
|
|
97570
|
+
useFmp: true,
|
|
97571
|
+
//use first meaningful paint
|
|
97572
|
+
collector: location.origin,
|
|
97573
|
+
// report serve
|
|
97574
|
+
jsErrors: true,
|
|
97575
|
+
// vue, js and promise errors
|
|
97576
|
+
apiErrors: true,
|
|
97577
|
+
resourceErrors: true,
|
|
97578
|
+
autoTracePerf: true,
|
|
97579
|
+
// trace performance detail
|
|
97580
|
+
enableSPA: true,
|
|
97581
|
+
detailMode: true,
|
|
97582
|
+
noTraceOrigins: [],
|
|
97583
|
+
traceTimeInterval: 60000,
|
|
97584
|
+
// 1min
|
|
97585
|
+
vue: (external_commonjs_vue_commonjs2_vue_root_Vue_default()) //vue实例
|
|
97586
|
+
}, error);
|
|
97587
|
+
}
|
|
97588
|
+
}
|
|
97589
|
+
|
|
97590
|
+
//上报错误信息方法
|
|
97591
|
+
function setPerformance() {
|
|
97592
|
+
if (currentEnv !== 'dev') {
|
|
97593
|
+
//路由上报到skywalking
|
|
97594
|
+
ClientMonitor.setPerformance({
|
|
97595
|
+
service: 'wotohubService',
|
|
97596
|
+
//应用名称
|
|
97597
|
+
serviceVersion: '10.1.0',
|
|
97598
|
+
//应用版本号
|
|
97599
|
+
traceSDKInternal: true,
|
|
97600
|
+
//追踪sdk
|
|
97601
|
+
pagePath: location.href,
|
|
97602
|
+
//当前路由地址
|
|
97603
|
+
useFmp: true,
|
|
97604
|
+
//use first meaningful paint
|
|
97605
|
+
collector: location.origin,
|
|
97606
|
+
// report serve
|
|
97607
|
+
jsErrors: true,
|
|
97608
|
+
// vue, js and promise errors
|
|
97609
|
+
apiErrors: true,
|
|
97610
|
+
resourceErrors: true,
|
|
97611
|
+
autoTracePerf: true,
|
|
97612
|
+
// trace performance detail
|
|
97613
|
+
enableSPA: true,
|
|
97614
|
+
detailMode: true,
|
|
97615
|
+
noTraceOrigins: [],
|
|
97616
|
+
traceTimeInterval: 60000,
|
|
97617
|
+
// 1min
|
|
97618
|
+
vue: Vue //vue实例
|
|
97619
|
+
});
|
|
97620
|
+
}
|
|
97621
|
+
}
|
|
97622
|
+
;// ./src/utils/request-login.js
|
|
97623
|
+
|
|
97624
|
+
|
|
97625
|
+
|
|
97626
|
+
|
|
97627
|
+
|
|
97628
|
+
const service = lib_axios.create({
|
|
97629
|
+
baseURL: 'https://dss-apis.kuku.info'
|
|
97630
|
+
});
|
|
97631
|
+
service.interceptors.request.use(config => {
|
|
97632
|
+
// 过滤参数中的空值
|
|
97633
|
+
if (config.data) {
|
|
97634
|
+
for (const key in config.data) {
|
|
97635
|
+
if (request_login_isEmpty(config.data[key])) {
|
|
97636
|
+
delete config.data[key];
|
|
97637
|
+
}
|
|
97638
|
+
}
|
|
97639
|
+
}
|
|
97640
|
+
if (config.params) {
|
|
97641
|
+
for (const key in config.params) {
|
|
97642
|
+
if (request_login_isEmpty(config.params[key])) {
|
|
97643
|
+
delete config.params[key];
|
|
97644
|
+
}
|
|
97645
|
+
}
|
|
97646
|
+
}
|
|
97647
|
+
// 验证有无token
|
|
97648
|
+
if (store.getters.token) {
|
|
97649
|
+
config.headers['Authorization'] = 'Bearer ' + getToken();
|
|
97650
|
+
}
|
|
97651
|
+
return config;
|
|
97652
|
+
}, error => {
|
|
97653
|
+
return Promise.reject(error);
|
|
97654
|
+
});
|
|
97655
|
+
service.interceptors.response.use(response => {
|
|
97656
|
+
const res = response.data;
|
|
97657
|
+
try {
|
|
97658
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
97659
|
+
// 捕获code不为0的接口异常
|
|
97660
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
97661
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
97662
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
97663
|
+
}
|
|
97664
|
+
} catch (error) {
|
|
97665
|
+
// 处理错误的代码,例如打印错误信息
|
|
97666
|
+
console.error("An error occurred:", error);
|
|
97667
|
+
reportFrameErrors(error);
|
|
97668
|
+
}
|
|
97669
|
+
return Promise.resolve(res);
|
|
97670
|
+
}, error => {
|
|
97671
|
+
if (error.response.data.code === 100003) {
|
|
97672
|
+
(0,element_ui_common.Message)({
|
|
97673
|
+
message: error.response.data.message,
|
|
97674
|
+
type: 'error',
|
|
97675
|
+
duration: 5 * 1000
|
|
97676
|
+
});
|
|
97677
|
+
} else {
|
|
97678
|
+
(0,element_ui_common.Message)({
|
|
97679
|
+
message: error.response.data.message ? error.response.data.message : '网络错误,请稍后再试~',
|
|
97680
|
+
type: 'error',
|
|
97681
|
+
duration: 5 * 1000
|
|
97682
|
+
});
|
|
97683
|
+
}
|
|
97684
|
+
return Promise.reject(error);
|
|
97685
|
+
});
|
|
97686
|
+
/* harmony default export */ var request_login = (service);
|
|
97687
|
+
|
|
97688
|
+
/**
|
|
97689
|
+
* 非空判断
|
|
97690
|
+
* @param {*} obj
|
|
97691
|
+
* @returns
|
|
97692
|
+
*/
|
|
97693
|
+
function request_login_isEmpty(obj) {
|
|
97694
|
+
return typeof obj === 'undefined' || obj === null || obj === '';
|
|
97695
|
+
}
|
|
97692
97696
|
;// ./src/api/test.js
|
|
97693
97697
|
/**
|
|
97694
97698
|
* 测试api
|
|
@@ -132291,6 +132295,7 @@ let baseHubUrl = '';
|
|
|
132291
132295
|
let request_test_defaultEnv = '';
|
|
132292
132296
|
function initHubService(env) {
|
|
132293
132297
|
request_test_defaultEnv = env;
|
|
132298
|
+
localStorage.setItem('EDMDefaultEnv', env);
|
|
132294
132299
|
if (env === 'dev' || env === 'development' || env === 'test') {
|
|
132295
132300
|
baseHubUrl = 'https://api.kuku.info';
|
|
132296
132301
|
} else if (env === 'pre') {
|
|
@@ -132410,6 +132415,7 @@ let baseDssUrl = '';
|
|
|
132410
132415
|
let request_dss_defaultEnv = '';
|
|
132411
132416
|
function initDssService(env) {
|
|
132412
132417
|
request_dss_defaultEnv = env;
|
|
132418
|
+
localStorage.setItem('EDMDefaultEnv', env);
|
|
132413
132419
|
if (env === 'dev' || env === 'development' || env === 'test') {
|
|
132414
132420
|
baseDssUrl = 'https://dss-apis.kuku.info';
|
|
132415
132421
|
} else if (env === 'pre') {
|
package/wotokol-edm.umd.js.gz
CHANGED
|
Binary file
|