Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
34b18d46
Commit
34b18d46
authored
Dec 17, 2024
by
Skye Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(send schedule): add OS and Platform declare type
parent
bdc7702e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
jensen.d.ts
jensen.d.ts
+22
-2
jensen.js
src/utils/jensen.js
+1
-1
utils.js
src/utils/utils.js
+1
-1
No files found.
jensen.d.ts
View file @
34b18d46
...
@@ -18,11 +18,31 @@ export type FileInfo = {
...
@@ -18,11 +18,31 @@ export type FileInfo = {
signature
:
string
;
signature
:
string
;
};
};
export
const
enum
OS
{
Windows
=
'Windows'
,
Linux
=
'Linux'
,
Mac
=
'Mac'
}
export
const
enum
Platform
{
zoom
=
'zoom'
,
teams
=
'teams'
,
googleMeeting
=
'google-meeting'
,
webex
=
'webex'
,
feishu
=
'feishu'
,
lark
=
'lark'
,
wechat
=
'wechat'
,
line
=
'line'
,
whatsApp
=
'whats-app'
,
slack
=
'slack'
,
discord
=
'discord'
}
export
type
ScheduleInfo
=
{
export
type
ScheduleInfo
=
{
startDate
:
Date
;
startDate
:
Date
;
endDate
:
Date
;
endDate
:
Date
;
os
:
'Windows'
|
'Linux'
|
'Mac'
;
os
:
OS
;
platform
:
string
;
platform
:
Platform
;
};
};
export
enum
Level
{
export
enum
Level
{
...
...
src/utils/jensen.js
View file @
34b18d46
...
@@ -948,7 +948,7 @@ Jensen.prototype.sendScheduleInfo = function (infos) {
...
@@ -948,7 +948,7 @@ Jensen.prototype.sendScheduleInfo = function (infos) {
if
(
Array
.
isArray
(
infos
)
&&
infos
.
length
)
{
if
(
Array
.
isArray
(
infos
)
&&
infos
.
length
)
{
let
bodys
=
[];
let
bodys
=
[];
for
(
const
info
of
infos
)
{
for
(
const
info
of
infos
)
{
let
codes
=
new
Array
(
3
3
).
fill
(
0
);
let
codes
=
new
Array
(
3
4
).
fill
(
0
);
if
(
shortcutKeys
[
info
.
platform
]
&&
shortcutKeys
[
info
.
platform
][
info
.
os
])
{
if
(
shortcutKeys
[
info
.
platform
]
&&
shortcutKeys
[
info
.
platform
][
info
.
os
])
{
codes
=
shortcutKeys
[
info
.
platform
][
info
.
os
];
codes
=
shortcutKeys
[
info
.
platform
][
info
.
os
];
}
}
...
...
src/utils/utils.js
View file @
34b18d46
...
@@ -258,7 +258,7 @@ export const shortcutKeys = {
...
@@ -258,7 +258,7 @@ export const shortcutKeys = {
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
},
we
C
hat
:
{
we
c
hat
:
{
Windows
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Windows
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment