qsl designer

This commit is contained in:
2026-06-11 21:54:35 +02:00
parent 6150498a9e
commit 408b29896c
252 changed files with 13989 additions and 277 deletions
+221
View File
@@ -1126,6 +1126,94 @@ export namespace main {
this.qrzcom_confirmed = source["qrzcom_confirmed"];
}
}
export class QSLEmailTemplates {
subject: string;
body: string;
static createFrom(source: any = {}) {
return new QSLEmailTemplates(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.subject = source["subject"];
this.body = source["body"];
}
}
export class QSLFontInfo {
family: string;
kind: string;
variable: boolean;
data_b64: string;
static createFrom(source: any = {}) {
return new QSLFontInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.family = source["family"];
this.kind = source["kind"];
this.variable = source["variable"];
this.data_b64 = source["data_b64"];
}
}
export class QSLPresetInfo {
name: string;
label: string;
params: string[];
defaults: qslcard.StyleParams;
static createFrom(source: any = {}) {
return new QSLPresetInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.label = source["label"];
this.params = source["params"];
this.defaults = this.convertValues(source["defaults"], qslcard.StyleParams);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class QSLTemplateInfo {
id: number;
name: string;
profile_id?: number;
is_default: boolean;
updated_at: string;
static createFrom(source: any = {}) {
return new QSLTemplateInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.name = source["name"];
this.profile_id = source["profile_id"];
this.is_default = source["is_default"];
this.updated_at = source["updated_at"];
}
}
export class QSOAwardRef {
code: string;
ref: string;
@@ -1180,6 +1268,20 @@ export namespace main {
this.has_elevation = source["has_elevation"];
}
}
export class SecretStatus {
has_passphrase: boolean;
unlocked: boolean;
static createFrom(source: any = {}) {
return new SecretStatus(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.has_passphrase = source["has_passphrase"];
this.unlocked = source["unlocked"];
}
}
export class SpotQuery {
call: string;
band: string;
@@ -1532,6 +1634,7 @@ export namespace profile {
name: string;
callsign: string;
operator: string;
op_name: string;
owner_callsign: string;
my_grid: string;
my_country: string;
@@ -1567,6 +1670,7 @@ export namespace profile {
this.name = source["name"];
this.callsign = source["callsign"];
this.operator = source["operator"];
this.op_name = source["op_name"];
this.owner_callsign = source["owner_callsign"];
this.my_grid = source["my_grid"];
this.my_country = source["my_country"];
@@ -1612,6 +1716,123 @@ export namespace profile {
}
export namespace qslcard {
export class Bevel {
dx: number;
dy: number;
dark: string;
light: string;
static createFrom(source: any = {}) {
return new Bevel(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.dx = source["dx"];
this.dy = source["dy"];
this.dark = source["dark"];
this.light = source["light"];
}
}
export class Halo {
color: string;
blur: number;
opacity: number;
static createFrom(source: any = {}) {
return new Halo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.color = source["color"];
this.blur = source["blur"];
this.opacity = source["opacity"];
}
}
export class ShadowFx {
dx: number;
dy: number;
blur: number;
color: string;
opacity: number;
static createFrom(source: any = {}) {
return new ShadowFx(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.dx = source["dx"];
this.dy = source["dy"];
this.blur = source["blur"];
this.color = source["color"];
this.opacity = source["opacity"];
}
}
export class Shine {
coverage: number;
opacity: number;
static createFrom(source: any = {}) {
return new Shine(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.coverage = source["coverage"];
this.opacity = source["opacity"];
}
}
export class StyleParams {
gradient?: string[];
shine?: Shine;
outline_color?: string;
outline_width?: number;
halo?: Halo;
shadow?: ShadowFx;
bevel_offset?: Bevel;
color?: string;
static createFrom(source: any = {}) {
return new StyleParams(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.gradient = source["gradient"];
this.shine = this.convertValues(source["shine"], Shine);
this.outline_color = source["outline_color"];
this.outline_width = source["outline_width"];
this.halo = this.convertValues(source["halo"], Halo);
this.shadow = this.convertValues(source["shadow"], ShadowFx);
this.bevel_offset = this.convertValues(source["bevel_offset"], Bevel);
this.color = source["color"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
}
export namespace qso {
export class BandMode {