fix: 存为我的提示框改用自定义 CustomDialog #11

Closed
yoyo wants to merge 2 commits from fix/save-to-diary-custom-dialog into main
Collaborator

关联 issue #10

改动

RecipeDetailOverlay.vuesaveToDiary() 里的原生 window.prompt() 替换为项目已有的 showPrompt()(来自 composables/useDialog.js),弹窗样式与全站一致:圆角卡片、渐变绿色按钮、半透明遮罩。

  • 新增 import { showPrompt } from '../composables/useDialog'
  • const name = await showPrompt(...) 替换 const name = prompt(...)
关联 issue #10 ## 改动 将 `RecipeDetailOverlay.vue` 中 `saveToDiary()` 里的原生 `window.prompt()` 替换为项目已有的 `showPrompt()`(来自 `composables/useDialog.js`),弹窗样式与全站一致:圆角卡片、渐变绿色按钮、半透明遮罩。 - 新增 `import { showPrompt } from '../composables/useDialog'` - `const name = await showPrompt(...)` 替换 `const name = prompt(...)`
yoyo added 1 commit 2026-04-07 22:49:20 +00:00
feat: 存为我的提示框改用自定义 CustomDialog
Some checks failed
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / e2e-test (push) Failing after 1m7s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 15s
2ab192c3ba
将 saveToDiary 中的原生 prompt() 替换为项目内置的
showPrompt(),与全站风格保持一致。
Owner

🚀 Preview: https://pr-11.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-11.oil.oci.euphon.net DB is a copy of production.
fam added 1 commit 2026-04-08 19:44:20 +00:00
fix: 存为我的改写入 recipes 表,确保在「我的配方」和「管理配方」中显示
Some checks failed
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
Test / e2e-test (push) Failing after 1m6s
PR Preview / test (pull_request) Has been skipped
PR Preview / teardown-preview (pull_request) Successful in 13s
PR Preview / deploy-preview (pull_request) Has been skipped
b07b97bf1e
之前 saveToDiary() 调用 POST /api/diary,数据写入 user_diary 表,
只在「我的配方日记」(/mydiary) 中可见。
改为调用 recipesStore.saveRecipe(),写入 recipes 表并以当前用户为 owner,
GET /api/recipes 会返回该用户自己创建的配方,
RecipeSearch 的「我的配方」预览和 RecipeManager 的配方列表均可显示。

Co-Authored-By: YoYo <yoyo@euphon.net>
Owner

🚀 Preview: https://pr-11.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-11.oil.oci.euphon.net DB is a copy of production.
hera closed this pull request 2026-04-10 20:30:18 +00:00
Owner

🗑️ Preview torn down.

🗑️ Preview torn down.
Some checks failed
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
Test / e2e-test (push) Failing after 1m6s
PR Preview / test (pull_request) Has been skipped
PR Preview / teardown-preview (pull_request) Successful in 13s
PR Preview / deploy-preview (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hera/oil-formula-calculator#11