-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Refactor: Move all @tauri-apps calls to src/commands #46
Conversation
@afadil CR pls Thank you for a great project Fadil. |
Thank you @maidh91 for your contribution to this project. Just to understand the context here, when you say you want the app to run in the browser, is this mean to have a full web version with an backend api hosted in a server and client SPA app? |
Hi @afadil, thanks for your response, I was waiting for it the whole day. First of all, allow me to say 'we' sometime because I really want to be a part of this amazing project 🤗🤗🤗
In the future, what we can have are
In terms of technical details
If you can look at my other PRs The structure can be like this
|
Hi @afadil, This PR is safe btw, no logic change, just moving code of calling |
Hi @maidh91 I can see in the future a mobile app and some native sync of the SQLite db between devices (using iCloud for example). I’ll write some bullet points for a short term roadmap and I’ll be glad if you can contribute to this vision. |
Hi @afadil I 100% agree with you on privacy which is also my job now. I am mainly working on P2P systems, we can take leverage of this to sync data instead of going through some cloud like iCloud which is also a third party. With P2P computers, phones can connect to each other directly through a secure network protocol. In terms of
|
Yes, I think the code is cleaner. I'll do some testing and merge the PR. |
Context
src/commands
will calls to@tauri-apps
src/commands
will calls to some backendSummary
Move all
@tauri-apps
calls tosrc/commands
src/commands
directory contains all actions to communicate with Tauri via@tauti-apps
library, e.g. invoke, listen, open
src
are native React code onlyAdd
README.md
tosrc/commands
to note the convention