Hi dev, Nice to meet you I want to modify the code from ceph dashboard I try to modify the code from /usr/lib/ceph/mgr/dashboard/frontend, but the web do noting even I delete all frontend folder. I guess the frontend should built to the /frontend/dist folder by angular or nodejs; however, both of the methods is failed. Can you tell me how to build or run the frontend code I modify to the web? Thank you very much Best regards Hausiowen Nayu
Hi Hausiowen, You can find (mostly) everything a developer may be interested in at Dashboard's HACKING.rst (https://github.com/ceph/ceph/blob/754e08017714543d71835c0deb3853603567f2b4/s..., I'm sending you that commit because Github is not rendering that doc in the master HEAD commit). You can delete all front-end code, and it will still work because Angular/Typescript code is 'transpiled' into Javascript code (frontend/dist subdir), so you don't directly run the 'code' version of the dashboard. So, answering your specific question, you may either: - Run from build/ subdir: "make mgr-dashboard-frontend-build", and then restart dashboard to reload new front-end ("ceph mgr module disable dashboard && ceph mgr module enable dashboard"), - Use the development mode front-end Angular provides, which performs incremental auto-builds every time you save a change: rename proxy.conf.json.sample to proxy.conf.json and add the backend port and HTTP/S proto and run "npm run start" (this will run a new front-end server in a different port than the ceph-mgr one). Let us know if that was of help to you! Kind Regards, Ernesto Ernesto Puerta He / Him / His Senior Software Engineer, Ceph Red Hat On Mon, Jun 24, 2019 at 4:37 PM seribe pasada <clear60enator@gmail.com> wrote:
Hi dev, Nice to meet you I want to modify the code from ceph dashboard I try to modify the code from /usr/lib/ceph/mgr/dashboard/frontend, but the web do noting even I delete all frontend folder. I guess the frontend should built to the /frontend/dist folder by angular or nodejs; however, both of the methods is failed. Can you tell me how to build or run the frontend code I modify to the web?
Thank you very much
Best regards Hausiowen Nayu _______________________________________________ Dev mailing list -- dev@ceph.io To unsubscribe send an email to dev-leave@ceph.io
Hi Hausiowen, On 6/24/19 4:55 AM, seribe pasada wrote:
I want to modify the code from ceph dashboard I try to modify the code from /usr/lib/ceph/mgr/dashboard/frontend, but the web do noting even I delete all frontend folder. I guess the frontend should built to the /frontend/dist folder by angular or nodejs; however, both of the methods is failed. Can you tell me how to build or run the frontend code I modify to the web?
In addition to what Ernesto wrote (thanks for the guidance!), feel free to get in touch with us on the #ceph-dashboard IRC channel on OFTC. Do you have any particular modification in mind? We'd be curious to learn more about what you would like to change. Thanks! Lenz -- SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nuernberg (Germany) GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)
participants (3)
-
Ernesto Puerta
-
Lenz Grimmer
-
seribe pasada