From 5e6c8f214c3fa7951d849b02bcf99e48938bfc73 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Mon, 6 May 2024 15:25:08 +0800 Subject: [PATCH] Refactor(TS): Rename some file from *.tsx to *.ts --- src/services/api/{avatar.tsx => avatar.ts} | 0 src/services/{auth.tsx => auth.ts} | 0 src/services/{system.tsx => system.ts} | 2 +- src/services/{tool.tsx => tool.ts} | 2 +- src/util/{auth.tsx => auth.ts} | 0 src/util/{browser.tsx => browser.ts} | 0 src/util/{hooks.tsx => hooks.ts} | 0 src/util/{navigation.tsx => navigation.ts} | 0 8 files changed, 2 insertions(+), 2 deletions(-) rename src/services/api/{avatar.tsx => avatar.ts} (100%) rename src/services/{auth.tsx => auth.ts} (100%) rename src/services/{system.tsx => system.ts} (99%) rename src/services/{tool.tsx => tool.ts} (98%) rename src/util/{auth.tsx => auth.ts} (100%) rename src/util/{browser.tsx => browser.ts} (100%) rename src/util/{hooks.tsx => hooks.ts} (100%) rename src/util/{navigation.tsx => navigation.ts} (100%) diff --git a/src/services/api/avatar.tsx b/src/services/api/avatar.ts similarity index 100% rename from src/services/api/avatar.tsx rename to src/services/api/avatar.ts diff --git a/src/services/auth.tsx b/src/services/auth.ts similarity index 100% rename from src/services/auth.tsx rename to src/services/auth.ts diff --git a/src/services/system.tsx b/src/services/system.ts similarity index 99% rename from src/services/system.tsx rename to src/services/system.ts index 047b0be..cd9e41d 100644 --- a/src/services/system.tsx +++ b/src/services/system.ts @@ -24,7 +24,7 @@ import { URL_SYS_SETTINGS_TWO_FACTOR, URL_SYS_TOOL_BASE_LIST } from '@/constants/urls.constants' -import request from '@/services/index' +import request from '@/services' export const r_sys_user_info_get = () => request.get(URL_SYS_USER_INFO) diff --git a/src/services/tool.tsx b/src/services/tool.ts similarity index 98% rename from src/services/tool.tsx rename to src/services/tool.ts index 2a31952..5fe9183 100644 --- a/src/services/tool.tsx +++ b/src/services/tool.ts @@ -1,4 +1,4 @@ -import request from '@/services/index' +import request from '@/services' import { URL_TOOL, URL_TOOL_CATEGORY, diff --git a/src/util/auth.tsx b/src/util/auth.ts similarity index 100% rename from src/util/auth.tsx rename to src/util/auth.ts diff --git a/src/util/browser.tsx b/src/util/browser.ts similarity index 100% rename from src/util/browser.tsx rename to src/util/browser.ts diff --git a/src/util/hooks.tsx b/src/util/hooks.ts similarity index 100% rename from src/util/hooks.tsx rename to src/util/hooks.ts diff --git a/src/util/navigation.tsx b/src/util/navigation.ts similarity index 100% rename from src/util/navigation.tsx rename to src/util/navigation.ts