eoss-ui 0.6.31 → 0.6.32
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/lib/eoss-ui.common.js +62 -54
- package/lib/handle-user.js +6 -2
- package/lib/index.js +1 -1
- package/lib/main.js +37 -33
- package/lib/upload.js +11 -11
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/handle-user/src/main.vue +4 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/simplicity/index.vue +17 -15
- package/packages/upload/src/main.vue +17 -8
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -4100,8 +4100,8 @@ render._withStripped = true
|
|
|
4100
4100
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
4101
4101
|
var config_image = __webpack_require__(17);
|
|
4102
4102
|
|
|
4103
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4104
|
-
var
|
|
4103
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=9473ec14&scoped=true&
|
|
4104
|
+
var simplicityvue_type_template_id_9473ec14_scoped_true_render = function () {
|
|
4105
4105
|
var _vm = this
|
|
4106
4106
|
var _h = _vm.$createElement
|
|
4107
4107
|
var _c = _vm._self._c || _h
|
|
@@ -4737,11 +4737,11 @@ var simplicityvue_type_template_id_41fb1477_scoped_true_render = function () {
|
|
|
4737
4737
|
),
|
|
4738
4738
|
])
|
|
4739
4739
|
}
|
|
4740
|
-
var
|
|
4741
|
-
|
|
4740
|
+
var simplicityvue_type_template_id_9473ec14_scoped_true_staticRenderFns = []
|
|
4741
|
+
simplicityvue_type_template_id_9473ec14_scoped_true_render._withStripped = true
|
|
4742
4742
|
|
|
4743
4743
|
|
|
4744
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4744
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=9473ec14&scoped=true&
|
|
4745
4745
|
|
|
4746
4746
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
|
|
4747
4747
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -11479,19 +11479,23 @@ var events = [function (tabs, index, that) {
|
|
|
11479
11479
|
this.tabs.push(tab);
|
|
11480
11480
|
this.activeName = res.id;
|
|
11481
11481
|
} else {
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11482
|
+
this.tabs = events[0](this.tabs, i, this);
|
|
11483
|
+
// let tab = this.tabs[i];
|
|
11484
|
+
// if (tab.method === 'iframe') {
|
|
11485
|
+
// this.activeName = res.id;
|
|
11486
|
+
// this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
11487
|
+
// } else {
|
|
11488
|
+
// if (tab.method === 'wujie' && tab.appCode) {
|
|
11489
|
+
// window.document
|
|
11490
|
+
// .querySelector(`iframe[name=${tab.appCode}]`)
|
|
11491
|
+
// .contentWindow.location.reload(true);
|
|
11492
|
+
// }
|
|
11493
|
+
// if (tab.method === 'router') {
|
|
11494
|
+
// this.$set(this.tabs[i], 'keys', util.uuid());
|
|
11495
|
+
// }
|
|
11496
|
+
// this.activeName = res.id;
|
|
11497
|
+
// }
|
|
11498
|
+
this.activeName = res.id;
|
|
11495
11499
|
}
|
|
11496
11500
|
},
|
|
11497
11501
|
|
|
@@ -11546,14 +11550,14 @@ var events = [function (tabs, index, that) {
|
|
|
11546
11550
|
if (tab.method === 'iframe') {
|
|
11547
11551
|
tab.url = util["a" /* default */].handlerUrl(tab.url);
|
|
11548
11552
|
} else {
|
|
11549
|
-
var
|
|
11550
|
-
if (
|
|
11551
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(
|
|
11553
|
+
var _tab6 = this.tabs[i];
|
|
11554
|
+
if (_tab6.method === 'iframe') {
|
|
11555
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab6.url));
|
|
11552
11556
|
}
|
|
11553
|
-
if (
|
|
11554
|
-
window.document.querySelector('iframe[name=' +
|
|
11557
|
+
if (_tab6.method === 'wujie' && _tab6.appCode) {
|
|
11558
|
+
window.document.querySelector('iframe[name=' + _tab6.appCode + ']').contentWindow.location.reload(true);
|
|
11555
11559
|
}
|
|
11556
|
-
if (
|
|
11560
|
+
if (_tab6.method === 'router') {
|
|
11557
11561
|
this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
|
|
11558
11562
|
}
|
|
11559
11563
|
}
|
|
@@ -11846,14 +11850,14 @@ var events = [function (tabs, index, that) {
|
|
|
11846
11850
|
var tab = this.setIframeType(obj);
|
|
11847
11851
|
this.tabs.splice(n + 1, 0, tab);
|
|
11848
11852
|
} else {
|
|
11849
|
-
var
|
|
11850
|
-
if (
|
|
11851
|
-
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(
|
|
11853
|
+
var _tab7 = this.tabs[i];
|
|
11854
|
+
if (_tab7.method === 'iframe') {
|
|
11855
|
+
this.$set(this.tabs[i], 'url', util["a" /* default */].handlerUrl(_tab7.url));
|
|
11852
11856
|
}
|
|
11853
|
-
if (
|
|
11854
|
-
window.document.querySelector('iframe[name=' +
|
|
11857
|
+
if (_tab7.method === 'wujie' && _tab7.appCode) {
|
|
11858
|
+
window.document.querySelector('iframe[name=' + _tab7.appCode + ']').contentWindow.location.reload(true);
|
|
11855
11859
|
}
|
|
11856
|
-
if (
|
|
11860
|
+
if (_tab7.method === 'router') {
|
|
11857
11861
|
this.$set(this.tabs[i], 'keys', util["a" /* default */].uuid());
|
|
11858
11862
|
}
|
|
11859
11863
|
}
|
|
@@ -11914,11 +11918,11 @@ var events = [function (tabs, index, that) {
|
|
|
11914
11918
|
|
|
11915
11919
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
11916
11920
|
src_simplicityvue_type_script_lang_js_,
|
|
11917
|
-
|
|
11918
|
-
|
|
11921
|
+
simplicityvue_type_template_id_9473ec14_scoped_true_render,
|
|
11922
|
+
simplicityvue_type_template_id_9473ec14_scoped_true_staticRenderFns,
|
|
11919
11923
|
false,
|
|
11920
11924
|
null,
|
|
11921
|
-
"
|
|
11925
|
+
"9473ec14",
|
|
11922
11926
|
null
|
|
11923
11927
|
|
|
11924
11928
|
)
|
package/lib/upload.js
CHANGED
|
@@ -3995,8 +3995,8 @@ module.exports = require("js-base64");
|
|
|
3995
3995
|
// ESM COMPAT FLAG
|
|
3996
3996
|
__webpack_require__.r(__webpack_exports__);
|
|
3997
3997
|
|
|
3998
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
3999
|
-
var
|
|
3998
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=1d0cf2a3&
|
|
3999
|
+
var mainvue_type_template_id_1d0cf2a3_render = function () {
|
|
4000
4000
|
var _vm = this
|
|
4001
4001
|
var _h = _vm.$createElement
|
|
4002
4002
|
var _c = _vm._self._c || _h
|
|
@@ -4377,10 +4377,10 @@ var mainvue_type_template_id_42161038_render = function () {
|
|
|
4377
4377
|
: _vm._e()
|
|
4378
4378
|
}
|
|
4379
4379
|
var staticRenderFns = []
|
|
4380
|
-
|
|
4380
|
+
mainvue_type_template_id_1d0cf2a3_render._withStripped = true
|
|
4381
4381
|
|
|
4382
4382
|
|
|
4383
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
4383
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=1d0cf2a3&
|
|
4384
4384
|
|
|
4385
4385
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4386
4386
|
var api = __webpack_require__(1);
|
|
@@ -4948,12 +4948,12 @@ var _props;
|
|
|
4948
4948
|
return { success: true, error: true };
|
|
4949
4949
|
},
|
|
4950
4950
|
profile: function profile() {
|
|
4951
|
-
var previewAdjunct = this.dochubConfig
|
|
4951
|
+
var previewAdjunct = this.dochubConfig.downloadDocumentUrl || this.previewAdjunct;
|
|
4952
4952
|
if (this.image) {
|
|
4953
4953
|
if (typeof this.image === 'string') {
|
|
4954
4954
|
return this.image;
|
|
4955
4955
|
}
|
|
4956
|
-
return '' + this.host + previewAdjunct + '?documentId=' + this.image.adjunctId + '&adjunctId=' + this.image.adjunctId;
|
|
4956
|
+
return '' + this.host + previewAdjunct + '?documentId=' + this.image.adjunctId + '&adjunctId=' + this.image.adjunctId + '&_tt=' + new Date().getTime();
|
|
4957
4957
|
}
|
|
4958
4958
|
if (this.value) {
|
|
4959
4959
|
if (typeof this.value === 'string') {
|
|
@@ -4966,15 +4966,15 @@ var _props;
|
|
|
4966
4966
|
});
|
|
4967
4967
|
return val;
|
|
4968
4968
|
} else if (this.value.indexOf('/') === -1) {
|
|
4969
|
-
return '' + this.host + previewAdjunct + '?documentId=' + this.value + '&adjunctId=' + this.value;
|
|
4969
|
+
return '' + this.host + previewAdjunct + '?documentId=' + this.value + '&adjunctId=' + this.value + '&_tt=' + new Date().getTime();
|
|
4970
4970
|
}
|
|
4971
4971
|
return this.value;
|
|
4972
4972
|
} else if (Array.isArray(this.value)) {
|
|
4973
4973
|
var adjunctId = this.value[0].response ? this.value[0].response.adjunctId : this.value[0].adjunctId;
|
|
4974
|
-
return '' + this.host + previewAdjunct + '?documentId=' + adjunctId + '&adjunctId=' + adjunctId;
|
|
4974
|
+
return '' + this.host + previewAdjunct + '?documentId=' + adjunctId + '&adjunctId=' + adjunctId + '&_tt=' + new Date().getTime();
|
|
4975
4975
|
} else {
|
|
4976
4976
|
var _adjunctId = this.value.response ? this.value.response.adjunctId : this.value.adjunctId;
|
|
4977
|
-
return '' + this.host + previewAdjunct + '?documentId=' + _adjunctId + '&adjunctId=' + _adjunctId;
|
|
4977
|
+
return '' + this.host + previewAdjunct + '?documentId=' + _adjunctId + '&adjunctId=' + _adjunctId + '&_tt=' + new Date().getTime();
|
|
4978
4978
|
}
|
|
4979
4979
|
}
|
|
4980
4980
|
if (this.photo && typeof this.photo === 'string') {
|
|
@@ -4987,7 +4987,7 @@ var _props;
|
|
|
4987
4987
|
});
|
|
4988
4988
|
return _val;
|
|
4989
4989
|
} else if (this.photo.indexOf('/') === -1) {
|
|
4990
|
-
return '' + this.host + previewAdjunct + '?documentId=' + this.photo + '&adjunctId=' + this.photo;
|
|
4990
|
+
return '' + this.host + previewAdjunct + '?documentId=' + this.photo + '&adjunctId=' + this.photo + '&_tt=' + new Date().getTime();
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
4993
|
return this.photo;
|
|
@@ -5542,7 +5542,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5542
5542
|
|
|
5543
5543
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5544
5544
|
src_mainvue_type_script_lang_js_,
|
|
5545
|
-
|
|
5545
|
+
mainvue_type_template_id_1d0cf2a3_render,
|
|
5546
5546
|
staticRenderFns,
|
|
5547
5547
|
false,
|
|
5548
5548
|
null,
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1521,21 +1521,23 @@ export default {
|
|
|
1521
1521
|
this.tabs.push(tab);
|
|
1522
1522
|
this.activeName = res.id;
|
|
1523
1523
|
} else {
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1524
|
+
this.tabs = events[0](this.tabs, i, this);
|
|
1525
|
+
// let tab = this.tabs[i];
|
|
1526
|
+
// if (tab.method === 'iframe') {
|
|
1527
|
+
// this.activeName = res.id;
|
|
1528
|
+
// this.$set(this.tabs[i], 'url', util.handlerUrl(tab.url));
|
|
1529
|
+
// } else {
|
|
1530
|
+
// if (tab.method === 'wujie' && tab.appCode) {
|
|
1531
|
+
// window.document
|
|
1532
|
+
// .querySelector(`iframe[name=${tab.appCode}]`)
|
|
1533
|
+
// .contentWindow.location.reload(true);
|
|
1534
|
+
// }
|
|
1535
|
+
// if (tab.method === 'router') {
|
|
1536
|
+
// this.$set(this.tabs[i], 'keys', util.uuid());
|
|
1537
|
+
// }
|
|
1538
|
+
// this.activeName = res.id;
|
|
1539
|
+
// }
|
|
1540
|
+
this.activeName = res.id;
|
|
1539
1541
|
}
|
|
1540
1542
|
},
|
|
1541
1543
|
|
|
@@ -568,14 +568,15 @@ export default {
|
|
|
568
568
|
return { success: true, error: true };
|
|
569
569
|
},
|
|
570
570
|
profile() {
|
|
571
|
-
const previewAdjunct =
|
|
572
|
-
|
|
573
|
-
: this.previewAdjunct;
|
|
571
|
+
const previewAdjunct =
|
|
572
|
+
this.dochubConfig.downloadDocumentUrl || this.previewAdjunct;
|
|
574
573
|
if (this.image) {
|
|
575
574
|
if (typeof this.image === 'string') {
|
|
576
575
|
return this.image;
|
|
577
576
|
}
|
|
578
|
-
return `${this.host}${previewAdjunct}?documentId=${
|
|
577
|
+
return `${this.host}${previewAdjunct}?documentId=${
|
|
578
|
+
this.image.adjunctId
|
|
579
|
+
}&adjunctId=${this.image.adjunctId}&_tt=${new Date().getTime()}`;
|
|
579
580
|
}
|
|
580
581
|
if (this.value) {
|
|
581
582
|
if (typeof this.value === 'string') {
|
|
@@ -590,19 +591,25 @@ export default {
|
|
|
590
591
|
});
|
|
591
592
|
return val;
|
|
592
593
|
} else if (this.value.indexOf('/') === -1) {
|
|
593
|
-
return `${this.host}${previewAdjunct}?documentId=${
|
|
594
|
+
return `${this.host}${previewAdjunct}?documentId=${
|
|
595
|
+
this.value
|
|
596
|
+
}&adjunctId=${this.value}&_tt=${new Date().getTime()}`;
|
|
594
597
|
}
|
|
595
598
|
return this.value;
|
|
596
599
|
} else if (Array.isArray(this.value)) {
|
|
597
600
|
let adjunctId = this.value[0].response
|
|
598
601
|
? this.value[0].response.adjunctId
|
|
599
602
|
: this.value[0].adjunctId;
|
|
600
|
-
return `${
|
|
603
|
+
return `${
|
|
604
|
+
this.host
|
|
605
|
+
}${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}&_tt=${new Date().getTime()}`;
|
|
601
606
|
} else {
|
|
602
607
|
let adjunctId = this.value.response
|
|
603
608
|
? this.value.response.adjunctId
|
|
604
609
|
: this.value.adjunctId;
|
|
605
|
-
return `${
|
|
610
|
+
return `${
|
|
611
|
+
this.host
|
|
612
|
+
}${previewAdjunct}?documentId=${adjunctId}&adjunctId=${adjunctId}&_tt=${new Date().getTime()}`;
|
|
606
613
|
}
|
|
607
614
|
}
|
|
608
615
|
if (this.photo && typeof this.photo === 'string') {
|
|
@@ -617,7 +624,9 @@ export default {
|
|
|
617
624
|
});
|
|
618
625
|
return val;
|
|
619
626
|
} else if (this.photo.indexOf('/') === -1) {
|
|
620
|
-
return `${this.host}${previewAdjunct}?documentId=${
|
|
627
|
+
return `${this.host}${previewAdjunct}?documentId=${
|
|
628
|
+
this.photo
|
|
629
|
+
}&adjunctId=${this.photo}&_tt=${new Date().getTime()}`;
|
|
621
630
|
}
|
|
622
631
|
}
|
|
623
632
|
return this.photo;
|