Skip to content

Commit

Permalink
log the time it takes to publish pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Oct 3, 2024
1 parent d588f89 commit 3a9edb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ts/client/grapesjs/PublicationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ export class PublicationManager {
// Get the content from GrapesJS
const body = page.getMainComponent()
const cssContent = this.editor.getCss({ component: body })
console.time(`getHtml ${page.getId()} ${page.get('name')}`)
const htmlContent = this.editor.getHtml({ component: body })
console.timeEnd(`getHtml ${page.getId()} ${page.get('name')}`)

// Transform the file paths
const slug = getPageSlug(page.get('name'))
Expand Down
2 changes: 2 additions & 0 deletions src/ts/plugins/client/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

throw new Error('This file is obsolete, templates have been replaced by Silex CMS plugin: https://github.com/silexlabs/silex-cms/')

// Silex serves /clients
// @ts-ignore
import { onAll } from '../client/utils.js'
Expand Down

0 comments on commit 3a9edb5

Please sign in to comment.