overview.js 1018 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. 'require view';
  3. 'require form';
  4. return view.extend({
  5. render: function() {
  6. let m, s, o;
  7. m = new form.Map('nextdns', _('NextDNS'),
  8. _('NextDNS Configuration.')
  9. + '<br />'
  10. + _('For further information, go to \
  11. <a href="https://nextdns.io" target="_blank">nextdns.io</a>.'));
  12. s = m.section(form.TypedSection, 'nextdns', _('General'));
  13. s.anonymous = true;
  14. o = s.option(form.Flag, 'enabled', _('Enabled'),
  15. _('Enable NextDNS.'));
  16. o.default = '1';
  17. o.rmempty = false;
  18. s.option(form.Value, 'config', _('Configuration ID'),
  19. _('The ID of your NextDNS configuration.')
  20. + '<br />'
  21. + _('Go to nextdns.io to create a configuration.'));
  22. o = s.option(form.Flag, 'report_client_info', _('Report Client Info'),
  23. _('Expose LAN clients information in NextDNS analytics.'));
  24. o.default = '1';
  25. o.rmempty = false;
  26. o = s.option(form.Flag, 'log_queries', _('Log Queries'),
  27. _('Log individual queries to system log.'));
  28. o.rmempty = false;
  29. return m.render();
  30. },
  31. });