bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/layout/defaultValues.js

60 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-05-20 06:29:03 +08:00
import { Meteor } from 'meteor/meteor';
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;
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,
camerasMargin: 10,
captionsMargin: 10,
2021-05-18 04:25:07 +08:00
presentationTabOrder: 5,
2021-06-09 21:49:59 +08:00
presentationMinHeight: 220,
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,
actionBarHeight: 42,
actionBarPadding: 11.2,
2021-05-18 04:25:07 +08:00
actionBarTabOrder: 6,
sidebarNavMaxWidth: 240,
2021-12-01 00:43:16 +08:00
sidebarNavMinWidth: 70,
2021-05-18 04:25:07 +08:00
sidebarNavHeight: '100%',
sidebarNavTop: 0,
sidebarNavLeft: 0,
sidebarNavTabOrder: 1,
sidebarNavPanel: PANELS.USERLIST,
2021-05-18 04:25:07 +08:00
sidebarContentMaxWidth: 800,
2021-12-01 00:43:16 +08:00
sidebarContentMinWidth: 70,
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,
NAVBAR_HEIGHT,
LARGE_NAVBAR_HEIGHT,
2021-05-18 04:25:07 +08:00
};