m
This commit is contained in:
@@ -10,5 +10,6 @@ export {
|
||||
CategoryInfo,
|
||||
DescriptiveGradingRecord,
|
||||
Question,
|
||||
TargetInfo
|
||||
TargetInfo,
|
||||
User
|
||||
} from "./models.js";
|
||||
|
||||
@@ -200,3 +200,56 @@ export class TargetInfo {
|
||||
return new TargetInfo($$parsedSource as Partial<TargetInfo>);
|
||||
}
|
||||
}
|
||||
|
||||
export class User {
|
||||
"id": number;
|
||||
"username": string;
|
||||
"password": string;
|
||||
"nickname": string;
|
||||
"phone": string;
|
||||
|
||||
/**
|
||||
* 'pending', 'approved', 'rejected'
|
||||
*/
|
||||
"status": string;
|
||||
"apiKey": string;
|
||||
"createdAt": string;
|
||||
|
||||
/** Creates a new User instance. */
|
||||
constructor($$source: Partial<User> = {}) {
|
||||
if (!("id" in $$source)) {
|
||||
this["id"] = 0;
|
||||
}
|
||||
if (!("username" in $$source)) {
|
||||
this["username"] = "";
|
||||
}
|
||||
if (!("password" in $$source)) {
|
||||
this["password"] = "";
|
||||
}
|
||||
if (!("nickname" in $$source)) {
|
||||
this["nickname"] = "";
|
||||
}
|
||||
if (!("phone" in $$source)) {
|
||||
this["phone"] = "";
|
||||
}
|
||||
if (!("status" in $$source)) {
|
||||
this["status"] = "";
|
||||
}
|
||||
if (!("apiKey" in $$source)) {
|
||||
this["apiKey"] = "";
|
||||
}
|
||||
if (!("createdAt" in $$source)) {
|
||||
this["createdAt"] = "";
|
||||
}
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new User instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): User {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new User($$parsedSource as Partial<User>);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,15 +5,33 @@
|
||||
// @ts-ignore: Unused imports
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as application$0 from "../github.com/wailsapp/wails/v3/pkg/application/models.js";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as $models from "./models.js";
|
||||
|
||||
/**
|
||||
* AddBookmark adds a source and question ID to the Bookmark table
|
||||
* AddBookmark adds a source and question ID to the Bookmark table for a user
|
||||
*/
|
||||
export function AddBookmark(source: string, questionID: number): $CancellablePromise<void> {
|
||||
return $Call.ByID(2172709195, source, questionID);
|
||||
export function AddBookmark(username: string, source: string, questionID: number): $CancellablePromise<void> {
|
||||
return $Call.ByID(2172709195, username, source, questionID);
|
||||
}
|
||||
|
||||
/**
|
||||
* AddGeminiKey adds a new Gemini API Key to database
|
||||
*/
|
||||
export function AddGeminiKey(key: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(4245109295, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* ApproveRegistration approves a registration request
|
||||
*/
|
||||
export function ApproveRegistration(username: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(3158451936, username);
|
||||
}
|
||||
|
||||
export function AskGemini(source: string, id: number, prompt: string, base64Image: string): $CancellablePromise<string> {
|
||||
@@ -21,28 +39,49 @@ export function AskGemini(source: string, id: number, prompt: string, base64Imag
|
||||
}
|
||||
|
||||
/**
|
||||
* GetBookmarkedCategories retrieves categories that have bookmarked questions
|
||||
* ChangePassword updates user password
|
||||
*/
|
||||
export function GetBookmarkedCategories(): $CancellablePromise<$models.CategoryInfo[]> {
|
||||
return $Call.ByID(2614333737).then(($result: any) => {
|
||||
export function ChangePassword(username: string, oldPassword: string, newPassword: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(182621021, username, oldPassword, newPassword);
|
||||
}
|
||||
|
||||
/**
|
||||
* DeleteGeminiKey deletes a Gemini API Key from database
|
||||
*/
|
||||
export function DeleteGeminiKey(key: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(939796543, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* DeleteUser deletes a user from Users table (admin only)
|
||||
*/
|
||||
export function DeleteUser(username: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(4061081732, username);
|
||||
}
|
||||
|
||||
/**
|
||||
* GetBookmarkedCategories retrieves categories that have bookmarked questions for a user
|
||||
*/
|
||||
export function GetBookmarkedCategories(username: string): $CancellablePromise<$models.CategoryInfo[]> {
|
||||
return $Call.ByID(2614333737, username).then(($result: any) => {
|
||||
return $$createType1($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* GetBookmarkedQuestions retrieves all bookmarked questions for a given category and difficulty
|
||||
* GetBookmarkedQuestions retrieves all bookmarked questions for a given category and difficulty for a user
|
||||
*/
|
||||
export function GetBookmarkedQuestions(category: string, difficulty: string): $CancellablePromise<$models.Question[]> {
|
||||
return $Call.ByID(1774610406, category, difficulty).then(($result: any) => {
|
||||
export function GetBookmarkedQuestions(username: string, category: string, difficulty: string): $CancellablePromise<$models.Question[]> {
|
||||
return $Call.ByID(1774610406, username, category, difficulty).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* GetBookmarkedTargets retrieves difficulties (targets) that have bookmarked questions within a category
|
||||
* GetBookmarkedTargets retrieves difficulties (targets) that have bookmarked questions within a category for a user
|
||||
*/
|
||||
export function GetBookmarkedTargets(category: string): $CancellablePromise<$models.TargetInfo[]> {
|
||||
return $Call.ByID(859878861, category).then(($result: any) => {
|
||||
export function GetBookmarkedTargets(username: string, category: string): $CancellablePromise<$models.TargetInfo[]> {
|
||||
return $Call.ByID(859878861, username, category).then(($result: any) => {
|
||||
return $$createType5($result);
|
||||
});
|
||||
}
|
||||
@@ -53,14 +92,48 @@ export function GetCategories(): $CancellablePromise<$models.CategoryInfo[]> {
|
||||
});
|
||||
}
|
||||
|
||||
export function GetDescriptiveGradingHistory(source: string, questionID: number): $CancellablePromise<$models.DescriptiveGradingRecord[]> {
|
||||
return $Call.ByID(1670245718, source, questionID).then(($result: any) => {
|
||||
/**
|
||||
* GetCategoriesForUser retrieves categories based on user authorization
|
||||
*/
|
||||
export function GetCategoriesForUser(username: string): $CancellablePromise<$models.CategoryInfo[]> {
|
||||
return $Call.ByID(2664331048, username).then(($result: any) => {
|
||||
return $$createType1($result);
|
||||
});
|
||||
}
|
||||
|
||||
export function GetDescriptiveGradingHistory(username: string, source: string, questionID: number): $CancellablePromise<$models.DescriptiveGradingRecord[]> {
|
||||
return $Call.ByID(1670245718, username, source, questionID).then(($result: any) => {
|
||||
return $$createType7($result);
|
||||
});
|
||||
}
|
||||
|
||||
export function GetQuestions(category: string, difficulty: string, subject: string): $CancellablePromise<$models.Question[]> {
|
||||
return $Call.ByID(2580577541, category, difficulty, subject).then(($result: any) => {
|
||||
/**
|
||||
* GetGeminiKeys returns all stored Gemini API Keys
|
||||
*/
|
||||
export function GetGeminiKeys(): $CancellablePromise<string[]> {
|
||||
return $Call.ByID(2410372615).then(($result: any) => {
|
||||
return $$createType8($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* GetPendingRegistrations retrieves list of pending sign-ups (admin only)
|
||||
*/
|
||||
export function GetPendingRegistrations(): $CancellablePromise<$models.User[]> {
|
||||
return $Call.ByID(1284545415).then(($result: any) => {
|
||||
return $$createType10($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* GetPreferredModel returns the user's preferred Gemini model from database
|
||||
*/
|
||||
export function GetPreferredModel(): $CancellablePromise<string> {
|
||||
return $Call.ByID(2043611586);
|
||||
}
|
||||
|
||||
export function GetQuestions(username: string, category: string, difficulty: string, subject: string): $CancellablePromise<$models.Question[]> {
|
||||
return $Call.ByID(2580577541, username, category, difficulty, subject).then(($result: any) => {
|
||||
return $$createType3($result);
|
||||
});
|
||||
}
|
||||
@@ -77,23 +150,68 @@ export function GetTargets(category: string): $CancellablePromise<$models.Target
|
||||
});
|
||||
}
|
||||
|
||||
export function GradeDescriptiveAnswer(source: string, questionID: number, userAnswer: string): $CancellablePromise<$models.DescriptiveGradingRecord | null> {
|
||||
return $Call.ByID(642001377, source, questionID, userAnswer).then(($result: any) => {
|
||||
return $$createType9($result);
|
||||
/**
|
||||
* GetUserAllowedCategories returns allowed category names for a specific user
|
||||
*/
|
||||
export function GetUserAllowedCategories(username: string): $CancellablePromise<string[]> {
|
||||
return $Call.ByID(850277733, username).then(($result: any) => {
|
||||
return $$createType8($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* RemoveBookmark removes a source and question ID from the Bookmark table
|
||||
* GetUsers returns list of all users (admin only)
|
||||
*/
|
||||
export function RemoveBookmark(source: string, questionID: number): $CancellablePromise<void> {
|
||||
return $Call.ByID(189585076, source, questionID);
|
||||
export function GetUsers(): $CancellablePromise<$models.User[]> {
|
||||
return $Call.ByID(4202172424).then(($result: any) => {
|
||||
return $$createType10($result);
|
||||
});
|
||||
}
|
||||
|
||||
export function GradeDescriptiveAnswer(username: string, source: string, questionID: number, userAnswer: string): $CancellablePromise<$models.DescriptiveGradingRecord | null> {
|
||||
return $Call.ByID(642001377, username, source, questionID, userAnswer).then(($result: any) => {
|
||||
return $$createType11($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Login authenticates a user
|
||||
*/
|
||||
export function Login(username: string, password: string): $CancellablePromise<$models.User | null> {
|
||||
return $Call.ByID(3841810241, username, password).then(($result: any) => {
|
||||
return $$createType12($result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Register creates a new registration application
|
||||
*/
|
||||
export function Register(username: string, password: string, nickname: string, phone: string, apiKey: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(2274424021, username, password, nickname, phone, apiKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* RejectRegistration rejects a registration request
|
||||
*/
|
||||
export function RejectRegistration(username: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(822104546, username);
|
||||
}
|
||||
|
||||
/**
|
||||
* RemoveBookmark removes a source and question ID from the Bookmark table for a user
|
||||
*/
|
||||
export function RemoveBookmark(username: string, source: string, questionID: number): $CancellablePromise<void> {
|
||||
return $Call.ByID(189585076, username, source, questionID);
|
||||
}
|
||||
|
||||
export function SaveAiExplanation(source: string, id: number, explanation: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(71515486, source, id, explanation);
|
||||
}
|
||||
|
||||
export function SetApp(app: application$0.App | null): $CancellablePromise<void> {
|
||||
return $Call.ByID(1456464199, app);
|
||||
}
|
||||
|
||||
/**
|
||||
* SetGeminiKey sets the API key for Gemini calls
|
||||
*/
|
||||
@@ -101,6 +219,34 @@ export function SetGeminiKey(key: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(2865570266, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* SetPreferredModel saves the user's preferred Gemini model to database
|
||||
*/
|
||||
export function SetPreferredModel(modelName: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(1264102078, modelName);
|
||||
}
|
||||
|
||||
/**
|
||||
* SetUserAllowedCategories replaces user's allowed categories
|
||||
*/
|
||||
export function SetUserAllowedCategories(username: string, categories: string[]): $CancellablePromise<void> {
|
||||
return $Call.ByID(2086723649, username, categories);
|
||||
}
|
||||
|
||||
/**
|
||||
* UpdateUserApiKey updates a user's personal API key in Users table and seeds it to GeminiKeys
|
||||
*/
|
||||
export function UpdateUserApiKey(username: string, apiKey: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(1770417973, username, apiKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* UpdateUserInfoForce updates user details by admin force (admin only)
|
||||
*/
|
||||
export function UpdateUserInfoForce(username: string, nickname: string, phone: string, password: string): $CancellablePromise<void> {
|
||||
return $Call.ByID(1431090105, username, nickname, phone, password);
|
||||
}
|
||||
|
||||
// Private type creation functions
|
||||
const $$createType0 = $models.CategoryInfo.createFrom;
|
||||
const $$createType1 = $Create.Array($$createType0);
|
||||
@@ -111,4 +257,7 @@ const $$createType5 = $Create.Array($$createType4);
|
||||
const $$createType6 = $models.DescriptiveGradingRecord.createFrom;
|
||||
const $$createType7 = $Create.Array($$createType6);
|
||||
const $$createType8 = $Create.Array($Create.Any);
|
||||
const $$createType9 = $Create.Nullable($$createType6);
|
||||
const $$createType9 = $models.User.createFrom;
|
||||
const $$createType10 = $Create.Array($$createType9);
|
||||
const $$createType11 = $Create.Nullable($$createType6);
|
||||
const $$createType12 = $Create.Nullable($$createType9);
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export {
|
||||
App,
|
||||
AutostartManager,
|
||||
BrowserManager,
|
||||
ClipboardManager,
|
||||
ContextMenuManager,
|
||||
DialogManager,
|
||||
EnvironmentManager,
|
||||
EventManager,
|
||||
KeyBindingManager,
|
||||
MenuManager,
|
||||
ScreenManager,
|
||||
SystemTrayManager,
|
||||
WindowManager
|
||||
} from "./models.js";
|
||||
@@ -0,0 +1,427 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import { Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as updater$0 from "../updater/models.js";
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import * as slog$0 from "../../../../../../log/slog/models.js";
|
||||
|
||||
export class App {
|
||||
/**
|
||||
* Manager pattern for organized API
|
||||
*/
|
||||
"Window": WindowManager | null;
|
||||
"ContextMenu": ContextMenuManager | null;
|
||||
"KeyBinding": KeyBindingManager | null;
|
||||
"Browser": BrowserManager | null;
|
||||
"Env": EnvironmentManager | null;
|
||||
"Dialog": DialogManager | null;
|
||||
"Event": EventManager | null;
|
||||
"Menu": MenuManager | null;
|
||||
"Screen": ScreenManager | null;
|
||||
"Clipboard": ClipboardManager | null;
|
||||
"SystemTray": SystemTrayManager | null;
|
||||
"Autostart": AutostartManager | null;
|
||||
"Updater": updater$0.Updater | null;
|
||||
"Logger": slog$0.Logger | null;
|
||||
|
||||
/** Creates a new App instance. */
|
||||
constructor($$source: Partial<App> = {}) {
|
||||
if (!("Window" in $$source)) {
|
||||
this["Window"] = null;
|
||||
}
|
||||
if (!("ContextMenu" in $$source)) {
|
||||
this["ContextMenu"] = null;
|
||||
}
|
||||
if (!("KeyBinding" in $$source)) {
|
||||
this["KeyBinding"] = null;
|
||||
}
|
||||
if (!("Browser" in $$source)) {
|
||||
this["Browser"] = null;
|
||||
}
|
||||
if (!("Env" in $$source)) {
|
||||
this["Env"] = null;
|
||||
}
|
||||
if (!("Dialog" in $$source)) {
|
||||
this["Dialog"] = null;
|
||||
}
|
||||
if (!("Event" in $$source)) {
|
||||
this["Event"] = null;
|
||||
}
|
||||
if (!("Menu" in $$source)) {
|
||||
this["Menu"] = null;
|
||||
}
|
||||
if (!("Screen" in $$source)) {
|
||||
this["Screen"] = null;
|
||||
}
|
||||
if (!("Clipboard" in $$source)) {
|
||||
this["Clipboard"] = null;
|
||||
}
|
||||
if (!("SystemTray" in $$source)) {
|
||||
this["SystemTray"] = null;
|
||||
}
|
||||
if (!("Autostart" in $$source)) {
|
||||
this["Autostart"] = null;
|
||||
}
|
||||
if (!("Updater" in $$source)) {
|
||||
this["Updater"] = null;
|
||||
}
|
||||
if (!("Logger" in $$source)) {
|
||||
this["Logger"] = null;
|
||||
}
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new App instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): App {
|
||||
const $$createField0_0 = $$createType1;
|
||||
const $$createField1_0 = $$createType3;
|
||||
const $$createField2_0 = $$createType5;
|
||||
const $$createField3_0 = $$createType7;
|
||||
const $$createField4_0 = $$createType9;
|
||||
const $$createField5_0 = $$createType11;
|
||||
const $$createField6_0 = $$createType13;
|
||||
const $$createField7_0 = $$createType15;
|
||||
const $$createField8_0 = $$createType17;
|
||||
const $$createField9_0 = $$createType19;
|
||||
const $$createField10_0 = $$createType21;
|
||||
const $$createField11_0 = $$createType23;
|
||||
const $$createField12_0 = $$createType25;
|
||||
const $$createField13_0 = $$createType27;
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
if ("Window" in $$parsedSource) {
|
||||
$$parsedSource["Window"] = $$createField0_0($$parsedSource["Window"]);
|
||||
}
|
||||
if ("ContextMenu" in $$parsedSource) {
|
||||
$$parsedSource["ContextMenu"] = $$createField1_0($$parsedSource["ContextMenu"]);
|
||||
}
|
||||
if ("KeyBinding" in $$parsedSource) {
|
||||
$$parsedSource["KeyBinding"] = $$createField2_0($$parsedSource["KeyBinding"]);
|
||||
}
|
||||
if ("Browser" in $$parsedSource) {
|
||||
$$parsedSource["Browser"] = $$createField3_0($$parsedSource["Browser"]);
|
||||
}
|
||||
if ("Env" in $$parsedSource) {
|
||||
$$parsedSource["Env"] = $$createField4_0($$parsedSource["Env"]);
|
||||
}
|
||||
if ("Dialog" in $$parsedSource) {
|
||||
$$parsedSource["Dialog"] = $$createField5_0($$parsedSource["Dialog"]);
|
||||
}
|
||||
if ("Event" in $$parsedSource) {
|
||||
$$parsedSource["Event"] = $$createField6_0($$parsedSource["Event"]);
|
||||
}
|
||||
if ("Menu" in $$parsedSource) {
|
||||
$$parsedSource["Menu"] = $$createField7_0($$parsedSource["Menu"]);
|
||||
}
|
||||
if ("Screen" in $$parsedSource) {
|
||||
$$parsedSource["Screen"] = $$createField8_0($$parsedSource["Screen"]);
|
||||
}
|
||||
if ("Clipboard" in $$parsedSource) {
|
||||
$$parsedSource["Clipboard"] = $$createField9_0($$parsedSource["Clipboard"]);
|
||||
}
|
||||
if ("SystemTray" in $$parsedSource) {
|
||||
$$parsedSource["SystemTray"] = $$createField10_0($$parsedSource["SystemTray"]);
|
||||
}
|
||||
if ("Autostart" in $$parsedSource) {
|
||||
$$parsedSource["Autostart"] = $$createField11_0($$parsedSource["Autostart"]);
|
||||
}
|
||||
if ("Updater" in $$parsedSource) {
|
||||
$$parsedSource["Updater"] = $$createField12_0($$parsedSource["Updater"]);
|
||||
}
|
||||
if ("Logger" in $$parsedSource) {
|
||||
$$parsedSource["Logger"] = $$createField13_0($$parsedSource["Logger"]);
|
||||
}
|
||||
return new App($$parsedSource as Partial<App>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* AutostartManager provides cross-platform control over whether the
|
||||
* application launches when the user logs in.
|
||||
*
|
||||
* Registration takes effect on the next login, not immediately.
|
||||
*
|
||||
* Platform behaviour:
|
||||
*
|
||||
* - macOS 13+ (bundled .app): SMAppService.mainAppService — works for
|
||||
* sandboxed and Mac-App-Store apps, no TCC automation prompt.
|
||||
* - macOS (older or unbundled): a LaunchAgent plist is written to
|
||||
* ~/Library/LaunchAgents/.
|
||||
* - Windows: a value is added under
|
||||
* HKCU\Software\Microsoft\Windows\CurrentVersion\Run.
|
||||
* - Linux: an .desktop file is written to $XDG_CONFIG_HOME/autostart/
|
||||
* (defaulting to ~/.config/autostart/).
|
||||
* - Android / iOS / server builds: ErrAutostartNotSupported.
|
||||
*/
|
||||
export class AutostartManager {
|
||||
|
||||
/** Creates a new AutostartManager instance. */
|
||||
constructor($$source: Partial<AutostartManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new AutostartManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): AutostartManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new AutostartManager($$parsedSource as Partial<AutostartManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* BrowserManager manages browser-related operations
|
||||
*/
|
||||
export class BrowserManager {
|
||||
|
||||
/** Creates a new BrowserManager instance. */
|
||||
constructor($$source: Partial<BrowserManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new BrowserManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): BrowserManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new BrowserManager($$parsedSource as Partial<BrowserManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ClipboardManager manages clipboard operations
|
||||
*/
|
||||
export class ClipboardManager {
|
||||
|
||||
/** Creates a new ClipboardManager instance. */
|
||||
constructor($$source: Partial<ClipboardManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ClipboardManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): ClipboardManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new ClipboardManager($$parsedSource as Partial<ClipboardManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ContextMenuManager manages all context menu operations
|
||||
*/
|
||||
export class ContextMenuManager {
|
||||
|
||||
/** Creates a new ContextMenuManager instance. */
|
||||
constructor($$source: Partial<ContextMenuManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ContextMenuManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): ContextMenuManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new ContextMenuManager($$parsedSource as Partial<ContextMenuManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DialogManager manages dialog-related operations
|
||||
*/
|
||||
export class DialogManager {
|
||||
|
||||
/** Creates a new DialogManager instance. */
|
||||
constructor($$source: Partial<DialogManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new DialogManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): DialogManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new DialogManager($$parsedSource as Partial<DialogManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EnvironmentManager manages environment-related operations
|
||||
*/
|
||||
export class EnvironmentManager {
|
||||
|
||||
/** Creates a new EnvironmentManager instance. */
|
||||
constructor($$source: Partial<EnvironmentManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new EnvironmentManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): EnvironmentManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new EnvironmentManager($$parsedSource as Partial<EnvironmentManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* EventManager manages event-related operations
|
||||
*/
|
||||
export class EventManager {
|
||||
|
||||
/** Creates a new EventManager instance. */
|
||||
constructor($$source: Partial<EventManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new EventManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): EventManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new EventManager($$parsedSource as Partial<EventManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* KeyBindingManager manages all key binding operations
|
||||
*/
|
||||
export class KeyBindingManager {
|
||||
|
||||
/** Creates a new KeyBindingManager instance. */
|
||||
constructor($$source: Partial<KeyBindingManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new KeyBindingManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): KeyBindingManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new KeyBindingManager($$parsedSource as Partial<KeyBindingManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MenuManager manages menu-related operations
|
||||
*/
|
||||
export class MenuManager {
|
||||
|
||||
/** Creates a new MenuManager instance. */
|
||||
constructor($$source: Partial<MenuManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new MenuManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): MenuManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new MenuManager($$parsedSource as Partial<MenuManager>);
|
||||
}
|
||||
}
|
||||
|
||||
export class ScreenManager {
|
||||
|
||||
/** Creates a new ScreenManager instance. */
|
||||
constructor($$source: Partial<ScreenManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ScreenManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): ScreenManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new ScreenManager($$parsedSource as Partial<ScreenManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* SystemTrayManager manages system tray-related operations
|
||||
*/
|
||||
export class SystemTrayManager {
|
||||
|
||||
/** Creates a new SystemTrayManager instance. */
|
||||
constructor($$source: Partial<SystemTrayManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new SystemTrayManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): SystemTrayManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new SystemTrayManager($$parsedSource as Partial<SystemTrayManager>);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* WindowManager manages all window-related operations
|
||||
*/
|
||||
export class WindowManager {
|
||||
|
||||
/** Creates a new WindowManager instance. */
|
||||
constructor($$source: Partial<WindowManager> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new WindowManager instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): WindowManager {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new WindowManager($$parsedSource as Partial<WindowManager>);
|
||||
}
|
||||
}
|
||||
|
||||
// Private type creation functions
|
||||
const $$createType0 = WindowManager.createFrom;
|
||||
const $$createType1 = $Create.Nullable($$createType0);
|
||||
const $$createType2 = ContextMenuManager.createFrom;
|
||||
const $$createType3 = $Create.Nullable($$createType2);
|
||||
const $$createType4 = KeyBindingManager.createFrom;
|
||||
const $$createType5 = $Create.Nullable($$createType4);
|
||||
const $$createType6 = BrowserManager.createFrom;
|
||||
const $$createType7 = $Create.Nullable($$createType6);
|
||||
const $$createType8 = EnvironmentManager.createFrom;
|
||||
const $$createType9 = $Create.Nullable($$createType8);
|
||||
const $$createType10 = DialogManager.createFrom;
|
||||
const $$createType11 = $Create.Nullable($$createType10);
|
||||
const $$createType12 = EventManager.createFrom;
|
||||
const $$createType13 = $Create.Nullable($$createType12);
|
||||
const $$createType14 = MenuManager.createFrom;
|
||||
const $$createType15 = $Create.Nullable($$createType14);
|
||||
const $$createType16 = ScreenManager.createFrom;
|
||||
const $$createType17 = $Create.Nullable($$createType16);
|
||||
const $$createType18 = ClipboardManager.createFrom;
|
||||
const $$createType19 = $Create.Nullable($$createType18);
|
||||
const $$createType20 = SystemTrayManager.createFrom;
|
||||
const $$createType21 = $Create.Nullable($$createType20);
|
||||
const $$createType22 = AutostartManager.createFrom;
|
||||
const $$createType23 = $Create.Nullable($$createType22);
|
||||
const $$createType24 = updater$0.Updater.createFrom;
|
||||
const $$createType25 = $Create.Nullable($$createType24);
|
||||
const $$createType26 = slog$0.Logger.createFrom;
|
||||
const $$createType27 = $Create.Nullable($$createType26);
|
||||
@@ -0,0 +1,6 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export {
|
||||
Updater
|
||||
} from "./models.js";
|
||||
@@ -0,0 +1,27 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import { Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* Updater is the singleton exposed as app.Updater. It is constructed during
|
||||
* application initialisation but does nothing useful until Init is called.
|
||||
*/
|
||||
export class Updater {
|
||||
|
||||
/** Creates a new Updater instance. */
|
||||
constructor($$source: Partial<Updater> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Updater instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): Updater {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new Updater($$parsedSource as Partial<Updater>);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export {
|
||||
Logger
|
||||
} from "./models.js";
|
||||
@@ -0,0 +1,31 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import { Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* A Logger records structured information about each call to its
|
||||
* Log, Debug, Info, Warn, and Error methods.
|
||||
* For each call, it creates a [Record] and passes it to a [Handler].
|
||||
*
|
||||
* To create a new Logger, call [New] or a Logger method
|
||||
* that begins "With".
|
||||
*/
|
||||
export class Logger {
|
||||
|
||||
/** Creates a new Logger instance. */
|
||||
constructor($$source: Partial<Logger> = {}) {
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Logger instance from a string or object.
|
||||
*/
|
||||
static createFrom($$source: any = {}): Logger {
|
||||
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
|
||||
return new Logger($$parsedSource as Partial<Logger>);
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user