Compare commits

...

7 Commits

Author SHA1 Message Date
819cdfbb4c Bump version 2023-10-27 16:10:26 +02:00
8ce355df58 #442 2023-10-27 16:10:11 +02:00
4a01450a2e Bump version 2023-10-26 12:35:38 +02:00
312e3fcca5 Update ci.yaml 2023-10-26 12:35:01 +02:00
548b2a4e64 Merge pull request #442 from anankul/patch-1
v6: Use message string for the supported applications
2023-10-26 12:34:15 +02:00
23d6939a83 Update src/lib/pages/LoginConfigTotp.tsx 2023-10-26 12:33:52 +02:00
73b3896671 Use message string for the supported applications
Apparently, the totp.policy.supportedApplications array returns the message keys for the apps, they need to be replaced by actual translation.
2023-10-25 17:43:20 -07:00
3 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
@ -132,7 +133,7 @@ jobs:
if [ "$IS_PRE_RELEASE" = "true" ]; then
EXTRA_ARGS="--tag next"
fi
npm publish $EXTRA_ARGS
npm publish $EXTRA_ARGS --tag previous
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
VERSION: ${{ needs.check_if_version_upgraded.outputs.to_version }}

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "6.13.2",
"version": "6.13.4",
"description": "Create Keycloak themes using React",
"repository": {
"type": "git",

View File

@ -2,7 +2,7 @@ import React from "react";
import { clsx } from "../tools/clsx";
import type { PageProps } from "../KcProps";
import type { KcContextBase } from "../getKcContext";
import type { I18nBase } from "../i18n";
import type { I18nBase, MessageKeyBase } from "../i18n";
export default function LoginConfigTotp(props: PageProps<Extract<KcContextBase, { pageId: "login-config-totp.ftl" }>, I18nBase>) {
const { kcContext, i18n, doFetchDefaultThemeResources = true, Template, ...kcProps } = props;
@ -29,7 +29,7 @@ export default function LoginConfigTotp(props: PageProps<Extract<KcContextBase,
<ul id="kc-totp-supported-apps">
{totp.policy.supportedApplications.map(app => (
<li>{app}</li>
<li>{msg(app as MessageKeyBase) == undefined ? app : msg(app as MessageKeyBase)}</li>
))}
</ul>
</li>