-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2439 from nervosnetwork/rc/v0.103.2
- Loading branch information
Showing
72 changed files
with
1,510 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Synchronization issue | ||
description: Neuron doesn't synchronize | ||
title: '[Synchronization] **brief description**' | ||
labels: | ||
- bug | ||
assignees: | ||
- Keith-CY | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Please check if these issues help | ||
- [Synchronization doesnt' start](https://github.com/nervosnetwork/neuron/issues/2388) | ||
- [Transactions keep pending on Neuron v0.101.3](https://github.com/nervosnetwork/neuron/issues/2384) | ||
- [`Check for update` in settings doesn't work](https://github.com/nervosnetwork/neuron/issues/2372) | ||
- type: textarea | ||
id: detial | ||
validations: | ||
required: true | ||
attributes: | ||
label: Detail of the issue | ||
description: Elaborate on your issue in this field | ||
|
||
- type: markdown | ||
attributes: | ||
value: | | ||
--- | ||
## Please add neuron logs if possible, they can be exported by `Menu -> Help -> Export Debug Information` | ||
- type: textarea | ||
id: bundled-ckb | ||
validations: | ||
required: false | ||
attributes: | ||
label: bundled-ckb.log | ||
render: shell | ||
|
||
- type: textarea | ||
id: main-log | ||
validations: | ||
required: false | ||
attributes: | ||
label: main.log | ||
render: shell | ||
|
||
- type: textarea | ||
id: status | ||
validations: | ||
required: false | ||
attributes: | ||
label: status.log | ||
render: shell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 27 additions & 21 deletions
48
packages/neuron-ui/src/components/ClearCache/style.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { useCallback, useState } from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
import { | ||
getCkbNodeDataPath, | ||
getIndexerDataPath, | ||
invokeShowOpenDialog, | ||
startProcessMonitor, | ||
stopProcessMonitor, | ||
setCkbNodeDataPath, | ||
setIndexerDataPath, | ||
} from 'services/remote' | ||
import { isSuccessResponse, useDialogWrapper, useDidMount } from 'utils' | ||
|
||
export const useDataPath = ( | ||
getPath: typeof getCkbNodeDataPath | typeof getIndexerDataPath, | ||
setPath: typeof setCkbNodeDataPath | typeof setIndexerDataPath, | ||
type: Parameters<typeof stopProcessMonitor>[0] | ||
) => { | ||
const [t] = useTranslation() | ||
const [prevPath, setPrevPath] = useState<string>() | ||
const [currentPath, setCurrentPath] = useState<string | undefined>() | ||
const { dialogRef, openDialog, closeDialog } = useDialogWrapper() | ||
useDidMount(() => { | ||
getPath(undefined).then(res => { | ||
if (isSuccessResponse(res)) { | ||
setPrevPath(res.result!) | ||
} | ||
}) | ||
}) | ||
const onSetting = useCallback(() => { | ||
invokeShowOpenDialog({ | ||
buttonLabel: t('settings.data.set', { lng: navigator.language }), | ||
properties: ['openDirectory', 'createDirectory', 'promptToCreate', 'treatPackageAsDirectory'], | ||
}).then(res => { | ||
if (isSuccessResponse(res) && !res.result?.canceled && res.result?.filePaths?.length) { | ||
setCurrentPath(res.result?.filePaths?.[0]) | ||
stopProcessMonitor(type).then(stopRes => { | ||
if (isSuccessResponse(stopRes)) { | ||
openDialog() | ||
} | ||
}) | ||
} | ||
}) | ||
}, [t, type]) | ||
const onCancel = useCallback(() => { | ||
startProcessMonitor(type).then(res => { | ||
if (isSuccessResponse(res)) { | ||
closeDialog() | ||
} | ||
}) | ||
}, [closeDialog, type]) | ||
const onConfirm = useCallback(() => { | ||
setPath(currentPath!).then(res => { | ||
if (isSuccessResponse(res)) { | ||
setPrevPath(currentPath) | ||
closeDialog() | ||
} | ||
}) | ||
}, [currentPath, closeDialog, setPrevPath, setPath]) | ||
return { | ||
prevPath, | ||
currentPath, | ||
onSetting, | ||
dialogRef, | ||
onCancel, | ||
onConfirm, | ||
} | ||
} | ||
|
||
export default useDataPath |
66 changes: 66 additions & 0 deletions
66
packages/neuron-ui/src/components/DataSetting/index.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@import '../../styles/mixin.scss'; | ||
|
||
.root { | ||
margin-top: 20px; | ||
display: grid; | ||
grid-template-columns: auto 1fr 140px; | ||
grid-gap: 30px 20px; | ||
align-items: center; | ||
|
||
.name { | ||
font-weight: bold; | ||
} | ||
|
||
.content { | ||
font-size: 12px; | ||
word-break: break-all; | ||
} | ||
|
||
button { | ||
line-height: 1; | ||
height: 1.625rem; | ||
} | ||
} | ||
|
||
.dialog { | ||
@include dialog-container; | ||
padding: 30px 50px; | ||
|
||
.describe { | ||
word-break: break-all; | ||
font-size: 14px; | ||
} | ||
|
||
.attention { | ||
position: relative; | ||
padding-left: 1rem; | ||
font-size: 0.75rem; | ||
letter-spacing: 0.5px; | ||
margin: 14px 0 20px 0; | ||
color: #666; | ||
|
||
svg { | ||
position: absolute; | ||
left: 0; | ||
top: 0.13rem; | ||
filter: grayscale(1) opacity(0.6); | ||
width: 0.625rem; | ||
height: 0.625rem; | ||
} | ||
} | ||
|
||
.action { | ||
padding-top: 16px; | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
} | ||
|
||
.path { | ||
display: flex; | ||
align-items: center; | ||
|
||
& > svg { | ||
flex-shrink: 0; | ||
} | ||
} |
Oops, something went wrong.
bc8e13a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 2640617801
bc8e13a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packaging for test is done in 2640674517
bc8e13a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'
'### Downloads'
''
'OS | Arch | Package | SHA256 Checksum'
'-- | -- | -- | --'
'Windows | x64 | exe |
11a3d67f7e7ab53b237ee05a3f1b930de36f8896423a52cf33646853258ff7b4
''macOS | x64 | zip |
07012dfc245683f385dd29bd0e5a1b465710ca341e6bf9d3c3516eaeae79e711
''macOS | x64 | DMG |
9f2d42ed94472e8907b00f3b0f733b38818160a1a6c70d52a4d4a2406ad21232
''Linux | x64 | AppImage |
2080b195427baf74f2916e46bccf06e86c70fac288f639d14cad7d88cb61eb5f