|
|
|
@ -229,19 +229,25 @@ export class SiteConstructorParams {
|
|
|
|
|
description: string; |
|
|
|
|
contacts: Map<string, string> = new Map<string, string>(); |
|
|
|
|
template_id: string; |
|
|
|
|
picture: string; |
|
|
|
|
blog: string[]; |
|
|
|
|
|
|
|
|
|
constructor( |
|
|
|
|
domain: string, |
|
|
|
|
title: string = "", |
|
|
|
|
description: string = "", |
|
|
|
|
contacts: Map<string, string> = new Map<string, string>(), |
|
|
|
|
template_id: string = "" |
|
|
|
|
template_id: string = "", |
|
|
|
|
picture: string = "", |
|
|
|
|
blog = [] |
|
|
|
|
) { |
|
|
|
|
this.domain = domain; |
|
|
|
|
this.title = title; |
|
|
|
|
this.description = description; |
|
|
|
|
this.contacts = contacts; |
|
|
|
|
this.template_id = template_id; |
|
|
|
|
this.picture = picture; |
|
|
|
|
this.blog = blog; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
copy(): SiteConstructorParams { |
|
|
|
@ -256,6 +262,8 @@ export async function get_constr_params(domain: string) {
|
|
|
|
|
res.title, |
|
|
|
|
res.description, |
|
|
|
|
res.contacts, |
|
|
|
|
res.template_id |
|
|
|
|
res.template_id, |
|
|
|
|
res.picture, |
|
|
|
|
res.blog |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|