mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-29 05:05:32 +08:00
chore: adjust storge import paths
This commit is contained in:
@@ -32,7 +32,7 @@ const manifest = {
|
||||
},
|
||||
content_scripts: [
|
||||
{
|
||||
js: ['message-bus.js'],
|
||||
js: ['content-script.js'],
|
||||
matches: ['*://*/*'],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
performs the instructed logic. An effective background script is only loaded when it is
|
||||
needed and unloaded when it goes idle.
|
||||
*/
|
||||
import { popupCenter } from 'background/popup';
|
||||
import { popupCenter } from '@background/popup';
|
||||
import { ScreenPaths } from '@store/types';
|
||||
import { storePayload, StorageKey } from '../storage';
|
||||
import { vaultMessageHandler } from '@background/vault';
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
|
||||
import { gaiaUrl } from '@common/constants';
|
||||
import { VaultActions } from '@background/vault-types';
|
||||
import { decryptMnemonic, encryptMnemonic } from 'background/crypto/mnemonic-encryption';
|
||||
import { decryptMnemonic, encryptMnemonic } from '@background/crypto/mnemonic-encryption';
|
||||
import { DEFAULT_PASSWORD } from '@store/types';
|
||||
import { InternalMethods } from '@content-scripts/message-types';
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { useCallback, useEffect } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { decodeToken } from 'jsontokens';
|
||||
import { getRequestOrigin, StorageKey } from 'storage';
|
||||
|
||||
import { DecodedAuthRequest } from '@common/dev/types';
|
||||
import { useWallet } from '@common/hooks/use-wallet';
|
||||
import { ScreenPaths } from '@store/types';
|
||||
import { useOnboardingState } from '../use-onboarding-state';
|
||||
import { useSetRecoilState } from 'recoil';
|
||||
import { authRequestState, currentScreenState } from '@store/onboarding';
|
||||
import { ScreenPaths } from '@store/types';
|
||||
import { getRequestOrigin, StorageKey } from '../../../storage';
|
||||
import { useOnboardingState } from '../use-onboarding-state';
|
||||
|
||||
export function useSaveAuthRequest() {
|
||||
const { wallet } = useWallet();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getRequestOrigin, StorageKey } from 'storage';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { requestTokenStore } from '@store/transaction';
|
||||
import { getRequestOrigin, StorageKey } from '../../storage';
|
||||
|
||||
export function useOrigin() {
|
||||
const requestToken = useRecoilValue(requestTokenStore);
|
||||
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { DecodedAuthRequest } from './dev/types';
|
||||
import { wordlists } from 'bip39';
|
||||
import { isValidUrl } from './validate-url';
|
||||
import { getTab, deleteTabForRequest, StorageKey } from 'storage';
|
||||
import { getTab, deleteTabForRequest, StorageKey } from '../storage';
|
||||
import { BufferReader, deserializePostCondition, PostCondition } from '@stacks/transactions';
|
||||
import { KEBAB_REGEX } from '@common/constants';
|
||||
import {
|
||||
|
||||
@@ -14,7 +14,7 @@ const config = require('./webpack.config.dev');
|
||||
|
||||
// This is important, allows for fast refresh to work
|
||||
// we don't want to inject our fast refresh helpers into everything
|
||||
const excludeEntriesToHotReload = ['message-bus.js'];
|
||||
const excludeEntriesToHotReload = ['content-script.js'];
|
||||
|
||||
const NODE_ENV = process.env.NODE_ENV;
|
||||
const PORT = process.env.PORT || '3000';
|
||||
|
||||
Reference in New Issue
Block a user