Skip to content

Commit

Permalink
♻️ refactor: refactor with new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 20, 2024
1 parent 36126f5 commit 73b78e5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion locales/zh-CN/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"input": {
"placeholder": "请输入 Midjourney 提示词..."
},
"requestError": "`请求失败,错误码 {{errorCode}}",
"requestError": "请求失败,错误码 {{errorCode}}",
"response": {
"NO_BASE_URL": "Midjourney API 代理地址为空,请填写后重试",
"fallback": "请求失败,请稍后重试"
Expand Down
2 changes: 1 addition & 1 deletion src/features/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Settings = memo(() => {
<Alert
closable
description={getErrorContent(requestError.body)}
message={t('requestError', { erroCode: requestError.status })}
message={t('requestError', { errorCode: requestError.status })}
type={'error'}
/>
)}
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/store/global/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StateCreator } from 'zustand';

import { storageService } from '@/services/storageService';
import { storageService } from '@/services/storage';

import { AppSettings, initialState } from './initialState';
import { SettingsStore } from './store';
Expand Down
4 changes: 2 additions & 2 deletions src/store/midjourney/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import useSWR, { SWRResponse } from 'swr';
import { StateCreator } from 'zustand';

import { getClientConfig } from '@/config/client';
import { ChangeTaskDTO, midjourneyService } from '@/services/Midjourney';
import { storageService } from '@/services/storageService';
import { ChangeTaskDTO, midjourneyService } from '@/services/midjourney';
import { storageService } from '@/services/storage';
import { useGlobalStore } from '@/store/global';
import { TaskDispatch, tasksReducer } from '@/store/midjourney/reducers/task';
import { MidjourneyTask } from '@/types/task';
Expand Down

0 comments on commit 73b78e5

Please sign in to comment.