add bao mat
All checks were successful
Deploy on Master Change / deploy (push) Successful in 38s

This commit is contained in:
2026-07-01 14:07:55 +07:00
parent a3b986674e
commit 385103a0bf
5 changed files with 123 additions and 34 deletions

View File

@@ -8,6 +8,15 @@ import {
renderSecurePdf,
renderSecureText,
} from './examViewer.js';
import * as GoApp from '../wailsjs/go/main/App.js';
// Map Wails bindings to window.go.main.App for backward compatibility with obfuscated builds
window.go = window.go || {};
window.go.main = window.go.main || {};
if (typeof window.go.main.App === 'undefined') {
window.go.main.App = GoApp;
window.go.main._custom = true;
}
const brandLogoHtml = `<img src="${logoUrl}" alt="Simple Care" class="brand-logo-img" />`;
@@ -54,7 +63,10 @@ webcamCanvas.style.display = 'none';
document.body.appendChild(webcamCanvas);
function init() {
if (typeof window.go === 'undefined' || typeof window.go.main === 'undefined') {
const ready = (typeof window.ObfuscatedCall === 'function') ||
(typeof window.go !== 'undefined' && typeof window.go.main !== 'undefined' && !window.go.main._custom);
if (!ready || typeof window.runtime === 'undefined') {
setTimeout(init, 200);
return;
}

View File

@@ -3,89 +3,89 @@
// This file is automatically generated. DO NOT EDIT
export function CheckLoginStatus() {
return window['go']['main']['App']['CheckLoginStatus']();
return ObfuscatedCall(0, []);
}
export function ClearChatUnread() {
return window['go']['main']['App']['ClearChatUnread']();
return ObfuscatedCall(1, []);
}
export function DownloadExamResource(arg1) {
return window['go']['main']['App']['DownloadExamResource'](arg1);
return ObfuscatedCall(2, [arg1]);
}
export function GetChatConversations() {
return window['go']['main']['App']['GetChatConversations']();
return ObfuscatedCall(3, []);
}
export function GetChatMessages(arg1) {
return window['go']['main']['App']['GetChatMessages'](arg1);
return ObfuscatedCall(4, [arg1]);
}
export function GetChatUnread() {
return window['go']['main']['App']['GetChatUnread']();
return ObfuscatedCall(5, []);
}
export function GetExamPaperFiles() {
return window['go']['main']['App']['GetExamPaperFiles']();
return ObfuscatedCall(6, []);
}
export function GetExamPaperViewURL() {
return window['go']['main']['App']['GetExamPaperViewURL']();
return ObfuscatedCall(7, []);
}
export function GetExamQuizViewURL() {
return window['go']['main']['App']['GetExamQuizViewURL']();
return ObfuscatedCall(8, []);
}
export function GetStats() {
return window['go']['main']['App']['GetStats']();
return ObfuscatedCall(9, []);
}
export function GetStudentInfo() {
return window['go']['main']['App']['GetStudentInfo']();
return ObfuscatedCall(10, []);
}
export function LoadExamViewFile(arg1) {
return window['go']['main']['App']['LoadExamViewFile'](arg1);
return ObfuscatedCall(11, [arg1]);
}
export function Logout() {
return window['go']['main']['App']['Logout']();
return ObfuscatedCall(12, []);
}
export function NavigateToLogin() {
return window['go']['main']['App']['NavigateToLogin']();
return ObfuscatedCall(13, []);
}
export function OpenExamPaper() {
return window['go']['main']['App']['OpenExamPaper']();
return ObfuscatedCall(14, []);
}
export function OpenExamQuiz() {
return window['go']['main']['App']['OpenExamQuiz']();
return ObfuscatedCall(15, []);
}
export function OpenExamResource(arg1) {
return window['go']['main']['App']['OpenExamResource'](arg1);
return ObfuscatedCall(16, [arg1]);
}
export function ReturnToDashboard() {
return window['go']['main']['App']['ReturnToDashboard']();
return ObfuscatedCall(17, []);
}
export function SendChatMessage(arg1) {
return window['go']['main']['App']['SendChatMessage'](arg1);
return ObfuscatedCall(18, [arg1]);
}
export function SendWebcamFrame(arg1) {
return window['go']['main']['App']['SendWebcamFrame'](arg1);
return ObfuscatedCall(19, [arg1]);
}
export function SubmitExamWork() {
return window['go']['main']['App']['SubmitExamWork']();
return ObfuscatedCall(20, []);
}
export function UnlockChatAudio() {
return window['go']['main']['App']['UnlockChatAudio']();
return ObfuscatedCall(21, []);
}