-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge origin/develop into upgrade-lumos
- Loading branch information
Showing
326 changed files
with
16,197 additions
and
13,694 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
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
"typescriptreact" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-typescript" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
const sendSyncValues = { | ||
'get-locale': 'zh', | ||
'get-version': '0.103.1' | ||
} | ||
|
||
module.exports = { | ||
ipcRenderer: { | ||
sendSync(key) { | ||
return sendSyncValues[key] | ||
}, | ||
invoke() { | ||
return Promise.resolve({}) | ||
}, | ||
on() {}, | ||
removeAllListeners() {} | ||
}, | ||
clipboard() {}, | ||
nativeImage() {}, | ||
shell() {}, | ||
desktopCapturer() {} | ||
} |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
export default { | ||
"stories": ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/preset-create-react-app", | ||
"storybook-addon-react-router-v6" | ||
], | ||
"framework": "@storybook/react", | ||
core: { | ||
builder: "webpack5" | ||
}, | ||
webpackFinal: config => { | ||
config.resolve.alias = { | ||
...config.resolve.alias, | ||
electron: require.resolve('./electron') | ||
} | ||
return config | ||
}, | ||
} |
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,39 @@ | ||
import 'theme' | ||
import 'styles/index.scss' | ||
import 'styles/layout.scss' | ||
import 'styles/theme.scss' | ||
import 'utils/i18n' | ||
import 'stories/styles.scss' | ||
import React from 'react' | ||
import { action } from '@storybook/addon-actions' | ||
import { NeuronWalletContext, initStates } from '../src/states' | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
} | ||
} | ||
|
||
const dispatch = action('Dispatch') | ||
|
||
BigInt.prototype['toJSON'] = function() { return this.toString() } | ||
|
||
export const decorators = [ | ||
(Story, { argTypes, args }) => { | ||
const globalArgTypes = Object.keys(argTypes).filter(v => argTypes[v]?.isGlobal) | ||
const globalStates = globalArgTypes.reduce((pre, cur) => args[cur] ? ({ | ||
...pre, | ||
[cur]: args[cur] | ||
}) : pre, initStates) | ||
return ( | ||
<NeuronWalletContext.Provider value={{ state: globalStates, dispatch }}> | ||
<Story /> | ||
</NeuronWalletContext.Provider> | ||
) | ||
}, | ||
]; | ||
|
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
57 changes: 6 additions & 51 deletions
57
packages/neuron-ui/src/components/BalanceSyncingIcon/balanceSyncIcon.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 |
---|---|---|
@@ -1,55 +1,10 @@ | ||
$arrow: 10px; | ||
@import '../../styles/animation.scss'; | ||
|
||
.container { | ||
display: inline; | ||
position: relative; | ||
font-size: 0.75rem; | ||
color: var(--nervos-green); | ||
border-radius: 2px; | ||
z-index: 1; | ||
.confirm { | ||
@include infinite-rotation; | ||
margin-left: 4px; | ||
|
||
svg { | ||
width: 1rem; | ||
height: 0.75rem; | ||
pointer-events: none; | ||
position: relative; | ||
top: 1px; | ||
} | ||
|
||
&::after { | ||
display: none; | ||
content: attr(data-content); | ||
position: absolute; | ||
top: calc(100% + 7px); | ||
left: 50%; | ||
transform: translateX(-50%); | ||
background: #fff; | ||
font-size: 0.75rem; | ||
color: #000000; | ||
padding: 10px 15px; | ||
box-shadow: 0 0 6px rgba(0, 0, 0, 0.22); | ||
min-width: 150px; | ||
pointer-events: none; | ||
} | ||
|
||
&::before { | ||
z-index: 1; | ||
display: none; | ||
content: ''; | ||
top: 2px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
position: absolute; | ||
border: $arrow solid transparent; | ||
border-bottom-color: #fff; | ||
filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.12)); | ||
pointer-events: none; | ||
} | ||
|
||
&:hover { | ||
&::after, | ||
&::before { | ||
display: block; | ||
} | ||
path { | ||
fill: #FFFFFF; | ||
} | ||
} |
Oops, something went wrong.