[PR #712] [MERGED] add save code to file button #862

Closed
opened 2026-03-03 00:23:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/712
Author: @just-test-code
Created: 12/4/2020
Status: Merged
Merged: 12/7/2020
Merged by: @Rokt33r

Base: masterHead: master


📝 Commits (5)

📊 Changes

1 file changed (+18 additions, -6 deletions)

View changed files

📝 src/components/atoms/markdown/CodeFence.tsx (+18 -6)

📄 Description

add save code to file
Fix from #710 when rawContent is undefined still show save button

if use writeFile and showOpenDialog maybe it can't be saved on the web, I think file saver is better.

hope you fix : If the code has no template, rawContent is undefined. The copy button doesn't work either.

G9VxdAV


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/712 **Author:** [@just-test-code](https://github.com/just-test-code) **Created:** 12/4/2020 **Status:** ✅ Merged **Merged:** 12/7/2020 **Merged by:** [@Rokt33r](https://github.com/Rokt33r) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`3e070a0`](https://github.com/BoostIO/BoostNote-App/commit/3e070a0655723e2ad85dad755297509229ea9dc6) add save code to file button - [`d7f6445`](https://github.com/BoostIO/BoostNote-App/commit/d7f64455f7bdeaac816079aceb75ac67ba70481d) add guess extension - [`d75fe7d`](https://github.com/BoostIO/BoostNote-App/commit/d75fe7df5b8c38909762d25ce89c45412a5053d8) remove file-saver - [`6bbac8a`](https://github.com/BoostIO/BoostNote-App/commit/6bbac8a839f7323d79ca859e36221267f716855c) Revert "remove file-saver" - [`45bce46`](https://github.com/BoostIO/BoostNote-App/commit/45bce460161ae2ebdd90eb25f378e1f281afb534) use downloadBlob ### 📊 Changes **1 file changed** (+18 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/components/atoms/markdown/CodeFence.tsx` (+18 -6) </details> ### 📄 Description add save code to file Fix from #710 when `rawContent` is undefined still show save button if use `writeFile `and `showOpenDialog` maybe it can't be saved on the web, I think file saver is better. hope you fix : If the code has no template, `rawContent` is undefined. The copy button doesn't work either. ![G9VxdAV](https://user-images.githubusercontent.com/65500757/101214075-5c92bb80-36b6-11eb-8f74-0392d3ffdbe2.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:23:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#862
No description provided.