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
0bc73cd3
Commit
0bc73cd3
authored
Aug 12, 2026
by
martin hou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: adding factory reset button
parent
721e15db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
index.tsx
src/index.tsx
+10
-0
No files found.
src/index.tsx
View file @
0bc73cd3
...
@@ -862,6 +862,15 @@ export function Home() {
...
@@ -862,6 +862,15 @@ export function Home() {
await
releaseJensen
();
await
releaseJensen
();
}
}
const
handleFactoryReset
=
async
()
=>
{
let
jensen
=
await
getJensen
();
if
(
jensen
==
null
)
return
;
if
(
!
confirm
(
'Are you sure ?
\
n
\
nYou may lost all data on device.'
))
return
;
let
rst
=
await
jensen
.
factoryReset
(
120
);
Logger
.
info
(
'jensen'
,
'factory-reset'
,
JSON
.
stringify
(
rst
));
await
releaseJensen
();
}
return
(
return
(
<>
<>
<
div
className=
"btn-container"
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
,
gap
:
'16px'
,
padding
:
'16px'
,
alignItems
:
'center'
,
flexWrap
:
'wrap'
}
}
>
<
div
className=
"btn-container"
style=
{
{
display
:
'flex'
,
flexDirection
:
'row'
,
gap
:
'16px'
,
padding
:
'16px'
,
alignItems
:
'center'
,
flexWrap
:
'wrap'
}
}
>
...
@@ -909,6 +918,7 @@ export function Home() {
...
@@ -909,6 +918,7 @@ export function Home() {
<
button
onClick=
{
switchAudioInputDevice
}
>
Switch Audio Input Device
</
button
>
<
button
onClick=
{
switchAudioInputDevice
}
>
Switch Audio Input Device
</
button
>
<
button
onClick=
{
handleReadBlock
}
>
Read Block
</
button
>
<
button
onClick=
{
handleReadBlock
}
>
Read Block
</
button
>
<
button
onClick=
{
handleTransferX
}
>
Transer Filex
</
button
>
<
button
onClick=
{
handleTransferX
}
>
Transer Filex
</
button
>
<
button
onClick=
{
handleFactoryReset
}
>
Factory Reset
</
button
>
<
span
style=
{
{
marginLeft
:
'8px'
}
}
>
Interval(ms):
</
span
>
<
span
style=
{
{
marginLeft
:
'8px'
}
}
>
Interval(ms):
</
span
>
<
input
<
input
...
...
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