Bladeren bron

language(typescript) actionTypes.js -> actionTypes.ts (#10940)

* language(typescript) first ts component, added ts configurations, actionTypes.js are now ts files
master
Calinteodor 3 jaren geleden
bovenliggende
commit
7c523f3250
No account linked to committer's email address
100 gewijzigde bestanden met toevoegingen van 231 en 62 verwijderingen
  1. 1
    1
      .eslintignore
  2. 3
    3
      CONTRIBUTING.md
  3. 1
    1
      conference.js
  4. 1
    1
      connection.js
  5. 177
    0
      package-lock.json
  6. 1
    0
      package.json
  7. 0
    0
      react/features/analytics/actionTypes.ts
  8. 2
    2
      react/features/analytics/functions.js
  9. 1
    1
      react/features/app/actions.web.js
  10. 0
    0
      react/features/authentication/actionTypes.ts
  11. 0
    0
      react/features/av-moderation/actionTypes.ts
  12. 0
    0
      react/features/base/app/actionTypes.ts
  13. 0
    0
      react/features/base/audio-only/actionTypes.ts
  14. 0
    0
      react/features/base/conference/actionTypes.ts
  15. 0
    0
      react/features/base/config/actionTypes.ts
  16. 0
    0
      react/features/base/connection/actionTypes.ts
  17. 0
    0
      react/features/base/devices/actionTypes.ts
  18. 0
    0
      react/features/base/dialog/actionTypes.ts
  19. 0
    0
      react/features/base/flags/actionTypes.ts
  20. 0
    0
      react/features/base/i18n/actionTypes.ts
  21. 0
    0
      react/features/base/jwt/actionTypes.ts
  22. 0
    0
      react/features/base/known-domains/actionTypes.ts
  23. 0
    0
      react/features/base/lastn/actionTypes.ts
  24. 0
    0
      react/features/base/lib-jitsi-meet/actionTypes.ts
  25. 0
    4
      react/features/base/lib-jitsi-meet/index.js
  26. 0
    0
      react/features/base/logging/actionTypes.ts
  27. 1
    1
      react/features/base/logging/middleware.js
  28. 0
    0
      react/features/base/media/actionTypes.ts
  29. 0
    0
      react/features/base/net-info/actionTypes.ts
  30. 0
    0
      react/features/base/participants/actionTypes.ts
  31. 0
    0
      react/features/base/responsive-ui/actionTypes.ts
  32. 0
    0
      react/features/base/settings/actionTypes.ts
  33. 0
    0
      react/features/base/sounds/actionTypes.ts
  34. 0
    0
      react/features/base/testing/actionTypes.ts
  35. 0
    0
      react/features/base/tracks/actionTypes.ts
  36. 2
    1
      react/features/base/tracks/actions.js
  37. 0
    0
      react/features/base/user-interaction/actionTypes.ts
  38. 0
    0
      react/features/breakout-rooms/actionTypes.ts
  39. 0
    0
      react/features/calendar-sync/actionTypes.ts
  40. 0
    0
      react/features/chat/actionTypes.ts
  41. 0
    0
      react/features/deep-linking/actionTypes.ts
  42. 14
    18
      react/features/display-name/components/native/DisplayNameLabel.tsx
  43. 0
    2
      react/features/display-name/components/native/index.js
  44. 9
    12
      react/features/display-name/components/web/DisplayNameBadge.tsx
  45. 1
    2
      react/features/display-name/functions.ts
  46. 0
    0
      react/features/dropbox/actionTypes.ts
  47. 0
    0
      react/features/dynamic-branding/actionTypes.ts
  48. 1
    1
      react/features/dynamic-branding/functions.any.js
  49. 0
    0
      react/features/e2ee/actionTypes.ts
  50. 0
    0
      react/features/etherpad/actionTypes.ts
  51. 1
    3
      react/features/face-landmarks/actionTypes.ts
  52. 0
    2
      react/features/face-landmarks/middleware.js
  53. 0
    0
      react/features/feedback/actionTypes.ts
  54. 0
    0
      react/features/filmstrip/actionTypes.ts
  55. 0
    0
      react/features/follow-me/actionTypes.ts
  56. 0
    0
      react/features/gifs/actionTypes.ts
  57. 0
    0
      react/features/google-api/actionTypes.ts
  58. 0
    0
      react/features/invite/actionTypes.ts
  59. 0
    0
      react/features/jaas/actionTypes.ts
  60. 0
    0
      react/features/keyboard-shortcuts/actionTypes.ts
  61. 0
    0
      react/features/large-video/actionTypes.ts
  62. 0
    0
      react/features/lobby/actionTypes.ts
  63. 0
    0
      react/features/local-recording/actionTypes.ts
  64. 0
    0
      react/features/mobile/audio-mode/actionTypes.ts
  65. 0
    0
      react/features/mobile/background/actionTypes.ts
  66. 0
    0
      react/features/mobile/call-integration/actionTypes.ts
  67. 0
    0
      react/features/mobile/external-api/actionTypes.ts
  68. 0
    0
      react/features/mobile/full-screen/actionTypes.ts
  69. 0
    0
      react/features/mobile/picture-in-picture/actionTypes.ts
  70. 0
    0
      react/features/mobile/watchos/actionTypes.ts
  71. 0
    0
      react/features/no-audio-signal/actionTypes.ts
  72. 0
    0
      react/features/noise-detection/actionTypes.ts
  73. 0
    0
      react/features/notifications/actionTypes.ts
  74. 0
    0
      react/features/overlay/actionTypes.ts
  75. 1
    1
      react/features/overlay/components/AbstractPageReloadOverlay.js
  76. 2
    2
      react/features/overlay/middleware.js
  77. 0
    0
      react/features/participants-pane/actionTypes.ts
  78. 0
    0
      react/features/polls/actionTypes.ts
  79. 0
    0
      react/features/power-monitor/actionTypes.ts
  80. 0
    0
      react/features/prejoin/actionTypes.ts
  81. 2
    1
      react/features/prejoin/actions.js
  82. 0
    0
      react/features/reactions/actionTypes.ts
  83. 0
    0
      react/features/recent-list/actionTypes.ts
  84. 0
    0
      react/features/recording/actionTypes.ts
  85. 6
    1
      react/features/recording/actions.any.js
  86. 0
    0
      react/features/remote-control/actionTypes.ts
  87. 1
    1
      react/features/rtcstats/middleware.js
  88. 0
    0
      react/features/screen-share/actionTypes.ts
  89. 0
    0
      react/features/screenshot-capture/actionTypes.ts
  90. 0
    0
      react/features/settings/actionTypes.ts
  91. 0
    0
      react/features/share-room/actionTypes.ts
  92. 0
    0
      react/features/shared-video/actionTypes.ts
  93. 0
    0
      react/features/speaker-stats/actionTypes.ts
  94. 0
    0
      react/features/subtitles/actionTypes.ts
  95. 0
    0
      react/features/talk-while-muted/actionTypes.ts
  96. 0
    0
      react/features/toolbox/actionTypes.ts
  97. 0
    0
      react/features/transcribing/actionTypes.ts
  98. 3
    1
      react/features/transcribing/reducer.js
  99. 0
    0
      react/features/video-layout/actionTypes.ts
  100. 0
    0
      react/features/video-layout/middleware.web.js

+ 1
- 1
.eslintignore Bestand weergeven

@@ -16,4 +16,4 @@ react/features/face-landmarks/resources/*
16 16
 !.eslintrc.js
17 17
 
18 18
 # Not worth it.
19
-actionTypes.js
19
+actionTypes.ts

+ 3
- 3
CONTRIBUTING.md Bestand weergeven

@@ -3,8 +3,8 @@ We would love to have your help. Before you start working however, please read
3 3
 and follow this short guide.
4 4
 
5 5
 # Reporting Issues
6
-Provide as much information as possible. Mention the version of Jitsi Meet, 
7
-Jicofo and JVB you are using, and explain (as detailed as you can) how the 
6
+Provide as much information as possible. Mention the version of Jitsi Meet,
7
+Jicofo and JVB you are using, and explain (as detailed as you can) how the
8 8
 problem can be reproduced.
9 9
 
10 10
 # Code contributions
@@ -130,7 +130,7 @@ When adding a new feature, this would be the usual layout.
130 130
 
131 131
 ```
132 132
 react/features/sample/
133
-├── actionTypes.js
133
+├── actionTypes.ts
134 134
 ├── actions.js
135 135
 ├── components
136 136
 │   ├── AnotherComponent.js

+ 1
- 1
conference.js Bestand weergeven

@@ -66,7 +66,6 @@ import {
66 66
 } from './react/features/base/devices';
67 67
 import {
68 68
     browser,
69
-    isFatalJitsiConnectionError,
70 69
     JitsiConferenceErrors,
71 70
     JitsiConferenceEvents,
72 71
     JitsiConnectionErrors,
@@ -77,6 +76,7 @@ import {
77 76
     JitsiTrackErrors,
78 77
     JitsiTrackEvents
79 78
 } from './react/features/base/lib-jitsi-meet';
79
+import { isFatalJitsiConnectionError } from './react/features/base/lib-jitsi-meet/functions';
80 80
 import {
81 81
     getStartWithAudioMuted,
82 82
     getStartWithVideoMuted,

+ 1
- 1
connection.js Bestand weergeven

@@ -13,10 +13,10 @@ import {
13 13
 import { openDialog } from './react/features/base/dialog/actions';
14 14
 import { setJWT } from './react/features/base/jwt';
15 15
 import {
16
-    isFatalJitsiConnectionError,
17 16
     JitsiConnectionErrors,
18 17
     JitsiConnectionEvents
19 18
 } from './react/features/base/lib-jitsi-meet';
19
+import { isFatalJitsiConnectionError } from './react/features/base/lib-jitsi-meet/functions';
20 20
 import { getCustomerDetails } from './react/features/jaas/actions.any';
21 21
 import { isVpaasMeeting, getJaasJWT } from './react/features/jaas/functions';
22 22
 import { setPrejoinDisplayNameRequired } from './react/features/prejoin/actions';

+ 177
- 0
package-lock.json Bestand weergeven

@@ -161,6 +161,7 @@
161 161
         "string-replace-loader": "3.0.3",
162 162
         "style-loader": "0.19.0",
163 163
         "traverse": "0.6.6",
164
+        "ts-loader": "9.2.6",
164 165
         "typescript": "4.3.5",
165 166
         "unorm": "1.6.0",
166 167
         "webpack": "5.57.1",
@@ -18332,6 +18333,110 @@
18332 18333
       "resolved": "https://registry.npmjs.org/ts-easing/-/ts-easing-0.2.0.tgz",
18333 18334
       "integrity": "sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ=="
18334 18335
     },
18336
+    "node_modules/ts-loader": {
18337
+      "version": "9.2.6",
18338
+      "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.6.tgz",
18339
+      "integrity": "sha512-QMTC4UFzHmu9wU2VHZEmWWE9cUajjfcdcws+Gh7FhiO+Dy0RnR1bNz0YCHqhI0yRowCE9arVnNxYHqELOy9Hjw==",
18340
+      "dev": true,
18341
+      "dependencies": {
18342
+        "chalk": "^4.1.0",
18343
+        "enhanced-resolve": "^5.0.0",
18344
+        "micromatch": "^4.0.0",
18345
+        "semver": "^7.3.4"
18346
+      },
18347
+      "engines": {
18348
+        "node": ">=12.0.0"
18349
+      },
18350
+      "peerDependencies": {
18351
+        "typescript": "*",
18352
+        "webpack": "^5.0.0"
18353
+      }
18354
+    },
18355
+    "node_modules/ts-loader/node_modules/ansi-styles": {
18356
+      "version": "4.3.0",
18357
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
18358
+      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
18359
+      "dev": true,
18360
+      "dependencies": {
18361
+        "color-convert": "^2.0.1"
18362
+      },
18363
+      "engines": {
18364
+        "node": ">=8"
18365
+      },
18366
+      "funding": {
18367
+        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
18368
+      }
18369
+    },
18370
+    "node_modules/ts-loader/node_modules/chalk": {
18371
+      "version": "4.1.2",
18372
+      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
18373
+      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
18374
+      "dev": true,
18375
+      "dependencies": {
18376
+        "ansi-styles": "^4.1.0",
18377
+        "supports-color": "^7.1.0"
18378
+      },
18379
+      "engines": {
18380
+        "node": ">=10"
18381
+      },
18382
+      "funding": {
18383
+        "url": "https://github.com/chalk/chalk?sponsor=1"
18384
+      }
18385
+    },
18386
+    "node_modules/ts-loader/node_modules/color-convert": {
18387
+      "version": "2.0.1",
18388
+      "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
18389
+      "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
18390
+      "dev": true,
18391
+      "dependencies": {
18392
+        "color-name": "~1.1.4"
18393
+      },
18394
+      "engines": {
18395
+        "node": ">=7.0.0"
18396
+      }
18397
+    },
18398
+    "node_modules/ts-loader/node_modules/color-name": {
18399
+      "version": "1.1.4",
18400
+      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
18401
+      "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
18402
+      "dev": true
18403
+    },
18404
+    "node_modules/ts-loader/node_modules/has-flag": {
18405
+      "version": "4.0.0",
18406
+      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
18407
+      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
18408
+      "dev": true,
18409
+      "engines": {
18410
+        "node": ">=8"
18411
+      }
18412
+    },
18413
+    "node_modules/ts-loader/node_modules/semver": {
18414
+      "version": "7.3.5",
18415
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
18416
+      "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
18417
+      "dev": true,
18418
+      "dependencies": {
18419
+        "lru-cache": "^6.0.0"
18420
+      },
18421
+      "bin": {
18422
+        "semver": "bin/semver.js"
18423
+      },
18424
+      "engines": {
18425
+        "node": ">=10"
18426
+      }
18427
+    },
18428
+    "node_modules/ts-loader/node_modules/supports-color": {
18429
+      "version": "7.2.0",
18430
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
18431
+      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
18432
+      "dev": true,
18433
+      "dependencies": {
18434
+        "has-flag": "^4.0.0"
18435
+      },
18436
+      "engines": {
18437
+        "node": ">=8"
18438
+      }
18439
+    },
18335 18440
     "node_modules/tsconfig-paths": {
18336 18441
       "version": "3.12.0",
18337 18442
       "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz",
@@ -33840,6 +33945,78 @@
33840 33945
       "resolved": "https://registry.npmjs.org/ts-easing/-/ts-easing-0.2.0.tgz",
33841 33946
       "integrity": "sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ=="
33842 33947
     },
33948
+    "ts-loader": {
33949
+      "version": "9.2.6",
33950
+      "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.6.tgz",
33951
+      "integrity": "sha512-QMTC4UFzHmu9wU2VHZEmWWE9cUajjfcdcws+Gh7FhiO+Dy0RnR1bNz0YCHqhI0yRowCE9arVnNxYHqELOy9Hjw==",
33952
+      "dev": true,
33953
+      "requires": {
33954
+        "chalk": "^4.1.0",
33955
+        "enhanced-resolve": "^5.0.0",
33956
+        "micromatch": "^4.0.0",
33957
+        "semver": "^7.3.4"
33958
+      },
33959
+      "dependencies": {
33960
+        "ansi-styles": {
33961
+          "version": "4.3.0",
33962
+          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
33963
+          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
33964
+          "dev": true,
33965
+          "requires": {
33966
+            "color-convert": "^2.0.1"
33967
+          }
33968
+        },
33969
+        "chalk": {
33970
+          "version": "4.1.2",
33971
+          "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
33972
+          "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
33973
+          "dev": true,
33974
+          "requires": {
33975
+            "ansi-styles": "^4.1.0",
33976
+            "supports-color": "^7.1.0"
33977
+          }
33978
+        },
33979
+        "color-convert": {
33980
+          "version": "2.0.1",
33981
+          "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
33982
+          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
33983
+          "dev": true,
33984
+          "requires": {
33985
+            "color-name": "~1.1.4"
33986
+          }
33987
+        },
33988
+        "color-name": {
33989
+          "version": "1.1.4",
33990
+          "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
33991
+          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
33992
+          "dev": true
33993
+        },
33994
+        "has-flag": {
33995
+          "version": "4.0.0",
33996
+          "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
33997
+          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
33998
+          "dev": true
33999
+        },
34000
+        "semver": {
34001
+          "version": "7.3.5",
34002
+          "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
34003
+          "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
34004
+          "dev": true,
34005
+          "requires": {
34006
+            "lru-cache": "^6.0.0"
34007
+          }
34008
+        },
34009
+        "supports-color": {
34010
+          "version": "7.2.0",
34011
+          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
34012
+          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
34013
+          "dev": true,
34014
+          "requires": {
34015
+            "has-flag": "^4.0.0"
34016
+          }
34017
+        }
34018
+      }
34019
+    },
33843 34020
     "tsconfig-paths": {
33844 34021
       "version": "3.12.0",
33845 34022
       "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz",

+ 1
- 0
package.json Bestand weergeven

@@ -166,6 +166,7 @@
166 166
     "string-replace-loader": "3.0.3",
167 167
     "style-loader": "0.19.0",
168 168
     "traverse": "0.6.6",
169
+    "ts-loader": "9.2.6",
169 170
     "typescript": "4.3.5",
170 171
     "unorm": "1.6.0",
171 172
     "webpack": "5.57.1",

react/features/analytics/actionTypes.js → react/features/analytics/actionTypes.ts Bestand weergeven


+ 2
- 2
react/features/analytics/functions.js Bestand weergeven

@@ -8,9 +8,9 @@ import {
8 8
 } from '../base/environment/utils';
9 9
 import JitsiMeetJS, {
10 10
     analytics,
11
-    browser,
12
-    isAnalyticsEnabled
11
+    browser
13 12
 } from '../base/lib-jitsi-meet';
13
+import { isAnalyticsEnabled } from '../base/lib-jitsi-meet/functions';
14 14
 import { getJitsiMeetGlobalNS, loadScript, parseURIString } from '../base/util';
15 15
 
16 16
 import { AmplitudeHandler, MatomoHandler } from './handlers';

+ 1
- 1
react/features/app/actions.web.js Bestand weergeven

@@ -13,7 +13,7 @@ import {
13 13
     storeConfig
14 14
 } from '../base/config';
15 15
 import { setLocationURL } from '../base/connection';
16
-import { loadConfig } from '../base/lib-jitsi-meet';
16
+import { loadConfig } from '../base/lib-jitsi-meet/functions.web';
17 17
 import {
18 18
     getBackendSafeRoomName,
19 19
     parseURIString

react/features/authentication/actionTypes.js → react/features/authentication/actionTypes.ts Bestand weergeven


react/features/av-moderation/actionTypes.js → react/features/av-moderation/actionTypes.ts Bestand weergeven


react/features/base/app/actionTypes.js → react/features/base/app/actionTypes.ts Bestand weergeven


react/features/base/audio-only/actionTypes.js → react/features/base/audio-only/actionTypes.ts Bestand weergeven


react/features/base/conference/actionTypes.js → react/features/base/conference/actionTypes.ts Bestand weergeven


react/features/base/config/actionTypes.js → react/features/base/config/actionTypes.ts Bestand weergeven


react/features/base/connection/actionTypes.js → react/features/base/connection/actionTypes.ts Bestand weergeven


react/features/base/devices/actionTypes.js → react/features/base/devices/actionTypes.ts Bestand weergeven


react/features/base/dialog/actionTypes.js → react/features/base/dialog/actionTypes.ts Bestand weergeven


react/features/base/flags/actionTypes.js → react/features/base/flags/actionTypes.ts Bestand weergeven


react/features/base/i18n/actionTypes.js → react/features/base/i18n/actionTypes.ts Bestand weergeven


react/features/base/jwt/actionTypes.js → react/features/base/jwt/actionTypes.ts Bestand weergeven


react/features/base/known-domains/actionTypes.js → react/features/base/known-domains/actionTypes.ts Bestand weergeven


react/features/base/lastn/actionTypes.js → react/features/base/lastn/actionTypes.ts Bestand weergeven


react/features/base/lib-jitsi-meet/actionTypes.js → react/features/base/lib-jitsi-meet/actionTypes.ts Bestand weergeven


+ 0
- 4
react/features/base/lib-jitsi-meet/index.js Bestand weergeven

@@ -24,7 +24,3 @@ export const JitsiRecordingConstants = JitsiMeetJS.constants.recording;
24 24
 export const JitsiSIPVideoGWStatus = JitsiMeetJS.constants.sipVideoGW;
25 25
 export const JitsiTrackErrors = JitsiMeetJS.errors.track;
26 26
 export const JitsiTrackEvents = JitsiMeetJS.events.track;
27
-
28
-export * from './actions';
29
-export * from './actionTypes';
30
-export * from './functions';

react/features/base/logging/actionTypes.js → react/features/base/logging/actionTypes.ts Bestand weergeven


+ 1
- 1
react/features/base/logging/middleware.js Bestand weergeven

@@ -5,9 +5,9 @@ import Logger from '@jitsi/logger';
5 5
 import { APP_WILL_MOUNT } from '../app';
6 6
 import { CONFERENCE_JOINED, getCurrentConference } from '../conference';
7 7
 import JitsiMeetJS, {
8
-    LIB_WILL_INIT,
9 8
     JitsiConferenceEvents
10 9
 } from '../lib-jitsi-meet';
10
+import { LIB_WILL_INIT } from '../lib-jitsi-meet/actionTypes';
11 11
 import { MiddlewareRegistry } from '../redux';
12 12
 import { isTestModeEnabled } from '../testing';
13 13
 

react/features/base/media/actionTypes.js → react/features/base/media/actionTypes.ts Bestand weergeven


react/features/base/net-info/actionTypes.js → react/features/base/net-info/actionTypes.ts Bestand weergeven


react/features/base/participants/actionTypes.js → react/features/base/participants/actionTypes.ts Bestand weergeven


react/features/base/responsive-ui/actionTypes.js → react/features/base/responsive-ui/actionTypes.ts Bestand weergeven


react/features/base/settings/actionTypes.js → react/features/base/settings/actionTypes.ts Bestand weergeven


react/features/base/sounds/actionTypes.js → react/features/base/sounds/actionTypes.ts Bestand weergeven


react/features/base/testing/actionTypes.js → react/features/base/testing/actionTypes.ts Bestand weergeven


react/features/base/tracks/actionTypes.js → react/features/base/tracks/actionTypes.ts Bestand weergeven


+ 2
- 1
react/features/base/tracks/actions.js Bestand weergeven

@@ -7,7 +7,8 @@ import {
7 7
 import { NOTIFICATION_TIMEOUT_TYPE, showErrorNotification, showNotification } from '../../notifications';
8 8
 import { getCurrentConference } from '../conference';
9 9
 import { getMultipleVideoSupportFeatureFlag, getSourceNameSignalingFeatureFlag } from '../config';
10
-import { JitsiTrackErrors, JitsiTrackEvents, createLocalTrack } from '../lib-jitsi-meet';
10
+import { JitsiTrackErrors, JitsiTrackEvents } from '../lib-jitsi-meet';
11
+import { createLocalTrack } from '../lib-jitsi-meet/functions';
11 12
 import {
12 13
     CAMERA_FACING_MODE,
13 14
     MEDIA_TYPE,

react/features/base/user-interaction/actionTypes.js → react/features/base/user-interaction/actionTypes.ts Bestand weergeven


react/features/breakout-rooms/actionTypes.js → react/features/breakout-rooms/actionTypes.ts Bestand weergeven


react/features/calendar-sync/actionTypes.js → react/features/calendar-sync/actionTypes.ts Bestand weergeven


react/features/chat/actionTypes.js → react/features/chat/actionTypes.ts Bestand weergeven


react/features/deep-linking/actionTypes.js → react/features/deep-linking/actionTypes.ts Bestand weergeven


react/features/display-name/components/native/DisplayNameLabel.js → react/features/display-name/components/native/DisplayNameLabel.tsx Bestand weergeven

@@ -1,13 +1,11 @@
1
-// @flow
2
-
3
-import React, { Component } from 'react';
1
+import * as React from 'react';
4 2
 import { Text, View } from 'react-native';
5 3
 
6 4
 import {
7 5
     getParticipantById,
8 6
     getParticipantDisplayName
9
-} from '../../../base/participants';
10
-import { connect } from '../../../base/redux';
7
+} from '../../../base/participants/functions';
8
+import { connect } from '../../../base/redux/functions';
11 9
 
12 10
 import styles from './styles';
13 11
 
@@ -16,28 +14,28 @@ type Props = {
16 14
     /**
17 15
      * The name of the participant to render.
18 16
      */
19
-    _participantName: string,
17
+    _participantName: string;
20 18
 
21 19
     /**
22 20
      * True of the label needs to be rendered. False otherwise.
23 21
      */
24
-    _render: boolean,
22
+    _render: boolean;
25 23
 
26 24
     /**
27 25
      * Whether ot not the name is in a container.
28 26
      */
29
-    contained?: boolean,
27
+    contained?: boolean;
30 28
 
31 29
     /**
32 30
      * The ID of the participant to render the label for.
33 31
      */
34
-    participantId: string
32
+    participantId: string;
35 33
 }
