Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.DEFAULTS = void 0;
  4. exports.DEFAULTS = {
  5. protocol: {
  6. type: 'string',
  7. default: 'http',
  8. match: /(http|https)/
  9. },
  10. hostname: {
  11. type: 'string',
  12. default: 'localhost'
  13. },
  14. port: {
  15. type: 'number',
  16. default: 4444
  17. },
  18. path: {
  19. type: 'string',
  20. validate: (path) => {
  21. if (!path.startsWith('/')) {
  22. throw new TypeError('The option "path" needs to start with a "/"');
  23. }
  24. return true;
  25. },
  26. default: '/'
  27. },
  28. queryParams: {
  29. type: 'object'
  30. },
  31. capabilities: {
  32. type: 'object',
  33. required: true
  34. },
  35. logLevel: {
  36. type: 'string',
  37. default: 'info',
  38. match: /(trace|debug|info|warn|error|silent)/
  39. },
  40. outputDir: {
  41. type: 'string'
  42. },
  43. connectionRetryTimeout: {
  44. type: 'number',
  45. default: 120000
  46. },
  47. connectionRetryCount: {
  48. type: 'number',
  49. default: 3
  50. },
  51. user: {
  52. type: 'string'
  53. },
  54. key: {
  55. type: 'string'
  56. },
  57. agent: {
  58. type: 'object'
  59. },
  60. logLevels: {
  61. type: 'object'
  62. },
  63. headers: {
  64. type: 'object'
  65. },
  66. transformRequest: {
  67. type: 'function',
  68. default: (requestOptions) => requestOptions
  69. },
  70. transformResponse: {
  71. type: 'function',
  72. default: (response) => response
  73. },
  74. directConnectProtocol: {
  75. type: 'string'
  76. },
  77. directConnectHost: {
  78. type: 'string'
  79. },
  80. directConnectPort: {
  81. type: 'number'
  82. },
  83. directConnectPath: {
  84. type: 'string'
  85. },
  86. strictSSL: {
  87. type: 'boolean',
  88. default: true
  89. }
  90. };