Update mj style (#161)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
2abbb37f6b
commit
fe3da8bb20
72 files changed
+10919
-10692
No files matched your search
@@ -6,7 +6,7 @@ import {
|
||||
IApplication,
|
||||
IApplicationType,
|
||||
ICredential,
|
||||
IMidjourneyPreset,
|
||||
IMidjourneyConfig,
|
||||
IMidjourneyTask,
|
||||
IMidjourneyTasksResponse,
|
||||
IService
|
||||
@@ -23,8 +23,8 @@ export const setCredential = async ({ commit }: any, payload: ICredential): Prom
|
||||
commit('setCredential', payload);
|
||||
};
|
||||
|
||||
export const setPreset = ({ commit }: any, payload: IMidjourneyPreset) => {
|
||||
commit('setPreset', payload);
|
||||
export const setConfig = ({ commit }: any, payload: IMidjourneyConfig) => {
|
||||
commit('setConfig', payload);
|
||||
};
|
||||
|
||||
export const setMode = ({ commit }: any, payload: string) => {
|
||||
@@ -149,7 +149,7 @@ export default {
|
||||
getService,
|
||||
resetAll,
|
||||
setCredential,
|
||||
setPreset,
|
||||
setConfig,
|
||||
setMode,
|
||||
setApplication,
|
||||
getApplications,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IApplication, ICredential, IMidjourneyPreset, IMidjourneyTask, IService, Status } from '@/models';
|
||||
import { IApplication, ICredential, IMidjourneyConfig, IMidjourneyTask, IService, Status } from '@/models';
|
||||
|
||||
export interface IMidjourneyState {
|
||||
service: IService | undefined;
|
||||
@@ -11,7 +11,7 @@ export interface IMidjourneyState {
|
||||
}
|
||||
| undefined;
|
||||
credential: ICredential | undefined;
|
||||
preset: IMidjourneyPreset;
|
||||
config: IMidjourneyConfig;
|
||||
status: {
|
||||
getService: Status;
|
||||
getApplications: Status;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { IApplication, ICredential, IMidjourneyPreset, IService } from '@/models';
|
||||
import { IApplication, ICredential, IMidjourneyConfig, IService } from '@/models';
|
||||
import { IMidjourneyState } from './models';
|
||||
|
||||
export const resetAll = (state: IMidjourneyState): void => {
|
||||
state.application = undefined;
|
||||
state.applications = undefined;
|
||||
state.preset = {};
|
||||
state.config = {};
|
||||
state.tasks = {
|
||||
items: undefined,
|
||||
total: undefined
|
||||
@@ -27,8 +27,8 @@ export const setApplications = (state: IMidjourneyState, payload: IApplication[]
|
||||
state.applications = payload;
|
||||
};
|
||||
|
||||
export const setPreset = (state: IMidjourneyState, payload: IMidjourneyPreset): void => {
|
||||
state.preset = payload;
|
||||
export const setConfig = (state: IMidjourneyState, payload: IMidjourneyConfig): void => {
|
||||
state.config = payload;
|
||||
};
|
||||
|
||||
export const setTasks = (state: IMidjourneyState, payload: any): void => {
|
||||
@@ -38,7 +38,7 @@ export const setTasks = (state: IMidjourneyState, payload: any): void => {
|
||||
export default {
|
||||
setApplication,
|
||||
setApplications,
|
||||
setPreset,
|
||||
setConfig,
|
||||
setCredential,
|
||||
setService,
|
||||
setTasks,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export default [
|
||||
'midjourney.preset',
|
||||
'midjourney.config',
|
||||
'midjourney.credential',
|
||||
'midjourney.mode',
|
||||
'midjourney.application',
|
||||
|
||||
@@ -11,7 +11,7 @@ export default (): IMidjourneyState => {
|
||||
total: undefined
|
||||
},
|
||||
credential: undefined,
|
||||
preset: {},
|
||||
config: {},
|
||||
status: {
|
||||
getService: Status.None,
|
||||
getApplications: Status.None,
|
||||
|
||||
Reference in new issue
Block a user