{$layout}

{$template "/left_menu"}

<div class="http-config-container">
    <div class="config-section">
        <div class="section-title">
            <i class="icon globe"></i>
            DNS设置
        </div>
        
        <div class="config-item">
            <div class="item-label">
                <i class="icon sitemap"></i>
                当前网站CNAME
            </div>
            <div class="item-content">
                <div class="ui-copy-box">
                    <span id="cname-text">{{dnsName}}.<span v-if="dnsDomain.length > 0">{{dnsDomain}}.</span><span v-else>根域名</span></span>
                    <copy-to-clipboard :v-target="'cname-text'"></copy-to-clipboard>
                </div>
                <p class="comment">可以在DNS设置一个CNAME记录，名字为你自己的域名，值为上面这个值。</p>
            </div>
        </div>
    </div>
</div>