@adminforth/two-factors-auth 1.0.31 → 1.0.33

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.
@@ -13,7 +13,7 @@
13
13
  <!-- Modal content -->
14
14
  <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
15
15
  <div class="p-8 w-full max-w-md max-h-full" >
16
- <div class="m-3">Please enter your authenticator code </div>
16
+ <div class="m-3">{{$t('Please enter your authenticator code')}} </div>
17
17
  <div class="my-4 flex justify-center items-center">
18
18
  <v-otp-input
19
19
  ref="code"
@@ -28,7 +28,7 @@
28
28
  />
29
29
  </div>
30
30
  <!-- <Vue2FACodeInput v-model="code"/> -->
31
- <LinkButton to="/login" class="w-full">Back to login</LinkButton>
31
+ <LinkButton to="/login" class="w-full">{{$t('Back to login')}}</LinkButton>
32
32
  </div>
33
33
  </div>
34
34
  </div>
@@ -13,15 +13,15 @@
13
13
  <!-- Modal content -->
14
14
  <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
15
15
  <div class="p-8 w-full max-w-md max-h-full" >
16
- <div class="m-3" >Scan this QR code with your authenticator app or open by <a class="text-blue-600" :href="totpUri">click</a></div>
16
+ <div class="m-3" >{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
17
17
  <div class="flex justify-center m-3" >
18
18
  <img :src="totpQrCode" alt="QR code" />
19
19
  </div>
20
20
  <div class="m-3 ">
21
- <div class="m-1">Or copy this code to app manually:</div>
21
+ <div class="m-1">{{$t('Or copy this code to app manually:')}}</div>
22
22
  <div class="w-full max-w-[46rem]">
23
23
  <div class="relative">
24
- <label for="npm-install-copy-text" class="sr-only">Label</label>
24
+ <label for="npm-install-copy-text" class="sr-only">{{$t('Label')}}</label>
25
25
  <input id="npm-install-copy-text" type="text" class="col-span-10 bg-gray-50 border border-gray-300 text-gray-500 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-2.5 py-4 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500 pr-12" :value="totp.newSecret" readonly>
26
26
  <button @click="onCopyClick" data-copy-to-clipboard-target="npm-install-copy-text" class="absolute end-2.5 top-1/2 -translate-y-1/2 text-gray-900 dark:text-gray-400 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-2.5 inline-flex items-center justify-center bg-white border-gray-200 border">
27
27
  <span id="default-message" class="inline-flex items-center">
@@ -48,10 +48,10 @@
48
48
  <!-- <Vue2FACodeInput v-model="code" autofocus /> -->
49
49
  <div class="flex flex-row gap-2.5">
50
50
  <LinkButton to="/login" class="w-full">
51
- Back to login
51
+ {{$t('Back to login')}}
52
52
  </LinkButton>
53
53
  <Button v-if="skipAllowed" @click="handleSkip" class="w-full">
54
- Skip for now
54
+ {{$t('Skip for now')}}
55
55
  </Button>
56
56
  </div>
57
57
  </div>
@@ -13,7 +13,7 @@
13
13
  <!-- Modal content -->
14
14
  <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
15
15
  <div class="p-8 w-full max-w-md max-h-full" >
16
- <div class="m-3">Please enter your authenticator code </div>
16
+ <div class="m-3">{{$t('Please enter your authenticator code')}} </div>
17
17
  <div class="my-4 flex justify-center items-center">
18
18
  <v-otp-input
19
19
  ref="code"
@@ -28,7 +28,7 @@
28
28
  />
29
29
  </div>
30
30
  <!-- <Vue2FACodeInput v-model="code"/> -->
31
- <LinkButton to="/login" class="w-full">Back to login</LinkButton>
31
+ <LinkButton to="/login" class="w-full">{{$t('Back to login')}}</LinkButton>
32
32
  </div>
33
33
  </div>
34
34
  </div>
File without changes
@@ -13,15 +13,15 @@
13
13
  <!-- Modal content -->
14
14
  <div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
15
15
  <div class="p-8 w-full max-w-md max-h-full" >
16
- <div class="m-3" >Scan this QR code with your authenticator app or open by <a class="text-blue-600" :href="totpUri">click</a></div>
16
+ <div class="m-3" >{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
17
17
  <div class="flex justify-center m-3" >
18
18
  <img :src="totpQrCode" alt="QR code" />
19
19
  </div>
20
20
  <div class="m-3 ">
21
- <div class="m-1">Or copy this code to app manually:</div>
21
+ <div class="m-1">{{$t('Or copy this code to app manually:')}}</div>
22
22
  <div class="w-full max-w-[46rem]">
23
23
  <div class="relative">
24
- <label for="npm-install-copy-text" class="sr-only">Label</label>
24
+ <label for="npm-install-copy-text" class="sr-only">{{$t('Label')}}</label>
25
25
  <input id="npm-install-copy-text" type="text" class="col-span-10 bg-gray-50 border border-gray-300 text-gray-500 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-2.5 py-4 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500 pr-12" :value="totp.newSecret" readonly>
26
26
  <button @click="onCopyClick" data-copy-to-clipboard-target="npm-install-copy-text" class="absolute end-2.5 top-1/2 -translate-y-1/2 text-gray-900 dark:text-gray-400 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-2.5 inline-flex items-center justify-center bg-white border-gray-200 border">
27
27
  <span id="default-message" class="inline-flex items-center">
@@ -48,10 +48,10 @@
48
48
  <!-- <Vue2FACodeInput v-model="code" autofocus /> -->
49
49
  <div class="flex flex-row gap-2.5">
50
50
  <LinkButton to="/login" class="w-full">
51
- Back to login
51
+ {{$t('Back to login')}}
52
52
  </LinkButton>
53
53
  <Button v-if="skipAllowed" @click="handleSkip" class="w-full">
54
- Skip for now
54
+ {{$t('Skip for now')}}
55
55
  </Button>
56
56
  </div>
57
57
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",