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.

hooks.js 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. // console.log("IMP_TRC","hooks.js")
  2. import React, { Component } from 'react';
  3. import * as react_mod from 'react';
  4. // import { MiddlewareRegistry } from '../../react/features/base/redux';
  5. import { MiddlewareRegistry,ReducerRegistry } from '../../react/features/base/redux';
  6. import * as base_redux from '../../react/features/base/redux';
  7. import * as filmstrip from '../../react/features/filmstrip';
  8. // toolbox\components
  9. // C:\bspace\repos\jc9\jitsi_corner9\react\features\toolbox\components
  10. import * as filmstrip_web_Thumbnail from '../../react/features/filmstrip/components/web/Thumbnail';
  11. import * as filmstrip_web_ThumbnailWrapper from '../../react/features/filmstrip/components/web/ThumbnailWrapper';
  12. import { connect as reduxConnect } from 'react-redux';
  13. import * as react_redux from 'react-redux';
  14. import { FixedSizeList, FixedSizeGrid } from 'react-window';
  15. import * as react_window from 'react-window';
  16. // import { LAYOUTS } from './constants';
  17. import * as video_layout from '../../react/features/video-layout';
  18. import * as espree from "espree";
  19. import * as esprima from "esprima";
  20. import * as toolbox_components from '../../react/features/toolbox/components';
  21. // import * as toolbox_mod from '../../react/features/toolbox';
  22. import * as toolbox from '../../react/features/toolbox/components/web/Toolbox';
  23. // import * as base_config_web_fns from "'../../react/features/base/config/functions.web";
  24. // import { isToolbarButtonEnabled } from '../../../base/config/functions.web';
  25. import { isToolbarButtonEnabled } from '../../react/features/base/config/functions.web';
  26. // import CONFIG_WHITELIST from "'../../react/features/base/config";
  27. import * as toolbox_constants from '../../react/features/toolbox/constants';
  28. import * as toolbox_functions from '../../react/features/toolbox/functions';
  29. import * as large_video from '../../react/features/large-video/components/LargeVideo.web';
  30. import * as large_video_mod from '../../react/features/large-video';
  31. import * as LargeVideoManager from '../../modules/UI/videolayout/LargeVideoManager';
  32. // C:\ws\repos\jitsi_main\jc9\jitsi_corner9\modules\UI\videolayout\LargeVideoManager.js
  33. // C:\ws\repos\jitsi_main\jc9\jitsi_corner9\react\features\large-video\components\LargeVideo.web.js
  34. // import { isToolbarButtonEnabled } from '../../../base/config/functions.web';
  35. // import { THRESHOLDS, NOT_APPLICABLE, NOTIFY_CLICK_MODE } from '../../constants';
  36. // import { isDesktopShareButtonDisabled, isToolboxVisible } from '../../functions';
  37. // import * as babel_eslint from "babel/eslint-parser";
  38. // import * as babel from "babel";
  39. // const ast = espree.parse(code);
  40. // import { LAYOUTS } from './constants';
  41. // C:\bspace\repos\jc9\jitsi_corner9\react\features\video-layout\functions.any.js
  42. // C:\bspace\repos\jc9\jitsi_corner9\react\features\filmstrip\components\web\Thumbnail.js
  43. /*
  44. if (window.dev_middleware_listner){
  45. MiddlewareRegistry.register(store => next => action => {
  46. MiddlewareRegistry.register(store => next => action => {
  47. // clog("dbg zyx",action.type)
  48. // if
  49. setTimeout(window.dev_middleware_listner,1,{store,next,action,that:this})
  50. // window.dev_middleware_listner({store,next,action,that:this})
  51. // switch(action.type){
  52. // case "CONFERENCE_JOINED":
  53. // }
  54. return next(action);
  55. });
  56. }
  57. */
  58. /*
  59. function hook_dev(){
  60. console.log("ONL_: hook_dev",{MiddlewareRegistry,ReducerRegistry})
  61. hook_dev()
  62. }
  63. */
  64. import './nooks'
  65. if (window.glob_rx){
  66. console.log("ONL_: GLOB_RX")
  67. console.log("CAN: YOU FINDME_make_deploy!!")
  68. MiddlewareRegistry.register(store => next => action => {
  69. var o
  70. if (glob_rx?.fns?.dev_middleware_listner_sync_prevent){
  71. // if (glob_rx?.fns?.dev_middleware_listner_sync_prevent){
  72. o = glob_rx.fns.dev_middleware_listner_sync_prevent({store,next,action,that:this})
  73. }
  74. // setTimeout(window.dev_middleware_listner,1,{store,next,action,that:this})
  75. if (o && o.prevent){
  76. clog(":prevent:")
  77. if ("ret" in o){
  78. return o.ret
  79. }
  80. } else {
  81. return next(action);
  82. }
  83. });
  84. // console.log("idk jdev..")
  85. MiddlewareRegistry.register(store => next => action => {
  86. glob_rx?.fns?.dev_middleware_listner ? setTimeout(glob_rx.fns.dev_middleware_listner,1,{store,next,action,that:this}) : 0
  87. return next(action);
  88. /*
  89. if (glob_rx.fns.dev_middleware_listner){
  90. setTimeout(glob_rx.fns.dev_middleware_listner,1,{store,next,action,that:this})
  91. }
  92. if (window.dev_middleware_listner){
  93. setTimeout(window.dev_middleware_listner,1,{store,next,action,that:this})
  94. }
  95. */
  96. })
  97. MiddlewareRegistry.register(store => next => action => {
  98. glob_rx?.fns?.dev_middleware_listner_sync ? glob_rx.fns.dev_middleware_listner_sync({store,next,action,that:this}) : 0
  99. return next(action);
  100. })
  101. /*
  102. MiddlewareRegistry.register(store => next => action => {
  103. glob_rx?.fns?.dev_middleware_listner_sync_v2 ? glob_rx.fns.dev_middleware_listner_sync_v2({store,next,action,that:this}) : 0
  104. return next(action);
  105. })
  106. */
  107. // react_window,FixedSizeList, FixedSizeGrid
  108. if (glob_rx.react.i){
  109. glob_rx.react.i.MiddlewareRegistry = MiddlewareRegistry
  110. glob_rx.react.i.reduxConnect = reduxConnect
  111. glob_rx.react.i.ReducerRegistry = ReducerRegistry
  112. glob_rx.react.i.Component = Component
  113. glob_rx.react.i.React = React
  114. glob_rx.react.i.FixedSizeList = FixedSizeList
  115. glob_rx.react.i.FixedSizeGrid = FixedSizeGrid
  116. glob_rx.react.i.toolbox = toolbox
  117. glob_rx.react.i.toolbox_constants = toolbox_constants
  118. glob_rx.react.i.toolbox_functions = toolbox_functions
  119. glob_rx.react.i.isToolbarButtonEnabled = isToolbarButtonEnabled
  120. glob_rx.react.i.filmstrip_web_ThumbnailWrapper = filmstrip_web_ThumbnailWrapper
  121. glob_rx.react.modules.react_redux = react_redux
  122. glob_rx.react.modules.react_mod = react_mod
  123. glob_rx.react.modules.large_video_mod = large_video_mod
  124. glob_rx.react.modules.large_video = large_video
  125. glob_rx.react.modules.LargeVideoManager = LargeVideoManager
  126. glob_rx.react.modules.base_redux = base_redux
  127. glob_rx.react.modules.filmstrip = filmstrip
  128. glob_rx.react.modules.filmstrip_web_Thumbnail = filmstrip_web_Thumbnail
  129. glob_rx.react.modules.react_window = react_window
  130. glob_rx.react.modules.video_layout = video_layout
  131. glob_rx.react.modules.toolbox_components = toolbox_components
  132. glob_rx.react.modules.espree = espree
  133. glob_rx.react.modules.esprima = esprima
  134. // glob_rx.react.modules.base_config = base_config
  135. // glob_rx.react.modules.base_config_web_fns = base_config_web_fns
  136. // glob_rx.react.modules.babel_eslint = babel_eslint
  137. // glob_rx.react.modules.babel = babel
  138. // glob_rx.react.modules.toolbox_mod = toolbox_mod
  139. }
  140. // glob_rx.react.i
  141. }