Skip to content

Commit

Permalink
style: replace the icon In Floating icon (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming authored Dec 20, 2024
1 parent 5208d1d commit e2eb8ea
Show file tree
Hide file tree
Showing 33 changed files with 171 additions and 186 deletions.
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-core",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -29,9 +29,9 @@
"build-version-info": "node ./scripts/buildVersionInfo.js"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-errors": "2.2.5",
"@onekeyfe/cross-inpage-provider-events": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/cross-inpage-provider-errors": "2.2.6",
"@onekeyfe/cross-inpage-provider-events": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"events": "^3.3.0",
"lodash-es": "^4.17.21",
"ms": "^2.1.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/desktop/desktop-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/desktop-bridge-injected",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -34,7 +34,7 @@
"electron": "^17.2.0"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5"
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6"
}
}
2 changes: 1 addition & 1 deletion packages/empty/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-empty",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-errors",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-events",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down
24 changes: 12 additions & 12 deletions packages/example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-example",
"version": "2.2.5",
"version": "2.2.6",
"private": true,
"scripts": {
"postinstall": "patch-package",
Expand Down Expand Up @@ -28,17 +28,17 @@
"@metamask/onboarding": "^1.0.1",
"@mizuwallet-sdk/core": "^1.4.0",
"@mysten/dapp-kit": "0.13.2",
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/onekey-aptos-provider": "2.2.5",
"@onekeyfe/onekey-cardano-provider": "2.2.5",
"@onekeyfe/onekey-conflux-provider": "2.2.5",
"@onekeyfe/onekey-cosmos-provider": "2.2.5",
"@onekeyfe/onekey-near-provider": "2.2.5",
"@onekeyfe/onekey-solana-provider": "2.2.5",
"@onekeyfe/onekey-sui-provider": "2.2.5",
"@onekeyfe/onekey-tron-provider": "2.2.5",
"@onekeyfe/onekey-webln-provider": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/onekey-aptos-provider": "2.2.6",
"@onekeyfe/onekey-cardano-provider": "2.2.6",
"@onekeyfe/onekey-conflux-provider": "2.2.6",
"@onekeyfe/onekey-cosmos-provider": "2.2.6",
"@onekeyfe/onekey-near-provider": "2.2.6",
"@onekeyfe/onekey-solana-provider": "2.2.6",
"@onekeyfe/onekey-sui-provider": "2.2.6",
"@onekeyfe/onekey-tron-provider": "2.2.6",
"@onekeyfe/onekey-webln-provider": "2.2.6",
"@polkadot/api": "^9.11.3",
"@polkadot/extension-dapp": "^0.47.5",
"@radix-ui/react-checkbox": "^1.1.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/extension-bridge-hosted/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/extension-bridge-hosted",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,8 +28,8 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/extension/extension-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/extension-bridge-injected",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,7 +28,7 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5"
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6"
}
}
14 changes: 7 additions & 7 deletions packages/injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/cross-inpage-provider-injected",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -42,12 +42,12 @@
"electron": "*"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/desktop-bridge-injected": "2.2.5",
"@onekeyfe/extension-bridge-injected": "2.2.5",
"@onekeyfe/inpage-providers-hub": "2.2.5",
"@onekeyfe/native-bridge-injected": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/desktop-bridge-injected": "2.2.6",
"@onekeyfe/extension-bridge-injected": "2.2.6",
"@onekeyfe/inpage-providers-hub": "2.2.6",
"@onekeyfe/native-bridge-injected": "2.2.6",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/native/native-bridge-injected/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/native-bridge-injected",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,7 +28,7 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5"
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6"
}
}
42 changes: 21 additions & 21 deletions packages/providers/inpage-providers-hub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/inpage-providers-hub",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -30,26 +30,26 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/onekey-algo-provider": "2.2.5",
"@onekeyfe/onekey-alph-provider": "2.2.5",
"@onekeyfe/onekey-aptos-provider": "2.2.5",
"@onekeyfe/onekey-bfc-provider": "2.2.5",
"@onekeyfe/onekey-btc-provider": "2.2.5",
"@onekeyfe/onekey-cardano-provider": "2.2.5",
"@onekeyfe/onekey-conflux-provider": "2.2.5",
"@onekeyfe/onekey-cosmos-provider": "2.2.5",
"@onekeyfe/onekey-eth-provider": "2.2.5",
"@onekeyfe/onekey-nostr-provider": "2.2.5",
"@onekeyfe/onekey-polkadot-provider": "2.2.5",
"@onekeyfe/onekey-private-provider": "2.2.5",
"@onekeyfe/onekey-scdo-provider": "2.2.5",
"@onekeyfe/onekey-solana-provider": "2.2.5",
"@onekeyfe/onekey-sui-provider": "2.2.5",
"@onekeyfe/onekey-ton-provider": "2.2.5",
"@onekeyfe/onekey-tron-provider": "2.2.5",
"@onekeyfe/onekey-webln-provider": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/onekey-algo-provider": "2.2.6",
"@onekeyfe/onekey-alph-provider": "2.2.6",
"@onekeyfe/onekey-aptos-provider": "2.2.6",
"@onekeyfe/onekey-bfc-provider": "2.2.6",
"@onekeyfe/onekey-btc-provider": "2.2.6",
"@onekeyfe/onekey-cardano-provider": "2.2.6",
"@onekeyfe/onekey-conflux-provider": "2.2.6",
"@onekeyfe/onekey-cosmos-provider": "2.2.6",
"@onekeyfe/onekey-eth-provider": "2.2.6",
"@onekeyfe/onekey-nostr-provider": "2.2.6",
"@onekeyfe/onekey-polkadot-provider": "2.2.6",
"@onekeyfe/onekey-private-provider": "2.2.6",
"@onekeyfe/onekey-scdo-provider": "2.2.6",
"@onekeyfe/onekey-solana-provider": "2.2.6",
"@onekeyfe/onekey-sui-provider": "2.2.6",
"@onekeyfe/onekey-ton-provider": "2.2.6",
"@onekeyfe/onekey-tron-provider": "2.2.6",
"@onekeyfe/onekey-webln-provider": "2.2.6",
"preact": "^10.25.1",
"web3": "^1.7.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ function SecurityRiskDetectionRow({ securityInfo }: { securityInfo: IHostSecurit
}
}

