feat: initialize project structure with frontend dependencies and backend protocols

This commit is contained in:
2026-06-09 11:14:49 +01:00
commit 13848fb227
43 changed files with 4836 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {config} from '../models';
import {transfer} from '../models';
import {explorer} from '../models';
export function Delete(arg1:string,arg2:string):Promise<void>;
export function DeleteConnection(arg1:string):Promise<void>;
export function GetConnections():Promise<Array<config.ConnectionConfig>>;
export function GetTransfers():Promise<Array<transfer.Transfer>>;
export function ListDir(arg1:string,arg2:string):Promise<Array<explorer.FileEntry>>;
export function MkDir(arg1:string,arg2:string):Promise<void>;
export function PromptDownload(arg1:string,arg2:string):Promise<void>;
export function PromptUploadDirectory(arg1:string,arg2:string):Promise<void>;
export function PromptUploadFiles(arg1:string,arg2:string):Promise<void>;
export function QueueTransfer(arg1:string,arg2:string,arg3:string,arg4:string,arg5:string,arg6:string,arg7:number):Promise<void>;
export function Rename(arg1:string,arg2:string,arg3:string):Promise<void>;
export function SaveConnection(arg1:config.ConnectionConfig,arg2:string):Promise<void>;
+51
View File
@@ -0,0 +1,51 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Delete(arg1, arg2) {
return window['go']['main']['App']['Delete'](arg1, arg2);
}
export function DeleteConnection(arg1) {
return window['go']['main']['App']['DeleteConnection'](arg1);
}
export function GetConnections() {
return window['go']['main']['App']['GetConnections']();
}
export function GetTransfers() {
return window['go']['main']['App']['GetTransfers']();
}
export function ListDir(arg1, arg2) {
return window['go']['main']['App']['ListDir'](arg1, arg2);
}
export function MkDir(arg1, arg2) {
return window['go']['main']['App']['MkDir'](arg1, arg2);
}
export function PromptDownload(arg1, arg2) {
return window['go']['main']['App']['PromptDownload'](arg1, arg2);
}
export function PromptUploadDirectory(arg1, arg2) {
return window['go']['main']['App']['PromptUploadDirectory'](arg1, arg2);
}
export function PromptUploadFiles(arg1, arg2) {
return window['go']['main']['App']['PromptUploadFiles'](arg1, arg2);
}
export function QueueTransfer(arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
return window['go']['main']['App']['QueueTransfer'](arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
export function Rename(arg1, arg2, arg3) {
return window['go']['main']['App']['Rename'](arg1, arg2, arg3);
}
export function SaveConnection(arg1, arg2) {
return window['go']['main']['App']['SaveConnection'](arg1, arg2);
}
+97
View File
@@ -0,0 +1,97 @@
export namespace config {
export class ConnectionConfig {
id: string;
name: string;
protocol: string;
host?: string;
port?: number;
bucket?: string;
region?: string;
path_style?: boolean;
username?: string;
keychain_key?: string;
static createFrom(source: any = {}) {
return new ConnectionConfig(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.name = source["name"];
this.protocol = source["protocol"];
this.host = source["host"];
this.port = source["port"];
this.bucket = source["bucket"];
this.region = source["region"];
this.path_style = source["path_style"];
this.username = source["username"];
this.keychain_key = source["keychain_key"];
}
}
}
export namespace explorer {
export class FileEntry {
name: string;
path: string;
size: number;
modified: string;
is_dir: boolean;
permissions: string;
static createFrom(source: any = {}) {
return new FileEntry(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.path = source["path"];
this.size = source["size"];
this.modified = source["modified"];
this.is_dir = source["is_dir"];
this.permissions = source["permissions"];
}
}
}
export namespace transfer {
export class Transfer {
id: string;
source: string;
destination: string;
filename: string;
bytes_total: number;
bytes_done: number;
speed_mbps: number;
eta_seconds: number;
status: string;
error?: string;
static createFrom(source: any = {}) {
return new Transfer(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.source = source["source"];
this.destination = source["destination"];
this.filename = source["filename"];
this.bytes_total = source["bytes_total"];
this.bytes_done = source["bytes_done"];
this.speed_mbps = source["speed_mbps"];
this.eta_seconds = source["eta_seconds"];
this.status = source["status"];
this.error = source["error"];
}
}
}