mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
c4fb514f3d
The unconnected account alert can now be disabled. A "don't show this again" checkbox has been added to the alert, which prevents that alert from being shown in the future. An alert settings page has been added to the settings as well. This page allows the user to disable or enable any alert.
110 lines
4.0 KiB
JavaScript
110 lines
4.0 KiB
JavaScript
const DEFAULT_ROUTE = '/'
|
|
const UNLOCK_ROUTE = '/unlock'
|
|
const LOCK_ROUTE = '/lock'
|
|
const SETTINGS_ROUTE = '/settings'
|
|
const GENERAL_ROUTE = '/settings/general'
|
|
const CONNECTIONS_ROUTE = '/settings/connections'
|
|
const ADVANCED_ROUTE = '/settings/advanced'
|
|
const SECURITY_ROUTE = '/settings/security'
|
|
const ABOUT_US_ROUTE = '/settings/about-us'
|
|
const ALERTS_ROUTE = '/settings/alerts'
|
|
const NETWORKS_ROUTE = '/settings/networks'
|
|
const CONTACT_LIST_ROUTE = '/settings/contact-list'
|
|
const CONTACT_EDIT_ROUTE = '/settings/contact-list/edit-contact'
|
|
const CONTACT_ADD_ROUTE = '/settings/contact-list/add-contact'
|
|
const CONTACT_VIEW_ROUTE = '/settings/contact-list/view-contact'
|
|
const CONTACT_MY_ACCOUNTS_ROUTE = '/settings/contact-list/my-accounts'
|
|
const CONTACT_MY_ACCOUNTS_VIEW_ROUTE = '/settings/contact-list/my-accounts/view'
|
|
const CONTACT_MY_ACCOUNTS_EDIT_ROUTE = '/settings/contact-list/my-accounts/edit'
|
|
const REVEAL_SEED_ROUTE = '/seed'
|
|
const MOBILE_SYNC_ROUTE = '/mobile-sync'
|
|
const RESTORE_VAULT_ROUTE = '/restore-vault'
|
|
const ADD_TOKEN_ROUTE = '/add-token'
|
|
const CONFIRM_ADD_TOKEN_ROUTE = '/confirm-add-token'
|
|
const CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE = '/confirm-add-suggested-token'
|
|
const NEW_ACCOUNT_ROUTE = '/new-account'
|
|
const IMPORT_ACCOUNT_ROUTE = '/new-account/import'
|
|
const CONNECT_HARDWARE_ROUTE = '/new-account/connect'
|
|
const SEND_ROUTE = '/send'
|
|
const CONNECT_ROUTE = '/connect'
|
|
const CONNECT_CONFIRM_PERMISSIONS_ROUTE = '/confirm-permissions'
|
|
const CONNECTED_ROUTE = '/connected'
|
|
|
|
const INITIALIZE_ROUTE = '/initialize'
|
|
const INITIALIZE_WELCOME_ROUTE = '/initialize/welcome'
|
|
const INITIALIZE_UNLOCK_ROUTE = '/initialize/unlock'
|
|
const INITIALIZE_CREATE_PASSWORD_ROUTE = '/initialize/create-password'
|
|
const INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE = '/initialize/create-password/import-with-seed-phrase'
|
|
const INITIALIZE_SELECT_ACTION_ROUTE = '/initialize/select-action'
|
|
const INITIALIZE_SEED_PHRASE_ROUTE = '/initialize/seed-phrase'
|
|
const INITIALIZE_BACKUP_SEED_PHRASE_ROUTE = '/initialize/backup-seed-phrase'
|
|
const INITIALIZE_END_OF_FLOW_ROUTE = '/initialize/end-of-flow'
|
|
const INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE = '/initialize/seed-phrase/confirm'
|
|
const INITIALIZE_METAMETRICS_OPT_IN_ROUTE = '/initialize/metametrics-opt-in'
|
|
|
|
const CONFIRM_TRANSACTION_ROUTE = '/confirm-transaction'
|
|
const CONFIRM_SEND_ETHER_PATH = '/send-ether'
|
|
const CONFIRM_SEND_TOKEN_PATH = '/send-token'
|
|
const CONFIRM_DEPLOY_CONTRACT_PATH = '/deploy-contract'
|
|
const CONFIRM_APPROVE_PATH = '/approve'
|
|
const CONFIRM_TRANSFER_FROM_PATH = '/transfer-from'
|
|
const CONFIRM_TOKEN_METHOD_PATH = '/token-method'
|
|
const SIGNATURE_REQUEST_PATH = '/signature-request'
|
|
const DECRYPT_MESSAGE_REQUEST_PATH = '/decrypt-message-request'
|
|
const ENCRYPTION_PUBLIC_KEY_REQUEST_PATH = '/encryption-public-key-request'
|
|
|
|
export {
|
|
DEFAULT_ROUTE,
|
|
ALERTS_ROUTE,
|
|
UNLOCK_ROUTE,
|
|
LOCK_ROUTE,
|
|
SETTINGS_ROUTE,
|
|
REVEAL_SEED_ROUTE,
|
|
MOBILE_SYNC_ROUTE,
|
|
RESTORE_VAULT_ROUTE,
|
|
ADD_TOKEN_ROUTE,
|
|
CONFIRM_ADD_TOKEN_ROUTE,
|
|
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE,
|
|
NEW_ACCOUNT_ROUTE,
|
|
IMPORT_ACCOUNT_ROUTE,
|
|
CONNECT_HARDWARE_ROUTE,
|
|
SEND_ROUTE,
|
|
INITIALIZE_ROUTE,
|
|
INITIALIZE_WELCOME_ROUTE,
|
|
INITIALIZE_UNLOCK_ROUTE,
|
|
INITIALIZE_CREATE_PASSWORD_ROUTE,
|
|
INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE,
|
|
INITIALIZE_SELECT_ACTION_ROUTE,
|
|
INITIALIZE_SEED_PHRASE_ROUTE,
|
|
INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE,
|
|
INITIALIZE_END_OF_FLOW_ROUTE,
|
|
CONFIRM_TRANSACTION_ROUTE,
|
|
CONFIRM_SEND_ETHER_PATH,
|
|
CONFIRM_SEND_TOKEN_PATH,
|
|
CONFIRM_DEPLOY_CONTRACT_PATH,
|
|
CONFIRM_APPROVE_PATH,
|
|
CONFIRM_TRANSFER_FROM_PATH,
|
|
CONFIRM_TOKEN_METHOD_PATH,
|
|
SIGNATURE_REQUEST_PATH,
|
|
DECRYPT_MESSAGE_REQUEST_PATH,
|
|
ENCRYPTION_PUBLIC_KEY_REQUEST_PATH,
|
|
INITIALIZE_METAMETRICS_OPT_IN_ROUTE,
|
|
ADVANCED_ROUTE,
|
|
SECURITY_ROUTE,
|
|
GENERAL_ROUTE,
|
|
CONNECTIONS_ROUTE,
|
|
ABOUT_US_ROUTE,
|
|
CONTACT_LIST_ROUTE,
|
|
CONTACT_EDIT_ROUTE,
|
|
CONTACT_ADD_ROUTE,
|
|
CONTACT_VIEW_ROUTE,
|
|
CONTACT_MY_ACCOUNTS_ROUTE,
|
|
CONTACT_MY_ACCOUNTS_VIEW_ROUTE,
|
|
CONTACT_MY_ACCOUNTS_EDIT_ROUTE,
|
|
NETWORKS_ROUTE,
|
|
INITIALIZE_BACKUP_SEED_PHRASE_ROUTE,
|
|
CONNECT_ROUTE,
|
|
CONNECT_CONFIRM_PERMISSIONS_ROUTE,
|
|
CONNECTED_ROUTE,
|
|
}
|