Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

actions.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* @flow */
  2. import {
  3. CONFIG_WILL_LOAD,
  4. LOAD_CONFIG_ERROR,
  5. SET_CONFIG
  6. } from './actionTypes';
  7. /**
  8. * Signals that the configuration for a specific locationURL will be loaded now.
  9. *
  10. * @param {string|URL} locationURL - The URL of the location which necessitated
  11. * the loading of a configuration.
  12. * @returns {{
  13. * type: CONFIG_WILL_LOAD,
  14. * locationURL
  15. * }}
  16. */
  17. export function configWillLoad(locationURL: string | URL) {
  18. return {
  19. type: CONFIG_WILL_LOAD,
  20. locationURL
  21. };
  22. }
  23. /**
  24. * Signals that a configuration could not be loaded due to a specific error.
  25. *
  26. * @param {Error} error - The {@code Error} which prevented the successful
  27. * loading of a configuration.
  28. * @param {string|URL} locationURL - The URL of the location which necessitated
  29. * the loading of a configuration.
  30. * @returns {{
  31. * type: LOAD_CONFIG_ERROR,
  32. * error: Error,
  33. * locationURL
  34. * }}
  35. */
  36. export function loadConfigError(error: Error, locationURL: string | URL) {
  37. return {
  38. type: LOAD_CONFIG_ERROR,
  39. error,
  40. locationURL
  41. };
  42. }
  43. /**
  44. * Sets the configuration represented by the feature base/config. The
  45. * configuration is defined and consumed by the library lib-jitsi-meet but some
  46. * of its properties are consumed by the application jitsi-meet as well.
  47. *
  48. * @param {Object} config - The configuration to be represented by the feature
  49. * base/config.
  50. * @returns {{
  51. * type: SET_CONFIG,
  52. * config: Object
  53. * }}
  54. */
  55. export function setConfig(config: Object = {}) {
  56. return {
  57. type: SET_CONFIG,
  58. config
  59. };
  60. }