diff --git a/db.go b/db.go index 2fbd4a80..7aa6bf6e 100644 --- a/db.go +++ b/db.go @@ -98,6 +98,18 @@ func (d *Database) SetupDatabase(path string) error { return err } + _, err = d.db.Exec(` + CREATE TABLE IF NOT EXISTS command_history ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + command TEXT, + timestamp DATETIME DEFAULT CURRENT_TIMESTAMP + ) + `) + if err != nil { + fmt.Println("Error creating command_history table:", err) + return err + } + // Insert or update the database version _, err = d.db.Exec(`INSERT OR REPLACE INTO metadata (key, value) VALUES ('database_version', ?)`, DatabaseVersion) if err != nil { @@ -124,8 +136,20 @@ func (d *Database) OpenDatabase(path string) error { return err } - // Check if the required tables exist + // Check the database version + var dbVersion string + err = d.db.QueryRow(`SELECT value FROM metadata WHERE key = 'database_version'`).Scan(&dbVersion) + if err != nil { + fmt.Println("Error querying database version:", err) + return err + } + + // Check if the required tables exist based on the database version requiredTables := []string{"position", "analysis", "comment", "metadata"} + if dbVersion >= "1.1.0" { + requiredTables = append(requiredTables, "command_history") + } + for _, table := range requiredTables { var tableName string err = d.db.QueryRow(`SELECT name FROM sqlite_master WHERE type='table' AND name=?`, table).Scan(&tableName) @@ -1912,3 +1936,129 @@ func (p *Position) Mirror() Position { } return mirrored } + + +// SaveCommand saves a command to the command_history table +func (d *Database) SaveCommand(command string) error { + d.mu.Lock() + defer d.mu.Unlock() + + // Check if the database version is 1.1.0 or higher + var dbVersion string + err := d.db.QueryRow(`SELECT value FROM metadata WHERE key = 'database_version'`).Scan(&dbVersion) + if err != nil { + fmt.Println("Error querying database version:", err) + return err + } + + if dbVersion < "1.1.0" { + return fmt.Errorf("database version is lower than 1.1.0, current version: %s", dbVersion) + } + + _, err = d.db.Exec(`INSERT INTO command_history (command) VALUES (?)`, command) + if err != nil { + fmt.Println("Error saving command:", err) + return err + } + return nil +} + +// LoadCommandHistory loads the command history from the command_history table +func (d *Database) LoadCommandHistory() ([]string, error) { + d.mu.Lock() + defer d.mu.Unlock() + + // Check if the database version is 1.1.0 or higher + var dbVersion string + err := d.db.QueryRow(`SELECT value FROM metadata WHERE key = 'database_version'`).Scan(&dbVersion) + if err != nil { + fmt.Println("Error querying database version:", err) + return nil, err + } + + if dbVersion < "1.1.0" { + return nil, fmt.Errorf("database version is lower than 1.1.0, current version: %s", dbVersion) + } + + rows, err := d.db.Query(`SELECT command FROM command_history ORDER BY timestamp ASC`) + if err != nil { + fmt.Println("Error loading command history:", err) + return nil, err + } + defer rows.Close() + + var history []string + for rows.Next() { + var command string + if err = rows.Scan(&command); err != nil { + fmt.Println("Error scanning command:", err) + return nil, err + } + history = append(history, command) + } + return history, nil +} + +func (d *Database) ClearCommandHistory() error { + d.mu.Lock() + defer d.mu.Unlock() + + // Check if the database version is 1.1.0 or higher + var dbVersion string + err := d.db.QueryRow(`SELECT value FROM metadata WHERE key = 'database_version'`).Scan(&dbVersion) + if err != nil { + fmt.Println("Error querying database version:", err) + return err + } + + if dbVersion < "1.1.0" { + return fmt.Errorf("database version is lower than 1.1.0, current version: %s", dbVersion) + } + + _, err = d.db.Exec(`DELETE FROM command_history`) + if err != nil { + fmt.Println("Error clearing command history:", err) + return err + } + return nil +} + +func (d *Database) Migrate_1_0_0_to_1_1_0() error { + d.mu.Lock() + defer d.mu.Unlock() + + // Check current database version + var dbVersion string + err := d.db.QueryRow(`SELECT value FROM metadata WHERE key = 'database_version'`).Scan(&dbVersion) + if err != nil { + fmt.Println("Error querying database version:", err) + return err + } + + if dbVersion != "1.0.0" { + return fmt.Errorf("database version is not 1.0.0, current version: %s", dbVersion) + } + + // Create the command_history table + _, err = d.db.Exec(` + CREATE TABLE IF NOT EXISTS command_history ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + command TEXT, + timestamp DATETIME DEFAULT CURRENT_TIMESTAMP + ) + `) + if err != nil { + fmt.Println("Error creating command_history table:", err) + return err + } + + // Update the database version to 1.1.0 + _, err = d.db.Exec(`UPDATE metadata SET value = ? WHERE key = 'database_version'`, "1.1.0") + if err != nil { + fmt.Println("Error updating database version:", err) + return err + } + + fmt.Println("Database successfully migrated from version 1.0.0 to 1.1.0") + return nil +} diff --git a/doc/source/annexe_db_scheme.rst b/doc/source/annexe_db_scheme.rst new file mode 100644 index 00000000..232ff755 --- /dev/null +++ b/doc/source/annexe_db_scheme.rst @@ -0,0 +1,25 @@ +.. _annexe_db_migration: + +Annexe: Schéma de la base de données +==================================== + +Version 1.0.0 +------------- + +La version 1.0.0 de la base de données contient les tables suivantes : + +- **position** : Stocke les positions avec les colonnes `id` (clé primaire) et `state` (état de la position en format JSON). +- **analysis** : Stocke les analyses des positions avec les colonnes `id` (clé primaire), `position_id` (clé étrangère vers `position`), et `data` (données de l'analyse en format JSON). +- **comment** : Stocke les commentaires associés aux positions avec les colonnes `id` (clé primaire), `position_id` (clé étrangère vers `position`), et `text` (texte du commentaire). +- **metadata** : Stocke les métadonnées de la base de données avec les colonnes `key` (clé primaire) et `value` (valeur associée à la clé). + +Version 1.1.0 +------------- + +La version 1.1.0 de la base de données ajoute la table suivante : + +- **command_history** : Stocke l'historique des commandes avec les colonnes `id` (clé primaire), `command` (texte de la commande), et `timestamp` (date et heure de l'exécution de la commande). + +Les autres tables restent inchangées par rapport à la version 1.0.0. + +Pour migrer la base de données de la version 1.0.0 à la version 1.1.0, exécutez la commande ``migrate_from_1_0_to_1_1`` dans blunderDB. diff --git a/doc/source/cmd_mode.rst b/doc/source/cmd_mode.rst index 65dcb215..7c1a5490 100644 --- a/doc/source/cmd_mode.rst +++ b/doc/source/cmd_mode.rst @@ -187,3 +187,16 @@ positions en prenant en compte la structure des pions, le score et le cube de la position éditée où le joueur a entre 20 et 5 pips d'avance à la course, avec au moins 60% de chances de gain, au moins 10 pions dans la zone, et l'adversaire a entre 2 et 3 pions arriérés. + +.. _cmd_misc: + +Commandes diverses +------------------ + +.. csv-table:: + :header: "Commande", "Action" + :widths: 10, 40 + :align: center + + "clear, cl", "Efface l'historique des commandes." + "migrate_from_1_0_to_1_1", "Migre la base de données de la version 1.0 à la version 1.1." diff --git a/doc/source/index.rst b/doc/source/index.rst index b1297cb9..a2c3b12e 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -59,7 +59,7 @@ Historique des versions Corrections de filtres. Ajout du support de MacOS." - + 0.5.0, 15/02/2025, "Ajout de nouveaux filtres (miroir, non contact, jan blot, outfield blot)." Sommaire ======== @@ -76,6 +76,7 @@ Sommaire faq annexe_windows_securite annexe_mac_securite + annexe_db_scheme .. youtube:: Ln7XKVFqfUk :width: 100% diff --git a/doc/source/locale/en/LC_MESSAGES/annexe_db_scheme.po b/doc/source/locale/en/LC_MESSAGES/annexe_db_scheme.po new file mode 100644 index 00000000..ccd24003 --- /dev/null +++ b/doc/source/locale/en/LC_MESSAGES/annexe_db_scheme.po @@ -0,0 +1,98 @@ +# Copyright (C) 2024, Kevin UNGER +# This file is distributed under the same license as the blunderDB package. +# FIRST AUTHOR , 2025. +# +# SPDX-FileCopyrightText: 2025 unger +msgid "" +msgstr "" +"Project-Id-Version: blunderDB \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-02-05 15:05+0100\n" +"PO-Revision-Date: 2025-02-05 15:23+0100\n" +"Last-Translator: unger \n" +"Language: en\n" +"Language-Team: English \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.16.0\n" +"X-Generator: Lokalize 24.12.1\n" + +#: ../../source/annexe_db_scheme.rst:4 +msgid "Annexe: Schéma de la base de données" +msgstr "Annex: Database Schema" + +#: ../../source/annexe_db_scheme.rst:7 +msgid "Version 1.0.0" +msgstr "Version 1.0.0" + +#: ../../source/annexe_db_scheme.rst:9 +msgid "La version 1.0.0 de la base de données contient les tables suivantes :" +msgstr "Version 1.0.0 of the database contains the following tables:" + +#: ../../source/annexe_db_scheme.rst:11 +msgid "" +"**position** : Stocke les positions avec les colonnes `id` (clé primaire)" +" et `state` (état de la position en format JSON)." +msgstr "" +"**position**: Stores the positions with the columns `id` (primary key) and `st" +"ate` (state of the position in JSON format)." + +#: ../../source/annexe_db_scheme.rst:12 +msgid "" +"**analysis** : Stocke les analyses des positions avec les colonnes `id` " +"(clé primaire), `position_id` (clé étrangère vers `position`), et `data` " +"(données de l'analyse en format JSON)." +msgstr "" +"**analysis**: Stores the analyses of the positions with the columns `id` (prim" +"ary key), `position_id` (foreign key referencing `position`), and `data` (anal" +"ysis data in JSON format)." + +#: ../../source/annexe_db_scheme.rst:13 +msgid "" +"**comment** : Stocke les commentaires associés aux positions avec les " +"colonnes `id` (clé primaire), `position_id` (clé étrangère vers " +"`position`), et `text` (texte du commentaire)." +msgstr "" +"**comment**: Stores the comments associated with the positions with the column" +"s `id` (primary key), `position_id` (foreign key referencing `position`), and " +"`text` (comment text)." + +#: ../../source/annexe_db_scheme.rst:14 +msgid "" +"**metadata** : Stocke les métadonnées de la base de données avec les " +"colonnes `key` (clé primaire) et `value` (valeur associée à la clé)." +msgstr "" +"**metadata**: Stores the metadata of the database with the columns `key` (prim" +"ary key) and `value` (value associated with the key)." + +#: ../../source/annexe_db_scheme.rst:17 +msgid "Version 1.1.0" +msgstr "Version 1.1.0" + +#: ../../source/annexe_db_scheme.rst:19 +msgid "La version 1.1.0 de la base de données ajoute la table suivante :" +msgstr "Version 1.1.0 of the database adds the following table:" + +#: ../../source/annexe_db_scheme.rst:21 +msgid "" +"**command_history** : Stocke l'historique des commandes avec les colonnes" +" `id` (clé primaire), `command` (texte de la commande), et `timestamp` " +"(date et heure de l'exécution de la commande)." +msgstr "" +"**command_history**: Stores the command history with the columns `id` (primary" +" key), `command` (text of the command), and `timestamp` (date and time of comm" +"and execution)." + +#: ../../source/annexe_db_scheme.rst:23 +msgid "Les autres tables restent inchangées par rapport à la version 1.0.0." +msgstr "The other tables remain unchanged from version 1.0.0." + +#: ../../source/annexe_db_scheme.rst:25 +msgid "" +"Pour migrer la base de données de la version 1.0.0 à la version 1.1.0, " +"exécutez la commande ``migrate_from_1_0_to_1_1`` dans blunderDB." +msgstr "" +"To migrate the database from version 1.0.0 to version 1.1.0, execute the comma" +"nd ``migrate_from_1_0_to_1_1`` in blunderDB." diff --git a/doc/source/locale/en/LC_MESSAGES/cmd_mode.po b/doc/source/locale/en/LC_MESSAGES/cmd_mode.po index 77980179..efbfa4cb 100644 --- a/doc/source/locale/en/LC_MESSAGES/cmd_mode.po +++ b/doc/source/locale/en/LC_MESSAGES/cmd_mode.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: blunderDB \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-04 14:00+0100\n" -"PO-Revision-Date: 2025-02-04 14:01+0100\n" +"POT-Creation-Date: 2025-02-05 15:05+0100\n" +"PO-Revision-Date: 2025-02-05 15:24+0100\n" "Last-Translator: Kévin Unger \n" "Language: en\n" "Language-Team: English \n" @@ -901,6 +901,26 @@ msgstr "" "ahead in the race, with at least 60% winning chances, at least 10 " "checkers in the zone, and the opponent has between 2 and 3 backcheckers." +#: ../../source/cmd_mode.rst:183 +msgid "Commandes diverses" +msgstr "Various commands" + +#: ../../source/cmd_mode.rst:1 +msgid "clear, cl" +msgstr "clear, cl" + +#: ../../source/cmd_mode.rst:1 +msgid "Efface l'historique des commandes." +msgstr "Clear the command history." + +#: ../../source/cmd_mode.rst:1 +msgid "migrate_from_1_0_to_1_1" +msgstr "migrate_from_1_0_to_1_1" + +#: ../../source/cmd_mode.rst:1 +msgid "Migre la base de données de la version 1.0 à la version 1.1." +msgstr "Migrate the database from version 1.0 to version 1.1." + #~ msgid ":n" #~ msgstr ":n" diff --git a/doc/source/locale/en/LC_MESSAGES/index.po b/doc/source/locale/en/LC_MESSAGES/index.po index bb731efe..b064ece1 100644 --- a/doc/source/locale/en/LC_MESSAGES/index.po +++ b/doc/source/locale/en/LC_MESSAGES/index.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: blunderDB \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-04 17:07+0100\n" -"PO-Revision-Date: 2025-02-04 17:09+0100\n" +"POT-Creation-Date: 2025-02-05 15:30+0100\n" +"PO-Revision-Date: 2025-02-05 15:31+0100\n" "Last-Translator: Kévin Unger \n" "Language: en\n" "Language-Team: English \n" @@ -179,15 +179,29 @@ msgstr "Filter corrections." msgid "Ajout du support de MacOS." msgstr "Adding macOS support." +#: ../../source/index.rst:1 +msgid "0.5.0" +msgstr "0.5.0" + +#: ../../source/index.rst:1 +msgid "15/02/2025" +msgstr "February 4, 2025" + +#: ../../source/index.rst:1 +msgid "" +"Ajout de nouveaux filtres (miroir, non contact, jan blot, outfield blot)." +msgstr "" +"Addition of new filters (mirror, non-contact, jan blot, outfield blot)." + #: ../../source/index.rst:65 msgid "Sommaire" msgstr "Table of contents" -#: ../../source/index.rst:93 +#: ../../source/index.rst:94 msgid "Contacts" msgstr "Contact" -#: ../../source/index.rst:95 +#: ../../source/index.rst:96 msgid "" "Auteur: Kévin Unger . Vous pouvez aussi me trouver " "sur Heroes sous le pseudo postmanpat." @@ -195,7 +209,7 @@ msgstr "" "Author: Kévin Unger . You can also find me on Heroes" " under the username postmanpat." -#: ../../source/index.rst:98 +#: ../../source/index.rst:99 msgid "" "J'ai développé blunderDB initialement pour mon usage personnel afin de " "pouvoir détecter des motifs dans mes erreurs. Mais il est très agréable " @@ -210,42 +224,42 @@ msgstr "" "debugging. So feel free to reach out to share your experiences. All " "(constructive) feedback is welcome." -#: ../../source/index.rst:105 +#: ../../source/index.rst:106 msgid "Voici plusieurs manières de discuter:" msgstr "Here are several ways to discuss:" -#: ../../source/index.rst:107 +#: ../../source/index.rst:108 msgid "" "rejoindre le serveur Discord de blunderDB: https://discord.gg/DA5PpzM9En" msgstr "Join the Discord server of blunderDB: https://discord.gg/DA5PpzM9En" -#: ../../source/index.rst:109 +#: ../../source/index.rst:110 msgid "m'écrire un mail à blunderdb@proton.me," msgstr "Email me at blunderdb@proton.me." -#: ../../source/index.rst:111 +#: ../../source/index.rst:112 msgid "discuter avec moi, si on se retrouve dans un tournoi," msgstr "Discuss with me if we meet in a tournament." -#: ../../source/index.rst:113 +#: ../../source/index.rst:114 msgid "sur Github," msgstr "On GitHub." -#: ../../source/index.rst:115 +#: ../../source/index.rst:116 msgid "ouvrir un ticket: https://github.com/kevung/blunderDB/issues" msgstr "Open an issue: https://github.com/kevung/blunderDB/issues" -#: ../../source/index.rst:117 +#: ../../source/index.rst:118 msgid "" "pour des corrections de bugs ou des propositions d'amélioration, créer " "une pull request." msgstr "For bug fixes or improvement suggestions, create a pull request." -#: ../../source/index.rst:121 +#: ../../source/index.rst:122 msgid "Faire un don" msgstr "Donate" -#: ../../source/index.rst:123 +#: ../../source/index.rst:124 msgid "" "Si vous appréciez blunderDB et que vous voulez soutenir les " "développements passés et futurs, vous pouvez" @@ -253,19 +267,19 @@ msgstr "" "If you appreciate blunderDB and want to support its past and future " "developments, you can" -#: ../../source/index.rst:125 +#: ../../source/index.rst:126 msgid "me payer un verre si on a le plaisir de se rencontrer!" msgstr "buy me a drink if we have the pleasure of meeting!" -#: ../../source/index.rst:127 +#: ../../source/index.rst:128 msgid "faire un petit don par PayPal à l'adresse blunderdb@proton.me" msgstr "make a small donation via PayPal to the address blunderdb@proton.me" -#: ../../source/index.rst:130 +#: ../../source/index.rst:131 msgid "Remerciements" msgstr "Acknowledgments" -#: ../../source/index.rst:132 +#: ../../source/index.rst:133 msgid "" "Je dédie ce petit logiciel à ma compagne Anne-Claire et notre tendre " "fille Perrine. Je tiens à remercier tout particulièrement quelques amis:" @@ -273,7 +287,7 @@ msgstr "" "I dedicate this little software to my wife Anne-Claire and our dear " "daughter Perrine. I would especially like to thank a few friends:" -#: ../../source/index.rst:135 +#: ../../source/index.rst:136 msgid "" "*Tristan Remille*, de m'avoir initié au backgammon avec joie et " "bienveillance; de montrer la Voie dans la compréhension de ce merveilleux" @@ -284,7 +298,7 @@ msgstr "" "kindness; for showing the way in understanding this wonderful game; and " "for continuing to support me despite my poor attempts to improve my play." -#: ../../source/index.rst:140 +#: ../../source/index.rst:141 msgid "" "*Nicolas Harmand*, joyeux camarade depuis maintenant plus d'une dizaine " "d'années dans de chouettes aventures, et un fantastique partenaire de jeu" diff --git a/doc/source/locale/fr/LC_MESSAGES/annexe_db_scheme.po b/doc/source/locale/fr/LC_MESSAGES/annexe_db_scheme.po new file mode 100644 index 00000000..018f2994 --- /dev/null +++ b/doc/source/locale/fr/LC_MESSAGES/annexe_db_scheme.po @@ -0,0 +1,84 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2024, Kevin UNGER +# This file is distributed under the same license as the blunderDB package. +# FIRST AUTHOR , 2025. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: blunderDB \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-02-05 15:05+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.16.0\n" + +#: ../../source/annexe_db_scheme.rst:4 +msgid "Annexe: Schéma de la base de données" +msgstr "" + +#: ../../source/annexe_db_scheme.rst:7 +msgid "Version 1.0.0" +msgstr "" + +#: ../../source/annexe_db_scheme.rst:9 +msgid "La version 1.0.0 de la base de données contient les tables suivantes :" +msgstr "" + +#: ../../source/annexe_db_scheme.rst:11 +msgid "" +"**position** : Stocke les positions avec les colonnes `id` (clé primaire)" +" et `state` (état de la position en format JSON)." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:12 +msgid "" +"**analysis** : Stocke les analyses des positions avec les colonnes `id` " +"(clé primaire), `position_id` (clé étrangère vers `position`), et `data` " +"(données de l'analyse en format JSON)." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:13 +msgid "" +"**comment** : Stocke les commentaires associés aux positions avec les " +"colonnes `id` (clé primaire), `position_id` (clé étrangère vers " +"`position`), et `text` (texte du commentaire)." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:14 +msgid "" +"**metadata** : Stocke les métadonnées de la base de données avec les " +"colonnes `key` (clé primaire) et `value` (valeur associée à la clé)." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:17 +msgid "Version 1.1.0" +msgstr "" + +#: ../../source/annexe_db_scheme.rst:19 +msgid "La version 1.1.0 de la base de données ajoute la table suivante :" +msgstr "" + +#: ../../source/annexe_db_scheme.rst:21 +msgid "" +"**command_history** : Stocke l'historique des commandes avec les colonnes" +" `id` (clé primaire), `command` (texte de la commande), et `timestamp` " +"(date et heure de l'exécution de la commande)." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:23 +msgid "Les autres tables restent inchangées par rapport à la version 1.0.0." +msgstr "" + +#: ../../source/annexe_db_scheme.rst:25 +msgid "" +"Pour migrer la base de données de la version 1.0.0 à la version 1.1.0, " +"exécutez la commande ``migrate_from_1_0_to_1_1`` dans blunderDB." +msgstr "" + diff --git a/doc/source/locale/fr/LC_MESSAGES/cmd_mode.po b/doc/source/locale/fr/LC_MESSAGES/cmd_mode.po index a80cb7eb..7c60796e 100644 --- a/doc/source/locale/fr/LC_MESSAGES/cmd_mode.po +++ b/doc/source/locale/fr/LC_MESSAGES/cmd_mode.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: blunderDB \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-04 14:00+0100\n" +"POT-Creation-Date: 2025-02-05 15:05+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -878,6 +878,26 @@ msgid "" "la zone, et l'adversaire a entre 2 et 3 pions arriérés." msgstr "" +#: ../../source/cmd_mode.rst:183 +msgid "Commandes diverses" +msgstr "" + +#: ../../source/cmd_mode.rst:1 +msgid "clear, cl" +msgstr "" + +#: ../../source/cmd_mode.rst:1 +msgid "Efface l'historique des commandes." +msgstr "" + +#: ../../source/cmd_mode.rst:1 +msgid "migrate_from_1_0_to_1_1" +msgstr "" + +#: ../../source/cmd_mode.rst:1 +msgid "Migre la base de données de la version 1.0 à la version 1.1." +msgstr "" + #~ msgid "Liste des requêtes" #~ msgstr "" diff --git a/doc/source/locale/fr/LC_MESSAGES/index.po b/doc/source/locale/fr/LC_MESSAGES/index.po index 32f69ad4..cf44c122 100644 --- a/doc/source/locale/fr/LC_MESSAGES/index.po +++ b/doc/source/locale/fr/LC_MESSAGES/index.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: blunderDB \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-04 17:07+0100\n" +"POT-Creation-Date: 2025-02-05 15:30+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: fr\n" @@ -165,21 +165,33 @@ msgstr "" msgid "Ajout du support de MacOS." msgstr "" +#: ../../source/index.rst:1 +msgid "0.5.0" +msgstr "" + +#: ../../source/index.rst:1 +msgid "15/02/2025" +msgstr "" + +#: ../../source/index.rst:1 +msgid "Ajout de nouveaux filtres (miroir, non contact, jan blot, outfield blot)." +msgstr "" + #: ../../source/index.rst:65 msgid "Sommaire" msgstr "" -#: ../../source/index.rst:93 +#: ../../source/index.rst:94 msgid "Contacts" msgstr "" -#: ../../source/index.rst:95 +#: ../../source/index.rst:96 msgid "" "Auteur: Kévin Unger . Vous pouvez aussi me trouver " "sur Heroes sous le pseudo postmanpat." msgstr "" -#: ../../source/index.rst:98 +#: ../../source/index.rst:99 msgid "" "J'ai développé blunderDB initialement pour mon usage personnel afin de " "pouvoir détecter des motifs dans mes erreurs. Mais il est très agréable " @@ -189,65 +201,65 @@ msgid "" "sont bienvenus." msgstr "" -#: ../../source/index.rst:105 +#: ../../source/index.rst:106 msgid "Voici plusieurs manières de discuter:" msgstr "" -#: ../../source/index.rst:107 +#: ../../source/index.rst:108 msgid "rejoindre le serveur Discord de blunderDB: https://discord.gg/DA5PpzM9En" msgstr "" -#: ../../source/index.rst:109 +#: ../../source/index.rst:110 msgid "m'écrire un mail à blunderdb@proton.me," msgstr "" -#: ../../source/index.rst:111 +#: ../../source/index.rst:112 msgid "discuter avec moi, si on se retrouve dans un tournoi," msgstr "" -#: ../../source/index.rst:113 +#: ../../source/index.rst:114 msgid "sur Github," msgstr "" -#: ../../source/index.rst:115 +#: ../../source/index.rst:116 msgid "ouvrir un ticket: https://github.com/kevung/blunderDB/issues" msgstr "" -#: ../../source/index.rst:117 +#: ../../source/index.rst:118 msgid "" "pour des corrections de bugs ou des propositions d'amélioration, créer " "une pull request." msgstr "" -#: ../../source/index.rst:121 +#: ../../source/index.rst:122 msgid "Faire un don" msgstr "" -#: ../../source/index.rst:123 +#: ../../source/index.rst:124 msgid "" "Si vous appréciez blunderDB et que vous voulez soutenir les " "développements passés et futurs, vous pouvez" msgstr "" -#: ../../source/index.rst:125 +#: ../../source/index.rst:126 msgid "me payer un verre si on a le plaisir de se rencontrer!" msgstr "" -#: ../../source/index.rst:127 +#: ../../source/index.rst:128 msgid "faire un petit don par PayPal à l'adresse blunderdb@proton.me" msgstr "" -#: ../../source/index.rst:130 +#: ../../source/index.rst:131 msgid "Remerciements" msgstr "" -#: ../../source/index.rst:132 +#: ../../source/index.rst:133 msgid "" "Je dédie ce petit logiciel à ma compagne Anne-Claire et notre tendre " "fille Perrine. Je tiens à remercier tout particulièrement quelques amis:" msgstr "" -#: ../../source/index.rst:135 +#: ../../source/index.rst:136 msgid "" "*Tristan Remille*, de m'avoir initié au backgammon avec joie et " "bienveillance; de montrer la Voie dans la compréhension de ce merveilleux" @@ -255,7 +267,7 @@ msgid "" "jouer." msgstr "" -#: ../../source/index.rst:140 +#: ../../source/index.rst:141 msgid "" "*Nicolas Harmand*, joyeux camarade depuis maintenant plus d'une dizaine " "d'années dans de chouettes aventures, et un fantastique partenaire de jeu" diff --git a/frontend/src/components/CommandLine.svelte b/frontend/src/components/CommandLine.svelte index bb34f084..8befe12b 100644 --- a/frontend/src/components/CommandLine.svelte +++ b/frontend/src/components/CommandLine.svelte @@ -1,10 +1,12 @@