Selaa lähdekoodia

Move roomname generator to React

master
Ilya Daynatovich 8 vuotta sitten
vanhempi
commit
83dd56d34c

+ 3
- 1
app.js Näytä tiedosto

@@ -24,7 +24,9 @@ const LogCollector = Logger.LogCollector;
24 24
 import JitsiMeetLogStorage from "./modules/util/JitsiMeetLogStorage";
25 25
 
26 26
 import URLProcessor from "./modules/config/URLProcessor";
27
-import { generateRoomWithoutSeparator } from './modules/util/RoomnameGenerator';
27
+import {
28
+    generateRoomWithoutSeparator
29
+} from './react/features/base/util/roomnameGenerator';
28 30
 
29 31
 import UI from "./modules/UI/UI";
30 32
 import settings from "./modules/settings/Settings";

+ 1
- 1
modules/UI/UI.js Näytä tiedosto

@@ -25,7 +25,7 @@ import SettingsMenu from "./side_pannels/settings/SettingsMenu";
25 25
 import Profile from "./side_pannels/profile/Profile";
26 26
 import Settings from "./../settings/Settings";
27 27
 import RingOverlay from "./ring_overlay/RingOverlay";
28
-import { randomInt } from "../util/RandomUtil";
28
+import { randomInt } from "../../react/features/base/util/randomUtil";
29 29
 import UIErrors from './UIErrors';
30 30
 import { debounce } from "../util/helpers";
31 31
 

+ 3
- 1
modules/UI/welcome_page/WelcomePage.js Näytä tiedosto

@@ -1,6 +1,8 @@
1 1
 /* global $, interfaceConfig, APP */
2 2
 
3
-import { generateRoomWithoutSeparator } from '../../util/RoomnameGenerator';
3
+import {
4
+    generateRoomWithoutSeparator
5
+} from '../../../react/features/base/util/roomnameGenerator';
4 6
 import UIUtil from '../util/UIUtil';
5 7
 
6 8
 var animateTimeout, updateTimeout;

+ 1
- 0
react/features/base/util/index.js Näytä tiedosto

@@ -1 +1,2 @@
1 1
 export * from './loadScript';
2
+export * from './roomnameGenerator';

modules/util/RandomUtil.js → react/features/base/util/randomUtil.js Näytä tiedosto


modules/util/RoomnameGenerator.js → react/features/base/util/roomnameGenerator.js Näytä tiedosto

@@ -1,4 +1,4 @@
1
-import { randomElement } from './RandomUtil';
1
+import { randomElement } from './randomUtil';
2 2
 
3 3
 /*
4 4
 const _NOUN_ = [

Loading…
Peruuta
Tallenna