Browse Source

fix: tabler theme user profile & edit

Cat 3 years ago
parent
commit
5e2e52c270
3 changed files with 1 additions and 101 deletions
  1. 1 1
      README.md
  2. 0 69
      resources/views/tabler/user/edit.tpl
  3. 0 31
      resources/views/tabler/user/profile.tpl

+ 1 - 1
README.md

@@ -12,7 +12,7 @@
 ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Anankke/SSPanel-Uim/Lint%20code?label=lint&style=flat-square)
 
 
-[使用文档](https://wiki.sspanel.org) | [API 文档](https://github.com/sspanel-uim/API-documents) | [配套SS/SSR后端](https://github.com/Anankke/shadowsocks-mod) | [配套Trojan后端](https://github.com/sspanel-uim/TrojanX) | [Telegram 频道](https://t.me/sspanel_uim) | [Telegram 水群](https://t.me/ssunion)
+[使用文档](https://wiki.sspanel.org) | [API 文档](https://github.com/sspanel-uim/API-documents) | [配套SS/SSR后端](https://github.com/sspanel-uim/shadowsocks-mod) | [配套Trojan后端](https://github.com/sspanel-uim/TrojanX) | [Telegram 水群](https://t.me/ssunion) | [Telegram 通知频道](https://t.me/sspanel_uim) | [Telegram 开发频道](https://t.me/sspanel_uim_dev)
 
 ## 简介
 

+ 0 - 69
resources/views/tabler/user/edit.tpl

@@ -357,64 +357,6 @@
                                 </div>
                                 <div class="tab-pane" id="other_settings" role="tabpanel">
                                     <div class="row row-cards">
-                                        <div class="col-sm-12 col-md-6">
-                                            <div class="card">
-                                                <div class="card-body">
-                                                    <h3 class="card-title">修改连接参数</h3>
-                                                    <p>SS/SSR
-                                                        支持的加密方式和混淆方式有所不同,请根据实际情况来进行选择。在这里选择你需要使用的客户端可以帮助你筛选加密方式和混淆方式。<code>auth_chain</code>
-                                                        系为实验性协议,可能造成不稳定或无法使用</p>
-                                                    <div class="form-group mb-3 row">
-                                                        <label class="form-label col-3 col-form-label">加密方式</label>
-                                                        <div class="col">
-                                                            <select id="method" class="form-select">
-                                                                {$method_list = $config_service->getSupportParam('method')}
-                                                                {foreach $method_list as $method}
-                                                                    <option value="{$method}"
-                                                                        {if $user->method == $method}selected{/if}>{$method}
-                                                                    </option>
-                                                                {/foreach}
-                                                            </select>
-                                                        </div>
-                                                    </div>
-                                                    <div class="form-group mb-3 row">
-                                                        <label class="form-label col-3 col-form-label">协议</label>
-                                                        <div class="col">
-                                                            <select id="protocol" class="form-select">
-                                                                {$protocol_list = $config_service->getSupportParam('protocol')}
-                                                                {foreach $protocol_list as $protocol}
-                                                                    <option value="{$protocol}"
-                                                                        {if $user->protocol == $protocol}selected{/if}>
-                                                                        {$protocol}</option>
-                                                                {/foreach}
-                                                            </select>
-                                                        </div>
-                                                    </div>
-                                                    <div class="form-group mb-3 row">
-                                                        <label class="form-label col-3 col-form-label">混淆</label>
-                                                        <div class="col">
-                                                            <select id="obfs" class="form-select">
-                                                                {$obfs_list = $config_service->getSupportParam('obfs')}
-                                                                {foreach $obfs_list as $obfs}
-                                                                    <option value="{$obfs}"
-                                                                        {if $user->obfs == $obfs}selected{/if}>{$obfs}
-                                                                    </option>
-                                                                {/foreach}
-                                                            </select>
-                                                        </div>
-                                                    </div>
-                                                    <div class="mb-3">
-                                                        <input id="obfs_param" type="text" class="form-control"
-                                                            value="{$user->obfs_param}" placeholder="混淆参数">
-                                                    </div>
-                                                </div>
-                                                <div class="card-footer">
-                                                    <div class="d-flex">
-                                                        <a id="modify-config" class="btn btn-primary ms-auto">修改</a>
-                                                    </div>
-                                                </div>
-                                            </div>
-                                        </div>
                                         <div class="col-sm-12 col-md-6">
                                             <div class="card">
                                                 <div class="card-body">
@@ -541,17 +483,6 @@
             correctLevel: QRCode.CorrectLevel.H
         });
 
-        {if $config['use_new_telegram_bot'] == false}
-            var tgqrcode = new QRCode('qrcode-telegram', {
-                text: 'mod://bind/{$bind_token}',
-                width: 128,
-                height: 128,
-                colorDark: '#000000',
-                colorLight: '#ffffff',
-                correctLevel: QRCode.CorrectLevel.H
-            });
-        {/if}
-
         var clipboard = new ClipboardJS('.copy');
         clipboard.on('success', function(e) {
             $('#success-message').text('已复制到剪切板');

+ 0 - 31
resources/views/tabler/user/profile.tpl

@@ -62,37 +62,6 @@
                         </div>
                     </div>
                 </div>
-                <div class="col-md-6 com-sm-12">
-                    <div class="card">
-                        <div class="card-header">
-                            <h3 class="card-title">最近使用记录</h3>
-                        </div>
-                        {if $use_logs->count() != '0'}
-                            <div class="table-responsive">
-                                <table class="table table-vcenter card-table">
-                                    <thead>
-                                        <tr>
-                                            <th>IP</th>
-                                            <th>归属</th>
-                                        </tr>
-                                    </thead>
-                                    <tbody>
-                                        {foreach $use_logs as $use_log}
-                                            <tr>
-                                                <td>{$use_log->ip}</td>
-                                                <td>{Tools::getIpInfo($use_log->ip)}</td>
-                                            </tr>
-                                        {/foreach}
-                                    </tbody>
-                                </table>
-                            </div>
-                        {else}
-                            <div class="card-body">
-                                <p>没有记录</p>
-                            </div>
-                        {/if}
-                    </div>
-                </div>
                 <div class="col-md-6 com-sm-12">
                     <div class="card">
                         <div class="card-header">