common css

This commit is contained in:
string 2025-05-14 11:07:51 +05:30
parent c919a718e9
commit 8f27b9b92a
3 changed files with 3249 additions and 89 deletions

View File

@ -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> = {};