Skip to content

Commit 81b3b25

Browse files
committed
Merge branch 'frontend-use-absolute-import'
2 parents 4e2461e + 9cbdf63 commit 81b3b25

File tree

245 files changed

+1067
-1014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+1067
-1014
lines changed

frontends/web/package-lock.json

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontends/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"vite": "^5.1.6",
1919
"vite-plugin-checker": "^0.6.4",
2020
"vite-plugin-eslint": "^1.8.1",
21+
"vite-tsconfig-paths": "^4.3.2",
2122
"vitest": "^1.4.0"
2223
},
2324
"dependencies": {

frontends/web/src/api/account.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { apiGet, apiPost } from '../utils/request';
18-
import type { ChartData } from '../routes/account/summary/chart';
17+
import { apiGet, apiPost } from '@/utils/request';
18+
import type { ChartData } from '@/routes/account/summary/chart';
1919
import type { TDetailStatus } from './bitsurance';
2020
import type { SuccessResponse } from './response';
2121

frontends/web/src/api/accountsync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { TUnsubscribe } from '../utils/transport-common';
17+
import { TUnsubscribe } from '@/utils/transport-common';
1818
import * as accountAPI from './account';
1919
import { TSubscriptionCallback, subscribeEndpoint } from './subscribe';
20-
import { subscribe as subscribeLegacy } from '../utils/event-legacy';
20+
import { subscribe as subscribeLegacy } from '@/utils/event-legacy';
2121

2222
/**
2323
* Subscribes the given function on the "account" event and receives the

frontends/web/src/api/aopp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*/
1616

1717
import { AccountCode } from './account';
18-
import { apiGet, apiPost } from '../utils/request';
19-
import type { TUnsubscribe } from '../utils/transport-common';
18+
import { apiGet, apiPost } from '@/utils/request';
19+
import type { TUnsubscribe } from '@/utils/transport-common';
2020
import { subscribeEndpoint } from './subscribe';
2121

2222
export interface Account {

frontends/web/src/api/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import type { AccountCode, CoinCode, ERC20CoinCode } from './account';
1818
import type { FailResponse, SuccessResponse } from './response';
19-
import { apiGet, apiPost } from '../utils/request';
19+
import { apiGet, apiPost } from '@/utils/request';
2020
import { TSubscriptionCallback, subscribeEndpoint } from './subscribe';
2121

2222
export interface ICoin {

frontends/web/src/api/backup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { apiGet } from '../utils/request';
1+
import { apiGet } from '@/utils/request';
22
import { FailResponse } from './response';
33
import { TSubscriptionCallback, subscribeEndpoint } from './subscribe';
44

frontends/web/src/api/banners.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { apiGet } from '../utils/request';
18-
import { statusType } from '../components/status/status';
17+
import { apiGet } from '@/utils/request';
18+
import { statusType } from '@/components/status/status';
1919
import { subscribeEndpoint, TUnsubscribe } from './subscribe';
2020

2121
export type TBannerInfo = {

frontends/web/src/api/bitbox01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { apiGet } from '../utils/request';
17+
import { apiGet } from '@/utils/request';
1818

1919
export type DeviceInfo = {
2020
bootlock: boolean;

frontends/web/src/api/bitbox02.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { apiGet, apiPost } from '../utils/request';
17+
import { apiGet, apiPost } from '@/utils/request';
1818
import { SuccessResponse, FailResponse } from './response';
1919

2020
// BitBox02 error codes.

0 commit comments

Comments
 (0)