Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
7026934b
Commit
7026934b
authored
Jul 16, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-konami-code' into 'v3'
add konami code to open devtools See merge request
mycard/mycard!15
parents
4e052d45
d1cb8680
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
app/mycard.component.ts
app/mycard.component.ts
+17
-0
No files found.
app/mycard.component.ts
View file @
7026934b
...
...
@@ -8,6 +8,7 @@ import { SettingsService } from './settings.sevices';
window
[
'
Tether
'
]
=
Tether
;
const
autoUpdater
:
Electron
.
AutoUpdater
=
remote
.
getGlobal
(
'
autoUpdater
'
);
const
konami_code_logger
:
string
[]
=
[];
@
Component
({
moduleId
:
module
.
id
,
...
...
@@ -48,6 +49,22 @@ export class MyCardComponent implements OnInit {
'
update-available
'
:
this
.
update_available
,
'
update-downloaded
'
:
this
.
update_downloaded
}));
$
(
'
#settings-modal
'
).
on
(
'
keyup
'
,(
event
)
=>
{
konami_code_logger
.
unshift
(
event
.
key
);
if
(
konami_code_logger
[
9
]
==
'
ArrowUp
'
&&
konami_code_logger
[
8
]
==
'
ArrowUp
'
&&
konami_code_logger
[
7
]
==
'
ArrowDown
'
&&
konami_code_logger
[
6
]
==
'
ArrowDown
'
&&
konami_code_logger
[
5
]
==
'
ArrowLeft
'
&&
konami_code_logger
[
4
]
==
'
ArrowRight
'
&&
konami_code_logger
[
3
]
==
'
ArrowLeft
'
&&
konami_code_logger
[
2
]
==
'
ArrowRight
'
&&
konami_code_logger
[
1
].
toLowerCase
()
==
'
b
'
&&
konami_code_logger
[
0
].
toLowerCase
()
==
'
a
'
)
{
this
.
currentWindow
.
webContents
.
openDevTools
();
}
});
// document.addEventListener('drop', (event)=>{
// console.log('drop', event);
// event.preventDefault();
...
...
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