
* Rename MattermostTeam -> UniqueServer, MattermostTab -> UniqueView * Rename 'team' to 'server' * Some further cleanup * Rename weirdly named function * Rename 'tab' to 'view' in most instances * Fix i18n * PR feedback
23 lines
600 B
TypeScript
23 lines
600 B
TypeScript
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
/* istanbul ignore file */
|
|
|
|
import {initialize} from './initialize';
|
|
|
|
// TODO: Singletons, we need DI :D
|
|
import('main/views/serverDropdownView');
|
|
import('main/views/downloadsDropdownMenuView');
|
|
import('main/views/downloadsDropdownView');
|
|
|
|
if (process.env.NODE_ENV !== 'production' && module.hot) {
|
|
module.hot.accept();
|
|
}
|
|
|
|
// attempt to initialize the application
|
|
try {
|
|
initialize();
|
|
} catch (error: any) {
|
|
throw new Error(`App initialization failed: ${error.toString()}`);
|
|
}
|