I am stuck with this for 2 days (mornings) now, so I venture to ask in this forum. Please bear with me, as I am still finding my way here.
I am trying to see if I can make some contributions to the nextcloud contacts app.
I set up a developement nextcloud instance on my laptop,
I downloaded the nexcloud contacts source from github and compiled/made it:
sudo -u www-data make (btw, is that the right way, doing everything as www-data user?)
It compiles succesfully. So I started with babysteps. First make a few silly changes to a Vue file to see if I can.
But whatever I change in /src/components/ContactDetails.vue, I canāt get it to show in the browser.
I disabled http cache, enabled debug mode in Nextcloud config.php. What am I overlooking?
Short message to share that I am still pursuing this, but also that I am making very little progress.
I am able to build the app after every change. I use npm run watch and I see that it starts rebuilding every time I change a file. It breaks when I put in an error, so I am sure it is actively updating contacts based on what I do.
But I still canāt see any of the changes. I use firefox and disabled the http cache. I even downloaded chromium, to make sure 100% it isnāt something in firefox. But also there there is the pristine original contacts app. without my changes.
I will continue searching what I do wrong, but I could use some inspiration where too look:-)
Maybe Iām on to something, (or maybe it is nothing)
When I run ānpm run watchā It mentions it is building contacts 4.0.2.
I have no idea where this version number comes from. The version in appinfo/info.xml is 4.1.0-alpha.1?? Is this correct?
bert@trout:/var/www/nextcloud/apps/contacts$ npm run watch
> contacts@4.0.2 watch
> NODE_ENV=development webpack --progress --watch --config webpack.js
Building contacts 4.0.2
I build the notestutorial app. I ran into a small hickup that I needed to rename the folder to be able to install it. But after that I was able to edit notestutorial/src/App.vue, rebuild and see the resulting change directly in the browser.
Tried the same thing again in contacts and alas, nothing seems to change in the browser. It feels like I am using a completely different instance of the app than I am working on.
Last evening I finally found out where the problem was.
When I started, and pulled the source from git, I moved the original nextcloud/apps/contacts out of the way with āmv contacs ā¦/ā So it went to the base nextcloud folder. I thought it would not do any harm there. My mistakeā¦
I donāt know if it is a bug or a feature, but nextcloud picked up on that folder nextcloud/contacts instead of nextcloud/apps/contacts. So any changes I made in nexcloud/apps/contacts did not show up! Once I removed this nextcloud/contacts folder, my changes in nextcloud/apps/contacts became visible.
The one thing that is weird is that a version change in nextcloud/apps/contacts/appinfo did trigger an update. So apparently it did take some pieces from there as well.
Anyhow, now that I finally have a working source directory, I can start poking and seeing if I can do something useful in contacts!!