Skip to content
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

looking for a skeletal structure to create an application #28

Open
chris5560 opened this issue Dec 11, 2016 · 1 comment
Open

looking for a skeletal structure to create an application #28

chris5560 opened this issue Dec 11, 2016 · 1 comment

Comments

@chris5560
Copy link

@jow- I would like to start to develop the first applications for your project.

  • Dynamic DNS (ddns-scripts)
  • Cal-/Carddav server (Radicale)
  • WEB Proxy (Privoxy)
  • localisation

Could you please offer a skeletal structure where to easily start and how to implement localisation.
Many thanks

@ianchi
Copy link
Collaborator

ianchi commented Jan 31, 2017

Hi @chris5560, sorry for the late reply.
Right now luci-ng is undergoing a revision on the way pages are wired, and it should be better to wait a bit till the API is more settled before migrating new applications.
The idea is to have two ways to define apps:

  • "manual" writting of the http/js components, which gives total control of the app
  • a simpler and more "automatic" way, with just a .json file describing the configuration. The html will be automatically generated, no code needs to be written.

A very very basic idea of the approach can be found in PR #24

Regarding localization, some more work still needs to be done to finish implementing a functional feature, it is still very much work in progress.
I added some helper task that should eventually be used:
first run: gulp translate:pot
this will generate the template to use as source for translations.
You generate your translated .po file and save it in a po/ subdirectory
then running: gulp translate:json will generate the file needed to be added to luci.
But the problem is that still the interface for loading the translations is not developed yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants