Move roomnameGenerator.js out of features/base/util
Over time features/base/util became a bucket where people seemed to dump just about anything they couldn't think of a better place for. That's a trend I don't like encouraging. Given that roomnameGenerator.js is currently used in features/welcome only, I'm fine with moving it there for the greater good.
This commit is contained in:
parent
a8b3177e20
commit
3db557e2c9
|
@ -1,3 +1,2 @@
|
||||||
export * from './loadScript';
|
export * from './loadScript';
|
||||||
export * from './randomUtil';
|
export * from './randomUtil';
|
||||||
export * from './roomnameGenerator';
|
|
||||||
|
|
|
@ -4,7 +4,8 @@ import { appNavigate } from '../../app';
|
||||||
import { isRoomValid } from '../../base/conference';
|
import { isRoomValid } from '../../base/conference';
|
||||||
import { VideoTrack } from '../../base/media';
|
import { VideoTrack } from '../../base/media';
|
||||||
import { getLocalVideoTrack } from '../../base/tracks';
|
import { getLocalVideoTrack } from '../../base/tracks';
|
||||||
import { generateRoomWithoutSeparator } from '../../base/util';
|
|
||||||
|
import { generateRoomWithoutSeparator } from '../roomnameGenerator';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base (abstract) class for container component rendering the welcome page.
|
* Base (abstract) class for container component rendering the welcome page.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* @flow */
|
/* @flow */
|
||||||
|
|
||||||
import { randomElement } from './randomUtil';
|
import { randomElement } from '../base/util';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
const _NOUN_ = [
|
const _NOUN_ = [
|
|
@ -1,9 +1,9 @@
|
||||||
/* global APP */
|
/* global APP */
|
||||||
|
|
||||||
import { RouteRegistry } from '../base/react';
|
import { RouteRegistry } from '../base/react';
|
||||||
import { generateRoomWithoutSeparator } from '../base/util';
|
|
||||||
|
|
||||||
import { WelcomePage } from './components';
|
import { WelcomePage } from './components';
|
||||||
|
import { generateRoomWithoutSeparator } from './roomnameGenerator';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register route for WelcomePage.
|
* Register route for WelcomePage.
|
||||||
|
|
Loading…
Reference in New Issue