{$layout}
{$template "menu"}

<div class="margin"></div>
<div class="audit-message info">
    <i class="icon info circle"></i>
    <div>预热缓存指的是预先从源站读取最新内容，当用户访问预热后的URL时直接从缓存中返回内容，不需要再次回源。</div>
</div>

<div>
    <form class="ui form http-config-form" method="post" data-tea-action="$" data-tea-success="success" data-tea-done="done" data-tea-timeout="600" data-tea-before="before">
        <csrf-token></csrf-token>
        
        <div class="config-section">
            <div class="section-title">基本设置</div>
            <div class="config-item">
                <div class="item-label">URL列表 *</div>
                <div class="item-content">
                    <textarea rows="20" name="urlList" ref="focus"></textarea>
                    <p class="comment">每行一条，每次最多提交{{maxKeysPerTask}}个URL，每天最多提交{{maxKeysPerDay}}个<span v-if="quotaKeysToday > 0">，今日剩余{{quotaKeysToday}}个</span>。</p>
                </div>
            </div>
        </div>

        <div class="config-item">
            <submit-btn v-if="!isRequesting">预热缓存</submit-btn>
            <button class="ui button disabled" type="button" v-if="isRequesting">处理中...</button>
        </div>
    </form>
</div>