chore: add worker guide

This commit is contained in:
jialin
2025-07-10 09:47:12 +08:00
parent 51450c2b02
commit 03d798760c
8 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const ErrorResult: React.FC<ErrorResultProps> = ({ extra }) => {
const intl = useIntl();
return (
<Result
status="error"
status="warning"
title={
isChunkLoadError(extra)
? intl.formatMessage({ id: 'common.page.refresh.tips' })
+1 -3
View File
@@ -41,10 +41,8 @@ const useStyles = createStyles(({ css, token }) => {
gap: 8px;
cursor: pointer;
padding: var(--ant-padding-xs) var(--ant-padding);
line-height: var(--ant-menu-group-title-line-height);
font-size: 12px;
padding-bottom: 4px;
color: var(--ant-color-text-secondary);
overflow: hidden;
height: 30px;
transtion: all var(--ant-motion-duration-slow);
@@ -61,7 +59,7 @@ const useStyles = createStyles(({ css, token }) => {
align-items: center;
gap: 4px;
font-size: 12px;
color: var(--ant-color-text-secondary);
color: var(--ant-color-text-tertiary);
font-weight: 400;
}
+2 -2
View File
@@ -82,14 +82,14 @@ export default {
'resources.register.worker.step4':
'Select <span class="bold-text">Worker</span> as the service role.',
'resources.register.worker.step5':
'Enter the <span class="bold-text">Server URL</span>.',
'Enter the <span class="bold-text">Server URL</span>: {url}.',
'resources.register.worker.step6':
'Paste the <span class="bold-text">Token</span>.',
'resources.register.worker.step7':
'Click <span class="bold-text">Restart</span> to apply the settings.',
'resources.register.install.title': 'Install GPUStack on {os}',
'resources.register.download':
'Download and install the <a>installer</a>. Currently supported: {versions}.',
'Download and install the <a>installer</a>. Only supported: {versions}.',
'resource.register.maos.support': 'Apple Silicon (M series), macOS 14+',
'resource.register.windows.support': 'win 10, win 11'
};
+4 -4
View File
@@ -83,14 +83,14 @@ export default {
'resources.register.worker.step4':
'Select <span class="bold-text">Worker</span> as the service role.',
'resources.register.worker.step5':
'Enter the <span class="bold-text">Server URL</span>.',
'Enter the <span class="bold-text">Server URL</span>: {url}.',
'resources.register.worker.step6':
'Paste the <span class="bold-text">Token</span>.',
'resources.register.worker.step7':
'Click <span class="bold-text">Restart</span> to apply the settings.',
'resources.register.install.title': 'Install GPUStack on {os}',
'resources.register.download':
'Download and install the <a>installer</a>. Currently supported: {versions}.',
'Download and install the <a>installer</a>. Only supported: {versions}.',
'resource.register.maos.support': 'Apple Silicon (M series), macOS 14+',
'resource.register.windows.support': 'win 10, win 11'
};
@@ -100,11 +100,11 @@ export default {
// 2. 'resources.register.worker.step2': 'Click the <span class="bold-text">Quick Config</span> menu.',
// 3. 'resources.register.worker.step3': 'Click the <span class="bold-text">General</span> tab.',
// 4. 'resources.register.worker.step4': 'Select <span class="bold-text">Worker</span> as the service role.',
// 5. 'resources.register.worker.step5': 'Enter the <span class="bold-text">Server URL</span>.',
// 5. 'resources.register.worker.step5': 'Enter the <span class="bold-text">Server URL</span>: {url}.',
// 6. 'resources.register.worker.step6': 'Paste the <span class="bold-text">Token</span>.',
// 7. 'resources.register.worker.step7': 'Click <span class="bold-text">Restart</span> to apply the settings.',
// 8. 'resources.register.install.title': 'Install GPUStack on {os}',
// 9. 'resources.register.download':'Download and install the <a>installer</a>. Currently supported: {versions}.',
// 9. 'resources.register.download':'Download and install the <a>installer</a>. Only supported: {versions}.',
// 10. 'resource.register.maos.support': 'Apple Silicon (M series), macOS 14+',
// 11. 'resource.register.windows.support': 'win 10, win 11'
// ========== End of To-Do List ==========
+1 -1
View File
@@ -81,7 +81,7 @@ export default {
'resources.register.worker.step4':
'Выберите роль сервиса: <span class="bold-text">Воркер</span>.',
'resources.register.worker.step5':
'Введите <span class="bold-text">URL сервера</span>.',
'Введите <span class="bold-text">URL сервера</span>: {url}.',
'resources.register.worker.step6':
'Вставьте <span class="bold-text">Токен</span>.',
'resources.register.worker.step7':
+4 -5
View File
@@ -80,14 +80,13 @@ export default {
'resources.register.worker.step4':
'选择服务角色 <span class="bold-text">Worker</span>。',
'resources.register.worker.step5':
'输入 <span class="bold-text">Server URL</span>。',
'输入 <span class="bold-text">Server URL</span>{url}。',
'resources.register.worker.step6':
'粘贴 <span class="bold-text">Token</span>.',
'粘贴 <span class="bold-text">Token</span>',
'resources.register.worker.step7':
'点击<span class="bold-text">重启</span>应用设置。',
'点击<span class="bold-text">重启</span>应用设置。',
'resources.register.install.title': '在 {os} 上安装 GPUStack',
'resources.register.download':
'下载并安装<a>安装包</a>,目前仅支持 {versions}。',
'resources.register.download': '下载并安装<a>安装包</a>,仅支持 {versions}。',
'resource.register.maos.support': 'M 芯片,macOS 14+',
'resource.register.windows.support': 'win 10, win 11'
};
@@ -89,7 +89,10 @@ const AddWorkerMacOS: React.FC<AddWorkerMacOSProps> = ({ platform }) => {
{index + 1}.{' '}
<span
dangerouslySetInnerHTML={{
__html: intl.formatMessage({ id: step })
__html: intl.formatMessage(
{ id: step },
{ url: window.location.origin }
)
}}
></span>
</Typography.Text>