- Notifications
You must be signed in to change notification settings - Fork 539
Feat: Private/custom rpc flow #1704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
36 commits Select commit Hold shift + click to select a range
0fffcab
RPC protect workflow acting as expected maybe some styling issues
Adamj1232 28d3959
Working as expected, added configs for rpc url and displaying protect…
Adamj1232 542e8e5
fix text color for dark mode
Adamj1232 1c3f375
Refine background colors
Adamj1232 5bb98ff
Refine verbiage and remove placeholder for link
Adamj1232 27651f1
Remove box shadow from AC section
Adamj1232 bc29036
Merge branch 'develop' into feat/private_rpc_flow
Adamj1232 4259110
Bump versions accordingly
Adamj1232 fa1d73c
Rename rpc update func
Adamj1232 6ab2884
Cleanup type prop comments
Adamj1232 bd37fa3
Refine state get in maximized
Adamj1232 6ef8c61
update modal styles
gesquinca 3cc9566
Merge branch 'develop' into feat/private_rpc_flow
Adamj1232 0990e9d
Merge branch 'develop' into feat/private_rpc_flow
Adamj1232 a0ae002
Update packages/core/src/provider.ts
Adamj1232 7168c1b
Add disableProtectRPC to accountCenterInit validation
Adamj1232 e45c754
Update docs for AccountCenter diableProtectRPC
Adamj1232 25520d4
Merge in develop
Adamj1232 be704e1
Update packages/core/src/index.ts
Adamj1232 4e84d85
Add small null check for secondary tokens
Adamj1232 4e53292
Merge in develop and handle conflicts
Adamj1232 bc171b5
Merge in dev
Adamj1232 38e7f2f
Merge in dev and handle conflicts
Adamj1232 f47997f
Merge branch 'develop' into feat/private_rpc_flow
Adamj1232 6713655
Update rpc
Adamj1232 a7d272a
Update rpc again
Adamj1232 5b5d0a1
yarnit
Adamj1232 1ff5fdb
Update rpc url
Adamj1232 798a15b
Add localstore check if RPC has been added
Adamj1232 7431aac
Add dismissall of modal after confirm
Adamj1232 6b6c193
Update localstore call
Adamj1232 3c44739
Remove localstore check
Adamj1232 e062914
Update packages/core/src/views/connect/Index.svelte
Adamj1232 d62fcae
Merge branch 'develop' into feat/private_rpc_flow
Adamj1232 7bd94a5
Prettier
Adamj1232 a3ab4bb
Remove square brackets from docs
Adamj1232 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,4 @@ | ||
export default `<svg width="14" height="18" viewBox="0 0 14 18" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M6.99998 17.3125C5.05553 16.8264 3.45831 15.6979 2.20831 13.9271C0.958313 12.1562 0.333313 10.2153 0.333313 8.10417V3.14583L6.99998 0.645833L13.6666 3.14583V8.10417C13.6666 10.2153 13.0416 12.1562 11.7916 13.9271C10.5416 15.6979 8.94442 16.8264 6.99998 17.3125ZM5.12498 12.3333H8.87498C9.05553 12.3333 9.20484 12.2743 9.3229 12.1562C9.44095 12.0382 9.49998 11.8889 9.49998 11.7083V8.79167C9.49998 8.61111 9.44095 8.46181 9.3229 8.34375C9.20484 8.22569 9.05553 8.16667 8.87498 8.16667H8.66665V7.33333C8.66665 6.875 8.50345 6.48264 8.17706 6.15625C7.85067 5.82986 7.45831 5.66667 6.99998 5.66667C6.54165 5.66667 6.14928 5.82986 5.8229 6.15625C5.49651 6.48264 5.33331 6.875 5.33331 7.33333V8.16667H5.12498C4.94442 8.16667 4.79512 8.22569 4.67706 8.34375C4.55901 8.46181 4.49998 8.61111 4.49998 8.79167V11.7083C4.49998 11.8889 4.55901 12.0382 4.67706 12.1562C4.79512 12.2743 4.94442 12.3333 5.12498 12.3333ZM5.95831 8.16667V7.33333C5.95831 7.05556 6.06248 6.82292 6.27081 6.63542C6.47915 6.44792 6.7222 6.35417 6.99998 6.35417C7.27776 6.35417 7.52081 6.44792 7.72915 6.63542C7.93748 6.82292 8.04165 7.05556 8.04165 7.33333V8.16667H5.95831Z" fill="#929BED"/> | ||
</svg> | ||
` |
This file contains hidden or 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 hidden or 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 hidden or 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
104 changes: 104 additions & 0 deletions 104 packages/core/src/views/account-center/EnableTransactionProtection.svelte
This file contains hidden or 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,104 @@ | ||
<script lang="ts"> | ||
import { _ } from 'svelte-i18n' | ||
import { Modal } from '../shared' | ||
import en from '../../i18n/en.json' | ||
import shieldIcon from '../../icons/shield-icon.js' | ||
| ||
export let onEnable: () => void | ||
export let onDismiss: () => void | ||
</script> | ||
| ||
<style> | ||
.content { | ||
--background-color: var(--w3o-background-color); | ||
--text-color: var(--w3o-text-color); | ||
--action-color: var(--w3o-action-color, var(--primary-500)); | ||
| ||
font-size: 1rem; | ||
line-height: 1.5rem; | ||
| ||
display: flex; | ||
flex-flow: column; | ||
gap: 1.5rem; | ||
padding: 1rem; | ||
max-width: 320px; | ||
| ||
background: var(--background-color); | ||
color: var(--text-color); | ||
} | ||
| ||
.icon-container { | ||
position: relative; | ||
overflow: hidden; | ||
width: 3rem; | ||
height: 3rem; | ||
border-radius: 24px; | ||
padding: .75rem; | ||
background: none; | ||
} | ||
.icon-container::before { | ||
content: ''; | ||
position: absolute; | ||
height: 100%; | ||
width: 100%; | ||
opacity: 0.2; | ||
background: var(--action-color); | ||
} | ||
| ||
.text-container { | ||
display: flex; | ||
flex-flow: column; | ||
gap: 0.5rem; | ||
padding: 0 0.5rem; | ||
} | ||
| ||
.actions-container { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
gap: 1rem; | ||
} | ||
| ||
.heading { | ||
font-weight: 600; | ||
} | ||
| ||
button { | ||
font-weight: 600; | ||
} | ||
| ||
button.primary { | ||
background: var(--action-color); | ||
} | ||
</style> | ||
| ||
<Modal close={onDismiss}> | ||
<div class="content"> | ||
<div class="icon-container flex justify-center items-center"> | ||
{@html shieldIcon} | ||
</div> | ||
| ||
<div class="text-container"> | ||
<div class="heading"> | ||
{$_('modals.confirmTransactionProtection.heading', { | ||
default: en.modals.confirmTransactionProtection.heading | ||
})} | ||
</div> | ||
<div> | ||
{$_('modals.confirmTransactionProtection.description')} | ||
</div> | ||
</div> | ||
| ||
<div class="actions-container"> | ||
<button class="button-neutral-solid-b" on:click={onDismiss}> | ||
{$_('modals.confirmTransactionProtection.dismiss', { | ||
default: en.modals.confirmTransactionProtection.dismiss | ||
})} | ||
</button> | ||
<button class="button-neutral-solid rounded primary" on:click={onEnable}> | ||
{$_('modals.confirmTransactionProtection.enable', { | ||
default: en.modals.confirmTransactionProtection.enable | ||
})} | ||
</button> | ||
</div> | ||
</div> | ||
</Modal> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.