Files
store/note.sune
2025-09-05 23:04:17 -07:00

1 line
3.3 KiB
JSON

[{"id":"dvkah8k","name":"Note","pinned":false,"avatar":"","url":"gh://sune-org/store/note.sune","updatedAt":1757138653447,"settings":{"model":"openai/gpt-5-chat","temperature":"","top_p":"","top_k":"","frequency_penalty":"","presence_penalty":"","repetition_penalty":"","min_p":"","top_a":"","max_tokens":"","verbosity":"","reasoning_effort":"default","system_prompt":"","html":"<!-- Sune: Simple Note v1.0 -->\n<div class=\"p-4 sm:p-6 w-full max-w-2xl mx-auto\">\n <div id=\"noteSune\" class=\"relative isolate overflow-hidden rounded-2xl bg-white/60 shadow-lg ring-1 ring-black/5 backdrop-blur-xl\">\n <!-- Aurora BG -->\n <div class=\"aurora-blob absolute -z-10 top-1/2 left-1/2 h-[300px] w-[500px] -translate-x-1/2 -translate-y-1/2\" aria-hidden=\"true\"></div>\n \n <div class=\"p-4 sm:p-6\">\n <div class=\"flex items-center justify-between mb-4\">\n <h3 class=\"text-lg font-semibold text-gray-800 flex items-center gap-2\">\n <i data-lucide=\"notebook-pen\" class=\"h-5 w-5\"></i>\n <span>Simple Note</span>\n </h3>\n <span class=\"text-xs font-mono text-gray-400\">v1.0</span>\n </div>\n \n <textarea id=\"noteSune_textarea\" class=\"w-full h-64 sm:h-80 p-3 rounded-lg bg-white/50 border border-gray-200 focus:ring-2 focus:ring-blue-400 focus:border-blue-400 transition-shadow duration-200 text-sm resize-none\" placeholder=\"Jot down your thoughts...\"></textarea>\n \n <div class=\"mt-4 flex items-center justify-end gap-3\">\n <span id=\"noteSune_status\" class=\"text-sm text-green-600 opacity-0 transition-opacity\">Saved!</span>\n <button id=\"noteSune_clearBtn\" class=\"px-4 py-2 rounded-lg text-sm font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 active:scale-95 transition\">Clear</button>\n <button id=\"noteSune_saveBtn\" class=\"px-4 py-2 rounded-lg text-sm font-medium text-white bg-black hover:bg-black/80 active:scale-95 transition\">Save</button>\n </div>\n </div>\n </div>\n</div>\n\n<style>\n.aurora-blob{background-image:radial-gradient(at 27% 37%,hsla(215,70%,60%,1) 0,transparent 50%),radial-gradient(at 97% 21%,hsla(125,70%,70%,1) 0,transparent 50%),radial-gradient(at 52% 99%,hsla(355,70%,75%,1) 0,transparent 50%),radial-gradient(at 10% 90%,hsla(25,80%,70%,1) 0,transparent 50%);filter:blur(80px);opacity:.2}\n</style>\n\n<script>\n(()=>{\n const sId=window.SUNE?.id;if(!sId)return;\n const key=`sune-note-${sId}`,ta=document.getElementById('noteSune_textarea'),saveBtn=document.getElementById('noteSune_saveBtn'),clearBtn=document.getElementById('noteSune_clearBtn'),status=document.getElementById('noteSune_status');\n let t,d;\n ta.value=localStorage.getItem(key)||\"\";\n const showStatus=()=>{clearTimeout(t);status.style.opacity='1';t=setTimeout(()=>status.style.opacity='0',2e3)};\n const save=()=>{localStorage.setItem(key,ta.value);showStatus()};\n saveBtn.addEventListener('click',save);\n clearBtn.addEventListener('click',()=>{if(confirm('Clear this note?')){ta.value=\"\";localStorage.removeItem(key)}});\n ta.addEventListener('input',()=>{clearTimeout(d);d=setTimeout(save,1e3)});\n if(window.lucide)window.lucide.createIcons();\n})();\n</script>\n","extension_html":"<sune src='https://raw.githubusercontent.com/sune-org/store/refs/heads/main/sync.sune' private />"},"storage":{}}]