2021-05-20 06:29:03 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
2021-05-19 22:51:31 +08:00
|
|
|
import { LAYOUT_TYPE, CAMERADOCK_POSITION, PANELS } from './enums';
|
2021-05-18 04:25:07 +08:00
|
|
|
|
2021-05-20 06:29:03 +08:00
|
|
|
const CHAT_CONFIG = Meteor.settings.public.chat;
|
2021-05-20 22:36:26 +08:00
|
|
|
const PUBLIC_CHAT_ID = CHAT_CONFIG.public_id;
|
2021-08-05 15:26:03 +08:00
|
|
|
const NAVBAR_HEIGHT = 112;
|
|
|
|
const LARGE_NAVBAR_HEIGHT = 170;
|
2021-05-20 06:29:03 +08:00
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
const DEFAULT_VALUES = {
|
|
|
|
layoutType: LAYOUT_TYPE.CUSTOM_LAYOUT,
|
|
|
|
panelType: 'chat',
|
2021-05-20 22:36:26 +08:00
|
|
|
idChatOpen: PUBLIC_CHAT_ID,
|
2021-06-19 02:32:46 +08:00
|
|
|
fontSize: 16,
|
2021-05-18 04:25:07 +08:00
|
|
|
|
|
|
|
cameraPosition: CAMERADOCK_POSITION.CONTENT_TOP,
|
|
|
|
cameraDockTabOrder: 4,
|
2021-07-30 02:22:46 +08:00
|
|
|
cameraDockMinHeight: 120,
|
|
|
|
cameraDockMinWidth: 120,
|
2021-07-29 02:48:22 +08:00
|
|
|
camerasMargin: 10,
|
2021-08-16 21:38:39 +08:00
|
|
|
captionsMargin: 10,
|
2021-05-18 04:25:07 +08:00
|
|
|
|
|
|
|
presentationTabOrder: 5,
|
2021-06-09 21:49:59 +08:00
|
|
|
presentationMinHeight: 220,
|
2021-08-04 19:42:38 +08:00
|
|
|
presentationToolbarMinWidth: 430,
|
2021-05-18 04:25:07 +08:00
|
|
|
|
2021-07-12 21:22:26 +08:00
|
|
|
bannerHeight: 34,
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
navBarHeight: 85,
|
|
|
|
navBarTop: 0,
|
|
|
|
navBarTabOrder: 3,
|
|
|
|
|
2021-07-22 22:04:38 +08:00
|
|
|
actionBarHeight: 42,
|
|
|
|
actionBarPadding: 11.2,
|
2021-05-18 04:25:07 +08:00
|
|
|
actionBarTabOrder: 6,
|
|
|
|
|
|
|
|
sidebarNavMaxWidth: 240,
|
|
|
|
sidebarNavMinWidth: 150,
|
|
|
|
sidebarNavHeight: '100%',
|
|
|
|
sidebarNavTop: 0,
|
|
|
|
sidebarNavLeft: 0,
|
|
|
|
sidebarNavTabOrder: 1,
|
2021-05-19 22:51:31 +08:00
|
|
|
sidebarNavPanel: PANELS.USERLIST,
|
2021-05-18 04:25:07 +08:00
|
|
|
|
|
|
|
sidebarContentMaxWidth: 350,
|
|
|
|
sidebarContentMinWidth: 150,
|
2021-06-29 21:31:44 +08:00
|
|
|
sidebarContentMinHeight: 200,
|
2021-05-18 04:25:07 +08:00
|
|
|
sidebarContentHeight: '100%',
|
|
|
|
sidebarContentTop: 0,
|
|
|
|
sidebarContentTabOrder: 2,
|
2021-07-20 21:19:48 +08:00
|
|
|
sidebarContentPanel: PANELS.NONE,
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default DEFAULT_VALUES;
|
|
|
|
export {
|
|
|
|
LAYOUT_TYPE,
|
|
|
|
CAMERADOCK_POSITION,
|
2021-08-05 15:26:03 +08:00
|
|
|
NAVBAR_HEIGHT,
|
|
|
|
LARGE_NAVBAR_HEIGHT,
|
2021-05-18 04:25:07 +08:00
|
|
|
};
|