common css
This commit is contained in:
parent
c919a718e9
commit
8f27b9b92a
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -399,24 +399,24 @@ HTML Only. No CSS.
|
||||
await Promise.all(htmlGenerationTasks);
|
||||
|
||||
// ✅ Now save the newly generated pages only
|
||||
const fileMap: Record<string, string> = {};
|
||||
for (const pageName of this.missingHtmlPages) {
|
||||
const html = this.pageSections[pageName].FullPage?.toString() || '';
|
||||
fileMap[pageName] = html;
|
||||
}
|
||||
const fileMap: Record<string, string> = {};
|
||||
for (const pageName of this.missingHtmlPages) {
|
||||
const html = this.pageSections[pageName].FullPage?.toString() || '';
|
||||
fileMap[pageName] = html;
|
||||
}
|
||||
|
||||
if (Object.keys(fileMap).length > 0) {
|
||||
this.siteTreeService.createHtmlfile(this.sitename, fileMap).subscribe({
|
||||
next: (res) => {
|
||||
this.toastr.success(`Saved ${Object.keys(fileMap).length} new HTML files`);
|
||||
},
|
||||
error: (err) => {
|
||||
this.toastr.error('Failed to save HTML files');
|
||||
console.error('❌ Error saving html:', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (Object.keys(fileMap).length > 0) {
|
||||
this.siteTreeService.createHtmlfile(this.sitename, fileMap).subscribe({
|
||||
next: (res) => {
|
||||
this.toastr.success(`Saved ${Object.keys(fileMap).length} new HTML files`);
|
||||
},
|
||||
error: (err) => {
|
||||
this.toastr.error('Failed to save HTML files');
|
||||
console.error('❌ Error saving html:', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Process page sections
|
||||
async processPageSections(pageName: string, sectionMap: Record<string, string>) {
|
||||
@ -519,7 +519,7 @@ if (Object.keys(fileMap).length > 0) {
|
||||
link.download = `${pageName}.html`;
|
||||
link.click();
|
||||
window.URL.revokeObjectURL(url);
|
||||
}
|
||||
}
|
||||
// Upload HTML files
|
||||
uploadHtmlFiles(projId: number) {
|
||||
const pageHtmlMap: Record<string, string> = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user