@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 CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/CaptchaWidget.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 1,863 bytes received 58 bytes 3,842.00 bytes/sec
11
- total size is 1,646 speedup is 0.86
10
+ sent 2,104 bytes received 58 bytes 4,324.00 bytes/sec
11
+ total size is 1,887 speedup is 0.87
@@ -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": ".", // This should point to your project root
3
+ "baseUrl": ".",
4
4
  "paths": {
5
5
  "@/*": [
6
- "../node_modules/adminforth/dist/spa/src/*"
6
+ "../../../adminforth/spa/src/*"
7
7
  ],
8
8
  "*": [
9
- "../node_modules/adminforth/dist/spa/node_modules/*"
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": ".", // This should point to your project root
3
+ "baseUrl": ".",
4
4
  "paths": {
5
5
  "@/*": [
6
- "../node_modules/adminforth/dist/spa/src/*"
6
+ "../../../adminforth/spa/src/*"
7
7
  ],
8
8
  "*": [
9
- "../node_modules/adminforth/dist/spa/node_modules/*"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/login-captcha",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",