@authing/vue-ui-components 3.1.25 → 4.0.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/LICENSE +1 -1
- package/components/Guard/src/index.vue +4 -25
- package/components/index.js +3 -3
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +6 -167
- package/package.json +3 -3
- package/components/AuthingGuard/index.js +0 -8
- package/components/AuthingGuard/src/index.vue +0 -150
package/LICENSE
CHANGED
|
@@ -3,26 +3,9 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
-
import {
|
|
7
|
-
getAuthClient,
|
|
8
|
-
initAuthClient,
|
|
9
|
-
GuardMode,
|
|
10
|
-
GuardScenes,
|
|
11
|
-
LoginMethods,
|
|
12
|
-
RegisterMethods,
|
|
13
|
-
Guard as NativeGuard,
|
|
14
|
-
GuardEventsCamelToKebabMapping,
|
|
15
|
-
} from "@authing/native-js-ui-components";
|
|
6
|
+
import { Guard as NativeGuard } from "@authing/native-js-ui-components";
|
|
16
7
|
import "@authing/native-js-ui-components/lib/index.min.css";
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
getAuthClient,
|
|
20
|
-
initAuthClient,
|
|
21
|
-
GuardMode,
|
|
22
|
-
GuardScenes,
|
|
23
|
-
LoginMethods,
|
|
24
|
-
RegisterMethods,
|
|
25
|
-
};
|
|
8
|
+
export * from "@authing/native-js-ui-components";
|
|
26
9
|
|
|
27
10
|
const callbackEvent = ["before-login", "before-register"];
|
|
28
11
|
|
|
@@ -133,9 +116,7 @@ export default {
|
|
|
133
116
|
});
|
|
134
117
|
|
|
135
118
|
const evts = Object.values(GuardEventsCamelToKebabMapping);
|
|
136
|
-
const kebabToCamelMap = Object.entries(
|
|
137
|
-
GuardEventsCamelToKebabMapping
|
|
138
|
-
).reduce((acc, [camel, kebab]) => {
|
|
119
|
+
const kebabToCamelMap = Object.entries(GuardEventsCamelToKebabMapping).reduce((acc, [camel, kebab]) => {
|
|
139
120
|
return Object.assign({}, acc, {
|
|
140
121
|
[kebab]: camel,
|
|
141
122
|
});
|
|
@@ -161,9 +142,7 @@ export default {
|
|
|
161
142
|
});
|
|
162
143
|
}, {});
|
|
163
144
|
|
|
164
|
-
evts.forEach((evtName) =>
|
|
165
|
-
this.guardInstance.on(evtName, listeners[evtName])
|
|
166
|
-
);
|
|
145
|
+
evts.forEach((evtName) => this.guardInstance.on(evtName, listeners[evtName]));
|
|
167
146
|
|
|
168
147
|
if (this.localVisible) {
|
|
169
148
|
this.guardInstance.show();
|
package/components/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import AuthingGuard from './AuthingGuard'
|
|
1
|
+
// import AuthingGuard from './AuthingGuard'
|
|
2
2
|
import Guard from './Guard'
|
|
3
3
|
import '@authing/native-js-ui-components/lib/index.min.css'
|
|
4
4
|
|
|
5
5
|
const components = [
|
|
6
|
-
AuthingGuard,
|
|
6
|
+
// AuthingGuard,
|
|
7
7
|
Guard
|
|
8
8
|
]
|
|
9
9
|
// 全局注册
|
|
@@ -17,7 +17,7 @@ const install = (app) => {
|
|
|
17
17
|
export {
|
|
18
18
|
install,
|
|
19
19
|
Guard,
|
|
20
|
-
AuthingGuard
|
|
20
|
+
// AuthingGuard
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export default {
|