mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): remove all refs to boards thunks
This commit is contained in:
parent
3c04340f3f
commit
10008859a4
@ -9,7 +9,6 @@ import { imageMetadataReceived } from 'services/thunks/image';
|
|||||||
import { sessionCanceled } from 'services/thunks/session';
|
import { sessionCanceled } from 'services/thunks/session';
|
||||||
import { isImageOutput } from 'services/types/guards';
|
import { isImageOutput } from 'services/types/guards';
|
||||||
import { progressImageSet } from 'features/system/store/systemSlice';
|
import { progressImageSet } from 'features/system/store/systemSlice';
|
||||||
import { imageAddedToBoard } from '../../../../../../services/thunks/board';
|
|
||||||
import { api } from 'services/apiSlice';
|
import { api } from 'services/apiSlice';
|
||||||
|
|
||||||
const moduleLog = log.child({ namespace: 'socketio' });
|
const moduleLog = log.child({ namespace: 'socketio' });
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
import { createAppAsyncThunk } from '../../app/store/storeUtils';
|
|
||||||
import { BoardsService } from '../api';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* `BoardsService.listBoards()` thunk
|
|
||||||
*/
|
|
||||||
export const receivedBoards = createAppAsyncThunk(
|
|
||||||
'api/receivedBoards',
|
|
||||||
async (_, { getState }) => {
|
|
||||||
const response = await BoardsService.listBoards({});
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
type BoardCreatedArg = Parameters<(typeof BoardsService)['createBoard']>[0];
|
|
||||||
|
|
||||||
export const boardCreated = createAppAsyncThunk(
|
|
||||||
'api/boardCreated',
|
|
||||||
async (arg: BoardCreatedArg) => {
|
|
||||||
const response = await BoardsService.createBoard(arg);
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
export const boardDeleted = createAppAsyncThunk(
|
|
||||||
'api/boardDeleted',
|
|
||||||
async (boardId: string) => {
|
|
||||||
await BoardsService.deleteBoard({ boardId });
|
|
||||||
return boardId;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
type BoardUpdatedArg = Parameters<(typeof BoardsService)['updateBoard']>[0];
|
|
||||||
|
|
||||||
export const boardUpdated = createAppAsyncThunk(
|
|
||||||
'api/boardUpdated',
|
|
||||||
async (arg: BoardUpdatedArg) => {
|
|
||||||
const response = await BoardsService.updateBoard(arg);
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
type ImageAddedToBoardArg = Parameters<
|
|
||||||
(typeof BoardsService)['createBoardImage']
|
|
||||||
>[0]['requestBody'];
|
|
||||||
|
|
||||||
export const imageAddedToBoard = createAppAsyncThunk(
|
|
||||||
'api/imageAddedToBoard',
|
|
||||||
async (arg: ImageAddedToBoardArg) => {
|
|
||||||
const response = await BoardsService.createBoardImage(arg);
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
);
|
|
Loading…
Reference in New Issue
Block a user