eoss-ui 0.6.76 → 0.6.77
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/button-group.js +30 -8
- package/lib/button.js +30 -8
- package/lib/calogin.js +30 -8
- package/lib/checkbox-group.js +30 -8
- package/lib/data-table-form.js +30 -8
- package/lib/data-table.js +30 -8
- package/lib/date-picker.js +30 -8
- package/lib/dialog.js +30 -8
- package/lib/eoss-ui.common.js +300 -241
- package/lib/flow-group.js +30 -8
- package/lib/flow-list.js +30 -8
- package/lib/flow.js +30 -8
- package/lib/form.js +50 -10
- package/lib/handle-user.js +30 -8
- package/lib/handler.js +30 -8
- package/lib/icon.js +30 -8
- package/lib/index.js +1 -1
- package/lib/input-number.js +30 -8
- package/lib/input.js +30 -8
- package/lib/login.js +30 -8
- package/lib/main.js +241 -200
- package/lib/nav.js +30 -8
- package/lib/page.js +30 -8
- package/lib/pagination.js +30 -8
- package/lib/player.js +30 -8
- package/lib/qr-code.js +30 -8
- package/lib/radio-group.js +30 -8
- package/lib/retrial-auth.js +30 -8
- package/lib/select-ganged.js +30 -8
- package/lib/select.js +30 -8
- package/lib/selector-panel.js +30 -8
- package/lib/selector.js +30 -8
- package/lib/sizer.js +30 -8
- package/lib/steps.js +30 -8
- package/lib/switch.js +30 -8
- package/lib/table-form.js +30 -8
- package/lib/tabs.js +30 -8
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +30 -8
- package/lib/tree-group.js +30 -8
- package/lib/tree.js +30 -8
- package/lib/upload.js +30 -8
- package/lib/utils/util.js +26 -4
- package/lib/wujie.js +30 -8
- package/lib/wxlogin.js +30 -8
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/form/.DS_Store +0 -0
- package/packages/form/src/main.vue +1 -0
- package/packages/login/.DS_Store +0 -0
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +6 -5
- package/packages/main/src/main.vue +107 -84
- package/packages/main/src/simplicity/index.vue +5 -2
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/form.scss +3 -0
- package/packages/upload/.DS_Store +0 -0
- package/src/.DS_Store +0 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +39 -3
- package/packages/login/src/IcpItem.vue +0 -66
|
Binary file
|
package/src/.DS_Store
CHANGED
|
Binary file
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -2514,7 +2514,19 @@ const isLogined = async function ({
|
|
|
2514
2514
|
if (loginPage) {
|
|
2515
2515
|
win.top.location.replace(loginPage);
|
|
2516
2516
|
} else if (document.referrer) {
|
|
2517
|
-
|
|
2517
|
+
const referrerUrl = new URL(document.referrer);
|
|
2518
|
+
if (referrerUrl.host !== win.top.location.host) {
|
|
2519
|
+
win.top.location.replace(document.referrer);
|
|
2520
|
+
} else if (
|
|
2521
|
+
win.top.location.href.indexOf('main.html') > -1 ||
|
|
2522
|
+
win.top.location.href.indexOf('index.html') > -1 ||
|
|
2523
|
+
document.referrer.indexOf('main.html') > -1 ||
|
|
2524
|
+
document.referrer.indexOf('index.html') > -1
|
|
2525
|
+
) {
|
|
2526
|
+
win.top.location.href = './login.html';
|
|
2527
|
+
} else {
|
|
2528
|
+
next('/login');
|
|
2529
|
+
}
|
|
2518
2530
|
} else if (
|
|
2519
2531
|
win.top.location.href.indexOf('main.html') > -1
|
|
2520
2532
|
) {
|
|
@@ -2540,7 +2552,19 @@ const isLogined = async function ({
|
|
|
2540
2552
|
if (loginPage) {
|
|
2541
2553
|
win.top.location.replace(loginPage);
|
|
2542
2554
|
} else if (document.referrer) {
|
|
2543
|
-
|
|
2555
|
+
const referrerUrl = new URL(document.referrer);
|
|
2556
|
+
if (referrerUrl.host !== win.top.location.host) {
|
|
2557
|
+
win.top.location.replace(document.referrer);
|
|
2558
|
+
} else if (
|
|
2559
|
+
win.top.location.href.indexOf('main.html') > -1 ||
|
|
2560
|
+
win.top.location.href.indexOf('index.html') > -1 ||
|
|
2561
|
+
document.referrer.indexOf('main.html') > -1 ||
|
|
2562
|
+
document.referrer.indexOf('index.html') > -1
|
|
2563
|
+
) {
|
|
2564
|
+
win.top.location.href = './login.html';
|
|
2565
|
+
} else {
|
|
2566
|
+
next('/login');
|
|
2567
|
+
}
|
|
2544
2568
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2545
2569
|
win.top.location.href = './login.html';
|
|
2546
2570
|
} else {
|
|
@@ -2580,7 +2604,19 @@ const isLogined = async function ({
|
|
|
2580
2604
|
if (loginPage) {
|
|
2581
2605
|
win.top.location.replace(loginPage);
|
|
2582
2606
|
} else if (document.referrer) {
|
|
2583
|
-
|
|
2607
|
+
const referrerUrl = new URL(document.referrer);
|
|
2608
|
+
if (referrerUrl.host !== win.top.location.host) {
|
|
2609
|
+
win.top.location.replace(document.referrer);
|
|
2610
|
+
} else if (
|
|
2611
|
+
win.top.location.href.indexOf('main.html') > -1 ||
|
|
2612
|
+
win.top.location.href.indexOf('index.html') > -1 ||
|
|
2613
|
+
document.referrer.indexOf('main.html') > -1 ||
|
|
2614
|
+
document.referrer.indexOf('index.html') > -1
|
|
2615
|
+
) {
|
|
2616
|
+
win.top.location.href = './login.html';
|
|
2617
|
+
} else {
|
|
2618
|
+
next('/login');
|
|
2619
|
+
}
|
|
2584
2620
|
} else if (win.top.location.href.indexOf('main.html') > -1) {
|
|
2585
2621
|
win.top.location.href = './login.html';
|
|
2586
2622
|
} else {
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span>
|
|
3
|
-
<a
|
|
4
|
-
v-if="item.url || item.open"
|
|
5
|
-
class="es-login-icp-item"
|
|
6
|
-
:target="item.open ? '_blank' : '_self'"
|
|
7
|
-
:style="{
|
|
8
|
-
color: '#63c2ff',
|
|
9
|
-
...item.style
|
|
10
|
-
}"
|
|
11
|
-
:key="item.title"
|
|
12
|
-
:href="item.url || item.open"
|
|
13
|
-
>
|
|
14
|
-
{{ item.title }}
|
|
15
|
-
</a>
|
|
16
|
-
<span
|
|
17
|
-
v-else
|
|
18
|
-
class="es-login-icp-item"
|
|
19
|
-
:style="item.style || copyrightStyle"
|
|
20
|
-
:key="item.title"
|
|
21
|
-
>
|
|
22
|
-
{{ item.title }}
|
|
23
|
-
</span>
|
|
24
|
-
<template v-if="item.children && item.children.length">
|
|
25
|
-
<template v-for="child in item.children">
|
|
26
|
-
<a
|
|
27
|
-
v-if="child.url || child.open"
|
|
28
|
-
class="es-login-icp-child-item"
|
|
29
|
-
:target="child.open ? '_blank' : '_self'"
|
|
30
|
-
:style="{
|
|
31
|
-
color: '#63c2ff',
|
|
32
|
-
...child.style
|
|
33
|
-
}"
|
|
34
|
-
:key="child.title"
|
|
35
|
-
:href="child.url || child.open"
|
|
36
|
-
>
|
|
37
|
-
{{ child.title }}
|
|
38
|
-
</a>
|
|
39
|
-
<span
|
|
40
|
-
v-else
|
|
41
|
-
class="es-login-icp-child-item"
|
|
42
|
-
:style="child.style || copyrightStyle"
|
|
43
|
-
:key="child.title"
|
|
44
|
-
>
|
|
45
|
-
{{ child.title }}
|
|
46
|
-
</span>
|
|
47
|
-
</template>
|
|
48
|
-
</template>
|
|
49
|
-
</span>
|
|
50
|
-
</template>
|
|
51
|
-
|
|
52
|
-
<script>
|
|
53
|
-
export default {
|
|
54
|
-
name: 'IcpItem',
|
|
55
|
-
props: {
|
|
56
|
-
item: {
|
|
57
|
-
type: Object,
|
|
58
|
-
required: true
|
|
59
|
-
},
|
|
60
|
-
copyrightStyle: {
|
|
61
|
-
type: Object,
|
|
62
|
-
required: true
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
</script>
|