@opendesign-plus/components 0.0.1-rc.12 → 0.0.1-rc.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +27 -27
  3. package/dist/components/activity/composables/useActivityConfig.d.ts +17 -0
  4. package/dist/components/activity/config.d.ts +0 -14
  5. package/dist/components/meeting/composables/useMeetingConfig.d.ts +14 -0
  6. package/dist/components/meeting/config.d.ts +1 -16
  7. package/dist/components/meeting/types.d.ts +1 -0
  8. package/dist/components/meeting/utils.d.ts +1 -15
  9. package/dist/components.cjs.js +39 -39
  10. package/dist/components.css +1 -1
  11. package/dist/components.es.js +10454 -10472
  12. package/package.json +1 -1
  13. package/src/components/activity/OActivityApproval.vue +3 -4
  14. package/src/components/activity/OActivityForm.vue +5 -4
  15. package/src/components/activity/OMyActivityCalendar.vue +11 -12
  16. package/src/components/activity/composables/useActivityConfig.ts +141 -0
  17. package/src/components/activity/config.ts +1 -141
  18. package/src/components/meeting/OMeetingCalendar.vue +7 -9
  19. package/src/components/meeting/OMeetingForm.vue +11 -18
  20. package/src/components/meeting/OMyMeetingCalendar.vue +4 -8
  21. package/src/components/meeting/OSigMeetingCalendar.vue +3 -5
  22. package/src/components/meeting/components/OMeetingCalendarList.vue +7 -8
  23. package/src/components/meeting/components/OMeetingDetail.vue +7 -7
  24. package/src/components/meeting/components/OSigMeetingAside.vue +3 -1
  25. package/src/components/meeting/composables/useMeetingConfig.ts +111 -0
  26. package/src/components/meeting/config.ts +58 -120
  27. package/src/components/meeting/types.ts +1 -0
  28. package/src/components/meeting/utils.ts +69 -122
  29. package/src/i18n/en.ts +1 -1
@@ -1,18 +1,18 @@
1
1
  <script setup lang="ts">
2
2
  import { OLink } from '@opensig/opendesign';
3
3
  import { computed, ref } from 'vue';
4
- import { CalendarDataType, MeetingItemT } from '@/components/meeting/types.ts';
4
+ import { CalendarDataType, MeetingItemT } from '../types.ts';
5
5
  import MoreText from '@/components/common/MoreText.vue';
6
- import { Locales, useI18n } from '@/i18n';
7
- import { formatDate, getPlatformLabel } from '@/components/meeting/utils.ts';
6
+ import { formatDate } from '@/components/meeting/utils.ts';
7
+ import { useMeetingConfig } from '../composables/useMeetingConfig';
8
8
 
9
9
  const props = defineProps<{
10
10
  data: MeetingItemT;
11
11
  from?: string;
12
12
  show: boolean;
13
13
  }>();
14
- const { t, locale } = useI18n();
15
- const isZh = computed(() => locale.value === Locales.ZH);
14
+ const { t, getPlatformLabel } = useMeetingConfig();
15
+
16
16
  // 会议详情配置
