Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New desktop version implementation #14

Open
3 tasks
pokeghosst opened this issue Mar 20, 2024 · 0 comments
Open
3 tasks

New desktop version implementation #14

pokeghosst opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pokeghosst
Copy link
Owner

pokeghosst commented Mar 20, 2024

Description

Use Tauri to implement a desktop version that saves poems to the file system instead of IndexedDB.

Motivation

There’s no reason to have a desktop app if it just stores poems in IndexedDB of the embedded web view, effectively locking out the user from accessing them otherwise. Using Tauri means having a proper desktop app that works like a desktop app while keeping the code base largely the same. Most importantly, now as Tauri 2.0 is finally here, this opens the road to abandon Capacitor and use Tauri for both desktop and mobile platforms.

Proposed solution

For file operations, use File System plugin. This storage mode will correspond to "Local storage" option and the platform will be determined like this (in case when problems arise, look here):

if (window.__TAURI__) {
  // inside tauri
}

Acceptance criteria

  • Poems are saved to PokeBook directory inside user's home directory
  • Windows and GNU/Linux builds
  • Each poem + note is saved in an XML file, titled POEM NAME_TIMESTAMP.xml
@pokeghosst pokeghosst self-assigned this Mar 20, 2024
@pokeghosst pokeghosst added the enhancement New feature or request label Mar 20, 2024
@pokeghosst pokeghosst moved this to In Progress in PokeBook Roadmap Mar 20, 2024
@pokeghosst pokeghosst removed this from the PokeBook 3.1 - "Carrot Cake" milestone Jul 5, 2024
@pokeghosst pokeghosst added this to the PokeBook 3.2 - "Tiramisu” milestone Oct 1, 2024
@pokeghosst pokeghosst changed the title Desktop version with saving to file system New desktop version implementation Oct 1, 2024
pokeghosst added a commit that referenced this issue Oct 13, 2024
pokeghosst added a commit that referenced this issue Oct 14, 2024
pokeghosst added a commit that referenced this issue Oct 17, 2024
pokeghosst added a commit that referenced this issue Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant