style: 自动学习按钮移到配置区左侧,顺序改为代理、保存配置、立即开始
This commit is contained in:
@@ -1012,25 +1012,6 @@ onUnmounted(() => {
|
|||||||
<span class="study-text" role="status" aria-live="polite" :class="{ muted: !studyControl.started && !studyControl.active && !studyFailed }">{{ studyLabel }}</span>
|
<span class="study-text" role="status" aria-live="polite" :class="{ muted: !studyControl.started && !studyControl.active && !studyFailed }">{{ studyLabel }}</span>
|
||||||
<span v-if="showHoursRefresh" class="study-text muted">页面学时刷新倒计时: {{ hoursRefreshLeft() }}s</span>
|
<span v-if="showHoursRefresh" class="study-text muted">页面学时刷新倒计时: {{ hoursRefreshLeft() }}s</span>
|
||||||
</div>
|
</div>
|
||||||
<n-tooltip v-if="!studyControl.started" placement="top">
|
|
||||||
<template #trigger>
|
|
||||||
<span class="study-start-wrap">
|
|
||||||
<n-button type="success" size="small" :disabled="startBlocked !== ''" :loading="studyBusy" @click="toggleStudy">
|
|
||||||
<template #icon>
|
|
||||||
<n-icon><PlayOutline /></n-icon>
|
|
||||||
</template>
|
|
||||||
立即开始
|
|
||||||
</n-button>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
{{ startBlocked || "按当前配置立刻开始,同时保存配置" }}
|
|
||||||
</n-tooltip>
|
|
||||||
<n-button v-else type="error" size="small" :loading="studyBusy" @click="toggleStudy">
|
|
||||||
<template #icon>
|
|
||||||
<n-icon><StopOutline /></n-icon>
|
|
||||||
</template>
|
|
||||||
停止
|
|
||||||
</n-button>
|
|
||||||
</header>
|
</header>
|
||||||
<n-alert v-if="studyError" class="summary-error" type="error">{{ studyError }}</n-alert>
|
<n-alert v-if="studyError" class="summary-error" type="error">{{ studyError }}</n-alert>
|
||||||
<n-alert v-if="settingsLoadError" class="summary-error" type="error">
|
<n-alert v-if="settingsLoadError" class="summary-error" type="error">
|
||||||
@@ -1112,11 +1093,30 @@ onUnmounted(() => {
|
|||||||
间隔越短,发送越频繁。设为 0 时连续发送,课程列表不显示倒计时。
|
间隔越短,发送越频繁。设为 0 时连续发送,课程列表不显示倒计时。
|
||||||
</p>
|
</p>
|
||||||
<div class="study-actions">
|
<div class="study-actions">
|
||||||
<n-button v-if="scheduleReady" type="primary" size="small" :loading="scheduleSaving" @click="saveSchedule">保存配置</n-button>
|
|
||||||
<n-button v-if="proxyLoaded" size="small" quaternary @click="proxyOpen = true">
|
<n-button v-if="proxyLoaded" size="small" quaternary @click="proxyOpen = true">
|
||||||
<template #icon><n-icon><GlobeOutline /></n-icon></template>
|
<template #icon><n-icon><GlobeOutline /></n-icon></template>
|
||||||
代理
|
代理
|
||||||
</n-button>
|
</n-button>
|
||||||
|
<n-button v-if="scheduleReady" type="primary" size="small" :loading="scheduleSaving" @click="saveSchedule">保存配置</n-button>
|
||||||
|
<n-tooltip v-if="!studyControl.started" placement="top">
|
||||||
|
<template #trigger>
|
||||||
|
<span class="study-start-wrap">
|
||||||
|
<n-button type="success" size="small" :disabled="startBlocked !== ''" :loading="studyBusy" @click="toggleStudy">
|
||||||
|
<template #icon>
|
||||||
|
<n-icon><PlayOutline /></n-icon>
|
||||||
|
</template>
|
||||||
|
立即开始
|
||||||
|
</n-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
{{ startBlocked || "按当前配置立刻开始,同时保存配置" }}
|
||||||
|
</n-tooltip>
|
||||||
|
<n-button v-else type="error" size="small" :loading="studyBusy" @click="toggleStudy">
|
||||||
|
<template #icon>
|
||||||
|
<n-icon><StopOutline /></n-icon>
|
||||||
|
</template>
|
||||||
|
停止
|
||||||
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="study-live">
|
<div class="study-live">
|
||||||
|
|||||||
Reference in New Issue
Block a user