mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-27 13:25:49 +03:00
[PR #1251] [MERGED] Add premium PDF/HTML export #1219
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#1219
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/1251
Author: @Komediruzecki
Created: 10/3/2021
Status: ✅ Merged
Merged: 10/13/2021
Merged by: @Rokt33r
Base:
master← Head:feature/add-pdf-export-preferences📝 Commits (5)
69d0a0dAdd BOOST_PDF_EXPORT_BASE_URL env var509e40bAdd export api026675dRemove printBackground optionad7eedaImplement pdf export to doc context menu4cc6bf4Add yes and no to translation📊 Changes
13 files changed (+222 additions, -34 deletions)
View changed files
➕
src/cloud/api/teams/docs/exports.ts(+72 -0)📝
src/cloud/components/DocPage/DocContextMenuActions.tsx(+84 -30)📝
src/cloud/lib/client.ts(+48 -1)📝
src/cloud/lib/consts.ts(+2 -0)📝
src/cloud/lib/i18n/enUS.ts(+3 -0)📝
src/cloud/lib/i18n/fr.ts(+3 -0)📝
src/cloud/lib/i18n/ja.ts(+3 -0)📝
src/cloud/lib/i18n/types.ts(+3 -0)📝
src/cloud/lib/i18n/zhCN.ts(+3 -0)📝
src/cloud/lib/stores/electron.ts(+0 -1)📝
src/lib/preferences.ts(+0 -1)📝
src/locales/enUS.ts(+0 -1)📝
webpack.cloud.config.ts(+1 -0)📄 Description
Add handling of paid vs free users for export
Add API calls for PDF/HTML
Change Doc Context menu to call API on export
Fix title not being encoded
Add JSON optional API (for client calls)
Remove export procedures from cloud code
Update PDF export UI
Add spinner on loading the document from backend
Remove separation from web and desktop client when downloading PDF
Add PDF/HTML preferences
Add preference for printing PDF background
Add theme and markdown code block theme preference for exports API
Add PDF/HTML post API
Update APIs for PDF/HTML generation to use new POST API
Update code for new server API and token fetching
Showcase:
https://user-images.githubusercontent.com/18196945/134773925-b95483d4-ee92-45be-bcb0-3b54179ab6b3.mp4
Test:
WIth new server renderer and Boosthub token generator
Test exporting of PDF and HTML
Test exporting when token expires immediately (and with a timeout) - user gets message
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.