chore: docker add worker command

This commit is contained in:
jialin
2024-11-28 23:19:31 +08:00
parent 849150c9ab
commit 0cc2a40f26
18 changed files with 549 additions and 434 deletions
+4 -3
View File
@@ -11,7 +11,8 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
const currentVersion = getAtomStorage(GPUStackVersionAtom)?.version;
const isProd =
currentVersion !== '0.0.0' && currentVersion?.indexOf('rc') === -1;
currentVersion?.indexOf('rc') === -1 &&
currentVersion?.indexOf('0.0.0') === -1;
const uiVersion = document.documentElement.getAttribute('data-version');
@@ -39,7 +40,7 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
{' '}
{intl.formatMessage({ id: 'common.footer.version.server' })}
</span>
{currentVersion === '0.0.0'
{currentVersion.indexOf('0.0.0') > -1
? getAtomStorage(GPUStackVersionAtom)?.git_commit
: getAtomStorage(GPUStackVersionAtom)?.version}
</span>
@@ -55,7 +56,7 @@ const VersionInfo: React.FC<{ intl: any }> = ({ intl }) => {
<span className="m-l-5">
{latestVersion &&
latestVersion !== currentVersion &&
latestVersion !== '0.0.0'
latestVersion.indexOf('0.0.0') === -1
? intl.formatMessage(
{ id: 'users.version.update' },
{ version: latestVersion }