17
17
  const infoList = computed(() =>
18
18
  [
@@ -29,7 +29,7 @@ const infoList = computed(() =>
29
29
 
30
30
 
31
31
  const activityInfoList = computed(() => {
32
- const isLive = props.data.activity_type === 2 || props.data.activity_type === '线上';
32
+ const isLive = props.data.live_url?.length > 0;
33
33
  return [
34
34
  { label: t('meeting.activityDetail2'), key: 'agenda', ellipsis: true },
35
35
  { label: t('meeting.startDate'), key: 'start_date_time' },
@@ -42,7 +42,7 @@ const activityInfoList = computed(() => {
42
42
  ].slice(0, props.from === 'home' ? 5 : 8);
43
43
  });
44
44
  const activityInfoApprovalList = computed(() => {
45
- const isLive = props.data.activity_type === 2 || props.data.activity_type === '线上';
45
+ const isLive = props.data.live_url?.length > 0;
46
46
  return [
47
47
  { label: t('meeting.activityType'), key: 'activity_type', isType: true },
48
48
  { label: isLive ? t('meeting.livePlatform') : t('meeting.activityAddress'), key: 'address' },
@@ -1,9 +1,11 @@
1
1
  <script setup lang="ts">
2
2
  import { OIcon, OIconArrowLeft, OIconArrowRight } from '@opensig/opendesign';
3
3
  import IconMeetinging from '~icons/meeting/icon-meet.svg';
4
- import { getConfig } from '@/components/meeting/utils.ts';
4
+ import { useMeetingConfig } from '@/components/meeting/composables/useMeetingConfig';
5
5
  import { CalendarDataType } from '@/components/meeting';
6
6
 
7
+ const { getConfig } = useMeetingConfig();
8
+
7
9
  const props = defineProps<{
8
10
  data: any[];
9
11
  current: number;
@@ -0,0 +1,111 @@
1
+ import { computed } from 'vue';
2
+ import dayjs from 'dayjs';
3
+ import { useI18n } from '@/i18n';
4
+ import IconAll from '~icons/meeting/icon-all.svg';
5
+ import IconEvent from '~icons/meeting/icon-event.svg';
6
+ import IconMeeting from '~icons/meeting/icon-meet.svg';
7
+ import IconSummit from '~icons/meeting/icon-summit.svg';
8
+ import { CalendarDataType, meetingTabT, OptionItemT } from '../types';
9
+ import { INTERVAL_DAY, INTERVAL_MONTH, INTERVAL_WEEK, TYPE_COLOR_MAP } from '../config';
10
+
11
+ export const useMeetingConfig = () => {
12
+ const { t, locale } = useI18n();
13
+
14
+ const meetingTabs = computed<meetingTabT[]>(() => [
15
+ { label: t('meeting.meetingTypeAll'), value: CalendarDataType.ALL, icon: IconAll },
16
+ { label: t('meeting.meetingTypeMeet'), value: CalendarDataType.MEETING, icon: IconMeeting, color: TYPE_COLOR_MAP.meeting, zIndex: 3 },
17
+ { label: t('meeting.meetingTypeEvents'), value: CalendarDataType.EVENTS, icon: IconEvent, color: TYPE_COLOR_MAP.events, zIndex: 2 },
18
+ { label: t('meeting.meetingTypeSummit'), value: CalendarDataType.SUMMIT, icon: IconSummit, color: TYPE_COLOR_MAP.summit, zIndex: 1 },
19
+ ]);
20
+
21
+ const cycleTypeOptions0 = computed<OptionItemT[]>(() => [
22
+ { label: t('meeting.day0'), value: INTERVAL_DAY, max: 7 },
23
+ { label: t('meeting.week0'), value: INTERVAL_WEEK, max: 2 },
24
+ { label: t('meeting.month0'), value: INTERVAL_MONTH, max: 1 },
25
+ ]);
26
+
27
+ const cycleTypeOptions = computed<OptionItemT[]>(() => [
28
+ { label: t('meeting.day'), value: INTERVAL_DAY, max: 7 },
29
+ { label: t('meeting.week'), value: INTERVAL_WEEK, max: 2 },
30
+ { label: t('meeting.month'), value: INTERVAL_MONTH, max: 1 },
31
+ ]);
32
+
33
+ const weekDay = computed(() => [
34
+ t('meeting.sunday'),
35
+ t('meeting.monday'),
36
+ t('meeting.tuesday'),
37
+ t('meeting.wednesday'),
38
+ t('meeting.thursday'),
39
+ t('meeting.friday'),
40
+ t('meeting.saturday'),
41
+ ]);
42
+
43
+ const intervalWeekOptions = computed(() => {
44
+ const list: OptionItemT[] = [];
45
+ for (let i = 1; i <= 7; i++) {
46
+ const idx = i % 7;
47
+ list.push({ value: idx, label: weekDay.value[idx] });
48
+ }
49
+ return list;
50
+ });
51
+
52
+ const getPointStr = (cycleType: number, points: number[]) => {
53
+ if (cycleType === INTERVAL_WEEK) {
54
+ return points
55
+ .sort((a, b) => {
56
+ const aIdx = intervalWeekOptions.value.findIndex((v) => v.value === a);
57
+ const bIdx = intervalWeekOptions.value.findIndex((v) => v.value === b);
58
+ return aIdx - bIdx;
59
+ })
60
+ .map((point: number) => {
61
+ const opt = intervalWeekOptions.value.find((v) => v.value === point);
62
+ return opt?.label || String(point);
63
+ })
64
+ .join(t('meeting.cycleSplit'));
65
+ }
66
+ if (cycleType === INTERVAL_MONTH) {
67
+ return points.join(t('meeting.cycleSplit'));
68
+ }
69
+ return '';
70
+ };
71
+
72
+ const getConfig = (val: CalendarDataType, key: keyof meetingTabT): string => {
73
+ let value = val;
74
+ if (val === CalendarDataType.ACTIVITY) {
75
+ value = CalendarDataType.EVENTS;
76
+ }
77
+ const find: meetingTabT | undefined = meetingTabs.value.find(v => v.value === value);
78
+ return find?.[key] || '';
79
+ };
80
+
81
+ const getPlatformLabel = (platform: string) => {
82
+ switch (platform) {
83
+ case 'WELINK':
84
+ return 'WeLink';
85
+ case 'ZOOM':
86
+ return 'Zoom';
87
+ case 'TENCENT':
88
+ return locale.value === 'zh' ? '腾讯会议' : 'Tencent';
89
+ default:
90
+ return platform;
91
+ }
92
+ };
93
+
94
+ const getWeekFromDate = (date: string | Date) => {
95
+ return weekDay.value[dayjs(date).day()];
96
+ };
97
+
98
+ return {
99
+ t,
100
+ locale,
101
+ meetingTabs,
102
+ cycleTypeOptions0,
103
+ cycleTypeOptions,
104
+ weekDay,
105
+ intervalWeekOptions,
106
+ getPointStr,
107
+ getConfig,
108
+ getPlatformLabel,
109
+ getWeekFromDate,
110
+ };
111
+ };
@@ -1,121 +1,59 @@
1
- import IconAll from '~icons/meeting/icon-all.svg';
2
- import IconEvent from '~icons/meeting/icon-event.svg';
3
- import IconMeeting from '~icons/meeting/icon-meet.svg';
4
- import IconSummit from '~icons/meeting/icon-summit.svg';
5
- import { useI18n } from '@/i18n';
6
- import { CalendarDataType, meetingTabT } from './types.ts';
7
-
8
- const { t } = useI18n();
9
-
10
- const getMeetingColor = () => {
11
- if (typeof document !== 'undefined') {
12
- const deepBlue = getComputedStyle(document.documentElement)
13
- .getPropertyValue('--o-deep-blue-6')?.trim();
14
- if (deepBlue) {
15
- return 'rgba(var(--o-deep-blue-6))';
16
- }
17
- }
18
- return 'var(--o-color-primary1)';
19
- };
20
-
21
- export const TYPE_COLOR_MAP = {
22
- summit: 'rgba(var(--o-orange-6))',
23
- events: 'rgba(var(--o-cyan-6))',
24
- meeting: getMeetingColor(),
1
+ import { CalendarDataType, meetingTabT } from './types.ts';
2
+ import IconAll from '~icons/meeting/icon-all.svg';
3
+ import IconEvent from '~icons/meeting/icon-event.svg';
4
+ import IconMeeting from '~icons/meeting/icon-meet.svg';
5
+ import IconSummit from '~icons/meeting/icon-summit.svg';
6
+
7
+ const getMeetingColor = () => {
8
+ if (typeof document !== 'undefined') {
9
+ const deepBlue = getComputedStyle(document.documentElement)
10
+ .getPropertyValue('--o-deep-blue-6')?.trim();
11
+ if (deepBlue) {
12
+ return 'rgba(var(--o-deep-blue-6))';
13
+ }
14
+ }
15
+ return 'var(--o-color-primary1)';
25
16
  };
26
- export const MEETING_TABS: meetingTabT[] = [
27
- {
28
- label: t('meeting.meetingTypeAll'),
29
- value: CalendarDataType.ALL,
30
- icon: IconAll,
31
- },
32
- {
33
- label: t('meeting.meetingTypeMeet'),
34
- value: CalendarDataType.MEETING,
35
- icon: IconMeeting,
36
- color: TYPE_COLOR_MAP.meeting,
37
- zIndex: 3,
38
- },
39
- {
40
- label: t('meeting.meetingTypeEvents'),
41
- value: CalendarDataType.EVENTS,
42
- icon: IconEvent,
43
- color: TYPE_COLOR_MAP.events,
44
- zIndex: 2,
45
- },
46
- {
47
- label: t('meeting.meetingTypeSummit'),
48
- value: CalendarDataType.SUMMIT,
49
- icon: IconSummit,
50
- color: TYPE_COLOR_MAP.summit,
51
- zIndex: 1,
52
- },
53
- ];
54
-
55
-
56
- export const INTERVAL_DAY = 0;
57
- export const INTERVAL_WEEK = 1;
58
- export const INTERVAL_MONTH = 2;
59
-
60
- export const CYCLE_TYPE_OPTIONS0 = [
61
- {
62
- label: t('meeting.day0'),
63
- value: INTERVAL_DAY,
64
- max: 7,
65
- },
66
- {
67
- label: t('meeting.week0'),
68
- value: INTERVAL_WEEK,
69
- max: 2,
70
- },
71
- {
72
- label: t('meeting.month0'),
73
- value: INTERVAL_MONTH,
74
- max: 1,
75
- },
76
- ];
77
- export const CYCLE_TYPE_OPTIONS = [
78
- {
79
- label: t('meeting.day'),
80
- value: INTERVAL_DAY,
81
- max: 7,
82
- },
83
- {
84
- label: t('meeting.week'),
85
- value: INTERVAL_WEEK,
86
- max: 2,
87
- },
88
- {
89
- label: t('meeting.month'),
90
- value: INTERVAL_MONTH,
91
- max: 1,
92
- },
93
- ];
94
- export const WEEKDAY = [
95
- t('meeting.sunday'),
96
- t('meeting.monday'),
97
- t('meeting.tuesday'),
98
- t('meeting.wednesday'),
99
- t('meeting.thursday'),
100
- t('meeting.friday'),
101
- t('meeting.saturday'),
102
- ];
103
-
104
- const getWeekOptions = () => {
105
- const list = [];
106
- for (let i = 1; i <= 7; i++) {
107
- const idx = i % 7;
108
- list.push({
109
- value: idx,
110
- label: WEEKDAY[idx],
111
- });
112
- }
113
- return list;
114
- };
115
-
116
- export const INTERVAL_WEEK_OPTIONS = getWeekOptions();
117
-
118
-
119
- export const EMAIL_REGEX = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
120
-
121
- export const PROGRESS_COLORS = ['var(--o-color-primary1)', 'var(--o-color-warning1)', 'var(--o-color-success1)'];
17
+
18
+ export const TYPE_COLOR_MAP = {
19
+ summit: 'rgba(var(--o-orange-6))',
20
+ events: 'rgba(var(--o-cyan-6))',
21
+ meeting: getMeetingColor(),
22
+ };
23
+
24
+ export const INTERVAL_DAY = 0;
25
+ export const INTERVAL_WEEK = 1;
26
+ export const INTERVAL_MONTH = 2;
27
+
28
+ export const EMAIL_REGEX = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
29
+
30
+ export const PROGRESS_COLORS = ['var(--o-color-primary1)', 'var(--o-color-warning1)', 'var(--o-color-success1)'];
31
+
32
+ export const getMeetingTabs = (t: (key: string) => string): meetingTabT[] => [
33
+ {
34
+ label: t('meeting.meetingTypeAll'),
35
+ value: CalendarDataType.ALL,
36
+ icon: IconAll,
37
+ },
38
+ {
39
+ label: t('meeting.meetingTypeMeet'),
40
+ value: CalendarDataType.MEETING,
41
+ icon: IconMeeting,
42
+ color: TYPE_COLOR_MAP.meeting,
43
+ zIndex: 3,
44
+ },
45
+ {
46
+ label: t('meeting.meetingTypeEvents'),
47
+ value: CalendarDataType.EVENTS,
48
+ icon: IconEvent,
49
+ color: TYPE_COLOR_MAP.events,
50
+ zIndex: 2,
51
+ },
52
+ {
53
+ label: t('meeting.meetingTypeSummit'),
54
+ value: CalendarDataType.SUMMIT,
55
+ icon: IconSummit,
56
+ color: TYPE_COLOR_MAP.summit,
57
+ zIndex: 1,
58
+ },
59
+ ];
@@ -109,6 +109,7 @@ export interface MeetingItemT extends MeetingPostT {
109
109
  update_time: string;
110
110
  time: string; // 处理一下时间范围
111
111
  cycle_sub: any[];
112
+ live_url?: string;
112
113
  }
113
114
 
114
115
  export interface PageParamsT {
@@ -1,123 +1,70 @@
1
- import dayjs from 'dayjs';
2
- import { useI18n } from '@/i18n';
3
- import { INTERVAL_MONTH, INTERVAL_WEEK, INTERVAL_WEEK_OPTIONS, MEETING_TABS } from './config';
4
- import { CalendarDataType, meetingTabT, OptionItemT } from '@/components/meeting/types.ts';
5
-
6
- const { t } = useI18n();
7
- /**
8
- * 格式化时间
9
- * @param {string} date 时间
10
- * @param {string} format 时间格式
11
- * @returns {string} 返回
12
- */
13
- export const formatDate = (date: string | Date = new Date(), format: string = 'YYYY-MM-DD'): string => {
14
- let dateStr = date;
15
- if (!dateStr) {
16
- dateStr = new Date();
17
- }
18
- if (!dayjs(new Date(dateStr)).isValid()) {
19
- return dateStr as string;
20
- }
21
- return dayjs(new Date(dateStr)).format(format);
22
- };
23
-
24
- export const findLabelFromOptions = (value: string | number, options: OptionItemT[], labelKey: keyof OptionItemT = 'label', valueKey: keyof OptionItemT = 'value') => {
25
- const find = options.find((o) => o[valueKey] === value);
26
- return find?.[labelKey] || value;
27
- };
28
- export const getPointStr = (cycleType: number, points: number[]) => {
29
- if (cycleType === INTERVAL_WEEK) {
30
- return points
31
- .sort((a, b) => {
32
- const aIdx = INTERVAL_WEEK_OPTIONS.findIndex((v) => v.value === a);
33
- const bIdx = INTERVAL_WEEK_OPTIONS.findIndex((v) => v.value === b);
34
- return aIdx - bIdx;
35
- })
36
- .map((point: number) => findLabelFromOptions(point, INTERVAL_WEEK_OPTIONS))
37
- .join(t('meeting.cycleSplit'));
38
- }
39
- if (cycleType === INTERVAL_MONTH) {
40
- return points.join(t('meeting.cycleSplit'));
41
- }
42
- return '';
43
- };
44
- // 处理发言人的序号
45
- export const speakerNum = (val: string) => {
46
- const regex = /\d+/g;
47
- const match = val.match(regex) || '';
48
-
49
- return parseInt(match[0]);
50
- };
51
- /**
52
- * 将时间转换为秒数
53
- * @param {string} date 时间 hh:mm:ss
54
- * @returns {number}
55
- */
56
- export const getDateNumber = (date: string) => {
57
- const arr: string[] = date.split(':');
58
- if (arr.length > 3 || !arr.length) {
59
- return 0;
60
- }
61
- let res = 0;
62
- let base = 1;
63
- while (arr.length > 0) {
64
- const current = arr.pop();
65
- res += parseInt(current!) * base;
66
- base *= 60;
67
- }
68
- return res;
69
- };
70
-
71
- const formatNumber = (num: number) => {
72
- if (num < 0) return 'Invalid number';
73
- if (num >= 10) return `${ num }`;
74
- return `0${ num }`;
75
- };
76
-
77
- export const formatDateNumber = (num: number) => {
78
- if (num > 24 * 60 * 60) return 'Invalid date';
79
- const h = Math.floor(num / 60 / 60);
80
- const m = Math.floor((num - h * 60 * 60) / 60);
81
- const s = num % 60;
82
- return `${ formatNumber(h) }:${ formatNumber(m) }:${ formatNumber(s) }`;
83
- };
84
-
85
- // 时分秒 转换成 以秒为单位的格式 - xx秒
86
- export const transformTime = (time: string) => {
87
- const arr = time.split(':');
88
- const hh = arr[arr.length - 3] ? parseInt(arr[arr.length - 3]) : 0;
89
- const mm = parseInt(arr[arr.length - 2]);
90
- const ss = parseFloat(arr[arr.length - 1]);
91
-
92
- return hh * 60 * 60 + mm * 60 + ss;
93
- };
94
-
95
- // 以秒为单位的格式 转换成 时分秒 - hh:mm:ss
96
- export const transformSeconds = (seconds: number) => {
97
- const hh = Math.floor(seconds / 3600);
98
- const mm = Math.floor((seconds - hh * 3600) / 60);
99
- const ss = Math.floor(seconds - hh * 3600 - mm * 60);
100
- return `${ hh ? `${ hh.toString().padStart(2, '0') }:` : '' }${ mm.toString().padStart(2, '0') }:${ ss.toString().padStart(2, '0') }`;
101
- };
102
-
103
- export const getConfig = (val: CalendarDataType, key: keyof meetingTabT): string => {
104
- let value = val;
105
- if (val === CalendarDataType.ACTIVITY) {
106
- value = CalendarDataType.EVENTS;
107
- }
108
- const find: meetingTabT = MEETING_TABS.find(v => v.value === value)!;
109
- return find?.[key] || '';
110
- };
111
-
112
- export const getPlatformLabel = (platform: string) => {
113
- switch (platform) {
114
- case 'WELINK':
115
- return 'WeLink';
116
- case 'ZOOM':
117
- return 'Zoom';
118
- case 'TENCENT':
119
- return '腾讯会议';
120
- default:
121
- return platform;
122
- }
1
+ import dayjs from 'dayjs';
2
+ import { OptionItemT } from './types';
3
+
4
+ export const formatDate = (date: string | Date = new Date(), format: string = 'YYYY-MM-DD'): string => {
5
+ let dateStr = date;
6
+ if (!dateStr) {
7
+ dateStr = new Date();
8
+ }
9
+ if (!dayjs(new Date(dateStr)).isValid()) {
10
+ return dateStr as string;
11
+ }
12
+ return dayjs(new Date(dateStr)).format(format);
13
+ };
14
+
15
+ export const findLabelFromOptions = (value: string | number, options: OptionItemT[], labelKey: keyof OptionItemT = 'label', valueKey: keyof OptionItemT = 'value') => {
16
+ const find = options.find((o) => o[valueKey] === value);
17
+ return find?.[labelKey] || value;
18
+ };
19
+
20
+ export const speakerNum = (val: string) => {
21
+ const regex = /\d+/g;
22
+ const match = val.match(regex) || '';
23
+
24
+ return parseInt(match[0]);
25
+ };
26
+
27
+ export const getDateNumber = (date: string) => {
28
+ const arr: string[] = date.split(':');
29
+ if (arr.length > 3 || !arr.length) {
30
+ return 0;
31
+ }
32
+ let res = 0;
33
+ let base = 1;
34
+ while (arr.length > 0) {
35
+ const current = arr.pop();
36
+ res += parseInt(current!) * base;
37
+ base *= 60;
38
+ }
39
+ return res;
40
+ };
41
+
42
+ const formatNumber = (num: number) => {
43
+ if (num < 0) return 'Invalid number';
44
+ if (num >= 10) return `${ num }`;
45
+ return `0${ num }`;
46
+ };
47
+
48
+ export const formatDateNumber = (num: number) => {
49
+ if (num > 24 * 60 * 60) return 'Invalid date';
50
+ const h = Math.floor(num / 60 / 60);
51
+ const m = Math.floor((num - h * 60 * 60) / 60);
52
+ const s = num % 60;
53
+ return `${ formatNumber(h) }:${ formatNumber(m) }:${ formatNumber(s) }`;
54
+ };
55
+
56
+ export const transformTime = (time: string) => {
57
+ const arr = time.split(':');
58
+ const hh = arr[arr.length - 3] ? parseInt(arr[arr.length - 3]) : 0;
59
+ const mm = parseInt(arr[arr.length - 2]);
60
+ const ss = parseFloat(arr[arr.length - 1]);
61
+
62
+ return hh * 60 * 60 + mm * 60 + ss;
63
+ };
64
+
65
+ export const transformSeconds = (seconds: number) => {
66
+ const hh = Math.floor(seconds / 3600);
67
+ const mm = Math.floor((seconds - hh * 3600) / 60);
68
+ const ss = Math.floor(seconds - hh * 3600 - mm * 60);
69
+ return `${ hh ? `${ hh.toString().padStart(2, '0') }:` : '' }${ mm.toString().padStart(2, '0') }:${ ss.toString().padStart(2, '0') }`;
123
70
  };
package/src/i18n/en.ts CHANGED
@@ -122,7 +122,7 @@ export default {
122
122
  'meeting.meetingTypeSummit': 'Summit',
123
123
  'meeting.allSigs': 'All SIGs',
124
124
  'meeting.allGroups': 'All Groups',
125
- 'meeting.meetingCreator': 'Organizer',
125
+ 'meeting.meetingCreator': 'Convener',
126
126
  'meeting.meetingDate2': 'Time',
127
127
  'meeting.meetingId': 'Meeting ID',
128
128
  'meeting.meetingLink': 'Meeting Link',