Ensure mobile & desktop live together nice and clean #1601
begonaalvarezd
announced in
Development
Replies: 1 comment
-
Referenced discussion: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preface
Now that we are working on mobile, we should think about how we make mobile & desktop live together nice and clean (aka doesn't become a spaghetti mess).
Here is a list of what I see are possibly problematic areas of the code (please add more if you think we should also discuss around something else):
.svelte
files: components, routes, views.svelte
filesSvelte files can be almost identical in both desktop and mobile, or absolutely different, so in order to keep things clean we could start by:
md:
(768px
) to distinguish between mobile and desktop. If things get complicated, read nextInterface lib
This topic is already being addressed. We are going to remove all explicit references to
Electron
inshared
and expose a "Device/Interface" object that holds the API forElectron
orCapacitor
, so we can share the code for bothBeta Was this translation helpful? Give feedback.
All reactions