diff --git a/src/components/WelcomeModal.tsx b/src/components/WelcomeModal.tsx index 06e8ae5..c01c9c6 100644 --- a/src/components/WelcomeModal.tsx +++ b/src/components/WelcomeModal.tsx @@ -24,7 +24,7 @@ export function WelcomeModal({ isOpen, onClose }: WelcomeModalProps) { if (!isOpen) return null return ( -

- Bienvenue dans Palace + Welcome to Bubo's Memory Palace

- +
+

- Navigation : Tapez : pour ouvrir la console de navigation + This is Bubo's Memory Palace. You can write words and sentences in space. + Double click a word to navigate to the corresponding space. Empty spaces + are deleted. Spaces with no words linking to them are kept, only forgotten. +

+ +

+ Navigation : Hit : to open a navigation console. +

+ +

+ Writing: Double click in the void to write anything.

- Création de notes : Double-cliquez sur l'espace vide pour créer une note + Selection: Shift+click or click and drag to select.

- Sélection multiple : Shift+clic ou glisser pour sélectionner plusieurs notes -

-

- Navigation entre espaces : Double-cliquez sur une note pour naviguer vers l'espace correspondant + Warping: Double click on a note to warp between spaces.

- Raccourcis : Suppr/Backspace pour effacer, Échap pour désélectionner + Delete : Backspace/Del to delete a note.

@@ -80,7 +88,7 @@ export function WelcomeModal({ isOpen, onClose }: WelcomeModalProps) { onChange={(e) => setNeverShowAgain(e.target.checked)} style={{ marginRight: '8px' }} /> - Ne plus afficher ce message + Don't show this again (? to open this modal again)
@@ -103,7 +111,7 @@ export function WelcomeModal({ isOpen, onClose }: WelcomeModalProps) { e.currentTarget.style.background = '#333' }} > - Compris ! + OK !
@@ -114,4 +122,4 @@ export function WelcomeModal({ isOpen, onClose }: WelcomeModalProps) { export function shouldShowWelcome(): boolean { return localStorage.getItem('palace-welcome-dismissed') !== 'true' -} \ No newline at end of file +} diff --git a/src/store.ts b/src/store.ts index eec9f70..8bcf52e 100644 --- a/src/store.ts +++ b/src/store.ts @@ -13,9 +13,9 @@ type Space = { notes: Note[] } -export const currentSpaceId = atom('home') +export const currentSpaceId = atom('crossroad') export const currentSpace = atom(null) -export const navigationHistory = atom(['home']) +export const navigationHistory = atom(['crossroad']) export const editingNoteId = atom(null) export const selectedNoteIds = atom([]) export const existingSpaceIds = atom([]) @@ -26,10 +26,10 @@ export const refreshExistingSpaces = async () => { } export const loadSpace = async (spaceId: string) => { - // Check if current space is empty and delete it (except 'home') + // Check if current space is empty and delete it (except 'crossroad') const currentSpace_value = currentSpace.get() const currentSpaceId_value = currentSpaceId.get() - if (currentSpace_value && currentSpaceId_value !== 'home' && currentSpace_value.notes.length === 0) { + if (currentSpace_value && currentSpaceId_value !== 'crossroad' && currentSpace_value.notes.length === 0) { await db.deleteSpace(currentSpaceId_value) } @@ -104,7 +104,7 @@ export const deleteNote = async (noteId: string) => { export const getSpaceFromUrl = () => { const hash = window.location.hash.slice(1) - return hash || 'home' + return hash || 'crossroad' } // Selection management