const securityInfoItem = securityInfo?.level ? SECURITY_INFO[securityInfo.level] as unknown as {
titleId: string;
icon: string;
} : undefined
return {
securityStatus: securityInfo.level,
securityElement: (
Expand All @@ -330,13 +334,13 @@ function SecurityRiskDetectionRow({ securityInfo }: { securityInfo: IHostSecurit
lineHeight: '16px',
}}
>
{securityInfo?.level ? i18n[SECURITY_INFO[securityInfo.level].titleId as keyof typeof i18n] : i18n.unknown}
{securityInfoItem ? i18n[securityInfoItem.titleId as keyof typeof i18n] : i18n.unknown}
</span>
{securityInfo?.level ? SECURITY_INFO[securityInfo.level].icon : null}
{securityInfoItem ? securityInfoItem.icon : null}
</>
)
}
}, [securityInfo.level]);
}, [securityInfo]);
return (
<SecurityInfoRow title={i18n.riskDetection}>
<div
Expand Down Expand Up @@ -409,36 +413,17 @@ function SecurityInfo({
) : (
<div
style={{
transform: 'translate(4px, 3px)',
height: '24px',
width: '24px',
height: '16px',
width: '16px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}}
>
<svg
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
style={{
width: '24px',
height: '24px',
}}
>
<path
d="M6.6234 6.17768C6.6234 4.79769 7.73338 3.66333 9.1234 3.66333C10.5134 3.66333 11.6234 4.79769 11.6234 6.17768C11.6234 7.30559 10.8798 7.89399 10.4435 8.19056C10.3054 8.28442 10.2138 8.36716 10.1499 8.45311C10.092 8.53086 10.0368 8.63774 10.0107 8.81185C9.92866 9.35801 9.41941 9.73426 8.87325 9.65224C8.3271 9.57021 7.95084 9.06096 8.03287 8.5148C8.19122 7.4605 8.81104 6.8819 9.31912 6.53656C9.47624 6.42975 9.54878 6.36136 9.58594 6.31084C9.60107 6.29027 9.60813 6.27529 9.61242 6.26261C9.61657 6.25036 9.6234 6.22488 9.6234 6.17768C9.6234 5.88426 9.39093 5.66333 9.1234 5.66333C8.85586 5.66333 8.6234 5.88426 8.6234 6.17768C8.6234 6.72996 8.17568 7.17768 7.6234 7.17768C7.07111 7.17768 6.6234 6.72996 6.6234 6.17768Z"
fill="#3C3C3C"
/>
<path
d="M7.74976 11.5C7.74976 12.1904 8.3094 12.75 8.99976 12.75C9.69011 12.75 10.2498 12.1904 10.2498 11.5C10.2498 10.8096 9.69011 10.25 8.99976 10.25C8.3094 10.25 7.74976 10.8096 7.74976 11.5Z"
fill="#3C3C3C"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M3.00195 2.00272e-05L15.0019 0C16.6588 -2.7418e-06 18.002 1.34314 18.002 3V13.0358C18.002 14.6926 16.6588 16.0357 15.002 16.0358L12.3757 16.0358L8.99393 18.8375L5.65157 16.0358H3.00195C1.3451 16.0358 0.00195312 14.6926 0.00195312 13.0358V3.00002C0.00195312 1.34317 1.34509 2.2769e-05 3.00195 2.00272e-05ZM15.002 2L3.00195 2.00002C2.44967 2.00002 2.00195 2.44774 2.00195 3.00002V13.0358C2.00195 13.5881 2.44967 14.0358 3.00195 14.0358H5.65157C6.12143 14.0358 6.57629 14.2012 6.93638 14.503L9.00143 16.2341L11.0997 14.4957C11.4585 14.1984 11.9098 14.0358 12.3757 14.0358L15.002 14.0358C15.5542 14.0358 16.002 13.588 16.002 13.0358V3C16.002 2.44772 15.5542 2 15.002 2Z"
fill="#3C3C3C"
/>
<svg width="16" height="16" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z" fill="black" fill-opacity="0.447"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 7C9.62267 7 9.29263 7.2086 9.12147 7.52152C8.85645 8.00606 8.24881 8.18401 7.76426 7.91899C7.27972 7.65396 7.10177 7.04632 7.36679 6.56178C7.87463 5.63331 8.86263 5 10 5C11.5147 5 12.5669 6.00643 12.8664 7.189C13.1676 8.37786 12.7101 9.76299 11.3416 10.4472C11.1323 10.5519 11 10.7659 11 11C11 11.5523 10.5523 12 10 12C9.44772 12 9 11.5523 9 11C9 10.0084 9.56027 9.10183 10.4472 8.65836C10.902 8.43099 11.0188 8.03973 10.9277 7.6801C10.835 7.31417 10.5283 7 10 7Z" fill="black" fill-opacity="0.447"/>
<path d="M11 14C11 14.5523 10.5523 15 10 15C9.44772 15 9 14.5523 9 14C9 13.4477 9.44772 13 10 13C10.5523 13 11 13.4477 11 14Z" fill="black" fill-opacity="0.447"/>
</svg>
</div>
)}
Expand Down
10 changes: 5 additions & 5 deletions packages/providers/onekey-algo-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-algo-provider",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -28,9 +28,9 @@
"start": "tsc --watch"
},
"dependencies": {
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-errors": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/extension-bridge-injected": "2.2.5"
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-errors": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/extension-bridge-injected": "2.2.6"
}
}
10 changes: 5 additions & 5 deletions packages/providers/onekey-alph-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-alph-provider",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -31,9 +31,9 @@
"@alephium/get-extension-wallet": "^1.5.2",
"@alephium/walletconnect-provider": "^1.5.2",
"@alephium/web3": "^1.5.2",
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-errors": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/extension-bridge-injected": "2.2.5"
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-errors": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/extension-bridge-injected": "2.2.6"
}
}
10 changes: 5 additions & 5 deletions packages/providers/onekey-aptos-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-aptos-provider",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -29,10 +29,10 @@
},
"dependencies": {
"@aptos-labs/wallet-standard": "^0.2.0",
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-errors": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/extension-bridge-injected": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-errors": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/extension-bridge-injected": "2.2.6",
"@wallet-standard/core": "1.0.3",
"eth-rpc-errors": "^4.0.3"
},
Expand Down
10 changes: 5 additions & 5 deletions packages/providers/onekey-bfc-provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onekeyfe/onekey-bfc-provider",
"version": "2.2.5",
"version": "2.2.6",
"keywords": [
"cross-inpage-provider"
],
Expand Down Expand Up @@ -29,10 +29,10 @@
},
"dependencies": {
"@benfen/bfc.js": "0.2.7",
"@onekeyfe/cross-inpage-provider-core": "2.2.5",
"@onekeyfe/cross-inpage-provider-errors": "2.2.5",
"@onekeyfe/cross-inpage-provider-types": "2.2.5",
"@onekeyfe/extension-bridge-injected": "2.2.5",
"@onekeyfe/cross-inpage-provider-core": "2.2.6",
"@onekeyfe/cross-inpage-provider-errors": "2.2.6",
"@onekeyfe/cross-inpage-provider-types": "2.2.6",
"@onekeyfe/extension-bridge-injected": "2.2.6",
"eth-rpc-errors": "^4.0.3",
"mitt": "^3.0.0"
},
Expand Down
Loading

0 comments on commit e2eb8ea

Please sign in to comment.