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);
|
await Promise.all(htmlGenerationTasks);
|
||||||
|
|
||||||
// ✅ Now save the newly generated pages only
|
// ✅ Now save the newly generated pages only
|
||||||
const fileMap: Record<string, string> = {};
|
const fileMap: Record<string, string> = {};
|
||||||
for (const pageName of this.missingHtmlPages) {
|
for (const pageName of this.missingHtmlPages) {
|
||||||
const html = this.pageSections[pageName].FullPage?.toString() || '';
|
const html = this.pageSections[pageName].FullPage?.toString() || '';
|
||||||
fileMap[pageName] = html;
|
fileMap[pageName] = html;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(fileMap).length > 0) {
|
if (Object.keys(fileMap).length > 0) {
|
||||||
this.siteTreeService.createHtmlfile(this.sitename, fileMap).subscribe({
|
this.siteTreeService.createHtmlfile(this.sitename, fileMap).subscribe({
|
||||||
next: (res) => {
|
next: (res) => {
|
||||||
this.toastr.success(`Saved ${Object.keys(fileMap).length} new HTML files`);
|
this.toastr.success(`Saved ${Object.keys(fileMap).length} new HTML files`);
|
||||||
},
|
},
|
||||||
error: (err) => {
|
error: (err) => {
|
||||||
this.toastr.error('Failed to save HTML files');
|
this.toastr.error('Failed to save HTML files');
|
||||||
console.error('❌ Error saving html:', err);
|
console.error('❌ Error saving html:', err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process page sections
|
// Process page sections
|
||||||
async processPageSections(pageName: string, sectionMap: Record<string, string>) {
|
async processPageSections(pageName: string, sectionMap: Record<string, string>) {
|
||||||
@ -519,7 +519,7 @@ if (Object.keys(fileMap).length > 0) {
|
|||||||
link.download = `${pageName}.html`;
|
link.download = `${pageName}.html`;
|
||||||
link.click();
|
link.click();
|
||||||
window.URL.revokeObjectURL(url);
|
window.URL.revokeObjectURL(url);
|
||||||
}
|
}
|
||||||
// Upload HTML files
|
// Upload HTML files
|
||||||
uploadHtmlFiles(projId: number) {
|
uploadHtmlFiles(projId: number) {
|
||||||
const pageHtmlMap: Record<string, string> = {};
|
const pageHtmlMap: Record<string, string> = {};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user