UNPKG

@nocobase/plugin-verification

Version:

User identity verification management, including SMS, TOTP authenticator, with extensibility.

30 lines (29 loc) 1.19 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { UserCenterActionItemModel } from '@nocobase/client-v2'; /** * User Center entry that opens the "My verifiers" drawer. Section is * `profile` so it sits next to language / theme controls. Sort is * tightened to 150 to match v1's ordering, where Verification lived * between Profile (100) and Theme (200). * * The base `UserCenterTextItemView` renders `getLabelNode()`, which by * default routes through `this.context.t(label)` with no namespace — * that would never resolve the verification-namespaced key. Override * the node directly so the verification i18n namespace is consulted. */ export declare class VerificationUserCenterItemModel extends UserCenterActionItemModel { static itemId: string; section: "profile"; sort: number; label: string; getLabelNode(): string; onClick(): Promise<void>; } export default VerificationUserCenterItemModel;