feat: remove options page and add edit page

This commit is contained in:
Chaewon Lee
2026-06-12 17:24:26 +09:00
committed by GitHub
parent 5d65a5ffae
commit e7c690ac13
26 changed files with 622 additions and 351 deletions

View File

@@ -1,6 +1,5 @@
/** @typedef {import('../flowerFlow/jobStore.js').MoodAnalysis} MoodAnalysis */
/** @typedef {import('../flowerFlow/jobStore.js').BouquetRecipe} BouquetRecipe */
/** @typedef {import('../flowerFlow/jobStore.js').BouquetSize} BouquetSize */
/** @returns {MoodAnalysis} */
export function mockMoodAnalysis() {
@@ -46,11 +45,11 @@ export function mockImagePrompt(recipe) {
].join(' ');
}
/** @param {BouquetSize} size */
export function mockGeneratedImage(size) {
/** @param {string} [label] */
export function mockGeneratedImage(label = 'Bouquet') {
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="768" height="1024" viewBox="0 0 768 1024">
<rect width="768" height="1024" fill="#f7f3ef"/>
<text x="50%" y="48%" text-anchor="middle" font-size="42" fill="#6b5b53" font-family="Arial">Mock Bouquet ${size}</text>
<text x="50%" y="48%" text-anchor="middle" font-size="42" fill="#6b5b53" font-family="Arial">Mock ${label}</text>
<text x="50%" y="54%" text-anchor="middle" font-size="22" fill="#9a8d84" font-family="Arial">Set GEMINI_API_KEY for real images</text>
</svg>`;