scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.25k stars 138 forks source link

how to update ui(user interfacce) content ,and package .. #305

Closed maomj200811 closed 7 months ago

maomj200811 commented 8 months ago

Describe the bug A clear and concise description of the problem.

I need modify ui text and how to rebuild it .

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

Camera (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

maomj200811 commented 8 months ago

I use the newest version 0.7.12 now ,server and ui is one package, I can not update ui module only?

scottlamb commented 8 months ago

I use the newest version 0.7.12 now ,server and ui is one package, I can not update ui module only?

You can, by overriding uiDir in the config, see here. (The "Defaults to /usr/local/lib/moonfire-nvr/ui" written there is incomplete/wrong. I'll fix it. On a release binary, the default is actually uiDir = { bundled = true } which means to use the UI that's bundled inside the binary.)

...but I'm wondering why: