merge: integrate marketplace and design v2 client
This commit is contained in:
@@ -71,10 +71,6 @@ import { shouldUseSecureWorksSquareSessionPersistence } from '../services/works-
|
||||
import { initializeRememberedPassword } from '../services/remembered-password';
|
||||
import { clearManagedWorksSquareRuntimeBestEffort } from '../services/works-square-runtime';
|
||||
import { initializeMeowaGameAssetsCredential } from '../api/routes/meowa-game-assets';
|
||||
import {
|
||||
isLocalImageWorkspaceDevelopmentEnabled,
|
||||
LocalImageWorkspace,
|
||||
} from '../image-workspace/local-workspace';
|
||||
import { WorksSquareDesignWorkspace } from '../image-workspace/works-square-workspace';
|
||||
import type { DesignWorkspaceModule } from '../image-workspace/module';
|
||||
import {
|
||||
@@ -500,20 +496,9 @@ async function initialize(): Promise<void> {
|
||||
codingProjectStore = createCodingProjectStore(codingProjectStorage);
|
||||
worksSubmissionBinding = createWorksSubmissionBindingStore(codingProjectStore);
|
||||
|
||||
const localImageWorkspaceEnabled = isLocalImageWorkspaceDevelopmentEnabled({
|
||||
isPackaged: app.isPackaged,
|
||||
configuredMode: process.env.NIANCODE_IMAGE_WORKSPACE_MODE,
|
||||
isDevelopmentServer: Boolean(process.env.VITE_DEV_SERVER_URL),
|
||||
});
|
||||
const imageWorkspace = localImageWorkspaceEnabled
|
||||
? new LocalImageWorkspace({ userDataDir: app.getPath('userData') })
|
||||
: new WorksSquareDesignWorkspace();
|
||||
const imageWorkspace = new WorksSquareDesignWorkspace();
|
||||
imageWorkspaceModule = imageWorkspace;
|
||||
if (localImageWorkspaceEnabled) {
|
||||
logger.info('AI painting workspace is using local development storage');
|
||||
} else {
|
||||
logger.info('AI painting workspace is using the Works Square cloud contract');
|
||||
}
|
||||
logger.info('AI painting workspace is using the Works Square V2 cloud contract');
|
||||
|
||||
// Set application menu
|
||||
createMenu();
|
||||
|
||||
Reference in New Issue
Block a user