36 34
 
37 35
 /**
38 36
  * Renders a label with the display name of the on-stage participant.
39 37
  */
40
-class DisplayNameLabel extends Component<Props> {
38
+class DisplayNameLabel extends React.Component<Props> {
41 39
     /**
42 40
      * Implements {@code Component#render}.
43 41
      *
@@ -63,18 +61,16 @@ class DisplayNameLabel extends Component<Props> {
63 61
 /**
64 62
  * Maps part of the Redux state to the props of this component.
65 63
  *
66
- * @param {Object} state - The Redux state.
64
+ * @param {any} state - The Redux state.
67 65
  * @param {Props} ownProps - The own props of the component.
68
- * @returns {{
69
- * }}
66
+ * @returns {Props}
70 67
  */
71
-function _mapStateToProps(state: Object, ownProps: Props) {
72
-    const { participantId, contained } = ownProps;
73
-    const participant = getParticipantById(state, participantId);
68
+function _mapStateToProps(state: any, ownProps) {
69
+    const participant = getParticipantById(state, ownProps.participantId);
74 70
 
75 71
     return {
76
-        _participantName: getParticipantDisplayName(state, participantId),
77
-        _render: participant && (!participant?.local || contained) && !participant?.isFakeParticipant
72
+        _participantName: getParticipantDisplayName(state, ownProps.participantId),
73
+        _render: participant && (!participant?.local || ownProps.contained) && !participant?.isFakeParticipant
78 74
     };
79 75
 }
80 76
 

+ 0
- 2
react/features/display-name/components/native/index.js Bestand weergeven

@@ -1,4 +1,2 @@
1
-// @flow
2
-
3 1
 export { default as DisplayNameLabel } from './DisplayNameLabel';
4 2
 export { default as DisplayNamePrompt } from './DisplayNamePrompt';

react/features/display-name/components/web/DisplayNameBadge.js → react/features/display-name/components/web/DisplayNameBadge.tsx Bestand weergeven

@@ -1,22 +1,19 @@
1
-// @flow
2
-
3 1
 import { makeStyles } from '@material-ui/core/styles';
4 2
 import React from 'react';
5 3
 
6
-type Props = {
7
-
8
-    /**
9
-     * The name to be displayed within the badge.
10
-     */
11
-    name: string
4
+interface Theme {
5
+    palette: any;
6
+    text01: string;
12 7
 }
13 8
 
14
-const useStyles = makeStyles(theme => {
9
+const useStyles = makeStyles((theme: Theme) => {
10
+    const { text01 } = theme.palette;
11
+
15 12
     return {
16 13
         badge: {
17 14
             background: 'rgba(0, 0, 0, 0.6)',
18 15
             borderRadius: '3px',
19
-            color: theme.palette.text01,
16
+            color: text01,
20 17
             maxWidth: '50%',
21 18
             overflow: 'hidden',
22 19
             padding: '2px 16px',
@@ -32,12 +29,12 @@ const useStyles = makeStyles(theme => {
32 29
  * @param {Props} props - The props of the component.
33 30
  * @returns {ReactElement}
34 31
  */
35
-const DisplayNameBadge = ({ name }: Props) => {
32
+const DisplayNameBadge: React.FC<{ name: string }> = ({ name }) => {
36 33
     const classes = useStyles();
37 34
 
38 35
     return (
39 36
         <div className = { classes.badge }>
40
-            {name}
37
+            { name }
41 38
         </div>
42 39
     );
43 40
 };

react/features/display-name/functions.js → react/features/display-name/functions.ts Bestand weergeven

@@ -1,4 +1,3 @@
1
-// @flow
2 1
 
3 2
 /**
4 3
  * Appends a suffix to the display name.
@@ -7,7 +6,7 @@
7 6
  * @param {string} suffix - Suffix that will be appended.
8 7
  * @returns {string} The formatted display name.
9 8
  */
10
-export function appendSuffix(displayName: string, suffix: string = '') {
9
+export function appendSuffix(displayName: string, suffix = ''): string {
11 10
     return `${displayName || suffix}${
12 11
         displayName && suffix && displayName !== suffix ? ` (${suffix})` : ''}`;
13 12
 }

react/features/dropbox/actionTypes.js → react/features/dropbox/actionTypes.ts Bestand weergeven


react/features/dynamic-branding/actionTypes.js → react/features/dynamic-branding/actionTypes.ts Bestand weergeven


+ 1
- 1
react/features/dynamic-branding/functions.any.js Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 // @flow
2 2
 
3
-import { loadConfig } from '../base/lib-jitsi-meet';
3
+import { loadConfig } from '../base/lib-jitsi-meet/functions';
4 4
 
5 5
 /**
6 6
  * Extracts the fqn part from a path, where fqn represents

react/features/e2ee/actionTypes.js → react/features/e2ee/actionTypes.ts Bestand weergeven


react/features/etherpad/actionTypes.js → react/features/etherpad/actionTypes.ts Bestand weergeven


react/features/face-landmarks/actionTypes.js → react/features/face-landmarks/actionTypes.ts Bestand weergeven

@@ -1,5 +1,3 @@
1
-// @flow
2
-
3 1
 /**
4 2
  * Redux action type dispatched in order to add a face expression.
5 3
  *
@@ -19,7 +17,7 @@ export const ADD_FACE_EXPRESSION = 'ADD_FACE_EXPRESSION';
19 17
  *      faceExpression: string
20 18
  * }
21 19
 */
22
-export const ADD_TO_FACE_EXPRESSIONS_BUFFER = 'ADD_TO_FACE_EXPRESSIONS_BUFFER ';
20
+export const ADD_TO_FACE_EXPRESSIONS_BUFFER = 'ADD_TO_FACE_EXPRESSIONS_BUFFER';
23 21
 
24 22
 /**
25 23
  * Redux action type dispatched in order to clear the face expressions buffer in the state.

+ 0
- 2
react/features/face-landmarks/middleware.js Bestand weergeven

@@ -1,5 +1,3 @@
1
-// @flow
2
-
3 1
 import {
4 2
     CONFERENCE_JOINED,
5 3
     CONFERENCE_WILL_LEAVE,

react/features/feedback/actionTypes.js → react/features/feedback/actionTypes.ts Bestand weergeven


react/features/filmstrip/actionTypes.js → react/features/filmstrip/actionTypes.ts Bestand weergeven


react/features/follow-me/actionTypes.js → react/features/follow-me/actionTypes.ts Bestand weergeven


react/features/gifs/actionTypes.js → react/features/gifs/actionTypes.ts Bestand weergeven


react/features/google-api/actionTypes.js → react/features/google-api/actionTypes.ts Bestand weergeven


react/features/invite/actionTypes.js → react/features/invite/actionTypes.ts Bestand weergeven


react/features/jaas/actionTypes.js → react/features/jaas/actionTypes.ts Bestand weergeven


react/features/keyboard-shortcuts/actionTypes.js → react/features/keyboard-shortcuts/actionTypes.ts Bestand weergeven


react/features/large-video/actionTypes.js → react/features/large-video/actionTypes.ts Bestand weergeven


react/features/lobby/actionTypes.js → react/features/lobby/actionTypes.ts Bestand weergeven


react/features/local-recording/actionTypes.js → react/features/local-recording/actionTypes.ts Bestand weergeven


react/features/mobile/audio-mode/actionTypes.js → react/features/mobile/audio-mode/actionTypes.ts Bestand weergeven


react/features/mobile/background/actionTypes.js → react/features/mobile/background/actionTypes.ts Bestand weergeven


react/features/mobile/call-integration/actionTypes.js → react/features/mobile/call-integration/actionTypes.ts Bestand weergeven


react/features/mobile/external-api/actionTypes.js → react/features/mobile/external-api/actionTypes.ts Bestand weergeven


react/features/mobile/full-screen/actionTypes.js → react/features/mobile/full-screen/actionTypes.ts Bestand weergeven


react/features/mobile/picture-in-picture/actionTypes.js → react/features/mobile/picture-in-picture/actionTypes.ts Bestand weergeven


react/features/mobile/watchos/actionTypes.js → react/features/mobile/watchos/actionTypes.ts Bestand weergeven


react/features/no-audio-signal/actionTypes.js → react/features/no-audio-signal/actionTypes.ts Bestand weergeven


react/features/noise-detection/actionTypes.js → react/features/noise-detection/actionTypes.ts Bestand weergeven


react/features/notifications/actionTypes.js → react/features/notifications/actionTypes.ts Bestand weergeven


react/features/overlay/actionTypes.js → react/features/overlay/actionTypes.ts Bestand weergeven


+ 1
- 1
react/features/overlay/components/AbstractPageReloadOverlay.js Bestand weergeven

@@ -12,7 +12,7 @@ import { reloadNow } from '../../app/actions';
12 12
 import {
13 13
     isFatalJitsiConferenceError,
14 14
     isFatalJitsiConnectionError
15
-} from '../../base/lib-jitsi-meet';
15
+} from '../../base/lib-jitsi-meet/functions';
16 16
 import logger from '../logger';
17 17
 
18 18
 import ReloadButton from './web/ReloadButton';

+ 2
- 2
react/features/overlay/middleware.js Bestand weergeven

@@ -1,10 +1,10 @@
1 1
 // @flow
2 2
 
3
+import { JitsiConferenceErrors } from '../base/lib-jitsi-meet';
3 4
 import {
4
-    JitsiConferenceErrors,
5 5
     isFatalJitsiConferenceError,
6 6
     isFatalJitsiConnectionError
7
-} from '../base/lib-jitsi-meet';
7
+} from '../base/lib-jitsi-meet/functions';
8 8
 import { StateListenerRegistry } from '../base/redux';
9 9
 
10 10
 import { setFatalError } from './actions';

react/features/participants-pane/actionTypes.js → react/features/participants-pane/actionTypes.ts Bestand weergeven


react/features/polls/actionTypes.js → react/features/polls/actionTypes.ts Bestand weergeven


react/features/power-monitor/actionTypes.js → react/features/power-monitor/actionTypes.ts Bestand weergeven


react/features/prejoin/actionTypes.js → react/features/prejoin/actionTypes.ts Bestand weergeven


+ 2
- 1
react/features/prejoin/actions.js Bestand weergeven

@@ -6,7 +6,8 @@ declare var APP: Object;
6 6
 import { v4 as uuidv4 } from 'uuid';
7 7
 
8 8
 import { getDialOutStatusUrl, getDialOutUrl, updateConfig } from '../base/config';
9
-import { browser, createLocalTrack } from '../base/lib-jitsi-meet';
9
+import { browser } from '../base/lib-jitsi-meet';
10
+import { createLocalTrack } from '../base/lib-jitsi-meet/functions';
10 11
 import { isVideoMutedByUser, MEDIA_TYPE } from '../base/media';
11 12
 import {
12 13
     createLocalTracksF,

react/features/reactions/actionTypes.js → react/features/reactions/actionTypes.ts Bestand weergeven


react/features/recent-list/actionTypes.js → react/features/recent-list/actionTypes.ts Bestand weergeven


react/features/recording/actionTypes.js → react/features/recording/actionTypes.ts Bestand weergeven


+ 6
- 1
react/features/recording/actions.any.js Bestand weergeven

@@ -21,7 +21,12 @@ import {
21 21
     SET_SELECTED_RECORDING_SERVICE,
22 22
     SET_STREAM_KEY
23 23
 } from './actionTypes';
24
-import { getRecordingLink, getResourceId, isSavingRecordingOnDropbox, sendMeetingHighlight } from './functions';
24
+import {
25
+    getRecordingLink,
26
+    getResourceId,
27
+    isSavingRecordingOnDropbox,
28
+    sendMeetingHighlight
29
+} from './functions';
25 30
 import logger from './logger';
26 31
 
27 32
 declare var APP: Object;

react/features/remote-control/actionTypes.js → react/features/remote-control/actionTypes.ts Bestand weergeven


+ 1
- 1
react/features/rtcstats/middleware.js Bestand weergeven

@@ -4,7 +4,7 @@ import { jitsiLocalStorage } from '@jitsi/js-utils';
4 4
 
5 5
 import { getAmplitudeIdentity } from '../analytics';
6 6
 import { CONFERENCE_UNIQUE_ID_SET, E2E_RTT_CHANGED, getConferenceOptions, getRoomName } from '../base/conference';
7
-import { LIB_WILL_INIT } from '../base/lib-jitsi-meet';
7
+import { LIB_WILL_INIT } from '../base/lib-jitsi-meet/actionTypes';
8 8
 import { DOMINANT_SPEAKER_CHANGED, getLocalParticipant } from '../base/participants';
9 9
 import { MiddlewareRegistry } from '../base/redux';
10 10
 import { ADD_FACE_EXPRESSION } from '../face-landmarks/actionTypes';

react/features/screen-share/actionTypes.js → react/features/screen-share/actionTypes.ts Bestand weergeven


react/features/screenshot-capture/actionTypes.js → react/features/screenshot-capture/actionTypes.ts Bestand weergeven


react/features/settings/actionTypes.js → react/features/settings/actionTypes.ts Bestand weergeven


react/features/share-room/actionTypes.js → react/features/share-room/actionTypes.ts Bestand weergeven


react/features/shared-video/actionTypes.js → react/features/shared-video/actionTypes.ts Bestand weergeven


react/features/speaker-stats/actionTypes.js → react/features/speaker-stats/actionTypes.ts Bestand weergeven


react/features/subtitles/actionTypes.js → react/features/subtitles/actionTypes.ts Bestand weergeven


react/features/talk-while-muted/actionTypes.js → react/features/talk-while-muted/actionTypes.ts Bestand weergeven


react/features/toolbox/actionTypes.js → react/features/toolbox/actionTypes.ts Bestand weergeven


react/features/transcribing/actionTypes.js → react/features/transcribing/actionTypes.ts Bestand weergeven


+ 3
- 1
react/features/transcribing/reducer.js Bestand weergeven

@@ -1,10 +1,12 @@
1
+
1 2
 import { ReducerRegistry } from '../base/redux';
3
+
2 4
 import {
3 5
     _TRANSCRIBER_JOINED,
4 6
     _TRANSCRIBER_LEFT,
5 7
     _POTENTIAL_TRANSCRIBER_JOINED,
6 8
     SET_PENDING_TRANSCRIBING_NOTIFICATION_UID
7
-} from '../transcribing/actionTypes';
9
+} from './actionTypes';
8 10
 
9 11
 /**
10 12
  * Returns initial state for transcribing feature part of Redux store.

react/features/video-layout/actionTypes.js → react/features/video-layout/actionTypes.ts Bestand weergeven


+ 0
- 0
react/features/video-layout/middleware.web.js Bestand weergeven


Some files were not shown because too many files changed in this diff

Laden…
Annuleren
Opslaan