{$layout}
{$template "/clusters/cluster/node/node_menu"}

<div class="left-right-box-container">
    {$template "/left_menu"}

    <div class="right-box">
        <form class="ui form" data-tea-success="success" data-tea-action="$">
            <input type="hidden" name="nodeId" :value="node.id"/>
            <csrf-token></csrf-token>
            <table class="ui table definition selectable">
                <tr>
                    <td class="title">CPU线程数</td>
                    <td>
                        <input type="text" name="maxCPU" v-model="node.maxCPU" style="width:5em" maxlength="4"/>
                        <p class="comment">当前节点可以使用的最多的CPU线程数，如果为0则默认为总的CPU线程数。<pro-warning-label></pro-warning-label></p>
                    </td>
                </tr>
                <tr v-show="teaIsPlus">
                    <td class="title">BYPASS 移动</td>
                    <td>
                        <checkbox :v-value="1" :name="bypassMobileCheckbox" v-model="node.bypassMobileCheckbox" @change="changeBypassMobile">
                            <slot></slot>
                        </checkbox>
                        <p class="comment"><plus-label></plus-label>选中后，可优化移动网络访问成功率，对于正常站点，会增加访问延迟，节点需安装nftables。<pro-warning-label></pro-warning-label></p>
                    </td>
                </tr>
                <tr v-show="teaIsPlus && node.bypassMobileCheckbox">
                    <td class="title">BYPASS 移动，窗口大小</td>
                    <td>
                        <input type="text" name="bypassMobile" v-model="node.bypassMobile"/>
                        <p class="comment"><plus-label></plus-label>TCP接收窗口大小，默认值17。<pro-warning-label></pro-warning-label></p>
                    </td>
                </tr>
            </table>

            <b-settings-header>DNS解析</b-settings-header>
            <!-- <h4>DNS解析</h4> -->
            <dns-resolver-config-box :v-dns-resolver-config="dnsResolverConfig"></dns-resolver-config-box>

            <b-settings-header>API相关</b-settings-header>
            <!-- <h4>API相关</h4> -->
            <table class="ui table definition selectable">
                <tr>
                    <td class="title">API节点地址</td>
                    <td>
                        <div style="margin-bottom: 0.5em">
                            <api-node-addresses-box :v-name="'apiNodeAddrsJSON'" :v-addrs="apiNodeAddrs"></api-node-addresses-box>
                        </div>
                        <p class="comment">当前节点单独使用的API节点设置。<pro-warning-label></pro-warning-label></p>
                    </td>
                </tr>
            </table>

            <submit-btn></submit-btn>
        </form>
    </div>
</div>