mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
feat(config): update config page buttons layout, closes #263
This commit is contained in:
parent
7ee64dd71f
commit
dd0452dcd3
@ -88,8 +88,8 @@ export default {
|
|||||||
closed: 'Closed',
|
closed: 'Closed',
|
||||||
sort: 'Sort',
|
sort: 'Sort',
|
||||||
hideUnAvailableProxies: 'Hide UnAvailable Proxies',
|
hideUnAvailableProxies: 'Hide UnAvailable Proxies',
|
||||||
reloadConfigFile: 'Reload Config File',
|
reloadConfig: 'Reload Config',
|
||||||
flushFakeIPData: 'Flush Fake-IP Data',
|
flushFakeIP: 'Flush Fake-IP',
|
||||||
tagClientSourceIPWithName: 'Tag Client Source IP With Name',
|
tagClientSourceIPWithName: 'Tag Client Source IP With Name',
|
||||||
tag: 'Tag',
|
tag: 'Tag',
|
||||||
coreConfig: 'Core Config',
|
coreConfig: 'Core Config',
|
||||||
|
@ -49,7 +49,7 @@ export default {
|
|||||||
favDayTheme: '浅色主题偏好',
|
favDayTheme: '浅色主题偏好',
|
||||||
favNightTheme: '深色主题偏好',
|
favNightTheme: '深色主题偏好',
|
||||||
renderInTwoColumns: '双列渲染',
|
renderInTwoColumns: '双列渲染',
|
||||||
updateGEODatabases: '更新 GEO 数据库文件',
|
updateGEODatabases: '更新 GEO 数据库',
|
||||||
restartCore: '重启核心',
|
restartCore: '重启核心',
|
||||||
upgradeCore: '更新核心',
|
upgradeCore: '更新核心',
|
||||||
proxiesSorting: '节点排序',
|
proxiesSorting: '节点排序',
|
||||||
@ -88,8 +88,8 @@ export default {
|
|||||||
closed: '已关闭',
|
closed: '已关闭',
|
||||||
sort: '排序',
|
sort: '排序',
|
||||||
hideUnAvailableProxies: '隐藏不可用节点',
|
hideUnAvailableProxies: '隐藏不可用节点',
|
||||||
reloadConfigFile: '重新加载配置文件',
|
reloadConfig: '重载配置',
|
||||||
flushFakeIPData: '清空 Fake-IP 数据',
|
flushFakeIP: '清空 Fake-IP',
|
||||||
tagClientSourceIPWithName: '为客户端源 IP 地址添加名称标记',
|
tagClientSourceIPWithName: '为客户端源 IP 地址添加名称标记',
|
||||||
tag: '标记',
|
tag: '标记',
|
||||||
coreConfig: '核心配置',
|
coreConfig: '核心配置',
|
||||||
|
@ -217,31 +217,52 @@ const ConfigForm = () => {
|
|||||||
</For>
|
</For>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="flex flex-wrap items-center gap-2">
|
<div class="flex flex-wrap items-center justify-center gap-2">
|
||||||
<Button loading={reloadingConfigFile()} onClick={reloadConfigFileAPI}>
|
<Button
|
||||||
{t('reloadConfigFile')}
|
class="btn-primary"
|
||||||
</Button>
|
loading={reloadingConfigFile()}
|
||||||
|
onClick={reloadConfigFileAPI}
|
||||||
<Button loading={flushingFakeIPData()} onClick={flushFakeIPDataAPI}>
|
>
|
||||||
{t('flushFakeIPData')}
|
{t('reloadConfig')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
class="btn-secondary"
|
||||||
loading={updatingGEODatabases()}
|
loading={updatingGEODatabases()}
|
||||||
onClick={updateGEODatabasesAPI}
|
onClick={updateGEODatabasesAPI}
|
||||||
>
|
>
|
||||||
{t('updateGEODatabases')}
|
{t('updateGEODatabases')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button loading={upgradingBackend()} onClick={upgradeBackendAPI}>
|
<Button
|
||||||
|
class="btn-accent"
|
||||||
|
loading={flushingFakeIPData()}
|
||||||
|
onClick={flushFakeIPDataAPI}
|
||||||
|
>
|
||||||
|
{t('flushFakeIP')}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-wrap items-center justify-center gap-2">
|
||||||
|
<Button
|
||||||
|
class="btn-error"
|
||||||
|
loading={upgradingBackend()}
|
||||||
|
onClick={upgradeBackendAPI}
|
||||||
|
>
|
||||||
{t('upgradeCore')}
|
{t('upgradeCore')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button loading={restartingBackend()} onClick={restartBackendAPI}>
|
<Button
|
||||||
|
class="btn-warning"
|
||||||
|
loading={restartingBackend()}
|
||||||
|
onClick={restartBackendAPI}
|
||||||
|
>
|
||||||
{t('restartCore')}
|
{t('restartCore')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button onClick={onSwitchEndpointClick}>{t('switchEndpoint')}</Button>
|
<Button class="btn-info" onClick={onSwitchEndpointClick}>
|
||||||
|
{t('switchEndpoint')}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user