Harry Potter
false);
if (ok) {
await window.CursorLand.addCursor({
id: 131,
name: 'Sferă de aur',
categorySlug: 'harry_potter',
categoryName: 'Harry Potter',
cursor: { url: 'https://ro.cursor-land.com/resources/cursors/63600610544ba.svg', offsetX: 2, offsetY: 1 },
pointer: { url: 'https://ro.cursor-land.com/resources/pointers/63600610544bd.svg', offsetX: 7, offsetY: 4 }
}).catch(() => null);
window.CursorLandState?.rememberAdded?.(131);
added = true;
inCollection = true;
window.CursorLand?.refreshStateSnapshot?.();
setTimeout(() => added = false, 2000);
} else {
// Try legacy v2.1 protocol — old extension responds with {}
const legacyRes = await window.CursorLand.addCursorLegacy({
id: 131,
name: 'Sferă de aur',
c_file: '63600610544ba.svg',
p_file: '63600610544bd.svg',
cat: 12,
base_name: 'Harry Potter',
alt_name: 'harry_potter',
offsetX: 2,
offsetY: 1,
offsetX_p: 7,
offsetY_p: 4
}).catch(() => null);
if (legacyRes !== null && legacyRes !== undefined) {
// Cursor added to old extension's side panel!
window.CursorLandState?.rememberAdded?.(131);
addedLegacy = true;
inCollection = true;
setTimeout(() => addedLegacy = false, 4000);
window.dispatchEvent(new CustomEvent('cursorland:needs-update', {
detail: { message: 'Cursor adăugat! Actualizează extensia pentru a-l vedea pe toate site-urile.' }
}));
} else {
window.open('https://chromewebstore.google.com/detail/oinkhgpjmeccknjbbccabjfonamfmcbn', '_blank');
}
}
} else {
window.open('https://chromewebstore.google.com/detail/oinkhgpjmeccknjbbccabjfonamfmcbn', '_blank');
}
"
:disabled="inCollection"
class="flex-1 flex items-center justify-center gap-1.5 px-3 py-2.5 rounded-xl text-xs font-bold transition-all"
:class="inCollection
? 'bg-gray-100 text-gray-400 border border-gray-200 cursor-not-allowed'
: (added || addedLegacy)
? 'bg-fun-green/10 text-fun-green border border-fun-green/20'
: 'bg-primary-50 text-primary-600 hover:bg-primary-100 border border-primary-100 hover:border-primary-200'"
>
false);
if (ok) {
await window.CursorLand.setActiveCursor({
id: 131,
name: 'Sferă de aur',
category: 'Harry Potter',
cursor: { url: 'https://ro.cursor-land.com/resources/cursors/63600610544ba.svg', offsetX: 2, offsetY: 1 },
pointer: { url: 'https://ro.cursor-land.com/resources/pointers/63600610544bd.svg', offsetX: 7, offsetY: 4 }
}).catch(() => null);
isActive = true;
} else {
window.dispatchEvent(new CustomEvent('cursorland:needs-update', {
detail: { message: 'Actualizează extensia CursorLand pentru a aplica cursori pe toate site-urile.' }
}));
}
}
"
:disabled="isActive"
class="px-4 py-2.5 rounded-xl text-xs font-bold transition-all"
:class="isActive
? 'bg-gray-100 text-gray-400 border border-gray-200 cursor-not-allowed'
: 'bg-gradient-to-r from-primary-500 to-accent-500 text-white hover:shadow-lg hover:shadow-primary-500/25 hover:-translate-y-0.5'"
>