Frontend Configuration

Note: These configurations are currently managed by Advance Intelligence (AAI).

This document describes the structure and usage of the system configuration file. The configuration uses a modular JSON format, allowing flexible extension and merging.The configuration includes the following three main modules:


1. Theme Configuration

Description

The theme supports two modes: light (light mode) and dark (dark mode), and both can coexist.They share the same configuration structure, and support the following fields:

Users are free to choose which fields to configure in each mode — there is no requirement to provide all fields. Any field left unconfigured will fall back to a default value

Default Configuration

The following lists all supported configuration fields. If the user does not provide any configuration, the system will use the following default settings by default.

 

Configuration Example

For example, if you want to modify the text color and button background color in the light theme, you can use the following JSON configuration.


2. Language Configuration

Description

Fields can be defined as needed and will be automatically merged. There is no need to redefine default values.

Default Language Configuration

Configuration Example

For example, if you want to modify the title, button text, and description on the start page of the document, you can use the following JSON configuration.

 

3. Feature Configuration

Field Description

ModuleField NameTypeDefaultDescription
GlobalenableFallbackbooleanTRUEAllow redirect to fallback page?
Document (ID Recognition)scanTimeoutnumber20Document scan timeout (in seconds)
DocumentshowStartPagebooleanTRUEWhether to show the start guide page before ID recognition
DocumentuploadModeenumrealtime_captureDetermines the image upload method (realtime_capture for direct camera access, gallery for only selecting from device storage). Enum: realtime_capture,gallery
DocumentgalleryIntegrationenumdisabledConfigures access behavior during real-time capture (always show gallery entry, fallback show only on fallback page, disabled hide gallery entry). Enum: always,fallback,disabled
Liveness DetectionscanTimeoutnumber30galleryLiveness detection timeout (in seconds)
Liveness DetectionshowStartPagebooleanTRUEWhether to show the start guide page before liveness detection

Configuration Example

 


4. Visual Configuration Guide

Below is a sample configuration for the detail page.You can follow the visual guide in the image to complete the detailed configuration

Document Start Screen

img

Document Scan Screen

img

Document Manual Scan Screen

img

Liveness Start Screen

img

Liveness Scan Screen

img

No Permission Screen

img

Fallback

img

Result Screen

img

Recognition Modal

img