mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'main' into build/no-test-on-ui-build
This commit is contained in:
commit
4d50fbf8dc
22
invokeai/frontend/web/index.d.ts
vendored
22
invokeai/frontend/web/index.d.ts
vendored
@ -1,4 +1,6 @@
|
|||||||
import React, { PropsWithChildren } from 'react';
|
import React, { PropsWithChildren } from 'react';
|
||||||
|
import { IAIPopoverProps } from '../web/src/common/components/IAIPopover';
|
||||||
|
import { IAIIconButtonProps } from '../web/src/common/components/IAIIconButton';
|
||||||
|
|
||||||
export {};
|
export {};
|
||||||
|
|
||||||
@ -50,9 +52,27 @@ declare module '@invoke-ai/invoke-ai-ui' {
|
|||||||
declare class InvokeAiLogoComponent extends React.Component<InvokeAILogoComponentProps> {
|
declare class InvokeAiLogoComponent extends React.Component<InvokeAILogoComponentProps> {
|
||||||
public constructor(props: InvokeAILogoComponentProps);
|
public constructor(props: InvokeAILogoComponentProps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare class IAIPopover extends React.Component<IAIPopoverProps> {
|
||||||
|
public constructor(props: IAIPopoverProps);
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class IAIIconButton extends React.Component<IAIIconButtonProps> {
|
||||||
|
public constructor(props: IAIIconButtonProps);
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class SettingsModal extends React.Component<SettingsModalProps> {
|
||||||
|
public constructor(props: SettingsModalProps);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare function Invoke(props: PropsWithChildren): JSX.Element;
|
declare function Invoke(props: PropsWithChildren): JSX.Element;
|
||||||
|
|
||||||
export { ThemeChanger, InvokeAiLogoComponent };
|
export {
|
||||||
|
ThemeChanger,
|
||||||
|
InvokeAiLogoComponent,
|
||||||
|
IAIPopover,
|
||||||
|
IAIIconButton,
|
||||||
|
SettingsModal,
|
||||||
|
};
|
||||||
export = Invoke;
|
export = Invoke;
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
"prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky",
|
"prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky",
|
||||||
"dev": "concurrently \"vite dev\" \"yarn run theme:watch\"",
|
"dev": "concurrently \"vite dev\" \"yarn run theme:watch\"",
|
||||||
"build": "yarn run lint && vite build",
|
"build": "yarn run lint && vite build",
|
||||||
"build:package": "vite build --mode=package",
|
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint:madge": "madge --circular src/main.tsx",
|
"lint:madge": "madge --circular src/main.tsx",
|
||||||
"lint:eslint": "eslint --max-warnings=0 .",
|
"lint:eslint": "eslint --max-warnings=0 .",
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { memo, ReactNode } from 'react';
|
import { memo, ReactNode } from 'react';
|
||||||
|
|
||||||
type IAIPopoverProps = PopoverProps & {
|
export type IAIPopoverProps = PopoverProps & {
|
||||||
triggerComponent: ReactNode;
|
triggerComponent: ReactNode;
|
||||||
triggerContainerProps?: BoxProps;
|
triggerContainerProps?: BoxProps;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
|
@ -2,6 +2,15 @@ import Component from './component';
|
|||||||
|
|
||||||
import InvokeAiLogoComponent from './features/system/components/InvokeAILogoComponent';
|
import InvokeAiLogoComponent from './features/system/components/InvokeAILogoComponent';
|
||||||
import ThemeChanger from './features/system/components/ThemeChanger';
|
import ThemeChanger from './features/system/components/ThemeChanger';
|
||||||
|
import IAIPopover from './common/components/IAIPopover';
|
||||||
|
import IAIIconButton from './common/components/IAIIconButton';
|
||||||
|
import SettingsModal from './features/system/components/SettingsModal/SettingsModal';
|
||||||
|
|
||||||
export default Component;
|
export default Component;
|
||||||
export { InvokeAiLogoComponent, ThemeChanger };
|
export {
|
||||||
|
InvokeAiLogoComponent,
|
||||||
|
ThemeChanger,
|
||||||
|
IAIPopover,
|
||||||
|
IAIIconButton,
|
||||||
|
SettingsModal,
|
||||||
|
};
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import react from '@vitejs/plugin-react-swc';
|
import react from '@vitejs/plugin-react-swc';
|
||||||
import { visualizer } from 'rollup-plugin-visualizer';
|
import { visualizer } from 'rollup-plugin-visualizer';
|
||||||
import { defineConfig, PluginOption } from 'vite';
|
import { defineConfig, PluginOption } from 'vite';
|
||||||
@ -58,26 +57,6 @@ export default defineConfig(({ mode }) => {
|
|||||||
// sourcemap: true, // this can be enabled if needed, it adds ovwer 15MB to the commit
|
// sourcemap: true, // this can be enabled if needed, it adds ovwer 15MB to the commit
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} else if (mode === 'package') {
|
|
||||||
return {
|
|
||||||
...common,
|
|
||||||
build: {
|
|
||||||
...common.build,
|
|
||||||
lib: {
|
|
||||||
entry: path.resolve(__dirname, 'src/exports.tsx'),
|
|
||||||
name: 'InvokeAI UI',
|
|
||||||
fileName: (format) => `invoke-ai-ui.${format}.js`,
|
|
||||||
},
|
|
||||||
rollupOptions: {
|
|
||||||
external: ['react', 'react-dom'],
|
|
||||||
output: {
|
|
||||||
globals: {
|
|
||||||
react: 'React',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
...common,
|
...common,
|
||||||
|
@ -45,9 +45,9 @@ dependencies = [
|
|||||||
"einops",
|
"einops",
|
||||||
"eventlet",
|
"eventlet",
|
||||||
"facexlib",
|
"facexlib",
|
||||||
"fastapi==0.85.0",
|
"fastapi==0.94.1",
|
||||||
"fastapi-events==0.6.0",
|
"fastapi-events==0.8.0",
|
||||||
"fastapi-socketio==0.0.9",
|
"fastapi-socketio==0.0.10",
|
||||||
"flask==2.1.3",
|
"flask==2.1.3",
|
||||||
"flask_cors==3.0.10",
|
"flask_cors==3.0.10",
|
||||||
"flask_socketio==5.3.0",
|
"flask_socketio==5.3.0",
|
||||||
@ -75,7 +75,7 @@ dependencies = [
|
|||||||
"torchvision>=0.14.1",
|
"torchvision>=0.14.1",
|
||||||
"torchmetrics",
|
"torchmetrics",
|
||||||
"transformers~=4.26",
|
"transformers~=4.26",
|
||||||
"uvicorn[standard]==0.20.0",
|
"uvicorn[standard]==0.21.1",
|
||||||
"windows-curses; sys_platform=='win32'",
|
"windows-curses; sys_platform=='win32'",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user