Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
template-previewer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
M. Esat Akpunar
template-previewer
Commits
5e69e0b9
Commit
5e69e0b9
authored
Apr 14, 2025
by
M. Esat Akpunar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.md
parent
eadb913e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
107 additions
and
0 deletions
+107
-0
README.md
README.md
+107
-0
No files found.
README.md
0 → 100644
View file @
5e69e0b9
HTML and PDF Preview PRD
Project Objective
This project is a web application that allows users to input HTML templates and data sources and preview the results in both HTML and PDF formats.
User Interface Requirements
Main Page Layout
The page will be divided into two main sections vertically:
Left Panel
Right Panel
Left Panel Features
HTML Template Input Field
Large text editor
Syntax highlighting support
Highlighting of template variables
Data Source Input Field
Data entry in JSON format
Syntax highlighting support
JSON validation
Control Buttons
"Run" button
Sends the template and data source to the backend
Right Panel Features
Tabbed View
HTML Preview tab
PDF Preview tab
HTML Preview
Combined result of the template and data source
Responsive view
PDF Preview
Preview of the PDF document
Zoom in/out features
Technical Requirements
Frontend Framework: Vue.js
UI Library: Tailwind CSS
Code Editor: Monaco Editor
PDF Viewer: PDF.js
Responsive design
Modern and user-friendly interface
Dark/Light mode support
Error notification system
Detailed error handling and display
Backend Integration
API Endpoint: /report/pdfTest
Request Format:
json
Copy
Edit
{
"template": "HTML template string",
"dataSource": "JSON data string"
}
Response Format:
json
Copy
Edit
{
"htmlContent": "Rendered HTML string",
"pdfContent": "PDF byte array"
}
User Experience
Loading indicators for loading states
Toast notifications for error messages
User-friendly error management
Responsive design for mobile compatibility
Dark/Light mode toggle
Detailed error messages and notifications
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment