Information Feedback
While TechUI Core (Wasm) operates silently in the background most of the time, it provides a comprehensive information feedback mechanism designed to display authorization status, operational health, and necessary blocking alerts to developers.
These status messages are primarily distributed across the DOM structure, browser title, Console, and interactive APIs.
DOM Implicit Signature
To establish authentic identity without interfering with the page visuals, the Wasm module injects an HTML comment at the end of the <body> or <html> tag.
- Location: Bottom of the DevTools -> Elements panel.
- Content: Includes the currently loaded component library version, authorized entity, expiration date, and contact information.
- Purpose: This acts as a "silent watermark." Even if the page UI is obscured, authorization ownership can be confirmed by inspecting the source code.
<!--
TechUI Base v0.1
This license is granted by [Your Company Name] to [Customer's Company Name]
Valid until: Permanent Company License
Contact Information
-->
<!--
TechUI Base v0.1
Currently the free version
https://techui.net https://techui.cn
-->Browser Title Interaction
The Wasm guard has the right to temporarily take over document.title to enhance brand exposure or perform security verification.
- Project Binding:
- If the license has
projectBind: trueenabled, the guard will lock the browser title. If it detects that the title does not contain the specified project name, it will trigger a warning or a circuit break. - Project licenses have this option enabled by default.
- This option is optional for development licenses.
- If the license has
- Auth Flash:
- During component initialization or at random intervals, the browser title may briefly change to "Authorized to [Your Company Name]".
- It automatically reverts to the original title after approximately 3 seconds. This is an anti-piracy mechanism used to clarify the legal ownership of the current system.
- Free licenses will not modify or take over the title in any way.
Console Panel
The DevTools Console panel is the primary channel for communication between TechUI and developers.
Initialization Badge
After the component library loads successfully, it outputs styled Badge information in the console.
- Content: Displays the component version, days remaining until expiration (countdown), and the authorization chain.
- Status:
- 🟦 Blue: Normal authorization / Development license / Informational prompts.
- 🟨 Yellow: Trial mode / Imminent expiration warning.
- 🟥 Red: Invalid authorization / Expired.
Runtime Alerts
When the INFO module detects an anomaly, it directly outputs corresponding multi-language prompts:
[TechUI Warn] Current domain does not match the domain restricted by the license.[TechUI Error] Detected that the native browser methods relied upon by the WASM module have been tampered with.
Interactive Diagnostic API
To facilitate deep debugging for developers, the Core module exposes a global function tuiCoreInfo('pandoraKey'). It returns different levels of status information based on the parameters passed.
🛡️ Level 1: Public Declaration
Invocation: tuiCoreInfo() (No parameters) Target Audience: End users, visitors. Returned Content: Returns only legal statements and copyright warnings; no internal parameters are exposed.
Statement: This component library authorization is legal and valid. To protect legitimate rights and interests, please do not copy or leak license files. Any unauthorized sharing will result in the termination of after-sales service and the blacklisting of authorization information.
🔧 Level 2: Client Debugging
Invocation: tuiCoreInfo('YOUR_CLIENT_KEY')Target Audience: Developers/customers holding a Client Key. Returned Content: Returns masked Global State, License Info, and Sub-License Info. Used to troubleshoot issues such as "Why is my authorization not taking effect?"
// Console output example
GLOBALSTATE: {
"environment": "dev",
"licenseState": "true",
"subLicExpired": "true", // <--- Quickly locate the problem: Sub-license expired
...
}
LICENSEINFO: {
"company": "Yinzheng Software Studio Base",
"expDate": "endless",
...
}
SUBLICENSEINFO: {
"company": "aYinStudio Base", // Final Customer
"expDate": "20251121",
...
}🔐 Level 3: Kernel Audit (Admin Audit)
Invocation: tuiCoreInfo('ADMIN_KEY')Target Audience: TechUI official technical support. Returned Content: Displays all raw states in memory, hash values, and unmasked parameters for troubleshooting complex low-level bugs.
Circuit Breaker Screen
When the system triggers a Level 3 Circuit Break (e.g., severe tampering, expired license, blacklisted region), TechUI will forcibly remove all DOM nodes and render a full-screen error prompt.
- Visual Presentation: Full black background with a centered error icon.
- Information Included:
- Specific error code (e.g.,
subLicDateValid). - Concise reason for the error (e.g., "Sub-license has expired").
- Current authorization ownership and contact information.
⚠️ What to do if you encounter this screen?
Please take a screenshot of this screen and send it to TechUI technical support or your software provider. The error code is the sole credential for locating the problem.