Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C cb-checkliist
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Chaelim Heo
  • cb-checkliist
  • Merge requests
  • !5

Add embed.html template, update index.html script and iframe URLs, and modify...

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Chaelim Heo requested to merge demo into main Jun 26, 2024
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 3

User description

Add embed.html template, update index.html script and iframe URLs, and modify app.py to handle page parameter


PR Type

Enhancement, Bug fix


Description

  • Added a new embed.html template with UIBakery integration, including necessary scripts and styles.
  • Updated index.html to modify script and iframe URLs, and included dynamic page parameter.
  • Modified app.py to handle itemid, type, and page parameters, adding a fallback render_template call.

Changes walkthrough 📝

Relevant files
Enhancement
embed.html
Add new embed.html template with UIBakery integration       

templates/embed.html

Added new embed.html template.
Included scripts and styles for embedding UIBakery.
Implemented SendEvent and frameload functions for event handling.
+46/-0   
index.html
Update index.html script and iframe URLs                                 

templates/index.html

Updated script and iframe URLs.
Modified iframe src attribute to include dynamic page parameter.
+2/-2     
Bug fix
app.py
Modify app.py to handle additional parameters and page logic

app.py

Added fallback render_template call with itemid and type parameters.
Modified logic to handle page parameter.
+4/-0     

💡 PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

Edited Jun 26, 2024 by Chaelim Heo
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: demo