@adminforth/login-captcha 1.0.2 → 1.1.1
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/build.log +2 -2
- package/custom/CaptchaWidget.vue +5 -1
- package/custom/tsconfig.json +15 -4
- package/dist/custom/CaptchaWidget.vue +5 -1
- package/dist/custom/tsconfig.json +15 -4
- package/package.json +1 -1
package/build.log
CHANGED
package/custom/CaptchaWidget.vue
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="w-full flex justify-center items-center">
|
|
3
|
-
<div :id="props.meta.containerId"></div>
|
|
3
|
+
<div :id="props.meta.containerId" :data-theme="theme"></div>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import { onMounted, ref } from 'vue';
|
|
9
9
|
import { callAdminForthApi } from '@/utils';
|
|
10
|
+
import { useCoreStore } from '@/stores/core';
|
|
11
|
+
|
|
12
|
+
const coreStore = useCoreStore();
|
|
10
13
|
|
|
11
14
|
interface Props {
|
|
12
15
|
meta: {
|
|
@@ -24,6 +27,7 @@ const token = ref(null);
|
|
|
24
27
|
const emit = defineEmits(
|
|
25
28
|
["update:disableLoginButton"]
|
|
26
29
|
)
|
|
30
|
+
const theme = coreStore.theme;
|
|
27
31
|
|
|
28
32
|
onMounted(() => {
|
|
29
33
|
const fnName = props.meta.renderWidgetFunctionName;
|
package/custom/tsconfig.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
3
|
+
"baseUrl": ".",
|
|
4
4
|
"paths": {
|
|
5
5
|
"@/*": [
|
|
6
|
-
"
|
|
6
|
+
"../../../adminforth/spa/src/*"
|
|
7
7
|
],
|
|
8
8
|
"*": [
|
|
9
|
-
"
|
|
9
|
+
"../../../adminforth/spa/node_modules/*"
|
|
10
10
|
],
|
|
11
11
|
"@@/*": [
|
|
12
12
|
"."
|
|
13
13
|
]
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"include": [
|
|
17
|
+
"./**/*.ts",
|
|
18
|
+
"./**/*.tsx",
|
|
19
|
+
"./**/*.vue",
|
|
20
|
+
"../**/*.ts",
|
|
21
|
+
"../**/*.tsx",
|
|
22
|
+
"../**/*.vue",
|
|
23
|
+
"../*.vue",
|
|
24
|
+
"../*.ts",
|
|
25
|
+
"../*.tsx"
|
|
26
|
+
]
|
|
16
27
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="w-full flex justify-center items-center">
|
|
3
|
-
<div :id="props.meta.containerId"></div>
|
|
3
|
+
<div :id="props.meta.containerId" :data-theme="theme"></div>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import { onMounted, ref } from 'vue';
|
|
9
9
|
import { callAdminForthApi } from '@/utils';
|
|
10
|
+
import { useCoreStore } from '@/stores/core';
|
|
11
|
+
|
|
12
|
+
const coreStore = useCoreStore();
|
|
10
13
|
|
|
11
14
|
interface Props {
|
|
12
15
|
meta: {
|
|
@@ -24,6 +27,7 @@ const token = ref(null);
|
|
|
24
27
|
const emit = defineEmits(
|
|
25
28
|
["update:disableLoginButton"]
|
|
26
29
|
)
|
|
30
|
+
const theme = coreStore.theme;
|
|
27
31
|
|
|
28
32
|
onMounted(() => {
|
|
29
33
|
const fnName = props.meta.renderWidgetFunctionName;
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
3
|
+
"baseUrl": ".",
|
|
4
4
|
"paths": {
|
|
5
5
|
"@/*": [
|
|
6
|
-
"
|
|
6
|
+
"../../../adminforth/spa/src/*"
|
|
7
7
|
],
|
|
8
8
|
"*": [
|
|
9
|
-
"
|
|
9
|
+
"../../../adminforth/spa/node_modules/*"
|
|
10
10
|
],
|
|
11
11
|
"@@/*": [
|
|
12
12
|
"."
|
|
13
13
|
]
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"include": [
|
|
17
|
+
"./**/*.ts",
|
|
18
|
+
"./**/*.tsx",
|
|
19
|
+
"./**/*.vue",
|
|
20
|
+
"../**/*.ts",
|
|
21
|
+
"../**/*.tsx",
|
|
22
|
+
"../**/*.vue",
|
|
23
|
+
"../*.vue",
|
|
24
|
+
"../*.ts",
|
|
25
|
+
"../*.tsx"
|
|
26
|
+
]
|
|
16
27
|
}
|