refactor: use ~ as import alias

This commit is contained in:
鲁树人
2023-05-09 01:22:00 +01:00
parent eeb00e0bc9
commit 5ad054631c
7 changed files with 32 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
import { ConcurrentQueue } from '../util/ConcurrentQueue';
import { WorkerClientBus } from '../util/WorkerEventBus';
import { ConcurrentQueue } from '~/util/ConcurrentQueue';
import { WorkerClientBus } from '~/util/WorkerEventBus';
import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
// TODO: Worker pool?

View File

@@ -1,4 +1,4 @@
import { WorkerServerBus } from '../util/WorkerEventBus';
import { WorkerServerBus } from '~/util/WorkerEventBus';
import { DECRYPTION_WORKER_ACTION_NAME } from './constants';
const bus = new WorkerServerBus();

View File

@@ -1,7 +1,7 @@
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
import type { PayloadAction } from '@reduxjs/toolkit';
import type { RootState } from '../../store';
import { decryptionQueue } from '../../decrypt-worker/client';
import type { RootState } from '~/store';
import { decryptionQueue } from '~/decrypt-worker/client';
export enum ProcessState {
UNTOUCHED = 'UNTOUCHED',